/*!
 * 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(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],i=Object.getPrototypeOf,r=n.slice,s=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,o=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,h=d.call(Object),f={},p=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var i,r,s=(n=n||g).createElement("script");if(s.text=e,t)for(i in v)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,r);n.head.appendChild(s).parentNode.removeChild(s)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var x="3.7.1",_=/HTML$/i,w=function(e,t){return new w.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!p(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}w.fn=w.prototype={jquery:x,constructor:w,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.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<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,i,r,s,a=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[o]||{},o++),"object"==typeof a||p(a)||(a={}),o===l&&(a=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(c&&i&&(w.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[t],s=r&&!Array.isArray(n)?[]:r||w.isPlainObject(n)?n:{},r=!1,a[t]=w.extend(c,s,i)):void 0!==i&&(a[t]=i));return a},w.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=u.call(t,"constructor")&&t.constructor)&&d.call(n)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(k(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r)for(;t=e[i++];)n+=w.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?w.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:o.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!_.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,s=e.length,a=!n;r<s;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,a=0,o=[];if(k(e))for(i=e.length;a<i;a++)null!=(r=t(e[a],a,n))&&o.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&o.push(r);return s(o)},guid:1,support:f}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var S=n.pop,A=n.sort,L=n.splice,T="[\\x20\\t\\r\\n\\f]",C=new RegExp("^"+T+"+|((?:^|[^\\\\])(?:\\\\.)*)"+T+"+$","g");w.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var D=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function E(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}w.escapeSelector=function(e){return(e+"").replace(D,E)};var O=g,P=a;!function(){var t,i,s,a,l,c,d,h,p,m,g=P,v=w.expando,y=0,b=0,x=ee(),_=ee(),k=ee(),D=ee(),E=function(e,t){return e===t&&(l=!0),0},Y="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="(?:\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+T+"*("+I+")(?:"+T+"*([*^$|!~]?=)"+T+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+T+"*\\]",H=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",j=new RegExp(T+"+","g"),F=new RegExp("^"+T+"*,"+T+"*"),R=new RegExp("^"+T+"*([>+~]|"+T+")"+T+"*"),z=new RegExp(T+"|>"),B=new RegExp(H),V=new RegExp("^"+I+"$"),W={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+T+"*(even|odd|(([+-]|)(\\d*)n|)"+T+"*(?:([+-]|)"+T+"*(\\d+)|))"+T+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+T+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+T+"*((?:-\\d)?\\d*)"+T+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\([^\\r\\n\\f])","g"),Z=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(){le()},J=he((function(e){return!0===e.disabled&&M(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(n=r.call(O.childNodes),O.childNodes),n[O.childNodes.length].nodeType}catch(e){g={apply:function(e,t){P.apply(e,r.call(t))},call:function(e){P.apply(e,r.call(arguments,1))}}}function Q(e,t,n,i){var r,s,a,o,l,u,d,m=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||c,h)){if(11!==y&&(l=$.exec(e)))if(r=l[1]){if(9===y){if(!(a=t.getElementById(r)))return n;if(a.id===r)return g.call(n,a),n}else if(m&&(a=m.getElementById(r))&&Q.contains(t,a)&&a.id===r)return g.call(n,a),n}else{if(l[2])return g.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(r)),n}if(!(D[e+" "]||p&&p.test(e))){if(d=e,m=t,1===y&&(z.test(e)||R.test(e))){for((m=X.test(e)&&oe(t.parentNode)||t)==t&&f.scope||((o=t.getAttribute("id"))?o=w.escapeSelector(o):t.setAttribute("id",o=v)),s=(u=ue(e)).length;s--;)u[s]=(o?"#"+o:":scope")+" "+de(u[s]);d=u.join(",")}try{return g.apply(n,m.querySelectorAll(d)),n}catch(t){D(e,!0)}finally{o===v&&t.removeAttribute("id")}}}return ye(e.replace(C,"$1"),t,n,i)}function ee(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=c.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 M(t,"input")&&t.type===e}}function re(e){return function(t){return(M(t,"input")||M(t,"button"))&&t.type===e}}function se(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&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,i){for(var r,s=e([],n.length,t),a=s.length;a--;)n[r=s[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function oe(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,n=e?e.ownerDocument||e:O;return n!=c&&9===n.nodeType&&n.documentElement?(d=(c=n).documentElement,h=!w.isXMLDoc(c),m=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&O!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",K),f.getById=ne((function(e){return d.appendChild(e).id=w.expando,!c.getElementsByName||!c.getElementsByName(w.expando).length})),f.disconnectedMatch=ne((function(e){return m.call(e,"*")})),f.scope=ne((function(){return c.querySelectorAll(":scope")})),f.cssHas=ne((function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),f.getById?(i.filter.ID=function(e){var t=e.replace(G,Z);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(G,Z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,i,r,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(r=t.getElementsByName(e),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),i.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},i.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},p=[],ne((function(e){var t;d.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+T+"*(?:value|"+Y+")"),e.querySelectorAll("[id~="+v+"-]").length||p.push("~="),e.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+T+"*name"+T+"*="+T+"*(?:''|\"\")")})),f.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),E=function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===c||e.ownerDocument==O&&Q.contains(O,e)?-1:t===c||t.ownerDocument==O&&Q.contains(O,t)?1:a?o.call(a,e)-o.call(a,t):0:4&n?-1:1)},c):c}for(t in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),h&&!D[t+" "]&&(!p||!p.test(t)))try{var n=m.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){D(t,!0)}return Q(t,c,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=c&&le(e),w.contains(e,t)},Q.attr=function(e,t){(e.ownerDocument||e)!=c&&le(e);var n=i.attrHandle[t.toLowerCase()],r=n&&u.call(i.attrHandle,t.toLowerCase())?n(e,t,!h):void 0;return void 0!==r?r:e.getAttribute(t)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],i=0,s=0;if(l=!f.sortStable,a=!f.sortStable&&r.call(e,0),A.call(e,E),l){for(;t=e[s++];)t===e[s]&&(i=n.push(s));for(;i--;)L.call(e,n[i],1)}return a=null,e},w.fn.uniqueSort=function(){return this.pushStack(w.uniqueSort(r.apply(this)))},i=w.expr={cacheLength:50,createPseudo:te,match:W,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(G,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(G,Z),"~="===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]||Q.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]&&Q.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&B.test(n)&&(t=ue(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(G,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return M(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+T+")"+e+"("+T+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=Q.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(j," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var s="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=s!==a?"nextSibling":"previousSibling",m=t.parentNode,g=o&&t.nodeName.toLowerCase(),b=!l&&!o,x=!1;if(m){if(s){for(;p;){for(d=t;d=d[p];)if(o?M(d,g):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&b){for(x=(h=(c=(u=m[v]||(m[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(x=h=0)||f.pop();)if(1===d.nodeType&&++x&&d===t){u[e]=[y,h,x];break}}else if(b&&(x=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===x)for(;(d=++h&&d&&d[p]||(x=h=0)||f.pop())&&(!(o?M(d,g):1===d.nodeType)||!++x||(b&&((u=d[v]||(d[v]={}))[e]=[y,x]),d!==t)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return r[v]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,n){for(var i,s=r(e,t),a=s.length;a--;)e[i=o.call(e,s[a])]=!(n[i]=s[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(C,"$1"));return i[v]?te((function(e,t,n,r){for(var s,a=i(e,null,r,[]),o=e.length;o--;)(s=a[o])&&(e[o]=!(t[o]=s))})):function(e,r,s){return t[0]=e,i(t,null,s,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(G,Z),function(t){return(t.textContent||w.text(t)).indexOf(e)>-1}})),lang:te((function(e){return V.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(G,Z).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===function(){try{return c.activeElement}catch(e){}}()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:se(!1),disabled:se(!0),checked:function(e){return M(e,"input")&&!!e.checked||M(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!i.pseudos.empty(e)},header:function(e){return U.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){return M(e,"input")&&"button"===e.type||M(e,"button")},text:function(e){var t;return M(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ae((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=ie(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=re(t);function ce(){}function ue(e,t){var n,r,s,a,o,l,c,u=_[e+" "];if(u)return t?0:u.slice(0);for(o=e,l=[],c=i.preFilter;o;){for(a in n&&!(r=F.exec(o))||(r&&(o=o.slice(r[0].length)||o),l.push(s=[])),n=!1,(r=R.exec(o))&&(n=r.shift(),s.push({value:n,type:r[0].replace(C," ")}),o=o.slice(n.length)),i.filter)!(r=W[a].exec(o))||c[a]&&!(r=c[a](r))||(n=r.shift(),s.push({value:n,type:a,matches:r}),o=o.slice(n.length));if(!n)break}return t?o.length:o?Q.error(e):_(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function he(e,t,n){var i=t.dir,r=t.next,s=r||i,a=n&&"parentNode"===s,o=b++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var c,u,d=[y,o];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(u=t[v]||(t[v]={}),r&&M(t,r))t=t[i]||t;else{if((c=u[s])&&c[0]===y&&c[1]===o)return d[2]=c[2];if(u[s]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,r){for(var s,a=[],o=0,l=e.length,c=null!=t;o<l;o++)(s=e[o])&&(n&&!n(s,i,r)||(a.push(s),c&&t.push(o)));return a}function me(e,t,n,i,r,s){return i&&!i[v]&&(i=me(i)),r&&!r[v]&&(r=me(r,s)),te((function(s,a,l,c){var u,d,h,f,p=[],m=[],v=a.length,y=s||function(e,t,n){for(var i=0,r=t.length;i<r;i++)Q(e,t[i],n);return n}(t||"*",l.nodeType?[l]:l,[]),b=!e||!s&&t?y:pe(y,p,e,l,c);if(n?n(b,f=r||(s?e:v||i)?[]:a,l,c):f=b,i)for(u=pe(f,m),i(u,[],l,c),d=u.length;d--;)(h=u[d])&&(f[m[d]]=!(b[m[d]]=h));if(s){if(r||e){if(r){for(u=[],d=f.length;d--;)(h=f[d])&&u.push(b[d]=h);r(null,f=[],u,c)}for(d=f.length;d--;)(h=f[d])&&(u=r?o.call(s,h):p[d])>-1&&(s[u]=!(a[u]=h))}}else f=pe(f===a?f.splice(v,f.length):f),r?r(null,a,f,c):g.apply(a,f)}))}function ge(e){for(var t,n,r,a=e.length,l=i.relative[e[0].type],c=l||i.relative[" "],u=l?1:0,d=he((function(e){return e===t}),c,!0),h=he((function(e){return o.call(t,e)>-1}),c,!0),f=[function(e,n,i){var r=!l&&(i||n!=s)||((t=n).nodeType?d(e,n,i):h(e,n,i));return t=null,r}];u<a;u++)if(n=i.relative[e[u].type])f=[he(fe(f),n)];else{if((n=i.filter[e[u].type].apply(null,e[u].matches))[v]){for(r=++u;r<a&&!i.relative[e[r].type];r++);return me(u>1&&fe(f),u>1&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(C,"$1"),n,u<r&&ge(e.slice(u,r)),r<a&&ge(e=e.slice(r)),r<a&&de(e))}f.push(n)}return fe(f)}function ve(e,t){var n,r=[],a=[],o=k[e+" "];if(!o){for(t||(t=ue(e)),n=t.length;n--;)(o=ge(t[n]))[v]?r.push(o):a.push(o);o=k(e,function(e,t){var n=t.length>0,r=e.length>0,a=function(a,o,l,u,d){var f,p,m,v=0,b="0",x=a&&[],_=[],k=s,M=a||r&&i.find.TAG("*",d),A=y+=null==k?1:Math.random()||.1,L=M.length;for(d&&(s=o==c||o||d);b!==L&&null!=(f=M[b]);b++){if(r&&f){for(p=0,o||f.ownerDocument==c||(le(f),l=!h);m=e[p++];)if(m(f,o||c,l)){g.call(u,f);break}d&&(y=A)}n&&((f=!m&&f)&&v--,a&&x.push(f))}if(v+=b,n&&b!==v){for(p=0;m=t[p++];)m(x,_,o,l);if(a){if(v>0)for(;b--;)x[b]||_[b]||(_[b]=S.call(u));_=pe(_)}g.apply(u,_),d&&!a&&_.length>0&&v+t.length>1&&w.uniqueSort(u)}return d&&(y=A,s=k),x};return n?te(a):a}(a,r)),o.selector=e}return o}function ye(e,t,n,r){var s,a,o,l,c,u="function"==typeof e&&e,d=!r&&ue(e=u.selector||e);if(n=n||[],1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(o=a[0]).type&&9===t.nodeType&&h&&i.relative[a[1].type]){if(!(t=(i.find.ID(o.matches[0].replace(G,Z),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(s=W.needsContext.test(e)?0:a.length;s--&&(o=a[s],!i.relative[l=o.type]);)if((c=i.find[l])&&(r=c(o.matches[0].replace(G,Z),X.test(a[0].type)&&oe(t.parentNode)||t))){if(a.splice(s,1),!(e=r.length&&de(a)))return g.apply(n,r),n;break}}return(u||ve(e,d))(r,t,!h,n,!t||X.test(e)&&oe(t.parentNode)||t),n}ce.prototype=i.filters=i.pseudos,i.setFilters=new ce,f.sortStable=v.split("").sort(E).join("")===v,le(),f.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(c.createElement("fieldset"))})),w.find=Q,w.expr[":"]=w.expr.pseudos,w.unique=w.uniqueSort,Q.compile=ve,Q.select=ye,Q.setDocument=le,Q.tokenize=ue,Q.escape=w.escapeSelector,Q.getText=w.text,Q.isXML=w.isXMLDoc,Q.selectors=w.expr,Q.support=w.support,Q.uniqueSort=w.uniqueSort}();var Y=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&w(e).is(n))break;i.push(e)}return i},I=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=w.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return p(t)?w.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?w.grep(e,(function(e){return o.call(t,e)>-1!==n})):w.filter(t,e,n)}w.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?w.find.matchesSelector(i,e)?[i]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<i;t++)if(w.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)w.find(e,r[t],n);return i>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&N.test(e)?w(e):e||[],!1).length}});var F,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||F,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),H.test(i[1])&&w.isPlainObject(t))for(i in t)p(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=g.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):p(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,F=w(g);var z=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,s=[],a="string"!=typeof e&&w(e);if(!N.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?w.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?o.call(w(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Y(e,"parentNode")},parentsUntil:function(e,t,n){return Y(e,"parentNode",n)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return Y(e,"nextSibling")},prevAll:function(e){return Y(e,"previousSibling")},nextUntil:function(e,t,n){return Y(e,"nextSibling",n)},prevUntil:function(e,t,n){return Y(e,"previousSibling",n)},siblings:function(e){return I((e.parentNode||{}).firstChild,e)},children:function(e){return I(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(n,i){var r=w.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=w.filter(i,r)),this.length>1&&(B[e]||w.uniqueSort(r),z.test(e)&&r.reverse()),this.pushStack(r)}}));var W=/[^\x20\t\r\n\f]+/g;function q(e){return e}function U(e){throw e}function $(e,t,n,i){var r;try{e&&p(r=e.promise)?r.call(e).done(t).fail(n):e&&p(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(W)||[],(function(e,n){t[n]=!0})),t}(e):w.extend({},e);var t,n,i,r,s=[],a=[],o=-1,l=function(){for(r=r||e.once,i=t=!0;a.length;o=-1)for(n=a.shift();++o<s.length;)!1===s[o].apply(n[0],n[1])&&e.stopOnFalse&&(o=s.length,n=!1);e.memory||(n=!1),t=!1,r&&(s=n?[]:"")},c={add:function(){return s&&(n&&!t&&(o=s.length-1,a.push(n)),function t(n){w.each(n,(function(n,i){p(i)?e.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==b(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return w.each(arguments,(function(e,t){for(var n;(n=w.inArray(t,s,n))>-1;)s.splice(n,1),n<=o&&o--})),this},has:function(e){return e?w.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=a=[],n||t||(s=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(n,(function(n,i){var r=p(e[i[4]])&&e[i[4]];s[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&p(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(t,i,r){var s=0;function a(t,n,i,r){return function(){var o=this,l=arguments,c=function(){var e,c;if(!(t<s)){if((e=i.apply(o,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,p(c)?r?c.call(e,a(s,n,q,r),a(s,n,U,r)):(s++,c.call(e,a(s,n,q,r),a(s,n,U,r),a(s,n,q,n.notifyWith))):(i!==q&&(o=void 0,l=[e]),(r||n.resolveWith)(o,l))}},u=r?c:function(){try{c()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,u.error),t+1>=s&&(i!==U&&(o=void 0,l=[e]),n.rejectWith(o,l))}};t?u():(w.Deferred.getErrorHook?u.error=w.Deferred.getErrorHook():w.Deferred.getStackHook&&(u.error=w.Deferred.getStackHook()),e.setTimeout(u))}}return w.Deferred((function(e){n[0][3].add(a(0,e,p(r)?r:q,e.notifyWith)),n[1][3].add(a(0,e,p(t)?t:q)),n[2][3].add(a(0,e,p(i)?i:U))})).promise()},promise:function(e){return null!=e?w.extend(e,r):r}},s={};return w.each(n,(function(e,t){var a=t[2],o=t[5];r[t[1]]=a.add,o&&a.add((function(){i=o}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=a.fireWith})),r.promise(s),t&&t.call(s,s),s},when:function(e){var t=arguments.length,n=t,i=Array(n),s=r.call(arguments),a=w.Deferred(),o=function(e){return function(n){i[e]=this,s[e]=arguments.length>1?r.call(arguments):n,--t||a.resolveWith(i,s)}};if(t<=1&&($(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||p(s[n]&&s[n].then)))return a.then();for(;n--;)$(s[n],o(n),a.reject);return a.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&X.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var G=w.Deferred();function Z(){g.removeEventListener("DOMContentLoaded",Z),e.removeEventListener("load",Z),w.ready()}w.fn.ready=function(e){return G.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||G.resolveWith(g,[w]))}}),w.ready.then=G.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(w.ready):(g.addEventListener("DOMContentLoaded",Z),e.addEventListener("load",Z));var K=function(e,t,n,i,r,s,a){var o=0,l=e.length,c=null==n;if("object"===b(n))for(o in r=!0,n)K(e,t,o,n[o],!0,s,a);else if(void 0!==i&&(r=!0,p(i)||(a=!0),c&&(a?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(w(e),n)})),t))for(;o<l;o++)t(e[o],n,a?i:i.call(e[o],o,t(e[o],n)));return r?e:c?t.call(e):l?t(e[0],n):s},J=/^-ms-/,Q=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(J,"ms-").replace(Q,ee)}var ne=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ie(){this.expando=w.expando+ie.uid++}ie.uid=1,ie.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ne(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[te(t)]=n;else for(i in t)r[te(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(te):(t=te(t))in i?[t]:t.match(W)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||w.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var re=new ie,se=new ie,ae=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[A-Z]/g;function le(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(oe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ae.test(e)?JSON.parse(e):e)}(n)}catch(e){}se.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return se.hasData(e)||re.hasData(e)},data:function(e,t,n){return se.access(e,t,n)},removeData:function(e,t){se.remove(e,t)},_data:function(e,t,n){return re.access(e,t,n)},_removeData:function(e,t){re.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,i,r,s=this[0],a=s&&s.attributes;if(void 0===e){if(this.length&&(r=se.get(s),1===s.nodeType&&!re.get(s,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=te(i.slice(5)),le(s,i,r[i]));re.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){se.set(this,e)})):K(this,(function(t){var n;if(s&&void 0===t)return void 0!==(n=se.get(s,e))||void 0!==(n=le(s,e))?n:void 0;this.each((function(){se.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){se.remove(this,e)}))}}),w.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=re.get(e,t),n&&(!i||Array.isArray(n)?i=re.access(e,t,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),i=n.length,r=n.shift(),s=w._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete s.stop,r.call(e,(function(){w.dequeue(e,t)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return re.get(e,n)||re.access(e,n,{empty:w.Callbacks("once memory").add((function(){re.remove(e,[t+"queue",n])}))})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each((function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=w.Deferred(),s=this,a=this.length,o=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=re.get(s[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(o));return o(),r.promise(t)}});var ce=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ue=new RegExp("^(?:([+-])=|)("+ce+")([a-z%]*)$","i"),de=["Top","Right","Bottom","Left"],he=g.documentElement,fe=function(e){return w.contains(e.ownerDocument,e)},pe={composed:!0};he.getRootNode&&(fe=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(pe)===e.ownerDocument});var me=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&fe(e)&&"none"===w.css(e,"display")};function ge(e,t,n,i){var r,s,a=20,o=i?function(){return i.cur()}:function(){return w.css(e,t,"")},l=o(),c=n&&n[3]||(w.cssNumber[t]?"":"px"),u=e.nodeType&&(w.cssNumber[t]||"px"!==c&&+l)&&ue.exec(w.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)w.style(e,t,u+c),(1-s)*(1-(s=o()/l||.5))<=0&&(a=0),u/=s;u*=2,w.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var ve={};function ye(e){var t,n=e.ownerDocument,i=e.nodeName,r=ve[i];return r||(t=n.body.appendChild(n.createElement(i)),r=w.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ve[i]=r,r)}function be(e,t){for(var n,i,r=[],s=0,a=e.length;s<a;s++)(i=e[s]).style&&(n=i.style.display,t?("none"===n&&(r[s]=re.get(i,"display")||null,r[s]||(i.style.display="")),""===i.style.display&&me(i)&&(r[s]=ye(i))):"none"!==n&&(r[s]="none",re.set(i,"display",n)));for(s=0;s<a;s++)null!=r[s]&&(e[s].style.display=r[s]);return e}w.fn.extend({show:function(){return be(this,!0)},hide:function(){return be(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){me(this)?w(this).show():w(this).hide()}))}});var xe,_e,we=/^(?:checkbox|radio)$/i,ke=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Me=/^$|^module$|\/(?:java|ecma)script/i;xe=g.createDocumentFragment().appendChild(g.createElement("div")),(_e=g.createElement("input")).setAttribute("type","radio"),_e.setAttribute("checked","checked"),_e.setAttribute("name","t"),xe.appendChild(_e),f.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",f.option=!!xe.lastChild;var Se={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ae(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?w.merge([e],n):n}function Le(e,t){for(var n=0,i=e.length;n<i;n++)re.set(e[n],"globalEval",!t||re.get(t[n],"globalEval"))}Se.tbody=Se.tfoot=Se.colgroup=Se.caption=Se.thead,Se.th=Se.td,f.option||(Se.optgroup=Se.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function Ce(e,t,n,i,r){for(var s,a,o,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((s=e[f])||0===s)if("object"===b(s))w.merge(h,s.nodeType?[s]:s);else if(Te.test(s)){for(a=a||d.appendChild(t.createElement("div")),o=(ke.exec(s)||["",""])[1].toLowerCase(),l=Se[o]||Se._default,a.innerHTML=l[1]+w.htmlPrefilter(s)+l[2],u=l[0];u--;)a=a.lastChild;w.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(s));for(d.textContent="",f=0;s=h[f++];)if(i&&w.inArray(s,i)>-1)r&&r.push(s);else if(c=fe(s),a=Ae(d.appendChild(s),"script"),c&&Le(a),n)for(u=0;s=a[u++];)Me.test(s.type||"")&&n.push(s);return d}var De=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Oe(){return!1}function Pe(e,t,n,i,r,s){var a,o;if("object"==typeof t){for(o in"string"!=typeof n&&(i=i||n,n=void 0),t)Pe(e,o,n,i,t[o],s);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Oe;else if(!r)return e;return 1===s&&(a=r,r=function(e){return w().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=w.guid++)),e.each((function(){w.event.add(this,t,r,i,n)}))}function Ye(e,t,n){n?(re.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var n,i=re.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=r.call(arguments),re.set(this,t,i),this[t](),n=re.get(this,t),re.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(re.set(this,t,w.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ee)}})):void 0===re.get(e,t)&&w.event.add(e,t,Ee)}w.event={global:{},add:function(e,t,n,i,r){var s,a,o,l,c,u,d,h,f,p,m,g=re.get(e);if(ne(e))for(n.handler&&(n=(s=n).handler,r=s.selector),r&&w.find.matchesSelector(he,r),n.guid||(n.guid=w.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(W)||[""]).length;c--;)f=m=(o=De.exec(t[c])||[])[1],p=(o[2]||"").split(".").sort(),f&&(d=w.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=w.event.special[f]||{},u=w.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:p.join(".")},s),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),w.event.global[f]=!0)},remove:function(e,t,n,i,r){var s,a,o,l,c,u,d,h,f,p,m,g=re.hasData(e)&&re.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(W)||[""]).length;c--;)if(f=m=(o=De.exec(t[c])||[])[1],p=(o[2]||"").split(".").sort(),f){for(d=w.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=h.length;s--;)u=h[s],!r&&m!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||w.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)w.event.remove(e,f+t[c],n,i,!0);w.isEmptyObject(l)&&re.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,s,a,o=new Array(arguments.length),l=w.event.fix(e),c=(re.get(this,"events")||Object.create(null))[l.type]||[],u=w.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=w.event.handlers.call(this,l,c),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(i=((w.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,o))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,s,a,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?w(r,this).index(c)>-1:w.find(r,this,null,[c]).length),a[r]&&s.push(i);s.length&&o.push({elem:c,handlers:s})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:p(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&M(t,"input")&&Ye(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&M(t,"input")&&Ye(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&M(t,"input")&&re.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:Oe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Oe,isPropagationStopped:Oe,isImmediatePropagationStopped:Oe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(g.documentMode){var n=re.get(this,"handle"),i=w.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else w.event.simulate(t,e.target,w.event.fix(e))}w.event.special[e]={setup:function(){var i;if(Ye(this,e,!0),!g.documentMode)return!1;(i=re.get(this,t))||this.addEventListener(t,n),re.set(this,t,(i||0)+1)},trigger:function(){return Ye(this,e),!0},teardown:function(){var e;if(!g.documentMode)return!1;(e=re.get(this,t)-1)?re.set(this,t,e):(this.removeEventListener(t,n),re.remove(this,t))},_default:function(t){return re.get(t.target,e)},delegateType:t},w.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=g.documentMode?this:i,s=re.get(r,t);s||(g.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),re.set(r,t,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=g.documentMode?this:i,s=re.get(r,t)-1;s?re.set(r,t,s):(g.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),re.remove(r,t))}}})),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||w.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),w.fn.extend({on:function(e,t,n,i){return Pe(this,e,t,n,i)},one:function(e,t,n,i){return Pe(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,w(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Oe),this.each((function(){w.event.remove(this,e,n,t)}))}});var Ie=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function je(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var n,i,r,s,a,o;if(1===t.nodeType){if(re.hasData(e)&&(o=re.get(e).events))for(r in re.remove(t,"handle events"),o)for(n=0,i=o[r].length;n<i;n++)w.event.add(t,r,o[r][n]);se.hasData(e)&&(s=se.access(e),a=w.extend({},s),se.set(t,a))}}function Be(e,t){var n=t.nodeName.toLowerCase();"input"===n&&we.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ve(e,t,n,i){t=s(t);var r,a,o,l,c,u,d=0,h=e.length,m=h-1,g=t[0],v=p(g);if(v||h>1&&"string"==typeof g&&!f.checkClone&&Ne.test(g))return e.each((function(r){var s=e.eq(r);v&&(t[0]=g.call(this,r,s.html())),Ve(s,t,n,i)}));if(h&&(a=(r=Ce(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=a),a||i)){for(l=(o=w.map(Ae(r,"script"),Fe)).length;d<h;d++)c=r,d!==m&&(c=w.clone(c,!0,!0),l&&w.merge(o,Ae(c,"script"))),n.call(e[d],c,d);if(l)for(u=o[o.length-1].ownerDocument,w.map(o,Re),d=0;d<l;d++)c=o[d],Me.test(c.type||"")&&!re.access(c,"globalEval")&&w.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(He,""),c,u))}return e}function We(e,t,n){for(var i,r=t?w.filter(t,e):e,s=0;null!=(i=r[s]);s++)n||1!==i.nodeType||w.cleanData(Ae(i)),i.parentNode&&(n&&fe(i)&&Le(Ae(i,"script")),i.parentNode.removeChild(i));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,s,a,o=e.cloneNode(!0),l=fe(e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=Ae(o),i=0,r=(s=Ae(e)).length;i<r;i++)Be(s[i],a[i]);if(t)if(n)for(s=s||Ae(e),a=a||Ae(o),i=0,r=s.length;i<r;i++)ze(s[i],a[i]);else ze(e,o);return(a=Ae(o,"script")).length>0&&Le(a,!l&&Ae(e,"script")),o},cleanData:function(e){for(var t,n,i,r=w.event.special,s=0;void 0!==(n=e[s]);s++)if(ne(n)){if(t=n[re.expando]){if(t.events)for(i in t.events)r[i]?w.event.remove(n,i):w.removeEvent(n,i,t.handle);n[re.expando]=void 0}n[se.expando]&&(n[se.expando]=void 0)}}}),w.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return K(this,(function(e){return void 0===e?w.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 Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(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&&(w.cleanData(Ae(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return K(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ie.test(e)&&!Se[(ke.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(Ae(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,(function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(Ae(this)),n&&n.replaceChild(t,this))}),e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){w.fn[e]=function(e){for(var n,i=[],r=w(e),s=r.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),w(r[o])[t](n),a.apply(i,n.get());return this.pushStack(i)}}));var qe=new RegExp("^("+ce+")(?!px)[a-z%]+$","i"),Ue=/^--/,$e=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Xe=function(e,t,n){var i,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=s[r];return i},Ge=new RegExp(de.join("|"),"i");function Ze(e,t,n){var i,r,s,a,o=Ue.test(t),l=e.style;return(n=n||$e(e))&&(a=n.getPropertyValue(t)||n[t],o&&a&&(a=a.replace(C,"$1")||void 0),""!==a||fe(e)||(a=w.style(e,t)),!f.pixelBoxStyles()&&qe.test(a)&&Ge.test(t)&&(i=l.width,r=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=s)),void 0!==a?a+"":a}function Ke(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",he.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);i="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",a=36===n(t.right),r=36===n(t.width),u.style.position="absolute",s=12===n(u.offsetWidth/3),he.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var i,r,s,a,o,l,c=g.createElement("div"),u=g.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===u.style.backgroundClip,w.extend(f,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,n,i,r;return null==o&&(t=g.createElement("table"),n=g.createElement("tr"),i=g.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",he.appendChild(t).appendChild(n).appendChild(i),r=e.getComputedStyle(n),o=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight,he.removeChild(t)),o}}))}();var Je=["Webkit","Moz","ms"],Qe=g.createElement("div").style,et={};function tt(e){var t=w.cssProps[e]||et[e];return t||(e in Qe?e:et[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Je.length;n--;)if((e=Je[n]+t)in Qe)return e}(e)||e)}var nt=/^(none|table(?!-c[ea]).+)/,it={position:"absolute",visibility:"hidden",display:"block"},rt={letterSpacing:"0",fontWeight:"400"};function st(e,t,n){var i=ue.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function at(e,t,n,i,r,s){var a="width"===t?1:0,o=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=w.css(e,n+de[a],!0,r)),i?("content"===n&&(l-=w.css(e,"padding"+de[a],!0,r)),"margin"!==n&&(l-=w.css(e,"border"+de[a]+"Width",!0,r))):(l+=w.css(e,"padding"+de[a],!0,r),"padding"!==n?l+=w.css(e,"border"+de[a]+"Width",!0,r):o+=w.css(e,"border"+de[a]+"Width",!0,r));return!i&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-o-.5))||0),l+c}function ot(e,t,n){var i=$e(e),r=(!f.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,i),s=r,a=Ze(e,t,i),o="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(a)){if(!n)return a;a="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&M(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===w.css(e,"boxSizing",!1,i),(s=o in e)&&(a=e[o])),(a=parseFloat(a)||0)+at(e,t,n||(r?"border":"content"),s,i,a)+"px"}function lt(e,t,n,i,r){return new lt.prototype.init(e,t,n,i,r)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(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,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,a,o=te(t),l=Ue.test(t),c=e.style;if(l||(t=tt(o)),a=w.cssHooks[t]||w.cssHooks[o],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:c[t];"string"===(s=typeof n)&&(r=ue.exec(n))&&r[1]&&(n=ge(e,t,r),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=r&&r[3]||(w.cssNumber[o]?"":"px")),f.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,s,a,o=te(t);return Ue.test(t)||(t=tt(o)),(a=w.cssHooks[t]||w.cssHooks[o])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ze(e,t,i)),"normal"===r&&t in rt&&(r=rt[t]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,n,i){if(n)return!nt.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,i):Xe(e,it,(function(){return ot(e,t,i)}))},set:function(e,n,i){var r,s=$e(e),a=!f.scrollboxSize()&&"absolute"===s.position,o=(a||i)&&"border-box"===w.css(e,"boxSizing",!1,s),l=i?at(e,t,i,o,s):0;return o&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-at(e,t,"border",!1,s)-.5)),l&&(r=ue.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),st(0,n,l)}}})),w.cssHooks.marginLeft=Ke(f.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+de[i]+t]=s[i]||s[i-2]||s[0];return r}},"margin"!==e&&(w.cssHooks[e+t].set=st)})),w.fn.extend({css:function(e,t){return K(this,(function(e,t,n){var i,r,s={},a=0;if(Array.isArray(t)){for(i=$e(e),r=t.length;a<r;a++)s[t[a]]=w.css(e,t[a],!1,i);return s}return void 0!==n?w.style(e,t,n):w.css(e,t)}),e,t,arguments.length>1)}}),w.Tween=lt,lt.prototype={constructor:lt,init:function(e,t,n,i,r,s){this.elem=e,this.prop=n,this.easing=r||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(w.cssNumber[n]?"":"px")},cur:function(){var e=lt.propHooks[this.prop];return e&&e.get?e.get(this):lt.propHooks._default.get(this)},run:function(e){var t,n=lt.propHooks[this.prop];return this.options.duration?this.pos=t=w.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):lt.propHooks._default.set(this),this}},lt.prototype.init.prototype=lt.prototype,lt.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=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[tt(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},lt.propHooks.scrollTop=lt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=lt.prototype.init,w.fx.step={};var ct,ut,dt=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;function ft(){ut&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ft):e.setTimeout(ft,w.fx.interval),w.fx.tick())}function pt(){return e.setTimeout((function(){ct=void 0})),ct=Date.now()}function mt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=de[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function gt(e,t,n){for(var i,r=(vt.tweeners[t]||[]).concat(vt.tweeners["*"]),s=0,a=r.length;s<a;s++)if(i=r[s].call(n,t,e))return i}function vt(e,t,n){var i,r,s=0,a=vt.prefilters.length,o=w.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=ct||pt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),s=0,a=c.tweens.length;s<a;s++)c.tweens[s].run(i);return o.notifyWith(e,[c,i,n]),i<1&&a?n:(a||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:ct||pt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=w.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,r,s,a;for(n in e)if(r=t[i=te(n)],s=e[n],Array.isArray(s)&&(r=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),(a=w.cssHooks[i])&&"expand"in a)for(n in s=a.expand(s),delete e[i],s)n in e||(e[n]=s[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);s<a;s++)if(i=vt.prefilters[s].call(c,e,u,c.opts))return p(i.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return w.map(u,gt,c),p(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(vt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ge(n.elem,e,ue.exec(t),n),n}]},tweener:function(e,t){p(e)?(t=e,e=["*"]):e=e.match(W);for(var n,i=0,r=e.length;i<r;i++)n=e[i],vt.tweeners[n]=vt.tweeners[n]||[],vt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,s,a,o,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&me(e),g=re.get(e,"fxshow");for(i in n.queue||(null==(a=w._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,o=a.empty.fire,a.empty.fire=function(){a.unqueued||o()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,w.queue(e,"fx").length||a.empty.fire()}))}))),t)if(r=t[i],dt.test(r)){if(delete t[i],s=s||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||w.style(e,i)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=re.get(e,"display")),"none"===(u=w.css(e,"display"))&&(c?u=c:(be([e],!0),c=e.style.display||c,u=w.css(e,"display"),be([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===w.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=re.access(e,"fxshow",{display:c}),s&&(g.hidden=!m),m&&be([e],!0),h.done((function(){for(i in m||be([e]),re.remove(e,"fxshow"),f)w.style(e,i,f[i])}))),l=gt(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?vt.prefilters.unshift(e):vt.prefilters.push(e)}}),w.speed=function(e,t,n){var i=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||p(e)&&e,duration:e,easing:n&&t||t&&!p(t)&&t};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){p(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(e,t,n,i){return this.filter(me).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=w.isEmptyObject(e),s=w.speed(t,n,i),a=function(){var t=vt(this,w.extend({},e),s);(r||re.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===s.queue?this.each(a):this.queue(s.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",s=w.timers,a=re.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ht.test(r)&&i(a[r]);for(r=s.length;r--;)s[r].elem!==this||null!=e&&s[r].queue!==e||(s[r].anim.stop(n),t=!1,s.splice(r,1));!t&&n||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=re.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],s=w.timers,a=i?i.length:0;for(n.finish=!0,w.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),w.each(["toggle","show","hide"],(function(e,t){var n=w.fn[t];w.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(mt(t,!0),e,i,r)}})),w.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){w.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(ct=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),ct=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ut||(ut=!0,ft())},w.fx.stop=function(){ut=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}}))},function(){var e=g.createElement("input"),t=g.createElement("select").appendChild(g.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=t.selected,(e=g.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var yt,bt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return K(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?w.prop(e,t,n):(1===s&&w.isXMLDoc(e)||(r=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=w.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(W);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),yt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=bt[t]||w.find.attr;bt[t]=function(e,t,i){var r,s,a=t.toLowerCase();return i||(s=bt[a],bt[a]=r,r=null!=n(e,t,i)?a:null,bt[a]=s),r}}));var xt=/^(?:input|select|textarea|button)$/i,_t=/^(?:a|area)$/i;function wt(e){return(e.match(W)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function Mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(W)||[]}w.fn.extend({prop:function(e,t){return K(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&w.isXMLDoc(e)||(t=w.propFix[t]||t,r=w.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(w.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)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,n,i,r,s,a;return p(e)?this.each((function(t){w(this).addClass(e.call(this,t,kt(this)))})):(t=Mt(e)).length?this.each((function(){if(i=kt(this),n=1===this.nodeType&&" "+wt(i)+" "){for(s=0;s<t.length;s++)r=t[s],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=wt(n),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,i,r,s,a;return p(e)?this.each((function(t){w(this).removeClass(e.call(this,t,kt(this)))})):arguments.length?(t=Mt(e)).length?this.each((function(){if(i=kt(this),n=1===this.nodeType&&" "+wt(i)+" "){for(s=0;s<t.length;s++)for(r=t[s];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=wt(n),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,s,a=typeof e,o="string"===a||Array.isArray(e);return p(e)?this.each((function(n){w(this).toggleClass(e.call(this,n,kt(this),t),t)})):"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):(n=Mt(e),this.each((function(){if(o)for(s=w(this),r=0;r<n.length;r++)i=n[r],s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==e&&"boolean"!==a||((i=kt(this))&&re.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":re.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+wt(kt(n))+" ").indexOf(t)>-1)return!0;return!1}});var St=/\r/g;w.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=p(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,w(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=w.map(r,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(St,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:wt(w.text(e))}},select:{get:function(e){var t,n,i,r=e.options,s=e.selectedIndex,a="select-one"===e.type,o=a?null:[],l=a?s+1:r.length;for(i=s<0?l:a?s:0;i<l;i++)if(((n=r[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(t=w(n).val(),a)return t;o.push(t)}return o},set:function(e,t){for(var n,i,r=e.options,s=w.makeArray(t),a=r.length;a--;)((i=r[a]).selected=w.inArray(w.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},f.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var At=e.location,Lt={guid:Date.now()},Tt=/\?/;w.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||w.error("Invalid XML: "+(i?w.map(i.childNodes,(function(e){return e.textContent})).join("\n"):t)),n};var Ct=/^(?:focusinfocus|focusoutblur)$/,Dt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,i,r){var s,a,o,l,c,d,h,f,v=[i||g],y=u.call(t,"type")?t.type:t,b=u.call(t,"namespace")?t.namespace.split("."):[];if(a=f=o=i=i||g,3!==i.nodeType&&8!==i.nodeType&&!Ct.test(y+w.event.triggered)&&(y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[w.expando]?t:new w.Event(y,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:w.makeArray(n,[t]),h=w.event.special[y]||{},r||!h.trigger||!1!==h.trigger.apply(i,n))){if(!r&&!h.noBubble&&!m(i)){for(l=h.delegateType||y,Ct.test(l+y)||(a=a.parentNode);a;a=a.parentNode)v.push(a),o=a;o===(i.ownerDocument||g)&&v.push(o.defaultView||o.parentWindow||e)}for(s=0;(a=v[s++])&&!t.isPropagationStopped();)f=a,t.type=s>1?l:h.bindType||y,(d=(re.get(a,"events")||Object.create(null))[t.type]&&re.get(a,"handle"))&&d.apply(a,n),(d=c&&a[c])&&d.apply&&ne(a)&&(t.result=d.apply(a,n),!1===t.result&&t.preventDefault());return t.type=y,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),n)||!ne(i)||c&&p(i[y])&&!m(i)&&((o=i[c])&&(i[c]=null),w.event.triggered=y,t.isPropagationStopped()&&f.addEventListener(y,Dt),i[y](),t.isPropagationStopped()&&f.removeEventListener(y,Dt),w.event.triggered=void 0,o&&(i[c]=o)),t.result}},simulate:function(e,t,n){var i=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(i,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}});var Et=/\[\]$/,Ot=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Yt=/^(?:input|select|textarea|keygen)/i;function It(e,t,n,i){var r;if(Array.isArray(t))w.each(t,(function(t,r){n||Et.test(e)?i(e,r):It(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==b(t))i(e,t);else for(r in t)It(e+"["+r+"]",t[r],n,i)}w.param=function(e,t){var n,i=[],r=function(e,t){var n=p(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){r(this.name,this.value)}));else for(n in e)It(n,e[n],t,r);return i.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Yt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!we.test(e))})).map((function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}})):{name:t.name,value:n.replace(Ot,"\r\n")}})).get()}});var Nt=/%20/g,Ht=/#.*$/,jt=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,zt=/^\/\//,Bt={},Vt={},Wt="*/".concat("*"),qt=g.createElement("a");function Ut(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,s=t.toLowerCase().match(W)||[];if(p(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function $t(e,t,n,i){var r={},s=e===Vt;function a(o){var l;return r[o]=!0,w.each(e[o]||[],(function(e,o){var c=o(t,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Xt(e,t){var n,i,r=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&w.extend(!0,e,i),e}qt.href=At.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,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":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,w.ajaxSettings),t):Xt(w.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(Vt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,r,s,a,o,l,c,u,d,h,f=w.ajaxSetup({},n),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?w(p):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),b=f.statusCode||{},x={},_={},k="canceled",M={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Ft.exec(s);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)M.always(e[M.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||k;return i&&i.abort(t),S(0,t),this}};if(v.promise(M),f.url=((t||f.url||At.href)+"").replace(zt,At.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(W)||[""],null==f.crossDomain){l=g.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=qt.protocol+"//"+qt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=w.param(f.data,f.traditional)),$t(Bt,f,n,M),c)return M;for(d in(u=w.event&&f.global)&&0==w.active++&&w.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Rt.test(f.type),r=f.url.replace(Ht,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Nt,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Tt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(jt,"$1"),h=(Tt.test(r)?"&":"?")+"_="+Lt.guid+++h),f.url=r+h),f.ifModified&&(w.lastModified[r]&&M.setRequestHeader("If-Modified-Since",w.lastModified[r]),w.etag[r]&&M.setRequestHeader("If-None-Match",w.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&M.setRequestHeader("Content-Type",f.contentType),M.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Wt+"; q=0.01":""):f.accepts["*"]),f.headers)M.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,M,f)||c))return M.abort();if(k="abort",y.add(f.complete),M.done(f.success),M.fail(f.error),i=$t(Vt,f,n,M)){if(M.readyState=1,u&&m.trigger("ajaxSend",[M,f]),c)return M;f.async&&f.timeout>0&&(o=e.setTimeout((function(){M.abort("timeout")}),f.timeout));try{c=!1,i.send(x,S)}catch(e){if(c)throw e;S(-1,e)}}else S(-1,"No Transport");function S(t,n,a,l){var d,h,g,x,_,k=n;c||(c=!0,o&&e.clearTimeout(o),i=void 0,s=l||"",M.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(x=function(e,t,n){for(var i,r,s,a,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in o)if(o[r]&&o[r].test(i)){l.unshift(r);break}if(l[0]in n)s=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){s=r;break}a||(a=r)}s=s||a}if(s)return s!==l[0]&&l.unshift(s),n[s]}(f,M,a)),!d&&w.inArray("script",f.dataTypes)>-1&&w.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,i){var r,s,a,o,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(s=u.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(a=c[l+" "+s]||c["* "+s]))for(r in c)if((o=r.split(" "))[1]===s&&(a=c[l+" "+o[0]]||c["* "+o[0]])){!0===a?a=c[r]:!0!==c[r]&&(s=o[0],u.unshift(o[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(f,x,M,d),d?(f.ifModified&&((_=M.getResponseHeader("Last-Modified"))&&(w.lastModified[r]=_),(_=M.getResponseHeader("etag"))&&(w.etag[r]=_)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=x.state,h=x.data,d=!(g=x.error))):(g=k,!t&&k||(k="error",t<0&&(t=0))),M.status=t,M.statusText=(n||k)+"",d?v.resolveWith(p,[h,k,M]):v.rejectWith(p,[M,k,g]),M.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[M,f,d?h:g]),y.fireWith(p,[M,k]),u&&(m.trigger("ajaxComplete",[M,f]),--w.active||w.event.trigger("ajaxStop")))}return M},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,n,i,r){return p(n)&&(r=r||i,i=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:r,data:n,success:i},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(p(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return p(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=p(e);return this.each((function(n){w(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},Zt=w.ajaxSettings.xhr();f.cors=!!Zt&&"withCredentials"in Zt,f.ajax=Zt=!!Zt,w.ajaxTransport((function(t){var n,i;if(f.cors||Zt&&!t.crossDomain)return{send:function(r,s){var a,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)o[a]=t.xhrFields[a];for(a in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)o.setRequestHeader(a,r[a]);n=function(e){return function(){n&&(n=i=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s(Gt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=n(),i=o.onerror=o.ontimeout=n("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout((function(){n&&i()}))},n=n("abort");try{o.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Kt,Jt=[],Qt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||w.expando+"_"+Lt.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(t,n,i){var r,s,a,o=!1!==t.jsonp&&(Qt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Qt,"$1"+r):!1!==t.jsonp&&(t.url+=(Tt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||w.error(r+" was not called"),a[0]},t.dataTypes[0]="json",s=e[r],e[r]=function(){a=arguments},i.always((function(){void 0===s?w(e).removeProp(r):e[r]=s,t[r]&&(t.jsonpCallback=n.jsonpCallback,Jt.push(r)),a&&p(s)&&s(a[0]),a=s=void 0})),"script"})),f.createHTMLDocument=((Kt=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Kt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(f.createHTMLDocument?((i=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(i)):t=g),s=!n&&[],(r=H.exec(e))?[t.createElement(r[1])]:(r=Ce([e],t,s),s&&s.length&&w(s).remove(),w.merge([],r.childNodes)));var i,r,s},w.fn.load=function(e,t,n){var i,r,s,a=this,o=e.indexOf(" ");return o>-1&&(i=wt(e.slice(o)),e=e.slice(0,o)),p(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&w.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){s=arguments,a.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,s||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,n){var i,r,s,a,o,l,c=w.css(e,"position"),u=w(e),d={};"static"===c&&(e.style.position="relative"),o=u.offset(),s=w.css(e,"top"),l=w.css(e,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(s)||0,r=parseFloat(l)||0),p(t)&&(t=t.call(e,n,w.extend({},o))),null!=t.top&&(d.top=t.top-o.top+a),null!=t.left&&(d.left=t.left-o.left+r),"using"in t?t.using.call(e,d):u.css(d)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===w.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),r.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-w.css(i,"marginTop",!0),left:t.left-r.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||he}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;w.fn[e]=function(i){return K(this,(function(e,i,r){var s;if(m(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===r)return s?s[t]:e[i];s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):e[i]=r}),e,i,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=Ke(f.pixelPosition,(function(e,n){if(n)return n=Ze(e,t),qe.test(n)?w(e).position()[t]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){w.fn[i]=function(r,s){var a=arguments.length&&(n||"boolean"!=typeof r),o=n||(!0===r||!0===s?"margin":"border");return K(this,(function(t,n,r){var s;return m(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===r?w.css(t,n,o):w.style(t,n,r,o)}),t,a?r:void 0,a)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,i,s;if("string"==typeof t&&(n=e[t],t=e,e=n),p(e))return i=r.call(arguments,2),s=function(){return e.apply(t||this,i.concat(r.call(arguments)))},s.guid=e.guid=e.guid||w.guid++,s},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=M,w.isFunction=p,w.isWindow=m,w.camelCase=te,w.type=b,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var tn=e.jQuery,nn=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=nn),t&&e.jQuery===w&&(e.jQuery=tn),w},void 0===t&&(e.jQuery=e.$=w),w})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof t(e).Element||e instanceof Element}function i(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function r(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}var s=Math.max,a=Math.min,o=Math.round;function l(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(l())}function u(e,r,s){void 0===r&&(r=!1),void 0===s&&(s=!1);var a=e.getBoundingClientRect(),l=1,u=1;r&&i(e)&&(l=e.offsetWidth>0&&o(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&o(a.height)/e.offsetHeight||1);var d=(n(e)?t(e):window).visualViewport,h=!c()&&s,f=(a.left+(h&&d?d.offsetLeft:0))/l,p=(a.top+(h&&d?d.offsetTop:0))/u,m=a.width/l,g=a.height/u;return{width:m,height:g,top:p,right:f+m,bottom:p+g,left:f,x:f,y:p}}function d(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function f(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function p(e){return u(f(e)).left+d(e).scrollLeft}function m(e){return t(e).getComputedStyle(e)}function g(e){var t=m(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function v(e,n,r){void 0===r&&(r=!1);var s,a,l=i(n),c=i(n)&&function(e){var t=e.getBoundingClientRect(),n=o(t.width)/e.offsetWidth||1,i=o(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(n),m=f(n),v=u(e,c,r),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(l||!l&&!r)&&(("body"!==h(n)||g(m))&&(y=(s=n)!==t(s)&&i(s)?{scrollLeft:(a=s).scrollLeft,scrollTop:a.scrollTop}:d(s)),i(n)?((b=u(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):m&&(b.x=p(m))),{x:v.left+y.scrollLeft-b.x,y:v.top+y.scrollTop-b.y,width:v.width,height:v.height}}function y(e){var t=u(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function b(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(r(e)?e.host:null)||f(e)}function x(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:i(e)&&g(e)?e:x(b(e))}function _(e,n){var i;void 0===n&&(n=[]);var r=x(e),s=r===(null==(i=e.ownerDocument)?void 0:i.body),a=t(r),o=s?[a].concat(a.visualViewport||[],g(r)?r:[]):r,l=n.concat(o);return s?l:l.concat(_(b(o)))}function w(e){return["table","td","th"].indexOf(h(e))>=0}function k(e){return i(e)&&"fixed"!==m(e).position?e.offsetParent:null}function M(e){for(var n=t(e),s=k(e);s&&w(s)&&"static"===m(s).position;)s=k(s);return s&&("html"===h(s)||"body"===h(s)&&"static"===m(s).position)?n:s||function(e){var t=/firefox/i.test(l());if(/Trident/i.test(l())&&i(e)&&"fixed"===m(e).position)return null;var n=b(e);for(r(n)&&(n=n.host);i(n)&&["html","body"].indexOf(h(n))<0;){var s=m(n);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return n;n=n.parentNode}return null}(e)||n}var S="top",A="bottom",L="right",T="left",C="auto",D=[S,A,L,T],E="start",O="end",P="viewport",Y="popper",I=D.reduce((function(e,t){return e.concat([t+"-"+E,t+"-"+O])}),[]),N=[].concat(D,[C]).reduce((function(e,t){return e.concat([t,t+"-"+E,t+"-"+O])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function j(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}function F(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&r(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function R(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function z(e,i,r){return i===P?R(function(e,n){var i=t(e),r=f(e),s=i.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,u=0;if(s){a=s.width,o=s.height;var d=c();(d||!d&&"fixed"===n)&&(l=s.offsetLeft,u=s.offsetTop)}return{width:a,height:o,x:l+p(e),y:u}}(e,r)):n(i)?function(e,t){var n=u(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(i,r):R(function(e){var t,n=f(e),i=d(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=s(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=s(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+p(e),c=-i.scrollTop;return"rtl"===m(r||n).direction&&(l+=s(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:l,y:c}}(f(e)))}function B(e,t,r,o){var l="clippingParents"===t?function(e){var t=_(b(e)),r=["absolute","fixed"].indexOf(m(e).position)>=0&&i(e)?M(e):e;return n(r)?t.filter((function(e){return n(e)&&F(e,r)&&"body"!==h(e)})):[]}(e):[].concat(t),c=[].concat(l,[r]),u=c[0],d=c.reduce((function(t,n){var i=z(e,n,o);return t.top=s(i.top,t.top),t.right=a(i.right,t.right),t.bottom=a(i.bottom,t.bottom),t.left=s(i.left,t.left),t}),z(e,u,o));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function V(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U(e){var t,n=e.reference,i=e.element,r=e.placement,s=r?V(r):null,a=r?W(r):null,o=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case S:t={x:o,y:n.y-i.height};break;case A:t={x:o,y:n.y+n.height};break;case L:t={x:n.x+n.width,y:l};break;case T:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?q(s):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case E:t[c]=t[c]-(n[u]/2-i[u]/2);break;case O:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function $(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function X(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function G(e,t){void 0===t&&(t={});var i=t,r=i.placement,s=void 0===r?e.placement:r,a=i.strategy,o=void 0===a?e.strategy:a,l=i.boundary,c=void 0===l?"clippingParents":l,d=i.rootBoundary,h=void 0===d?P:d,p=i.elementContext,m=void 0===p?Y:p,g=i.altBoundary,v=void 0!==g&&g,y=i.padding,b=void 0===y?0:y,x=$("number"!=typeof b?b:X(b,D)),_=m===Y?"reference":Y,w=e.rects.popper,k=e.elements[v?_:m],M=B(n(k)?k:k.contextElement||f(e.elements.popper),c,h,o),T=u(e.elements.reference),C=U({reference:T,element:w,strategy:"absolute",placement:s}),E=R(Object.assign({},w,C)),O=m===Y?E:T,I={top:M.top-O.top+x.top,bottom:O.bottom-M.bottom+x.bottom,left:M.left-O.left+x.left,right:O.right-M.right+x.right},N=e.modifiersData.offset;if(m===Y&&N){var H=N[s];Object.keys(I).forEach((function(e){var t=[L,A].indexOf(e)>=0?1:-1,n=[S,A].indexOf(e)>=0?"y":"x";I[e]+=H[n]*t}))}return I}var Z={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function J(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,r=void 0===i?[]:i,s=t.defaultOptions,a=void 0===s?Z:s;return function(e,t,i){void 0===i&&(i=a);var s,o,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Z,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(i){var s="function"==typeof i?i(l.options):i;h(),l.options=Object.assign({},a,l.options,s),l.scrollParents={reference:n(e)?_(e):e.contextElement?_(e.contextElement):[],popper:_(t)};var o,u,f=function(e){var t=j(e);return H.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((o=[].concat(r,l.options.modifiers),u=o.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var s=r({state:l,name:t,instance:d,options:i}),a=function(){};c.push(s||a)}})),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(K(t,n)){l.rects={reference:v(t,M(n),"fixed"===l.options.strategy),popper:y(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var r=l.orderedModifiers[i],s=r.fn,a=r.options,o=void 0===a?{}:a,c=r.name;"function"==typeof s&&(l=s({state:l,options:o,name:c,instance:d})||l)}else l.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(s())}))}))),o}),destroy:function(){h(),u=!0}};if(!K(e,t))return d;function h(){c.forEach((function(e){return e()})),c=[]}return d.setOptions(i).then((function(e){!u&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var Q={passive:!0};var ee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,i=e.instance,r=e.options,s=r.scroll,a=void 0===s||s,o=r.resize,l=void 0===o||o,c=t(n.elements.popper),u=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",i.update,Q)})),l&&c.addEventListener("resize",i.update,Q),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",i.update,Q)})),l&&c.removeEventListener("resize",i.update,Q)}},data:{}};var te={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=U({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var n,i=e.popper,r=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,p=e.isFixed,g=l.x,v=void 0===g?0:g,y=l.y,b=void 0===y?0:y,x="function"==typeof h?h({x:v,y:b}):{x:v,y:b};v=x.x,b=x.y;var _=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),k=T,C=S,D=window;if(d){var E=M(i),P="clientHeight",Y="clientWidth";if(E===t(i)&&"static"!==m(E=f(i)).position&&"absolute"===c&&(P="scrollHeight",Y="scrollWidth"),s===S||(s===T||s===L)&&a===O)C=A,b-=(p&&E===D&&D.visualViewport?D.visualViewport.height:E[P])-r.height,b*=u?1:-1;if(s===T||(s===S||s===A)&&a===O)k=L,v-=(p&&E===D&&D.visualViewport?D.visualViewport.width:E[Y])-r.width,v*=u?1:-1}var I,N=Object.assign({position:c},d&&ne),H=!0===h?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:o(n*r)/r||0,y:o(i*r)/r||0}}({x:v,y:b},t(i)):{x:v,y:b};return v=H.x,b=H.y,u?Object.assign({},N,((I={})[C]=w?"0":"",I[k]=_?"0":"",I.transform=(D.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",I)):Object.assign({},N,((n={})[C]=w?b+"px":"",n[k]=_?v+"px":"",n.transform="",n))}var re={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,s=n.adaptive,a=void 0===s||s,o=n.roundOffsets,l=void 0===o||o,c={placement:V(t.placement),variation:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var se={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},s=t.elements[e];i(s)&&h(s)&&(Object.assign(s.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],s=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(s).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=void 0===r?[0,0]:r,a=N.reduce((function(e,n){return e[n]=function(e,t,n){var i=V(e),r=[T,S].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],o=s[1];return a=a||0,o=(o||0)*r,[T,L].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}(n,t.rects,s),e}),{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=a}},oe={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,(function(e){return oe[e]}))}var ce={start:"end",end:"start"};function ue(e){return e.replace(/start|end/g,(function(e){return ce[e]}))}function de(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?N:l,u=W(i),d=u?o?I:I.filter((function(e){return W(e)===u})):D,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var f=h.reduce((function(t,n){return t[n]=G(e,{placement:n,boundary:r,rootBoundary:s,padding:a})[V(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var he={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=void 0===r||r,a=n.altAxis,o=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=V(g),y=l||(v===g||!p?[le(g)]:function(e){if(V(e)===C)return[];var t=le(e);return[ue(e),t,ue(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(V(n)===C?de(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,_=t.rects.popper,w=new Map,k=!0,M=b[0],D=0;D<b.length;D++){var O=b[D],P=V(O),Y=W(O)===E,I=[S,A].indexOf(P)>=0,N=I?"width":"height",H=G(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),j=I?Y?L:T:Y?A:S;x[N]>_[N]&&(j=le(j));var F=le(j),R=[];if(s&&R.push(H[P]<=0),o&&R.push(H[j]<=0,H[F]<=0),R.every((function(e){return e}))){M=O,k=!1;break}w.set(O,R)}if(k)for(var z=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},B=p?3:1;B>0;B--){if("break"===z(B))break}t.placement!==M&&(t.modifiersData[i]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fe(e,t,n){return s(e,a(t,n))}var pe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,l=n.altAxis,c=void 0!==l&&l,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.padding,p=n.tether,m=void 0===p||p,g=n.tetherOffset,v=void 0===g?0:g,b=G(t,{boundary:u,rootBoundary:d,padding:f,altBoundary:h}),x=V(t.placement),_=W(t.placement),w=!_,k=q(x),C="x"===k?"y":"x",D=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,Y="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,I="number"==typeof Y?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(D){if(o){var j,F="y"===k?S:T,R="y"===k?A:L,z="y"===k?"height":"width",B=D[k],U=B+b[F],$=B-b[R],X=m?-P[z]/2:0,Z=_===E?O[z]:P[z],K=_===E?-P[z]:-O[z],J=t.elements.arrow,Q=m&&J?y(J):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[F],ne=ee[R],ie=fe(0,O[z],Q[z]),re=w?O[z]/2-X-ie-te-I.mainAxis:Z-ie-te-I.mainAxis,se=w?-O[z]/2+X+ie+ne+I.mainAxis:K+ie+ne+I.mainAxis,ae=t.elements.arrow&&M(t.elements.arrow),oe=ae?"y"===k?ae.clientTop||0:ae.clientLeft||0:0,le=null!=(j=null==N?void 0:N[k])?j:0,ce=B+se-le,ue=fe(m?a(U,B+re-le-oe):U,B,m?s($,ce):$);D[k]=ue,H[k]=ue-B}if(c){var de,he="x"===k?S:T,pe="x"===k?A:L,me=D[C],ge="y"===C?"height":"width",ve=me+b[he],ye=me-b[pe],be=-1!==[S,T].indexOf(x),xe=null!=(de=null==N?void 0:N[C])?de:0,_e=be?ve:me-O[ge]-P[ge]-xe+I.altAxis,we=be?me+O[ge]+P[ge]-xe-I.altAxis:ye,ke=m&&be?function(e,t,n){var i=fe(e,t,n);return i>n?n:i}(_e,me,we):fe(m?_e:ve,me,m?we:ye);D[C]=ke,H[C]=ke-me}t.modifiersData[i]=H}},requiresIfExists:["offset"]};var me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,o=V(n.placement),l=q(o),c=[T,L].indexOf(o)>=0?"height":"width";if(s&&a){var u=function(e,t){return $("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:X(e,D))}(r.padding,n),d=y(s),h="y"===l?S:T,f="y"===l?A:L,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=M(s),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,x=u[h],_=v-d[c]-u[f],w=v/2-d[c]/2+b,k=fe(x,w,_),C=l;n.modifiersData[i]=((t={})[C]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&F(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ge(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ve(e){return[S,L,A,T].some((function(t){return e[t]>=0}))}var ye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,a=G(t,{elementContext:"reference"}),o=G(t,{altBoundary:!0}),l=ge(a,i),c=ge(o,r,s),u=ve(l),d=ve(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},be=J({defaultModifiers:[ee,te,re,se]}),xe=[ee,te,re,se,ae,he,pe,me,ye],_e=J({defaultModifiers:xe});e.applyStyles=se,e.arrow=me,e.computeStyles=re,e.createPopper=_e,e.createPopperLite=be,e.defaultModifiers=xe,e.detectOverflow=G,e.eventListeners=ee,e.flip=he,e.hide=ye,e.offset=ae,e.popperGenerator=J,e.popperOffsets=te,e.preventOverflow=pe,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(e.Popper)}(this,(function(e){"use strict";const t=function(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}(e),n=new Map,i={set(e,t,i){n.has(e)||n.set(e,new Map);const r=n.get(e);r.has(t)||0===r.size?r.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>n.has(e)&&n.get(e).get(t)||null,remove(e,t){if(!n.has(e))return;const i=n.get(e);i.delete(t),0===i.size&&n.delete(e)}},r="transitionend",s=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),a=e=>{e.dispatchEvent(new Event(r))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),l=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(s(e)):null,c=e=>{if(!o(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},u=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),d=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?d(e.parentNode):null},h=()=>{},f=e=>{e.offsetHeight},p=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,m=[],g=()=>"rtl"===document.documentElement.dir,v=e=>{var t;t=()=>{const t=p();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of m)e()})),m.push(t)):t()},y=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,b=(e,t,n=!0)=>{if(!n)return void y(e);const i=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),r=Number.parseFloat(n);return i||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let s=!1;const o=({target:n})=>{n===t&&(s=!0,t.removeEventListener(r,o),y(e))};t.addEventListener(r,o),setTimeout((()=>{s||a(t)}),i)},x=(e,t,n,i)=>{const r=e.length;let s=e.indexOf(t);return-1===s?!n&&i?e[r-1]:e[0]:(s+=n?1:-1,i&&(s=(s+r)%r),e[Math.max(0,Math.min(s,r-1))])},_=/[^.]*(?=\..*)\.|.*/,w=/\..*/,k=/::\d+$/,M={};let S=1;const A={mouseenter:"mouseover",mouseleave:"mouseout"},L=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function T(e,t){return t&&`${t}::${S++}`||e.uidEvent||S++}function C(e){const t=T(e);return e.uidEvent=t,M[t]=M[t]||{},M[t]}function D(e,t,n=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function E(e,t,n){const i="string"==typeof t,r=i?n:t||n;let s=I(e);return L.has(s)||(s=e),[i,r,s]}function O(e,t,n,i,r){if("string"!=typeof t||!e)return;let[s,a,o]=E(t,n,i);if(t in A){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const l=C(e),c=l[o]||(l[o]={}),u=D(c,a,s?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const d=T(a,t.replace(_,"")),h=s?function(e,t,n){return function i(r){const s=e.querySelectorAll(t);for(let{target:a}=r;a&&a!==this;a=a.parentNode)for(const o of s)if(o===a)return H(r,{delegateTarget:a}),i.oneOff&&N.off(e,r.type,t,n),n.apply(a,[r])}}(e,n,a):function(e,t){return function n(i){return H(i,{delegateTarget:e}),n.oneOff&&N.off(e,i.type,t),t.apply(e,[i])}}(e,a);h.delegationSelector=s?n:null,h.callable=a,h.oneOff=r,h.uidEvent=d,c[d]=h,e.addEventListener(o,h,s)}function P(e,t,n,i,r){const s=D(t[n],i,r);s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}function Y(e,t,n,i){const r=t[n]||{};for(const[s,a]of Object.entries(r))s.includes(i)&&P(e,t,n,a.callable,a.delegationSelector)}function I(e){return e=e.replace(w,""),A[e]||e}const N={on(e,t,n,i){O(e,t,n,i,!1)},one(e,t,n,i){O(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[r,s,a]=E(t,n,i),o=a!==t,l=C(e),c=l[a]||{},u=t.startsWith(".");if(void 0===s){if(u)for(const n of Object.keys(l))Y(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const r=n.replace(k,"");o&&!t.includes(r)||P(e,l,a,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;P(e,l,a,s,r?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=p();let r=null,s=!0,a=!0,o=!1;t!==I(t)&&i&&(r=i.Event(t,n),i(e).trigger(r),s=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),o=r.isDefaultPrevented());const l=H(new Event(t,{bubbles:s,cancelable:!0}),n);return o&&l.preventDefault(),a&&e.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function H(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function j(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function F(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const R={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${F(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${F(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=j(e.dataset[i])}return t},getDataAttribute:(e,t)=>j(e.getAttribute(`data-bs-${F(t)}`))};class z{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=o(t)?R.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...o(t)?R.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,r]of Object.entries(t)){const t=e[i],s=o(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}var n}}class B extends z{constructor(e,t){super(),(e=l(e))&&(this._element=e,this._config=this._getConfig(t),i.set(this._element,this.constructor.DATA_KEY,this))}dispose(){i.remove(this._element,this.constructor.DATA_KEY),N.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){b(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return i.get(l(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.5"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const V=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map((e=>s(e))).join(","):null},W={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!u(e)&&c(e)))},getSelectorFromElement(e){const t=V(e);return t&&W.findOne(t)?t:null},getElementFromSelector(e){const t=V(e);return t?W.findOne(t):null},getMultipleElementsFromSelector(e){const t=V(e);return t?W.find(t):[]}},q=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;N.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),u(this))return;const r=W.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(r)[t]()}))},U=".bs.alert",$=`close${U}`,X=`closed${U}`;class G extends B{static get NAME(){return"alert"}close(){if(N.trigger(this._element,$).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),N.trigger(this._element,X),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=G.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}q(G,"close"),v(G);const Z='[data-bs-toggle="button"]';class K extends B{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=K.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}N.on(document,"click.bs.button.data-api",Z,(e=>{e.preventDefault();const t=e.target.closest(Z);K.getOrCreateInstance(t).toggle()})),v(K);const J=".bs.swipe",Q=`touchstart${J}`,ee=`touchmove${J}`,te=`touchend${J}`,ne=`pointerdown${J}`,ie=`pointerup${J}`,re={endCallback:null,leftCallback:null,rightCallback:null},se={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ae extends z{constructor(e,t){super(),this._element=e,e&&ae.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return re}static get DefaultType(){return se}static get NAME(){return"swipe"}dispose(){N.off(this._element,J)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),y(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&y(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(N.on(this._element,ne,(e=>this._start(e))),N.on(this._element,ie,(e=>this._end(e))),this._element.classList.add("pointer-event")):(N.on(this._element,Q,(e=>this._start(e))),N.on(this._element,ee,(e=>this._move(e))),N.on(this._element,te,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const oe=".bs.carousel",le=".data-api",ce="ArrowLeft",ue="ArrowRight",de="next",he="prev",fe="left",pe="right",me=`slide${oe}`,ge=`slid${oe}`,ve=`keydown${oe}`,ye=`mouseenter${oe}`,be=`mouseleave${oe}`,xe=`dragstart${oe}`,_e=`load${oe}${le}`,we=`click${oe}${le}`,ke="carousel",Me="active",Se=".active",Ae=".carousel-item",Le=Se+Ae,Te={[ce]:pe,[ue]:fe},Ce={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},De={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ee extends B{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=W.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ke&&this.cycle()}static get Default(){return Ce}static get DefaultType(){return De}static get NAME(){return"carousel"}next(){this._slide(de)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide(he)}pause(){this._isSliding&&a(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?N.one(this._element,ge,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void N.one(this._element,ge,(()=>this.to(e)));const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?de:he;this._slide(i,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&N.on(this._element,ve,(e=>this._keydown(e))),"hover"===this._config.pause&&(N.on(this._element,ye,(()=>this.pause())),N.on(this._element,be,(()=>this._maybeEnableCycle()))),this._config.touch&&ae.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of W.find(".carousel-item img",this._element))N.on(e,xe,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(fe)),rightCallback:()=>this._slide(this._directionToOrder(pe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new ae(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Te[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=W.findOne(Se,this._indicatorsElement);t.classList.remove(Me),t.removeAttribute("aria-current");const n=W.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(Me),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),i=e===de,r=t||x(this._getItems(),n,i,this._config.wrap);if(r===n)return;const s=this._getItemIndex(r),a=t=>N.trigger(this._element,t,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(me).defaultPrevented)return;if(!n||!r)return;const o=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=r;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";r.classList.add(c),f(r),n.classList.add(l),r.classList.add(l),this._queueCallback((()=>{r.classList.remove(l,c),r.classList.add(Me),n.classList.remove(Me,c,l),this._isSliding=!1,a(ge)}),n,this._isAnimated()),o&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return W.findOne(Le,this._element)}_getItems(){return W.find(Ae,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return g()?e===fe?he:de:e===fe?de:he}_orderToDirection(e){return g()?e===he?fe:pe:e===he?pe:fe}static jQueryInterface(e){return this.each((function(){const t=Ee.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}N.on(document,we,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=W.getElementFromSelector(this);if(!t||!t.classList.contains(ke))return;e.preventDefault();const n=Ee.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===R.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),N.on(window,_e,(()=>{const e=W.find('[data-bs-ride="carousel"]');for(const t of e)Ee.getOrCreateInstance(t)})),v(Ee);const Oe=".bs.collapse",Pe=`show${Oe}`,Ye=`shown${Oe}`,Ie=`hide${Oe}`,Ne=`hidden${Oe}`,He=`click${Oe}.data-api`,je="show",Fe="collapse",Re="collapsing",ze=`:scope .${Fe} .${Fe}`,Be='[data-bs-toggle="collapse"]',Ve={parent:null,toggle:!0},We={parent:"(null|element)",toggle:"boolean"};class qe extends B{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=W.find(Be);for(const e of n){const t=W.getSelectorFromElement(e),n=W.find(t).filter((e=>e===this._element));null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ve}static get DefaultType(){return We}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>qe.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(N.trigger(this._element,Pe).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(Fe),this._element.classList.add(Re),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Re),this._element.classList.add(Fe,je),this._element.style[t]="",N.trigger(this._element,Ye)}),this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(N.trigger(this._element,Ie).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,f(this._element),this._element.classList.add(Re),this._element.classList.remove(Fe,je);for(const e of this._triggerArray){const t=W.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Re),this._element.classList.add(Fe),N.trigger(this._element,Ne)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(je)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=l(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Be);for(const t of e){const e=W.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=W.find(ze,this._config.parent);return W.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=qe.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}N.on(document,He,Be,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of W.getMultipleElementsFromSelector(this))qe.getOrCreateInstance(e,{toggle:!1}).toggle()})),v(qe);const Ue="dropdown",$e=".bs.dropdown",Xe=".data-api",Ge="ArrowUp",Ze="ArrowDown",Ke=`hide${$e}`,Je=`hidden${$e}`,Qe=`show${$e}`,et=`shown${$e}`,tt=`click${$e}${Xe}`,nt=`keydown${$e}${Xe}`,it=`keyup${$e}${Xe}`,rt="show",st='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',at=`${st}.${rt}`,ot=".dropdown-menu",lt=g()?"top-end":"top-start",ct=g()?"top-start":"top-end",ut=g()?"bottom-end":"bottom-start",dt=g()?"bottom-start":"bottom-end",ht=g()?"left-start":"right-start",ft=g()?"right-start":"left-start",pt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},mt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class gt extends B{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=W.next(this._element,ot)[0]||W.prev(this._element,ot)[0]||W.findOne(ot,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return pt}static get DefaultType(){return mt}static get NAME(){return Ue}toggle(){return this._isShown()?this.hide():this.show()}show(){if(u(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!N.trigger(this._element,Qe,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))N.on(e,"mouseover",h);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(rt),this._element.classList.add(rt),N.trigger(this._element,et,e)}}hide(){if(u(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!N.trigger(this._element,Ke,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))N.off(e,"mouseover",h);this._popper&&this._popper.destroy(),this._menu.classList.remove(rt),this._element.classList.remove(rt),this._element.setAttribute("aria-expanded","false"),R.removeDataAttribute(this._menu,"popper"),N.trigger(this._element,Je,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!o(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ue.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===t)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:o(this._config.reference)?e=l(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=t.createPopper(e,this._menu,n)}_isShown(){return this._menu.classList.contains(rt)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return ht;if(e.classList.contains("dropstart"))return ft;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?ct:lt:t?dt:ut}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(R.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...y(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=W.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>c(e)));n.length&&x(n,t,e===Ze,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=gt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=W.find(at);for(const n of t){const t=gt.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),r=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!r||"outside"===t._config.autoClose&&r)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const s={relatedTarget:t._element};"click"===e.type&&(s.clickEvent=e),t._completeHide(s)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=[Ge,Ze].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const r=this.matches(st)?this:W.prev(this,st)[0]||W.next(this,st)[0]||W.findOne(st,e.delegateTarget.parentNode),s=gt.getOrCreateInstance(r);if(i)return e.stopPropagation(),s.show(),void s._selectMenuItem(e);s._isShown()&&(e.stopPropagation(),s.hide(),r.focus())}}N.on(document,nt,st,gt.dataApiKeydownHandler),N.on(document,nt,ot,gt.dataApiKeydownHandler),N.on(document,tt,gt.clearMenus),N.on(document,it,gt.clearMenus),N.on(document,tt,st,(function(e){e.preventDefault(),gt.getOrCreateInstance(this).toggle()})),v(gt);const vt="backdrop",yt="show",bt=`mousedown.bs.${vt}`,xt={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},_t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class wt extends z{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return xt}static get DefaultType(){return _t}static get NAME(){return vt}show(e){if(!this._config.isVisible)return void y(e);this._append();const t=this._getElement();this._config.isAnimated&&f(t),t.classList.add(yt),this._emulateAnimation((()=>{y(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(yt),this._emulateAnimation((()=>{this.dispose(),y(e)}))):y(e)}dispose(){this._isAppended&&(N.off(this._element,bt),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=l(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),N.on(e,bt,(()=>{y(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){b(e,this._getElement(),this._config.isAnimated)}}const kt=".bs.focustrap",Mt=`focusin${kt}`,St=`keydown.tab${kt}`,At="backward",Lt={autofocus:!0,trapElement:null},Tt={autofocus:"boolean",trapElement:"element"};class Ct extends z{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Lt}static get DefaultType(){return Tt}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),N.off(document,kt),N.on(document,Mt,(e=>this._handleFocusin(e))),N.on(document,St,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,N.off(document,kt))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=W.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===At?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?At:"forward")}}const Dt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Et=".sticky-top",Ot="padding-right",Pt="margin-right";class Yt{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ot,(t=>t+e)),this._setElementAttributes(Dt,Ot,(t=>t+e)),this._setElementAttributes(Et,Pt,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ot),this._resetElementAttributes(Dt,Ot),this._resetElementAttributes(Et,Pt)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(r))}px`)}))}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&R.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=R.getDataAttribute(e,t);null!==n?(R.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(o(e))t(e);else for(const n of W.find(e,this._element))t(n)}}const It=".bs.modal",Nt=`hide${It}`,Ht=`hidePrevented${It}`,jt=`hidden${It}`,Ft=`show${It}`,Rt=`shown${It}`,zt=`resize${It}`,Bt=`click.dismiss${It}`,Vt=`mousedown.dismiss${It}`,Wt=`keydown.dismiss${It}`,qt=`click${It}.data-api`,Ut="modal-open",$t="show",Xt="modal-static",Gt={backdrop:!0,focus:!0,keyboard:!0},Zt={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Kt extends B{constructor(e,t){super(e,t),this._dialog=W.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Yt,this._addEventListeners()}static get Default(){return Gt}static get DefaultType(){return Zt}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||N.trigger(this._element,Ft,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ut),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(N.trigger(this._element,Nt).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove($t),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){N.off(window,It),N.off(this._dialog,It),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new wt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ct({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=W.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),f(this._element),this._element.classList.add($t),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,N.trigger(this._element,Rt,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){N.on(this._element,Wt,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),N.on(window,zt,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),N.on(this._element,Vt,(e=>{N.one(this._element,Bt,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Ut),this._resetAdjustments(),this._scrollBar.reset(),N.trigger(this._element,jt)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(N.trigger(this._element,Ht).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Xt)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Xt),this._queueCallback((()=>{this._element.classList.remove(Xt),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=g()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=g()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Kt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}N.on(document,qt,'[data-bs-toggle="modal"]',(function(e){const t=W.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),N.one(t,Ft,(e=>{e.defaultPrevented||N.one(t,jt,(()=>{c(this)&&this.focus()}))}));const n=W.findOne(".modal.show");n&&Kt.getInstance(n).hide(),Kt.getOrCreateInstance(t).toggle(this)})),q(Kt),v(Kt);const Jt=".bs.offcanvas",Qt=".data-api",en=`load${Jt}${Qt}`,tn="show",nn="showing",rn="hiding",sn=".offcanvas.show",an=`show${Jt}`,on=`shown${Jt}`,ln=`hide${Jt}`,cn=`hidePrevented${Jt}`,un=`hidden${Jt}`,dn=`resize${Jt}`,hn=`click${Jt}${Qt}`,fn=`keydown.dismiss${Jt}`,pn={backdrop:!0,keyboard:!0,scroll:!1},mn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class gn extends B{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return pn}static get DefaultType(){return mn}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||N.trigger(this._element,an,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Yt).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(nn),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(tn),this._element.classList.remove(nn),N.trigger(this._element,on,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(N.trigger(this._element,ln).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(rn),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(tn,rn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Yt).reset(),N.trigger(this._element,un)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new wt({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():N.trigger(this._element,cn)}:null})}_initializeFocusTrap(){return new Ct({trapElement:this._element})}_addEventListeners(){N.on(this._element,fn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():N.trigger(this._element,cn))}))}static jQueryInterface(e){return this.each((function(){const t=gn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}N.on(document,hn,'[data-bs-toggle="offcanvas"]',(function(e){const t=W.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),u(this))return;N.one(t,un,(()=>{c(this)&&this.focus()}));const n=W.findOne(sn);n&&n!==t&&gn.getInstance(n).hide(),gn.getOrCreateInstance(t).toggle(this)})),N.on(window,en,(()=>{for(const e of W.find(sn))gn.getOrCreateInstance(e).show()})),N.on(window,dn,(()=>{for(const e of W.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&gn.getOrCreateInstance(e).hide()})),q(gn),v(gn);const vn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},yn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),bn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,xn=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!yn.has(n)||Boolean(bn.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(n)))},_n={allowList:vn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},wn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},kn={entry:"(string|element|function|null)",selector:"(string|element)"};class Mn extends z{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return _n}static get DefaultType(){return wn}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},kn)}_setContent(e,t,n){const i=W.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?o(t)?this._putElementInTemplate(l(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const e of r){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const i=[].concat(...e.attributes),r=[].concat(t["*"]||[],t[n]||[]);for(const t of i)xn(t,r)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return y(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Sn=new Set(["sanitize","allowList","sanitizeFn"]),An="fade",Ln="show",Tn=".tooltip-inner",Cn=".modal",Dn="hide.bs.modal",En="hover",On="focus",Pn={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},Yn={allowList:vn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},In={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Nn extends B{constructor(e,n){if(void 0===t)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Yn}static get DefaultType(){return In}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),N.off(this._element.closest(Cn),Dn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=N.trigger(this._element,this.constructor.eventName("show")),t=(d(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),N.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Ln),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))N.on(e,"mouseover",h);this._queueCallback((()=>{N.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!N.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ln),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))N.off(e,"mouseover",h);this._activeTrigger.click=!1,this._activeTrigger[On]=!1,this._activeTrigger[En]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),N.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(An,Ln),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(An),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Mn({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Tn]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(An)}_isShown(){return this.tip&&this.tip.classList.contains(Ln)}_createPopper(e){const n=y(this._config.placement,[this,e,this._element]),i=Pn[n.toUpperCase()];return t.createPopper(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return y(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...y(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)N.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===En?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===En?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");N.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?On:En]=!0,t._enter()})),N.on(this._element,n,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?On:En]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},N.on(this._element.closest(Cn),Dn,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=R.getDataAttributes(this._element);for(const e of Object.keys(t))Sn.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:l(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=Nn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}v(Nn);const Hn=".popover-header",jn=".popover-body",Fn={...Nn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Rn={...Nn.DefaultType,content:"(null|string|element|function)"};class zn extends Nn{static get Default(){return Fn}static get DefaultType(){return Rn}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Hn]:this._getTitle(),[jn]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=zn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}v(zn);const Bn=".bs.scrollspy",Vn=`activate${Bn}`,Wn=`click${Bn}`,qn=`load${Bn}.data-api`,Un="active",$n="[href]",Xn=".nav-link",Gn=`${Xn}, .nav-item > ${Xn}, .list-group-item`,Zn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Kn={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Jn extends B{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Zn}static get DefaultType(){return Kn}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=l(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(N.off(this._config.target,Wn),N.on(this._config.target,Wn,$n,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const e=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&e){if(n(s),!i)return}else r||e||n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=W.find($n,this._config.target);for(const t of e){if(!t.hash||u(t))continue;const e=W.findOne(decodeURI(t.hash),this._element);c(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Un),this._activateParents(e),N.trigger(this._element,Vn,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))W.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Un);else for(const t of W.parents(e,".nav, .list-group"))for(const e of W.prev(t,Gn))e.classList.add(Un)}_clearActiveClass(e){e.classList.remove(Un);const t=W.find(`${$n}.${Un}`,e);for(const e of t)e.classList.remove(Un)}static jQueryInterface(e){return this.each((function(){const t=Jn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}N.on(window,qn,(()=>{for(const e of W.find('[data-bs-spy="scroll"]'))Jn.getOrCreateInstance(e)})),v(Jn);const Qn=".bs.tab",ei=`hide${Qn}`,ti=`hidden${Qn}`,ni=`show${Qn}`,ii=`shown${Qn}`,ri=`click${Qn}`,si=`keydown${Qn}`,ai=`load${Qn}`,oi="ArrowLeft",li="ArrowRight",ci="ArrowUp",ui="ArrowDown",di="Home",hi="End",fi="active",pi="fade",mi="show",gi=".dropdown-toggle",vi=`:not(${gi})`,yi='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',bi=`.nav-link${vi}, .list-group-item${vi}, [role="tab"]${vi}, ${yi}`,xi=`.${fi}[data-bs-toggle="tab"], .${fi}[data-bs-toggle="pill"], .${fi}[data-bs-toggle="list"]`;class _i extends B{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),N.on(this._element,si,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?N.trigger(t,ei,{relatedTarget:e}):null;N.trigger(e,ni,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(fi),this._activate(W.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),N.trigger(e,ii,{relatedTarget:t})):e.classList.add(mi)}),e,e.classList.contains(pi)))}_deactivate(e,t){e&&(e.classList.remove(fi),e.blur(),this._deactivate(W.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),N.trigger(e,ti,{relatedTarget:t})):e.classList.remove(mi)}),e,e.classList.contains(pi)))}_keydown(e){if(![oi,li,ci,ui,di,hi].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!u(e)));let n;if([di,hi].includes(e.key))n=t[e.key===di?0:t.length-1];else{const i=[li,ui].includes(e.key);n=x(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),_i.getOrCreateInstance(n).show())}_getChildren(){return W.find(bi,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=W.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const i=(e,i)=>{const r=W.findOne(e,n);r&&r.classList.toggle(i,t)};i(gi,fi),i(".dropdown-menu",mi),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(fi)}_getInnerElement(e){return e.matches(bi)?e:W.findOne(bi,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=_i.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}N.on(document,ri,yi,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),u(this)||_i.getOrCreateInstance(this).show()})),N.on(window,ai,(()=>{for(const e of W.find(xi))_i.getOrCreateInstance(e)})),v(_i);const wi=".bs.toast",ki=`mouseover${wi}`,Mi=`mouseout${wi}`,Si=`focusin${wi}`,Ai=`focusout${wi}`,Li=`hide${wi}`,Ti=`hidden${wi}`,Ci=`show${wi}`,Di=`shown${wi}`,Ei="hide",Oi="show",Pi="showing",Yi={animation:"boolean",autohide:"boolean",delay:"number"},Ii={animation:!0,autohide:!0,delay:5e3};class Ni extends B{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ii}static get DefaultType(){return Yi}static get NAME(){return"toast"}show(){N.trigger(this._element,Ci).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Ei),f(this._element),this._element.classList.add(Oi,Pi),this._queueCallback((()=>{this._element.classList.remove(Pi),N.trigger(this._element,Di),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(N.trigger(this._element,Li).defaultPrevented||(this._element.classList.add(Pi),this._queueCallback((()=>{this._element.classList.add(Ei),this._element.classList.remove(Pi,Oi),N.trigger(this._element,Ti)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Oi),super.dispose()}isShown(){return this._element.classList.contains(Oi)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){N.on(this._element,ki,(e=>this._onInteraction(e,!0))),N.on(this._element,Mi,(e=>this._onInteraction(e,!1))),N.on(this._element,Si,(e=>this._onInteraction(e,!0))),N.on(this._element,Ai,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=Ni.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return q(Ni),v(Ni),{Alert:G,Button:K,Carousel:Ee,Collapse:qe,Dropdown:gt,Modal:Kt,Offcanvas:gn,Popover:zn,ScrollSpy:Jn,Tab:_i,Toast:Ni,Tooltip:Nn}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e;function t(){return e.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(r(e,t))return;return 1}function a(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){for(var n=[],i=e.length,r=0;r<i;++r)n.push(t(e[r],r));return n}function u(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,i){return At(e,t,n,i,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){var t,n,i=e._d&&!isNaN(e._d.getTime());return i&&(t=h(e),n=m.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict)&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function p(e){var t=d(NaN);return null!=e?u(h(t),e):h(t).userInvalidated=!0,t}var m=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},g=t.momentProperties=[],v=!1;function y(e,t){var n,i,r,s=g.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=h(t)),a(t._locale)||(e._locale=t._locale),0<s)for(n=0;n<s;n++)a(r=t[i=g[n]])||(e[i]=r);return e}function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,t.updateOffset(this),v=!1)}function x(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function _(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,n){var i=!0;return u((function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){for(var s,a,o=[],l=arguments.length,c=0;c<l;c++){if(s="","object"==typeof arguments[c]){for(a in s+="\n["+c+"] ",arguments[0])r(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[c];o.push(s)}_(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)}),n)}var k={};function M(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),k[e]||(_(n),k[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var n,s=u({},e);for(n in t)r(t,n)&&(i(e[n])&&i(t[n])?(s[n]={},u(s[n],e[n]),u(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)r(e,n)&&!r(t,n)&&i(e[n])&&(s[n]=u({},s[n]));return s}function L(e){null!=e&&this.set(e)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var T=Object.keys||function(e){var t,n=[];for(t in e)r(e,t)&&n.push(t);return n};function C(e,t,n){var i=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},P={};function Y(e,t,n,i){var r="string"==typeof i?function(){return this[i]()}:i;e&&(P[e]=r),t&&(P[t[0]]=function(){return C(r.apply(this,arguments),t[1],t[2])}),n&&(P[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function I(e,t){return e.isValid()?(t=N(t,e.localeData()),O[t]=O[t]||function(e){for(var t,n=e.match(D),i=0,r=n.length;i<r;i++)P[n[i]]?n[i]=P[n[i]]:n[i]=(t=n[i]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var i="",s=0;s<r;s++)i+=S(n[s])?n[s].call(t,e):n[s];return i}}(t),O[t](e)):e.localeData().invalidDate()}function N(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(E.lastIndex=0;0<=n&&E.test(e);)e=e.replace(E,i),E.lastIndex=0,--n;return e}var H={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function j(e){return"string"==typeof e?H[e]||H[e.toLowerCase()]:void 0}function F(e){var t,n,i={};for(n in e)r(e,n)&&(t=j(n))&&(i[t]=e[n]);return i}var R={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},z=/\d/,B=/\d\d/,V=/\d{3}/,W=/\d{4}/,q=/[+-]?\d{6}/,U=/\d\d?/,$=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,G=/\d{1,3}/,Z=/\d{1,4}/,K=/[+-]?\d{1,6}/,J=/\d+/,Q=/[+-]?\d+/,ee=/Z|[+-]\d\d:?\d\d/gi,te=/Z|[+-]\d\d(?::?\d\d)?/gi,ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ie=/^[1-9]\d?/,re=/^([1-9]\d|\d)/;function se(e,t,n){ue[e]=S(t)?t:function(e,i){return e&&n?n:t}}function ae(e,t){return r(ue,e)?ue[e](t._strict,t._locale):new RegExp(oe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function oe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=0;return 0!=(e=+e)&&isFinite(e)?le(e):t}var ue={},de={};function he(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),o(t)&&(r=function(e,n){n[t]=ce(e)}),i=e.length,n=0;n<i;n++)de[e[n]]=r}function fe(e,t){he(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function pe(e){return e%4==0&&e%100!=0||e%400==0}var me=0,ge=1,ve=2,ye=3,be=4,xe=5,_e=6,we=7,ke=8;function Me(e){return pe(e)?366:365}Y("Y",0,0,(function(){var e=this.year();return e<=9999?C(e,4):"+"+e})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),se("Y",Q),se("YY",U,B),se("YYYY",Z,W),se("YYYYY",K,q),se("YYYYYY",K,q),he(["YYYYY","YYYYYY"],me),he("YYYY",(function(e,n){n[me]=2===e.length?t.parseTwoDigitYear(e):ce(e)})),he("YY",(function(e,n){n[me]=t.parseTwoDigitYear(e)})),he("Y",(function(e,t){t[me]=parseInt(e,10)})),t.parseTwoDigitYear=function(e){return ce(e)+(68<ce(e)?1900:2e3)};var Se,Ae=Le("FullYear",!0);function Le(e,n){return function(i){return null!=i?(Ce(this,e,i),t.updateOffset(this,n),this):Te(this,e)}}function Te(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ce(e,t,n){var i,r,s;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return r?i.setUTCMilliseconds(n):i.setMilliseconds(n);case"Seconds":return r?i.setUTCSeconds(n):i.setSeconds(n);case"Minutes":return r?i.setUTCMinutes(n):i.setMinutes(n);case"Hours":return r?i.setUTCHours(n):i.setHours(n);case"Date":return r?i.setUTCDate(n):i.setDate(n);case"FullYear":break;default:return}t=n,s=e.month(),e=29!==(e=e.date())||1!==s||pe(t)?e:28,r?i.setUTCFullYear(t,s,e):i.setFullYear(t,s,e)}}function De(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(e+=(t-(n=(t%(n=12)+n)%n))/12,1==n?pe(e)?29:28:31-n%7%2)}Se=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),Y("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),se("M",U,ie),se("MM",U,B),se("MMM",(function(e,t){return t.monthsShortRegex(e)})),se("MMMM",(function(e,t){return t.monthsRegex(e)})),he(["M","MM"],(function(e,t){t[ge]=ce(e)-1})),he(["MMM","MMMM"],(function(e,t,n,i){null!=(i=n._locale.monthsParse(e,i,n._strict))?t[ge]=i:h(n).invalidMonth=e}));var Ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ye=ne,Ie=ne;function Ne(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!o(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,De(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function He(e){return null!=e?(Ne(this,e),t.updateOffset(this,!0),this):Te(this,"Month")}function je(){function e(e,t){return t.length-e.length}for(var t,n,i=[],r=[],s=[],a=0;a<12;a++)n=d([2e3,a]),t=oe(this.monthsShort(n,"")),n=oe(this.months(n,"")),i.push(t),r.push(n),s.push(n),s.push(t);i.sort(e),r.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Fe(e,t,n,i,r,s,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,i,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,i,r,s,a),o}function Re(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,n){return(n=7+t-n)-(7+Re(e,0,n).getUTCDay()-t)%7-1}function Be(e,t,n,i,r){var s;n=(t=1+7*(t-1)+(7+n-i)%7+ze(e,i,r))<=0?Me(s=e-1)+t:t>Me(e)?(s=e+1,t-Me(e)):(s=e,t);return{year:s,dayOfYear:n}}function Ve(e,t,n){var i,r,s=ze(e.year(),t,n);return(s=Math.floor((e.dayOfYear()-s-1)/7)+1)<1?i=s+We(r=e.year()-1,t,n):s>We(e.year(),t,n)?(i=s-We(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function We(e,t,n){var i=ze(e,t,n);t=ze(e+1,t,n);return(Me(e)-i+t)/7}function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),se("w",U,ie),se("ww",U,B),se("W",U,ie),se("WW",U,B),fe(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=ce(e)})),Y("d",0,"do","day"),Y("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),Y("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),Y("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),se("d",U),se("e",U),se("E",U),se("dd",(function(e,t){return t.weekdaysMinRegex(e)})),se("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),se("dddd",(function(e,t){return t.weekdaysRegex(e)})),fe(["dd","ddd","dddd"],(function(e,t,n,i){null!=(i=n._locale.weekdaysParse(e,i,n._strict))?t.d=i:h(n).invalidWeekday=e})),fe(["d","e","E"],(function(e,t,n,i){t[i]=ce(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$e="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ge=ne,Ze=ne,Ke=ne;function Je(){function e(e,t){return t.length-e.length}for(var t,n,i,r=[],s=[],a=[],o=[],l=0;l<7;l++)i=d([2e3,1]).day(l),t=oe(this.weekdaysMin(i,"")),n=oe(this.weekdaysShort(i,"")),i=oe(this.weekdays(i,"")),r.push(t),s.push(n),a.push(i),o.push(t),o.push(n),o.push(i);r.sort(e),s.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){Y(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tt(e,t){return t._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Qe),Y("k",["kk",2],0,(function(){return this.hours()||24})),Y("hmm",0,0,(function(){return""+Qe.apply(this)+C(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Qe.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+C(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)})),et("a",!0),et("A",!1),se("a",tt),se("A",tt),se("H",U,re),se("h",U,ie),se("k",U,ie),se("HH",U,B),se("hh",U,B),se("kk",U,B),se("hmm",$),se("hmmss",X),se("Hmm",$),se("Hmmss",X),he(["H","HH"],ye),he(["k","kk"],(function(e,t,n){e=ce(e),t[ye]=24===e?0:e})),he(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),he(["h","hh"],(function(e,t,n){t[ye]=ce(e),h(n).bigHour=!0})),he("hmm",(function(e,t,n){var i=e.length-2;t[ye]=ce(e.substr(0,i)),t[be]=ce(e.substr(i)),h(n).bigHour=!0})),he("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[ye]=ce(e.substr(0,i)),t[be]=ce(e.substr(i,2)),t[xe]=ce(e.substr(r)),h(n).bigHour=!0})),he("Hmm",(function(e,t,n){var i=e.length-2;t[ye]=ce(e.substr(0,i)),t[be]=ce(e.substr(i))})),he("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[ye]=ce(e.substr(0,i)),t[be]=ce(e.substr(i,2)),t[xe]=ce(e.substr(r))})),ne=Le("Hours",!0);var nt,it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ee,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:Xe,weekdaysShort:$e,meridiemParse:/[ap]\.?m?\.?/i},rt={},st={};function at(e){return e&&e.toLowerCase().replace("_","-")}function ot(e){var t,n;if(void 0===rt[e]&&"undefined"!=typeof module&&module&&module.exports&&(n=e)&&n.match("^[^/\\\\]*$"))try{t=nt._abbr,require("./locale/"+e),lt(t)}catch(t){rt[e]=null}return rt[e]}function lt(e,t){return e&&((t=a(t)?ut(e):ct(e,t))?nt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ct(e,t){if(null===t)return delete rt[e],null;var n,i=it;if(t.abbr=e,null!=rt[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])i=rt[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;i=n._config}return rt[e]=new L(A(i,t)),st[e]&&st[e].forEach((function(e){ct(e.name,e.config)})),lt(e),rt[e]}function ut(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return nt;if(!n(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,i,r,s=0;s<e.length;){for(t=(r=at(e[s]).split("-")).length,n=(n=at(e[s+1]))?n.split("-"):null;0<t;){if(i=ot(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}(r,n)>=t-1)break;t--}s++}return nt}(e)}function dt(e){var t=e._a;return t&&-2===h(e).overflow&&(t=t[ge]<0||11<t[ge]?ge:t[ve]<1||t[ve]>De(t[me],t[ge])?ve:t[ye]<0||24<t[ye]||24===t[ye]&&(0!==t[be]||0!==t[xe]||0!==t[_e])?ye:t[be]<0||59<t[be]?be:t[xe]<0||59<t[xe]?xe:t[_e]<0||999<t[_e]?_e:-1,h(e)._overflowDayOfYear&&(t<me||ve<t)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=we),h(e)._overflowWeekday&&-1===t&&(t=ke),h(e).overflow=t),e}var ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((-?\d+)/i,yt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e){var t,n,i,r,s,a,o=e._i,l=ht.exec(o)||ft.exec(o),c=(o=mt.length,gt.length);if(l){for(h(e).iso=!0,t=0,n=o;t<n;t++)if(mt[t][1].exec(l[1])){r=mt[t][0],i=!1!==mt[t][2];break}if(null==r)e._isValid=!1;else{if(l[3]){for(t=0,n=c;t<n;t++)if(gt[t][1].exec(l[3])){s=(l[2]||" ")+gt[t][0];break}if(null==s)return void(e._isValid=!1)}if(i||null==s){if(l[4]){if(!pt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(s||"")+(a||""),Mt(e)}else e._isValid=!1}}else e._isValid=!1}function _t(e){var t,n,i=yt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(t=function(e,t,n,i,r,s){return e=[function(e){return(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e}(e),Oe.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)],s&&e.push(parseInt(s,10)),e}(i[4],i[3],i[2],i[5],i[6],i[7]),function(e,t,n){if(!e||$e.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;h(n).weekdayMismatch=!0,n._isValid=!1}(i[1],t,e)&&(e._a=t,e._tzm=(t=i[8],n=i[9],i=i[10],t?bt[t]:n?0:((t=parseInt(i,10))-(n=t%100))/100*60+n),e._d=Re.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0)):e._isValid=!1}function wt(e,t,n){return null!=e?e:null!=t?t:n}function kt(e){var n,i,r,s,a,o,l,c,u,d,f,p=[];if(!e._d){for(r=e,s=new Date(t.now()),i=r._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()],e._w&&null==e._a[ve]&&null==e._a[ge]&&(null!=(s=(r=e)._w).GG||null!=s.W||null!=s.E?(c=1,u=4,a=wt(s.GG,r._a[me],Ve(Lt(),1,4).year),o=wt(s.W,1),((l=wt(s.E,1))<1||7<l)&&(d=!0)):(c=r._locale._week.dow,u=r._locale._week.doy,f=Ve(Lt(),c,u),a=wt(s.gg,r._a[me],f.year),o=wt(s.w,f.week),null!=s.d?((l=s.d)<0||6<l)&&(d=!0):null!=s.e?(l=s.e+c,(s.e<0||6<s.e)&&(d=!0)):l=c),o<1||o>We(a,c,u)?h(r)._overflowWeeks=!0:null!=d?h(r)._overflowWeekday=!0:(f=Be(a,o,l,c,u),r._a[me]=f.year,r._dayOfYear=f.dayOfYear)),null!=e._dayOfYear&&(s=wt(e._a[me],i[me]),(e._dayOfYear>Me(s)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),d=Re(s,0,e._dayOfYear),e._a[ge]=d.getUTCMonth(),e._a[ve]=d.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=p[n]=i[n];for(;n<7;n++)e._a[n]=p[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[ye]&&0===e._a[be]&&0===e._a[xe]&&0===e._a[_e]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?Re:Fe).apply(null,p),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(h(e).weekdayMismatch=!0)}}function Mt(e){if(e._f===t.ISO_8601)xt(e);else if(e._f===t.RFC_2822)_t(e);else{e._a=[],h(e).empty=!0;for(var n,i,s,a,o,l=""+e._i,c=l.length,u=0,d=N(e._f,e._locale).match(D)||[],f=d.length,p=0;p<f;p++)i=d[p],(n=(l.match(ae(i,e))||[])[0])&&(0<(s=l.substr(0,l.indexOf(n))).length&&h(e).unusedInput.push(s),l=l.slice(l.indexOf(n)+n.length),u+=n.length),P[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),s=i,o=e,null!=(a=n)&&r(de,s)&&de[s](a,o._a,o,s)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=c-u,0<l.length&&h(e).unusedInput.push(l),e._a[ye]<=12&&!0===h(e).bigHour&&0<e._a[ye]&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ye]=function(e,t,n){return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[ye],e._meridiem),null!==(c=h(e).era)&&(e._a[me]=e._locale.erasConvertYear(c,e._a[me])),kt(e),dt(e)}}function St(e){var r,s,d,m=e._i,g=e._f;if(e._locale=e._locale||ut(e._l),null===m||void 0===g&&""===m)return p({nullInput:!0});if("string"==typeof m&&(e._i=m=e._locale.preparse(m)),x(m))return new b(dt(m));if(l(m))e._d=m;else if(n(g)){var v,_,w,k,M,S,A=e,L=!1,T=A._f.length;if(0===T)h(A).invalidFormat=!0,A._d=new Date(NaN);else{for(k=0;k<T;k++)M=0,S=!1,v=y({},A),null!=A._useUTC&&(v._useUTC=A._useUTC),v._f=A._f[k],Mt(v),f(v)&&(S=!0),M=(M+=h(v).charsLeftOver)+10*h(v).unusedTokens.length,h(v).score=M,L?M<w&&(w=M,_=v):(null==w||M<w||S)&&(w=M,_=v,S)&&(L=!0);u(A,_||v)}}else g?Mt(e):a(g=(m=e)._i)?m._d=new Date(t.now()):l(g)?m._d=new Date(g.valueOf()):"string"==typeof g?(s=m,null!==(r=vt.exec(s._i))?s._d=new Date(+r[1]):(xt(s),!1===s._isValid&&(delete s._isValid,_t(s),!1===s._isValid)&&(delete s._isValid,s._strict?s._isValid=!1:t.createFromInputFallback(s)))):n(g)?(m._a=c(g.slice(0),(function(e){return parseInt(e,10)})),kt(m)):i(g)?(r=m)._d||(d=void 0===(s=F(r._i)).day?s.date:s.day,r._a=c([s.year,s.month,d,s.hour,s.minute,s.second,s.millisecond],(function(e){return e&&parseInt(e,10)})),kt(r)):o(g)?m._d=new Date(g):t.createFromInputFallback(m);return f(e)||(e._d=null),e}function At(e,t,r,a,o){var l={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==r&&!1!==r||(a=r,r=void 0),(i(e)&&s(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=r,l._i=e,l._f=t,l._strict=a,(o=new b(dt(St(o=l))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Lt(e,t,n,i){return At(e,t,n,i,!1)}function Tt(e,t){var i,r;if(!(t=1===t.length&&n(t[0])?t[0]:t).length)return Lt();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}t.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),t.ISO_8601=function(){},t.RFC_2822=function(){},$=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Lt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()})),X=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Lt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p()}));var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Dt(e){var t=(e=F(e)).year||0,n=e.quarter||0,i=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,n,i=!1,s=Ct.length;for(t in e)if(r(e,t)&&(-1===Se.call(Ct,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<s;++n)if(e[Ct[n]]){if(i)return!1;parseFloat(e[Ct[n]])!==ce(e[Ct[n]])&&(i=!0)}return!0}(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*o*60*60,this._days=+a+7*s,this._months=+i+3*n+12*t,this._data={},this._locale=ut(),this._bubble()}function Et(e){return e instanceof Dt}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){Y(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+C(~~(e/60),2)+t+C(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),se("Z",te),se("ZZ",te),he(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=It(te,e)}));var Yt=/([\+\-]|\d\d)/gi;function It(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Yt)||["-",0,0])[1]+ce(e[2]))?0:"+"===e[0]?t:-t}function Nt(e,n){var i;return n._isUTC?(n=n.clone(),i=(x(e)||l(e)?e:Lt(e)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+i),t.updateOffset(n,!1),n):Lt(e).local()}function Ht(e){return-Math.round(e._d.getTimezoneOffset())}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,i=e;return Et(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:o(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=Ft.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:ce(t[ve])*n,h:ce(t[ye])*n,m:ce(t[be])*n,s:ce(t[xe])*n,ms:ce(Ot(1e3*t[_e]))*n}):(t=Rt.exec(e))?(n="-"===t[1]?-1:1,i={y:Bt(t[2],n),M:Bt(t[3],n),w:Bt(t[4],n),d:Bt(t[5],n),h:Bt(t[6],n),m:Bt(t[7],n),s:Bt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=function(e,t){var n;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?n=Vt(e,t):((n=Vt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Lt(i.from),Lt(i.to)),(i={}).ms=t.milliseconds,i.M=t.months),n=new Dt(i),Et(e)&&r(e,"_locale")&&(n._locale=e._locale),Et(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function Bt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Wt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),qt(this,zt(n,i),e),this}}function qt(e,n,i,r){var s=n._milliseconds,a=Ot(n._days);n=Ot(n._months);e.isValid()&&(r=null==r||r,n&&Ne(e,Te(e,"Month")+n*i),a&&Ce(e,"Date",Te(e,"Date")+a*i),s&&e._d.setTime(e._d.valueOf()+s*i),r)&&t.updateOffset(e,a||n)}function Ut(e){return"string"==typeof e||e instanceof String}function $t(e,t){var n,i;return e.date()<t.date()?-$t(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(i=e.clone().add(n,"months"))<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(1+n,"months")-i)))||0}function Xt(e){return void 0===e?this._locale._abbr:(null!=(e=ut(e))&&(this._locale=e),this)}function Gt(){return this._locale}zt.fn=Dt.prototype,zt.invalid=function(){return zt(NaN)},Ee=Wt(1,"add"),Ue=Wt(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Xe=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));var Zt=126227808e5;function Kt(e,t){return(e%t+t)%t}function Jt(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-Zt:new Date(e,t,n).valueOf()}function Qt(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-Zt:Date.UTC(e,t,n)}function en(e,t){return t.erasAbbrRegex(e)}function tn(){for(var e,t,n,i=[],r=[],s=[],a=[],o=this.eras(),l=0,c=o.length;l<c;++l)e=oe(o[l].name),t=oe(o[l].abbr),n=oe(o[l].narrow),r.push(e),i.push(t),s.push(n),a.push(e),a.push(t),a.push(n);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function nn(e,t){Y(0,[e,e.length],0,t)}function rn(e,t,n,i,r){var s;return null==e?Ve(this,i,r).year:(s=We(e,i,r),function(e,t,n,i,r){return t=Re((e=Be(e,t,n,i,r)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=s<t?s:t,n,i,r))}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),se("N",en),se("NN",en),se("NNN",en),se("NNNN",(function(e,t){return t.erasNameRegex(e)})),se("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),he(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){(i=n._locale.erasParse(e,i,n._strict))?h(n).era=i:h(n).invalidEra=e})),se("y",J),se("yy",J),se("yyy",J),se("yyyy",J),se("yo",(function(e,t){return t._eraYearOrdinalRegex||J})),he(["y","yy","yyy","yyyy"],me),he(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[me]=n._locale.eraYearOrdinalParse(e,r):t[me]=parseInt(e,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),nn("gggg","weekYear"),nn("ggggg","weekYear"),nn("GGGG","isoWeekYear"),nn("GGGGG","isoWeekYear"),se("G",Q),se("g",Q),se("GG",U,B),se("gg",U,B),se("GGGG",Z,W),se("gggg",Z,W),se("GGGGG",K,q),se("ggggg",K,q),fe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=ce(e)})),fe(["gg","GG"],(function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)})),Y("Q",0,"Qo","quarter"),se("Q",z),he("Q",(function(e,t){t[ge]=3*(ce(e)-1)})),Y("D",["DD",2],"Do","date"),se("D",U,ie),se("DD",U,B),se("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),he(["D","DD"],ve),he("Do",(function(e,t){t[ve]=ce(e.match(U)[0])})),Z=Le("Date",!0),Y("DDD",["DDDD",3],"DDDo","dayOfYear"),se("DDD",G),se("DDDD",V),he(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),Y("m",["mm",2],0,"minute"),se("m",U,re),se("mm",U,B),he(["m","mm"],be);var sn;W=Le("Minutes",!1),Y("s",["ss",2],0,"second"),se("s",U,re),se("ss",U,B),he(["s","ss"],xe),K=Le("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),se("S",G,z),se("SS",G,B),se("SSS",G,V),sn="SSSS";sn.length<=9;sn+="S")se(sn,J);function an(e,t){t[_e]=ce(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")he(sn,an);function on(e){return e}function ln(e,t,n,i){var r=ut();i=d().set(i,t);return r[n](i,e)}function cn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return ln(e,t,n,"month");for(var i=[],r=0;r<12;r++)i[r]=ln(e,r,n,"month");return i}function un(e,t,n,i){"boolean"==typeof e?o(t)&&(n=t,t=void 0):(t=e,e=!1,o(n=t)&&(n=t,t=void 0)),t=t||"";var r,s=ut(),a=e?s._week.dow:0,l=[];if(null!=n)return ln(t,(n+a)%7,i,"day");for(r=0;r<7;r++)l[r]=ln(t,(r+a)%7,i,"day");return l}q=Le("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName"),(ie=b.prototype).add=Ee,ie.calendar=function(e,a){1===arguments.length&&(arguments[0]?function(e){return x(e)||l(e)||Ut(e)||o(e)||function(e){var t=n(e),i=!1;return t&&(i=0===e.filter((function(t){return!o(t)&&Ut(e)})).length),t&&i}(e)||function(e){var t,n=i(e)&&!s(e),a=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=o.length;for(t=0;t<l;t+=1)a=a||r(e,o[t]);return n&&a}(e)||null==e}(arguments[0])?(e=arguments[0],a=void 0):function(e){for(var t=i(e)&&!s(e),n=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o=0;o<a.length;o+=1)n=n||r(e,a[o]);return t&&n}(arguments[0])&&(a=arguments[0],e=void 0):a=e=void 0);var c=Nt(e=e||Lt(),this).startOf("day");c=t.calendarFormat(this,c)||"sameElse",a=a&&(S(a[c])?a[c].call(this,e):a[c]);return this.format(a||this.localeData().calendar(c,this,Lt(e)))},ie.clone=function(){return new b(this)},ie.diff=function(e,t,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Nt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=j(t)){case"year":s=$t(this,i)/12;break;case"month":s=$t(this,i);break;case"quarter":s=$t(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:le(s)},ie.endOf=function(e){var n,i;if(void 0!==(e=j(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?Qt:Jt,e){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=36e5-Kt(n+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":n=this._d.valueOf(),n+=6e4-Kt(n,6e4)-1;break;case"second":n=this._d.valueOf(),n+=1e3-Kt(n,1e3)-1}this._d.setTime(n),t.updateOffset(this,!0)}return this},ie.format=function(e){return e=I(this,e=e||(this.isUtc()?t.defaultFormatUtc:t.defaultFormat)),this.localeData().postformat(e)},ie.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Lt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.fromNow=function(e){return this.from(Lt(),e)},ie.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Lt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.toNow=function(e){return this.to(Lt(),e)},ie.get=function(e){return S(this[e=j(e)])?this[e]():this},ie.invalidAt=function(){return h(this).overflow},ie.isAfter=function(e,t){return e=x(e)?e:Lt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},ie.isBefore=function(e,t){return e=x(e)?e:Lt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},ie.isBetween=function(e,t,n,i){return e=x(e)?e:Lt(e),t=x(t)?t:Lt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},ie.isSame=function(e,t){e=x(e)?e:Lt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},ie.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ie.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ie.isValid=function(){return f(this)},ie.lang=Xe,ie.locale=Xt,ie.localeData=Gt,ie.max=X,ie.min=$,ie.parsingFlags=function(){return u({},h(this))},ie.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)r(e,t)&&n.push({unit:t,priority:R[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=F(e)),i=n.length,s=0;s<i;s++)this[n[s].unit](e[n[s].unit]);else if(S(this[e=j(e)]))return this[e](t);return this},ie.startOf=function(e){var n,i;if(void 0!==(e=j(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?Qt:Jt,e){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Kt(n+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":n=this._d.valueOf(),n-=Kt(n,6e4);break;case"second":n=this._d.valueOf(),n-=Kt(n,1e3)}this._d.setTime(n),t.updateOffset(this,!0)}return this},ie.subtract=Ue,ie.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ie.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ie.toDate=function(){return new Date(this.valueOf())},ie.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?I(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(t,"Z")):I(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},ie.inspect=function(){var e,t,n;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ie.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ie.eraName=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},ie.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},ie.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},ie.eraYear=function(){for(var e,n,i=this.localeData().eras(),r=0,s=i.length;r<s;++r)if(e=i[r].since<=i[r].until?1:-1,n=this.clone().startOf("day").valueOf(),i[r].since<=n&&n<=i[r].until||i[r].until<=n&&n<=i[r].since)return(this.year()-t(i[r].since).year())*e+i[r].offset;return this.year()},ie.year=Ae,ie.isLeapYear=function(){return pe(this.year())},ie.weekYear=function(e){return rn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},ie.isoWeekYear=function(e){return rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ie.quarter=ie.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ie.month=He,ie.daysInMonth=function(){return De(this.year(),this.month())},ie.week=ie.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ie.isoWeek=ie.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ie.weeksInYear=function(){var e=this.localeData()._week;return We(this.year(),e.dow,e.doy)},ie.weeksInWeekYear=function(){var e=this.localeData()._week;return We(this.weekYear(),e.dow,e.doy)},ie.isoWeeksInYear=function(){return We(this.year(),1,4)},ie.isoWeeksInISOWeekYear=function(){return We(this.isoWeekYear(),1,4)},ie.date=Z,ie.day=ie.days=function(e){var t,n,i;return this.isValid()?(t=Te(this,"Day"),null!=e?(n=e,i=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=i.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},ie.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},ie.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},ie.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ie.hour=ie.hours=ne,ie.minute=ie.minutes=W,ie.second=ie.seconds=K,ie.millisecond=ie.milliseconds=q,ie.utcOffset=function(e,n,i){var r,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?s:Ht(this);if("string"==typeof e){if(null===(e=It(te,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&n&&(r=Ht(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==e&&(!n||this._changeInProgress?qt(this,zt(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},ie.utc=function(e){return this.utcOffset(0,e)},ie.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Ht(this),"m"),this},ie.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=It(ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},ie.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Lt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ie.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ie.isLocal=function(){return!!this.isValid()&&!this._isUTC},ie.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ie.isUtc=jt,ie.isUTC=jt,ie.zoneAbbr=function(){return this._isUTC?"UTC":""},ie.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ie.dates=w("dates accessor is deprecated. Use date instead.",Z),ie.months=w("months accessor is deprecated. Use month instead",He),ie.years=w("years accessor is deprecated. Use year instead",Ae),ie.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()})),ie.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){var e,t;return a(this._isDSTShifted)&&(y(e={},this),(e=St(e))._a?(t=(e._isUTC?d:Lt)(e._a),this._isDSTShifted=this.isValid()&&0<function(e,t){for(var n=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,s=0;s<n;s++)ce(e[s])!==ce(t[s])&&r++;return r+i}(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted})),(re=L.prototype).calendar=function(e,t,n){return S(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},re.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},re.invalidDate=function(){return this._invalidDate},re.ordinal=function(e){return this._ordinal.replace("%d",e)},re.preparse=on,re.postformat=on,re.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return S(r)?r(e,t,n,i):r.replace(/%d/i,e)},re.pastFuture=function(e,t){return S(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},re.set=function(e){var t,n;for(n in e)r(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},re.eras=function(e,n){for(var i,r=this._eras||ut("en")._eras,s=0,a=r.length;s<a;++s){if("string"==typeof r[s].since)i=t(r[s].since).startOf("day"),r[s].since=i.valueOf();switch(typeof r[s].until){case"undefined":r[s].until=1/0;break;case"string":i=t(r[s].until).startOf("day").valueOf(),r[s].until=i.valueOf()}}return r},re.erasParse=function(e,t,n){var i,r,s,a,o,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(s=l[i].name.toUpperCase(),a=l[i].abbr.toUpperCase(),o=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[i];break;case"NNNN":if(s===e)return l[i];break;case"NNNNN":if(o===e)return l[i]}else if(0<=[s,a,o].indexOf(e))return l[i]},re.erasConvertYear=function(e,n){var i=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*i},re.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||tn.call(this),e?this._erasAbbrRegex:this._erasRegex},re.erasNameRegex=function(e){return r(this,"_erasNameRegex")||tn.call(this),e?this._erasNameRegex:this._erasRegex},re.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||tn.call(this),e?this._erasNarrowRegex:this._erasRegex},re.months=function(e,t){return e?(n(this._months)?this._months:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"])[e.month()]:n(this._months)?this._months:this._months.standalone},re.monthsShort=function(e,t){return e?(n(this._monthsShort)?this._monthsShort:this._monthsShort[Pe.test(t)?"format":"standalone"])[e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},re.monthsParse=function(e,t,n){var i,r;if(this._monthsParseExact)return function(e,t,n){var i,r,s;e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Se.call(this._shortMonthsParse,e))?r:null:-1!==(r=Se.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=Se.call(this._shortMonthsParse,e))||-1!==(r=Se.call(this._longMonthsParse,e))?r:null:-1!==(r=Se.call(this._longMonthsParse,e))||-1!==(r=Se.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},re.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},re.monthsShortRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},re.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},re.firstDayOfYear=function(){return this._week.doy},re.firstDayOfWeek=function(){return this._week.dow},re.weekdays=function(e,t){return t=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?qe(t,this._week.dow):e?t[e.day()]:t},re.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},re.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},re.weekdaysParse=function(e,t,n){var i,r;if(this._weekdaysParseExact)return function(e,t,n){var i,r,s;e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Se.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=Se.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=Se.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=Se.call(this._weekdaysParse,e))||-1!==(r=Se.call(this._shortWeekdaysParse,e))||-1!==(r=Se.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=Se.call(this._shortWeekdaysParse,e))||-1!==(r=Se.call(this._weekdaysParse,e))||-1!==(r=Se.call(this._minWeekdaysParse,e))?r:null:-1!==(r=Se.call(this._minWeekdaysParse,e))||-1!==(r=Se.call(this._weekdaysParse,e))||-1!==(r=Se.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},re.weekdaysRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},re.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},re.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},re.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},re.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},lt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),t.lang=w("moment.lang is deprecated. Use moment.locale instead.",lt),t.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ut);var dn=Math.abs;function hn(e,t,n,i){return t=zt(t,n),e._milliseconds+=i*t._milliseconds,e._days+=i*t._days,e._months+=i*t._months,e._bubble()}function fn(e){return e<0?Math.floor(e):Math.ceil(e)}function pn(e){return 4800*e/146097}function mn(e){return 146097*e/4800}function gn(e){return function(){return this.as(e)}}function vn(e){return function(){return this.isValid()?this._data[e]:NaN}}z=gn("ms"),B=gn("s"),G=gn("m"),V=gn("h"),Ee=gn("d"),X=gn("w"),$=gn("M"),Ue=gn("Q"),ne=gn("y"),W=z;K=vn("milliseconds"),q=vn("seconds"),Z=vn("minutes"),Ae=vn("hours"),re=vn("days");var yn=vn("months"),bn=vn("years"),xn=Math.round,_n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var wn=Math.abs;function kn(e){return(0<e)-(e<0)||+e}function Mn(){var e,t,n,i,r,s,a,o,l,c,u;return this.isValid()?(e=wn(this._milliseconds)/1e3,t=wn(this._days),n=wn(this._months),(o=this.asSeconds())?(i=le(e/60),r=le(i/60),e%=60,i%=60,s=le(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=kn(this._months)!==kn(o)?"-":"",c=kn(this._days)!==kn(o)?"-":"",u=kn(this._milliseconds)!==kn(o)?"-":"",(o<0?"-":"")+"P"+(s?l+s+"Y":"")+(n?l+n+"M":"")+(t?c+t+"D":"")+(r||i||e?"T":"")+(r?u+r+"H":"")+(i?u+i+"M":"")+(e?u+a+"S":"")):"P0D"):this.localeData().invalidDate()}function Sn(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5}function An(e){return function(t,n,i,r){var s=Sn(t),a=En[e][Sn(t)];return(a=2===s?a[n?0:1]:a).replace(/%d/i,t)}}function Ln(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5}function Tn(e){return function(t,n,i,r){var s=Ln(t),a=Pn[e][Ln(t)];return(a=2===s?a[n?0:1]:a).replace(/%d/i,t)}}function Cn(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5}function Dn(e){return function(t,n,i,r){var s=Cn(t),a=Rn[e][Cn(t)];return(a=2===s?a[n?0:1]:a).replace(/%d/i,t)}}var En=((li=Dt.prototype).isValid=function(){return this._isValid},li.abs=function(){var e=this._data;return this._milliseconds=dn(this._milliseconds),this._days=dn(this._days),this._months=dn(this._months),e.milliseconds=dn(e.milliseconds),e.seconds=dn(e.seconds),e.minutes=dn(e.minutes),e.hours=dn(e.hours),e.months=dn(e.months),e.years=dn(e.years),this},li.add=function(e,t){return hn(this,e,t,1)},li.subtract=function(e,t){return hn(this,e,t,-1)},li.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(mn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},li.asMilliseconds=z,li.asSeconds=B,li.asMinutes=G,li.asHours=V,li.asDays=Ee,li.asWeeks=X,li.asMonths=$,li.asQuarters=Ue,li.asYears=ne,li.valueOf=W,li._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*fn(mn(n)+t),n=t=0),i.milliseconds=e%1e3,e=le(e/1e3),i.seconds=e%60,e=le(e/60),i.minutes=e%60,e=le(e/60),i.hours=e%24,t+=le(e/24),n+=e=le(pn(t)),t-=fn(mn(e)),e=le(n/12),n%=12,i.days=t,i.months=n,i.years=e,this},li.clone=function(){return zt(this)},li.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},li.milliseconds=K,li.seconds=q,li.minutes=Z,li.hours=Ae,li.days=re,li.weeks=function(){return le(this.days()/7)},li.months=yn,li.years=bn,li.humanize=function(e,t){var n,i;return this.isValid()?(n=!1,i=_n,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(i=Object.assign({},_n,t),null!=t.s)&&null==t.ss&&(i.ss=t.s-1),t=function(e,t,n,i){var r=zt(e).abs(),s=xn(r.as("s")),a=xn(r.as("m")),o=xn(r.as("h")),l=xn(r.as("d")),c=xn(r.as("M")),u=xn(r.as("w"));return r=xn(r.as("y")),s=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||(a<=1?["m"]:a<n.m&&["mm",a])||(o<=1?["h"]:o<n.h&&["hh",o])||(l<=1?["d"]:l<n.d&&["dd",l]),(s=(s=null!=n.w?s||(u<=1?["w"]:u<n.w&&["ww",u]):s)||(c<=1?["M"]:c<n.M&&["MM",c])||(r<=1?["y"]:["yy",r]))[2]=t,s[3]=0<+e,s[4]=i,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply(null,s)}(this,!n,i,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},li.toISOString=Mn,li.toString=Mn,li.toJSON=Mn,li.locale=Xt,li.localeData=Gt,li.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mn),li.lang=Xe,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),se("x",Q),se("X",/[+-]?\d+(\.\d{1,3})?/),he("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),he("x",(function(e,t,n){n._d=new Date(ce(e))})),t.version="2.30.1",e=Lt,t.fn=ie,t.min=function(){return Tt("isBefore",[].slice.call(arguments,0))},t.max=function(){return Tt("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(e){return Lt(1e3*e)},t.months=function(e,t){return cn(e,t,"months")},t.isDate=l,t.locale=lt,t.invalid=p,t.duration=zt,t.isMoment=x,t.weekdays=function(e,t,n){return un(e,t,n,"weekdays")},t.parseZone=function(){return Lt.apply(null,arguments).parseZone()},t.localeData=ut,t.isDuration=Et,t.monthsShort=function(e,t){return cn(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return un(e,t,n,"weekdaysMin")},t.defineLocale=ct,t.updateLocale=function(e,t){var n,i;return null!=t?(i=it,null!=rt[e]&&null!=rt[e].parentLocale?rt[e].set(A(rt[e]._config,t)):(t=A(i=null!=(n=ot(e))?n._config:i,t),null==n&&(t.abbr=e),(i=new L(t)).parentLocale=rt[e],rt[e]=i),lt(e)):null!=rt[e]&&(null!=rt[e].parentLocale?(rt[e]=rt[e].parentLocale,e===lt()&&lt(e)):null!=rt[e]&&delete rt[e]),rt[e]},t.locales=function(){return T(rt)},t.weekdaysShort=function(e,t,n){return un(e,t,n,"weekdaysShort")},t.normalizeUnits=j,t.relativeTimeRounding=function(e){return void 0===e?xn:"function"==typeof e&&(xn=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==_n[e]&&(void 0===t?_n[e]:(_n[e]=t,"s"===e&&(_n.ss=t-1),!0))},t.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},t.prototype=ie,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),{s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]}),On=(z=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],t.defineLocale("ar-dz",{months:z,monthsShort:z,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:An("s"),ss:An("s"),m:An("m"),mm:An("m"),h:An("h"),hh:An("h"),d:An("d"),dd:An("d"),M:An("M"),MM:An("M"),y:An("y"),yy:An("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}}),t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}}),{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"}),Pn={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Yn=(B=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],t.defineLocale("ar-ly",{months:B,monthsShort:B,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Tn("s"),ss:Tn("s"),m:Tn("m"),mm:Tn("m"),h:Tn("h"),hh:Tn("h"),d:Tn("d"),dd:Tn("d"),M:Tn("M"),MM:Tn("M"),y:Tn("y"),yy:Tn("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return On[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}}),t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),In={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Nn=(t.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return In[e]})).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,(function(e){return In[e]})).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return Yn[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),Hn={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},jn=(t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return Hn[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return Nn[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}}),t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),Fn={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Rn={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},zn=(G=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],t.defineLocale("ar",{months:G,monthsShort:G,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Dn("s"),ss:Dn("s"),m:Dn("m"),mm:Dn("m"),h:Dn("h"),hh:Dn("h"),d:Dn("d"),dd:Dn("d"),M:Dn("M"),MM:Dn("M"),y:Dn("y"),yy:Dn("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return Fn[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return jn[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}}),{1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"});function Bn(e,t,n){return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(e=+e,t=(t={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n]).split("_"),e%10==1&&e%100!=11?t[0]:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?t[1]:t[2])}t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){var t;return 0===e?e+"-ıncı":e+(zn[t=e%10]||zn[e%100-t]||zn[100<=e?100:null])},week:{dow:1,doy:7}}),t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:Bn,mm:Bn,h:Bn,hh:Bn,d:"дзень",dd:Bn,M:"месяц",MM:Bn,y:"год",yy:Bn},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}}),t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0==n?e+"-ен":10<n&&n<20?e+"-ти":1==t?e+"-ви":2==t?e+"-ри":7==t||8==t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});var Vn={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Wn={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},qn=(t.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(e){return Wn[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return Vn[e]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?3<=e?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}}),{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}),Un={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},$n=(t.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(e){return Un[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return qn[e]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&4<=e||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}}),{1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"}),Xn={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};function Gn(e,t,n){return e+" "+(n={mm:"munutenn",MM:"miz",dd:"devezh"}[n],2!==e?n:void 0!==(e={m:"v",b:"v",d:"z"})[n.charAt(0)]?e[n.charAt(0)]+n.substring(1):n)}function Zn(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return i+(1===e||2!==e&&3!==e&&4!==e?"minuta":"minute");case"h":return"jedan sat";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e||2!==e&&3!==e&&4!==e?"godina":"godine")}}function Kn(e){return 1<e&&e<5&&1!=~~(e/10)}function Jn(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"ss":return t||i?r+(Kn(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(Kn(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(Kn(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(Kn(e)?"dny":"dní"):r+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?r+(Kn(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(Kn(e)?"roky":"let"):r+"lety"}}function Qn(e,t,n,i){return e={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]},t?e[n][0]:e[n][1]}function ei(e,t,n,i){return e={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]},t?e[n][0]:e[n][1]}function ti(e,t,n,i){return e={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]},t?e[n][0]:e[n][1]}t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,(function(e){return Xn[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return $n[e]}))},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&4<=e||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),V=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Ee=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,X=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i],t.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:X,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:X,monthsRegex:Ee,monthsShortRegex:Ee,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:V,longMonthsParse:V,shortMonthsParse:V,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:Gn,h:"un eur",hh:"%d eur",d:"un devezh",dd:Gn,M:"ur miz",MM:Gn,y:"ur bloaz",yy:function(e){switch(function e(t){return 9<t?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}}),t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Zn,m:function(e,t,n,i){if("m"===n)return t?"jedna minuta":i?"jednu minutu":"jedne minute"},mm:Zn,h:Zn,hh:Zn,d:"dan",dd:Zn,M:"mjesec",MM:Zn,y:"godinu",yy:Zn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){return e+("w"!==t&&"W"!==t?1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è":"a")},week:{dow:1,doy:4}}),$={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},Ue="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),ne=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],W=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,t.defineLocale("cs",{months:$,monthsShort:Ue,monthsRegex:W,monthsShortRegex:W,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:ne,longMonthsParse:ne,shortMonthsParse:ne,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Jn,ss:Jn,m:Jn,mm:Jn,h:Jn,hh:Jn,d:Jn,dd:Jn,M:Jn,MM:Jn,y:Jn,yy:Jn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"рен":/\u04ab\u0443\u043b$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return 20<e?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":0<e&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}}),t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Qn,mm:"%d Minuten",h:Qn,hh:"%d Stunden",d:Qn,dd:Qn,w:Qn,ww:"%d Wochen",M:Qn,MM:Qn,y:Qn,yy:Qn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:ei,mm:"%d Minuten",h:ei,hh:"%d Stunden",d:ei,dd:ei,w:ei,ww:"%d Wochen",M:ei,MM:ei,y:ei,yy:ei},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:ti,mm:"%d Minuten",h:ti,hh:"%d Stunden",d:ti,dd:ti,w:ti,ww:"%d Wochen",M:ti,MM:ti,y:ti,yy:ti},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),K=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],q=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],t.defineLocale("dv",{months:K,monthsShort:K,weekdays:q,weekdaysShort:q,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}}),t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?("string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl:this._monthsNominativeEl)[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return 11<e?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){e=this._calendarEl[e];var n,i=t&&t.hours();return n=e,(e="undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)?e.apply(t):e).replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%dη",week:{dow:1,doy:4}}),t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:0,doy:4}}),t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:0,doy:6}}),t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return 11<e?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var ni="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ii="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ri=(Z=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ae=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?(/-MMM-/.test(t)?ii:ni)[e.month()]:ni},monthsRegex:Ae,monthsShortRegex:Ae,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Z,longMonthsParse:Z,shortMonthsParse:Z,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_")),si="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ai=(re=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],yn=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?(/-MMM-/.test(t)?si:ri)[e.month()]:ri},monthsRegex:yn,monthsShortRegex:yn,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:re,longMonthsParse:re,shortMonthsParse:re,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"}),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_")),oi="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),li=(bn=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i),ci=(t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?(/-MMM-/.test(t)?oi:ai)[e.month()]:ai},monthsRegex:li,monthsShortRegex:li,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:bn,longMonthsParse:bn,shortMonthsParse:bn,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:6}}),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_")),ui="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");Xe=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Q=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;function di(e,t,n,i){return e={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]},t?e[n][2]||e[n][1]:i?e[n][0]:e[n][1]}t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?(/-MMM-/.test(t)?ui:ci)[e.month()]:ci},monthsRegex:Q,monthsShortRegex:Q,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Xe,longMonthsParse:Xe,shortMonthsParse:Xe,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"}),t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:di,ss:di,m:di,mm:di,h:di,hh:di,d:di,dd:"%d päeva",M:di,MM:di,y:di,yy:di},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var hi={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},fi={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},pi=(t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,(function(e){return fi[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return hi[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%dم",week:{dow:6,doy:12}}),"nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" ")),mi=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",pi[7],pi[8],pi[9]];function gi(e,t,n,i){var r="";switch(n){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":r=i?"sekunnin":"sekuntia";break;case"m":return i?"minuutin":"minuutti";case"mm":r=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":r=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":r=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":r=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":r=i?"vuoden":"vuotta"}return n=i,(e<10?(n?mi:pi)[e]:e)+" "+r}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:gi,ss:gi,m:gi,mm:gi,h:gi,hh:gi,d:gi,dd:gi,M:gi,MM:gi,y:gi,yy:gi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}}),t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});ie=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,z=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];var vi=(t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:ie,monthsShortRegex:ie,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:z,longMonthsParse:z,shortMonthsParse:z,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}}),"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_")),yi="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");function bi(e,t,n,i){return e={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]},i?e[n][0]:e[n][1]}function xi(e,t,n,i){return e={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]},i?e[n][0]:e[n][1]}t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,t){return e?(/-MMM-/.test(t)?yi:vi)[e.month()]:vi},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),t.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:bi,ss:bi,m:bi,mm:bi,h:bi,hh:bi,d:bi,dd:bi,M:bi,MM:bi,y:bi,yy:bi},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?12<e?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}}),t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:xi,ss:xi,m:xi,mm:xi,h:xi,hh:xi,d:xi,dd:xi,M:xi,MM:xi,y:xi,yy:xi},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?12<e?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});var _i={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},wi={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},ki=(t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,(function(e){return wi[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return _i[e]}))},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?10<=e?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}}),t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),Mi={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};B=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];function Si(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e||2!==e&&3!==e&&4!==e?"minuta":"minute");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e||2!==e&&3!==e&&4!==e?"godina":"godine")}}t.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:B,longMonthsParse:B,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return Mi[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return ki[e]}))},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?10<=e?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}}),t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Si,m:Si,mm:Si,h:Si,hh:Si,d:"dan",dd:Si,M:"mjesec",MM:Si,y:"godinu",yy:Si},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Ai="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function Li(e,t,n,i){var r=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(i||t)?" másodperc":" másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return r+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return r+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return r+(i||t?" év":" éve")}return""}function Ti(e){return(e?"":"[múlt] ")+"["+Ai[this.day()]+"] LT[-kor]"}function Ci(e){return e%100==11||e%10!=1}function Di(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return Ci(e)?r+(t||i?"sekúndur":"sekúndum"):r+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":return Ci(e)?r+(t||i?"mínútur":"mínútum"):t?r+"mínúta":r+"mínútu";case"hh":return Ci(e)?r+(t||i?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return t?"dagur":i?"dag":"degi";case"dd":return Ci(e)?t?r+"dagar":r+(i?"daga":"dögum"):t?r+"dagur":r+(i?"dag":"degi");case"M":return t?"mánuður":i?"mánuð":"mánuði";case"MM":return Ci(e)?t?r+"mánuðir":r+(i?"mánuði":"mánuðum"):t?r+"mánuður":r+(i?"mánuð":"mánuði");case"y":return t||i?"ár":"ári";case"yy":return Ci(e)?r+(t||i?"ár":"árum"):r+(t||i?"ár":"ári")}}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return Ti.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return Ti.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:Li,ss:Li,m:Li,mm:Li,h:Li,hh:Li,d:Li,dd:Li,M:Li,MM:Li,y:Li,yy:Li},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}}),t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?11<=e?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}}),t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:Di,ss:Di,m:Di,mm:Di,h:"klukkustund",hh:Di,d:Di,dd:Di,M:Di,MM:Di,y:Di,yy:Di},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?11<=e?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),t.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"ის წინ"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});var Ei={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},Oi=(t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(Ei[e]||Ei[e%10]||Ei[100<=e?100:null])},week:{dow:1,doy:7}}),{1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"}),Pi={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},Yi=(t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,(function(e){return Pi[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return Oi[e]}))},week:{dow:1,doy:4}}),{1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"}),Ii={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};function Ni(e,t,n,i){return e={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]},t?e[n][0]:e[n][1]}t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,(function(e){return Ii[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return Yi[e]}))},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?10<=e?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}}),t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}}),t.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:Ni,ss:Ni,m:Ni,mm:Ni,h:Ni,hh:Ni,d:Ni,dd:Ni,w:Ni,ww:Ni,M:Ni,MM:Ni,y:Ni,yy:Ni},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(e,t){return(t=t.toLowerCase()).includes("w")||t.includes("m")?e+".":e+(e=(t=""+(t=e)).substring(t.length-1),12==(t=1<t.length?t.substring(t.length-2):"")||13==t||"2"!=e&&"3"!=e&&"50"!=t&&"70"!=e&&"80"!=e?"ê":"yê")},week:{dow:1,doy:4}});var Hi={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ji={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Fi=(G=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],t.defineLocale("ku",{months:G,monthsShort:G,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return ji[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return Hi[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}}),{0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"});function Ri(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function zi(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;var t;if(e<100)return zi(0==(t=e%10)?e/10:t);if(e<1e4){for(;10<=e;)e/=10;return zi(e)}return zi(e/=1e3)}t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(Fi[e]||Fi[e%10]||Fi[100<=e?100:null])},week:{dow:1,doy:7}}),t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return zi(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return zi(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:Ri,mm:"%d Minutten",h:Ri,hh:"%d Stonnen",d:Ri,dd:"%d Deeg",M:Ri,MM:"%d Méint",y:Ri,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});var Bi={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function Vi(e,t,n,i){return t?qi(n)[0]:i?qi(n)[1]:qi(n)[2]}function Wi(e){return e%10==0||10<e&&e<20}function qi(e){return Bi[e].split("_")}function Ui(e,t,n,i){var r=e+" ";return 1===e?r+Vi(0,t,n[0],i):t?r+(Wi(e)?qi(n)[1]:qi(n)[0]):i?r+qi(n)[1]:r+(Wi(e)?qi(n)[1]:qi(n)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},ss:Ui,m:Vi,mm:Ui,h:Vi,hh:Ui,d:Vi,dd:Ui,M:Vi,MM:Ui,y:Vi,yy:Ui},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});var $i={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function Xi(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function Gi(e,t,n){return e+" "+Xi($i[n],e,t)}function Zi(e,t,n){return Xi($i[n],e,t)}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:Gi,m:Zi,mm:Gi,h:Zi,hh:Gi,d:Zi,dd:Gi,M:Zi,MM:Gi,y:Zi,yy:Gi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ki={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,n){var i=Ki.words[n];return 1===n.length?t?i[0]:i[1]:e+" "+Ki.correctGrammaticalCase(e,i)}};function Ji(e,t,n,i){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:Ki.translate,m:Ki.translate,mm:Ki.translate,h:Ki.translate,hh:Ki.translate,d:"dan",dd:Ki.translate,M:"mjesec",MM:Ki.translate,y:"godinu",yy:Ki.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0==n?e+"-ен":10<n&&n<20?e+"-ти":1==t?e+"-ви":2==t?e+"-ри":7==t||8==t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&4<=e||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}}),t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:Ji,ss:Ji,m:Ji,mm:Ji,h:Ji,hh:Ji,d:Ji,dd:Ji,M:Ji,MM:Ji,y:Ji,yy:Ji},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});var Qi={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},er={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function tr(e,t,n,i){var r="";if(t)switch(n){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(n){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,e)}t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:tr,ss:tr,m:tr,mm:tr,h:tr,hh:tr,d:tr,dd:tr,M:tr,MM:tr,y:tr,yy:tr},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return er[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return Qi[e]}))},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?12<=e?e:e+12:void 0},meridiem:function(e,t,n){return 0<=e&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});var nr={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},ir={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},rr=(t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,(function(e){return ir[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return nr[e]}))},week:{dow:1,doy:4}}),t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),sr={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},ar=(t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return sr[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return rr[e]}))},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?10<=e?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}}),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_")),or="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),lr=(X=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Ee=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?(/-MMM-/.test(t)?or:ar)[e.month()]:ar},monthsRegex:Ee,monthsShortRegex:Ee,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:X,longMonthsParse:X,shortMonthsParse:X,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_")),cr="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ur=(V=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],$=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?(/-MMM-/.test(t)?cr:lr)[e.month()]:lr},monthsRegex:$,monthsShortRegex:$,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:V,longMonthsParse:V,shortMonthsParse:V,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){return e+("w"!==t&&"W"!==t?1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è":"a")},week:{dow:1,doy:4}}),{1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"}),dr={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},hr=(t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,(function(e){return dr[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return ur[e]}))},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?10<=e?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}}),"styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_")),fr="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");Ue=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function pr(e){return e%10<5&&1<e%10&&~~(e/10)%10!=1}function mr(e,t,n){var i=e+" ";switch(n){case"ss":return i+(pr(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(pr(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(pr(e)?"godziny":"godzin");case"ww":return i+(pr(e)?"tygodnie":"tygodni");case"MM":return i+(pr(e)?"miesiące":"miesięcy");case"yy":return i+(pr(e)?"lata":"lat")}}function gr(e,t,n){return e+(20<=e%100||100<=e&&e%100==0?" de ":" ")+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}function vr(e,t,n){return"m"===n?t?"минута":"минуту":e+" "+(e=+e,t=(t={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n]).split("_"),e%10==1&&e%100!=11?t[0]:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?t[1]:t[2])}function yr(e){return 1<e&&e<5}function br(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?r+(yr(e)?"sekundy":"sekúnd"):r+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?r+(yr(e)?"minúty":"minút"):r+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(yr(e)?"hodiny":"hodín"):r+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?r+(yr(e)?"dni":"dní"):r+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?r+(yr(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?r+(yr(e)?"roky":"rokov"):r+"rokmi"}}function xr(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}t.defineLocale("pl",{months:function(e,t){return e?(/D MMMM/.test(t)?fr:hr)[e.month()]:hr},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:Ue,longMonthsParse:Ue,shortMonthsParse:Ue,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:mr,m:mr,mm:mr,h:mr,hh:mr,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:mr,M:"miesiąc",MM:mr,y:"rok",yy:mr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",invalidDate:"Data inválida"}),t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:gr,m:"un minut",mm:gr,h:"o oră",hh:gr,d:"o zi",dd:gr,w:"o săptămână",ww:gr,M:"o lună",MM:gr,y:"un an",yy:gr},week:{dow:1,doy:7}}),W=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i],t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:W,longMonthsParse:W,shortMonthsParse:W,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:vr,m:vr,mm:vr,h:"час",hh:vr,d:"день",dd:vr,w:"неделя",ww:vr,M:"месяц",MM:vr,y:"год",yy:vr},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}}),ne=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],K=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],t.defineLocale("sd",{months:ne,monthsShort:ne,weekdays:K,weekdaysShort:K,weekdaysMin:K,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" වැනි"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return 11<e?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}}),q="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),Ae="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),t.defineLocale("sk",{months:q,monthsShort:Ae,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:br,ss:br,m:br,mm:br,h:br,hh:br,d:br,dd:br,M:br,MM:br,y:br,yy:br},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:xr,ss:xr,m:xr,mm:xr,h:xr,hh:xr,d:xr,dd:xr,M:xr,MM:xr,y:xr,yy:xr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var _r={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return 1<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,t,n,i){var r=_r.words[n];return 1===n.length?"y"===n&&t?"једна година":i||t?r[0]:r[1]:(i=_r.correctGrammaticalCase(e,r),"yy"===n&&t&&"годину"===i?e+" година":e+" "+i)}},wr=(t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:_r.translate,m:_r.translate,mm:_r.translate,h:_r.translate,hh:_r.translate,d:_r.translate,dd:_r.translate,M:_r.translate,MM:_r.translate,y:_r.translate,yy:_r.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return 1<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,t,n,i){var r=wr.words[n];return 1===n.length?"y"===n&&t?"jedna godina":i||t?r[0]:r[1]:(i=wr.correctGrammaticalCase(e,r),"yy"===n&&t&&"godinu"===i?e+" godina":e+" "+i)}}),kr=(t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:wr.translate,m:wr.translate,mm:wr.translate,h:wr.translate,hh:wr.translate,d:wr.translate,dd:wr.translate,M:wr.translate,MM:wr.translate,y:wr.translate,yy:wr.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?11<=e?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)||1!=t&&2!=t?":e":":a")},week:{dow:1,doy:4}}),t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}}),{1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"}),Mr={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},Sr=(t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,(function(e){return Mr[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return kr[e]}))},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&10<=e?e:e+12},week:{dow:0,doy:6}}),t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%dవ",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?10<=e?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),{0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"}),Ar=(t.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?11<=e?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(Sr[e]||Sr[e%10]||Sr[100<=e?100:null])},week:{dow:1,doy:7}}),t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),{1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"}),Lr=(t.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:var n;return 0===e?e+"'unjy":e+(Ar[n=e%10]||Ar[e%100-n]||Ar[100<=e?100:null])}},week:{dow:1,doy:7}}),t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),"pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"));function Tr(e,t,n,i){var r=function(e){var t=Math.floor(e%1e3/100),n=Math.floor(e%100/10),i=(e=e%10,"");return 0<t&&(i+=Lr[t]+"vatlh"),0<n&&(i+=(""!==i?" ":"")+Lr[n]+"maH"),0<e&&(i+=(""!==i?" ":"")+Lr[e]),""===i?"pagh":i}(e);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:Tr,m:"wa’ tup",mm:Tr,h:"wa’ rep",hh:Tr,d:"wa’ jaj",dd:Tr,M:"wa’ jar",MM:Tr,y:"wa’ DIS",yy:Tr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Cr={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};function Dr(e,t,n,i){return e={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]},i||t?e[n][0]:e[n][1]}function Er(e,t,n){return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(e=+e,t=(t={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n]).split("_"),e%10==1&&e%100!=11?t[0]:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?t[1]:t[2])}function Or(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:var n;return 0===e?e+"'ıncı":e+(Cr[n=e%10]||Cr[e%100-n]||Cr[100<=e?100:null])}},week:{dow:1,doy:7}}),t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return 11<e?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:Dr,ss:Dr,m:Dr,mm:Dr,h:Dr,hh:Dr,d:Dr,dd:Dr,M:Dr,MM:Dr,y:Dr,yy:Dr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t||"چۈشتىن كېيىن"!==t&&"كەچ"!==t&&11<=e?e:e+12},meridiem:function(e,t,n){return(e=100*e+t)<600?"يېرىم كېچە":e<900?"سەھەر":e<1130?"چۈشتىن بۇرۇن":e<1230?"چۈش":e<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}}),t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Or("[Сьогодні "),nextDay:Or("[Завтра "),lastDay:Or("[Вчора "),nextWeek:Or("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Or("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Or("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:Er,m:Er,mm:Er,h:"годину",hh:Er,d:"день",dd:Er,M:"місяць",MM:Er,y:"рік",yy:Er},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}}),Z=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],yn=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],t.defineLocale("ur",{months:Z,monthsShort:Z,weekdays:yn,weekdaysShort:yn,weekdaysMin:yn,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t||"下午"!==t&&"晚上"!==t&&11<=e?e:e+12},meridiem:function(e,t,n){return(e=100*e+t)<600?"凌晨":e<900?"早上":e<1130?"上午":e<1230?"中午":e<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){return(e=100*e+t)<600?"凌晨":e<900?"早上":e<1200?"上午":1200===e?"中午":e<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){return(e=100*e+t)<600?"凌晨":e<900?"早上":e<1130?"上午":e<1230?"中午":e<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){return(e=100*e+t)<600?"凌晨":e<900?"早上":e<1130?"上午":e<1230?"中午":e<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),t.locale("en"),t})),function(e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():window.wNumb=e()}((function(){"use strict";var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function r(e){return"number"==typeof e&&isFinite(e)}function s(e,n,i,s,a,o,l,c,u,d,h,f){var p,m,g,v,y,b=f,x="",_="";return o&&(f=o(f)),!!r(f)&&(!1!==e&&0===parseFloat(f.toFixed(e))&&(f=0),f<0&&(p=!0,f=Math.abs(f)),!1!==e&&(y=e,v=(v=f).toString().split("e"),f=(+((v=(v=Math.round(+(v[0]+"e"+(v[1]?+v[1]+y:y)))).toString().split("e"))[0]+"e"+(v[1]?+v[1]-y:-y))).toFixed(y)),-1!==(f=f.toString()).indexOf(".")?(g=(m=f.split("."))[0],i&&(x=i+m[1])):g=f,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),p&&c&&(_+=c),s&&(_+=s),p&&u&&(_+=u),_+=g,_+=x,a&&(_+=a),d&&(_=d(_,b)),_)}function a(e,t,i,s,a,o,l,c,u,d,h,f){var p,m="";return h&&(f=h(f)),!(!f||"string"!=typeof f)&&(c&&n(f,c)&&(f=f.replace(c,""),p=!0),s&&n(f,s)&&(f=f.replace(s,"")),u&&n(f,u)&&(f=f.replace(u,""),p=!0),a&&function(e,t){return e.slice(-1*t.length)===t}(f,a)&&(f=f.slice(0,-1*a.length)),t&&(f=f.split(t).join("")),i&&(f=f.replace(i,".")),p&&(m+="-"),""!==(m=(m+=f).replace(/[^0-9\.\-.]/g,""))&&(m=Number(m),l&&(m=l(m)),!!r(m)&&m))}function o(t,n,i){var r,s=[];for(r=0;r<e.length;r+=1)s.push(t[e[r]]);return s.push(i),n.apply("",s)}return function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){var n,r,s,a={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(s=t[r=e[n]]))"negative"!==r||a.negativeBefore?"mark"===r&&"."!==a.thousand?a[r]=".":a[r]=!1:a[r]="-";else if("decimals"===r){if(!(s>=0&&s<8))throw new Error(r);a[r]=s}else if("encoder"===r||"decoder"===r||"edit"===r||"undo"===r){if("function"!=typeof s)throw new Error(r);a[r]=s}else{if("string"!=typeof s)throw new Error(r);a[r]=s}return i(a,"mark","thousand"),i(a,"prefix","negative"),i(a,"prefix","negativeBefore"),a}(n),this.to=function(e){return o(n,s,e)},this.from=function(e){return o(n,a,e)})}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";function e(e){var n,i;function r(n,i){try{var a=e[n](i),o=a.value,l=o instanceof t;Promise.resolve(l?o.v:o).then((function(t){if(l){var i="return"===n?"return":"next";if(!o.k||t.done)return r(i,t);t=e[i](t).value}s(a.done?"return":"normal",t)}),(function(e){r("throw",e)}))}catch(e){s("throw",e)}}function s(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?r(n.key,n.arg):i=null}this._invoke=function(e,t){return new Promise((function(s,a){var o={key:e,arg:t,resolve:s,reject:a,next:null};i?i=i.next=o:(n=i=o,r(e,t))}))},"function"!=typeof e.return&&(this.return=void 0)}function t(e,t){this.v=e,this.k=t}function n(e){var n={},i=!1;function r(n,r){return i=!0,r=new Promise((function(t){t(e[n](r))})),{done:!1,value:new t(r,1)}}return n["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},n.next=function(e){return i?(i=!1,e):r("next",e)},"function"==typeof e.throw&&(n.throw=function(e){if(i)throw i=!1,e;return r("throw",e)}),"function"==typeof e.return&&(n.return=function(e){return i?(i=!1,e):r("return",e)}),n}function i(e){var t,n,i,s=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);s--;){if(n&&null!=(t=e[n]))return t.call(e);if(i&&null!=(t=e[i]))return new r(t.call(e));n="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function r(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return r=function(e){this.s=e,this.n=e.next},r.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new r(e)}function s(e){return new t(e,0)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(){l=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var s=t&&t.prototype instanceof v?t:v,a=Object.create(s.prototype),o=new D(i||[]);return r(a,"_invoke",{value:A(e,n,o)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",p="executing",m="completed",g={};function v(){}function y(){}function b(){}var x={};u(x,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,a)&&(x=w);var k=b.prototype=v.prototype=Object.create(x);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,s,a,o){var l=h(e[r],e,s);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,o)}),(function(e){n("throw",e,a,o)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,o)}))}o(l.arg)}var s;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return s=s?s.then(r,r):r()}})}function A(t,n,i){var r=f;return function(s,a){if(r===p)throw new Error("Generator is already running");if(r===m){if("throw"===s)throw a;return{value:e,done:!0}}for(i.method=s,i.arg=a;;){var o=i.delegate;if(o){var l=L(o,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===f)throw r=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var c=h(t,n,i);if("normal"===c.type){if(r=i.done?m:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=m,i.method="throw",i.arg=c.arg)}}}function L(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=h(r,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,g;var a=s.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function E(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,r(k,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},M(S.prototype),u(S.prototype,o,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,i,r,s){void 0===s&&(s=Promise);var a=new S(d(e,n,i,r),s);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(k),u(k,c,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=E,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return o.type="throw",o.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:E(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function c(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(t){return function(){return new e(t.apply(this,arguments))}}function h(e,t,n,i,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(i,r)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var s=e.apply(t,n);function a(e){h(s,i,r,a,o,"next",e)}function o(e){h(s,i,r,a,o,"throw",e)}a(void 0)}))}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function g(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return b(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return o}}(e,t)||_(e,t)||k()}function b(e){if(Array.isArray(e))return e}function x(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function k(){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 M(e,t){return function(){return e.apply(t,arguments)}}e.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},e.prototype.next=function(e){return this._invoke("next",e)},e.prototype.throw=function(e){return this._invoke("throw",e)},e.prototype.return=function(e){return this._invoke("return",e)};var S,A=Object.prototype.toString,L=Object.getPrototypeOf,T=(S=Object.create(null),function(e){var t=A.call(e);return S[t]||(S[t]=t.slice(8,-1).toLowerCase())}),C=function(e){return e=e.toLowerCase(),function(t){return T(t)===e}},D=function(e){return function(t){return u(t)===e}},E=Array.isArray,O=D("undefined"),P=C("ArrayBuffer"),Y=D("string"),I=D("function"),N=D("number"),H=function(e){return null!==e&&"object"===u(e)},j=function(e){if("object"!==T(e))return!1;var t=L(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},F=C("Date"),R=C("File"),z=C("Blob"),B=C("FileList"),V=C("URLSearchParams"),W=y(["ReadableStream","Request","Response","Headers"].map(C),4),q=W[0],U=W[1],$=W[2],X=W[3];function G(e,t){var n,i,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,s=void 0!==r&&r;if(null!=e)if("object"!==u(e)&&(e=[e]),E(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{var a,o=s?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;for(n=0;n<l;n++)a=o[n],t.call(null,e[a],a,e)}}function Z(e,t){t=t.toLowerCase();for(var n,i=Object.keys(e),r=i.length;r-- >0;)if(t===(n=i[r]).toLowerCase())return n;return null}var K,J,Q,ee,te,ne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ie=function(e){return!O(e)&&e!==ne},re=(K="undefined"!=typeof Uint8Array&&L(Uint8Array),function(e){return K&&e instanceof K}),se=C("HTMLFormElement"),ae=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){return e.call(t,n)}}(),oe=C("RegExp"),le=function(e,t){var n=Object.getOwnPropertyDescriptors(e),i={};G(n,(function(n,r){var s;!1!==(s=t(n,r,e))&&(i[r]=s||n)})),Object.defineProperties(e,i)},ce=C("AsyncFunction"),ue=(J="function"==typeof setImmediate,Q=I(ne.postMessage),J?setImmediate:Q?(ee="axios@".concat(Math.random()),te=[],ne.addEventListener("message",(function(e){var t=e.source,n=e.data;t===ne&&n===ee&&te.length&&te.shift()()}),!1),function(e){te.push(e),ne.postMessage(ee,"*")}):function(e){return setTimeout(e)}),de="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ne):"undefined"!=typeof process&&process.nextTick||ue,he={isArray:E,isArrayBuffer:P,isBuffer:function(e){return null!==e&&!O(e)&&null!==e.constructor&&!O(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||I(e.append)&&("formdata"===(t=T(e))||"object"===t&&I(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&P(e.buffer)},isString:Y,isNumber:N,isBoolean:function(e){return!0===e||!1===e},isObject:H,isPlainObject:j,isReadableStream:q,isRequest:U,isResponse:$,isHeaders:X,isUndefined:O,isDate:F,isFile:R,isBlob:z,isRegExp:oe,isFunction:I,isStream:function(e){return H(e)&&I(e.pipe)},isURLSearchParams:V,isTypedArray:re,isFileList:B,forEach:G,merge:function e(){for(var t=(ie(this)&&this||{}).caseless,n={},i=function(i,r){var s=t&&Z(n,r)||r;j(n[s])&&j(i)?n[s]=e(n[s],i):j(i)?n[s]=e({},i):E(i)?n[s]=i.slice():n[s]=i},r=0,s=arguments.length;r<s;r++)arguments[r]&&G(arguments[r],i);return n},extend:function(e,t,n){return G(t,(function(t,i){n&&I(t)?e[i]=M(t,n):e[i]=t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,i){var r,s,a,o={};if(t=t||{},null==e)return t;do{for(s=(r=Object.getOwnPropertyNames(e)).length;s-- >0;)a=r[s],i&&!i(a,e,t)||o[a]||(t[a]=e[a],o[a]=!0);e=!1!==n&&L(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:C,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;if(E(e))return e;var t=e.length;if(!N(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,i=(e&&e[Symbol.iterator]).call(e);(n=i.next())&&!n.done;){var r=n.value;t.call(e,r[0],r[1])}},matchAll:function(e,t){for(var n,i=[];null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:se,hasOwnProperty:ae,hasOwnProp:ae,reduceDescriptors:le,freezeMethods:function(e){le(e,(function(t,n){if(I(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var i=e[n];I(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},i=function(e){e.forEach((function(e){n[e]=!0}))};return E(e)?i(e):i(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:Z,global:ne,isContextDefined:ie,isSpecCompliantForm:function(e){return!!(e&&I(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,i){if(H(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;var r=E(n)?[]:{};return G(n,(function(t,n){var s=e(t,i+1);!O(s)&&(r[n]=s)})),t[i]=void 0,r}}return n}(e,0)},isAsyncFn:ce,isThenable:function(e){return e&&(H(e)||I(e))&&I(e.then)&&I(e.catch)},setImmediate:ue,asap:de};function fe(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}he.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});var pe=fe.prototype,me={};function ge(e){return he.isPlainObject(e)||he.isArray(e)}function ve(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function ye(e,t,n){return e?e.concat(t).map((function(e,t){return e=ve(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){me[e]={value:e}})),Object.defineProperties(fe,me),Object.defineProperty(pe,"isAxiosError",{value:!0}),fe.from=function(e,t,n,i,r,s){var a=Object.create(pe);return he.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),fe.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};var be=he.toFlatObject(he,{},null,(function(e){return/^is[A-Z]/.test(e)}));function xe(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var i=(n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!he.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,s=n.dots,a=n.indexes,o=(n.Blob||"undefined"!=typeof Blob&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(he.isDate(e))return e.toISOString();if(!o&&he.isBlob(e))throw new fe("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(e)||he.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){var o=e;if(e&&!r&&"object"===u(e))if(he.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(he.isArray(e)&&function(e){return he.isArray(e)&&!e.some(ge)}(e)||(he.isFileList(e)||he.endsWith(n,"[]"))&&(o=he.toArray(e)))return n=ve(n),o.forEach((function(e,i){!he.isUndefined(e)&&null!==e&&t.append(!0===a?ye([n],i,s):null===a?n:n+"[]",l(e))})),!1;return!!ge(e)||(t.append(ye(r,n,s),l(e)),!1)}var d=[],h=Object.assign(be,{defaultVisitor:c,convertValue:l,isVisitable:ge});if(!he.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!he.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+i.join("."));d.push(n),he.forEach(n,(function(n,s){!0===(!(he.isUndefined(n)||null===n)&&r.call(t,n,he.isString(s)?s.trim():s,i,h))&&e(n,i?i.concat(s):[s])})),d.pop()}}(e),t}function _e(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function we(e,t){this._pairs=[],e&&xe(e,this,t)}var ke=we.prototype;function Me(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Se(e,t,n){if(!t)return e;var i=n&&n.encode||Me;he.isFunction(n)&&(n={serialize:n});var r,s=n&&n.serialize;if(r=s?s(t,n):he.isURLSearchParams(t)?t.toString():new we(t,n).toString(i)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}ke.append=function(e,t){this._pairs.push([e,t])},ke.toString=function(e){var t=e?function(t){return e.call(this,t,_e)}:_e;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Ae=function(){function e(){p(this,e),this.handlers=[]}return g(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){he.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:we,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ce="undefined"!=typeof window&&"undefined"!=typeof document,De="object"===("undefined"==typeof navigator?"undefined":u(navigator))&&navigator||void 0,Ee=Ce&&(!De||["ReactNative","NativeScript","NS"].indexOf(De.product)<0),Oe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Pe=Ce&&window.location.href||"http://localhost",Ye=o(o({},Object.freeze({__proto__:null,hasBrowserEnv:Ce,hasStandardBrowserWebWorkerEnv:Oe,hasStandardBrowserEnv:Ee,navigator:De,origin:Pe})),Te);function Ie(e){function t(e,n,i,r){var s=e[r++];if("__proto__"===s)return!0;var a=Number.isFinite(+s),o=r>=e.length;return s=!s&&he.isArray(i)?i.length:s,o?(he.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):(i[s]&&he.isObject(i[s])||(i[s]=[]),t(e,n,i[s],r)&&he.isArray(i[s])&&(i[s]=function(e){var t,n,i={},r=Object.keys(e),s=r.length;for(t=0;t<s;t++)i[n=r[t]]=e[n];return i}(i[s])),!a)}if(he.isFormData(e)&&he.isFunction(e.entries)){var n={};return he.forEachEntry(e,(function(e,i){t(function(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),i,n,0)})),n}return null}var Ne={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,i=t.getContentType()||"",r=i.indexOf("application/json")>-1,s=he.isObject(e);if(s&&he.isHTMLForm(e)&&(e=new FormData(e)),he.isFormData(e))return r?JSON.stringify(Ie(e)):e;if(he.isArrayBuffer(e)||he.isBuffer(e)||he.isStream(e)||he.isFile(e)||he.isBlob(e)||he.isReadableStream(e))return e;if(he.isArrayBufferView(e))return e.buffer;if(he.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return xe(e,new Ye.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return Ye.isNode&&he.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=he.isFileList(e))||i.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return xe(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),function(e){if(he.isString(e))try{return(0,JSON.parse)(e),he.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Ne.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(he.isResponse(e)||he.isReadableStream(e))return e;if(e&&he.isString(e)&&(n&&!this.responseType||i)){var r=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw fe.from(e,fe.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ye.classes.FormData,Blob:Ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],(function(e){Ne.headers[e]={}}));var He=Ne,je=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fe=Symbol("internals");function Re(e){return e&&String(e).trim().toLowerCase()}function ze(e){return!1===e||null==e?e:he.isArray(e)?e.map(ze):String(e)}function Be(e,t,n,i,r){return he.isFunction(i)?i.call(this,t,n):(r&&(t=n),he.isString(t)?he.isString(i)?-1!==t.indexOf(i):he.isRegExp(i)?i.test(t):void 0:void 0)}var Ve=function(){function e(t){p(this,e),t&&this.set(t)}return g(e,[{key:"set",value:function(e,t,n){var i=this;function r(e,t,n){var r=Re(t);if(!r)throw new Error("header name must be a non-empty string");var s=he.findKey(i,r);(!s||void 0===i[s]||!0===n||void 0===n&&!1!==i[s])&&(i[s||t]=ze(e))}var s=function(e,t){return he.forEach(e,(function(e,n){return r(e,n,t)}))};if(he.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(he.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s(function(e){var t,n,i,r={};return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!t||r[t]&&je[t]||("set-cookie"===t?r[t]?r[t].push(n):r[t]=[n]:r[t]=r[t]?r[t]+", "+n:n)})),r}(e),t);else if(he.isHeaders(e)){var a,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_(e))){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){a=!0,r=e},f:function(){try{s||null==t.return||t.return()}finally{if(a)throw r}}}}(e.entries());try{for(o.s();!(a=o.n()).done;){var l=y(a.value,2),c=l[0];r(l[1],c,n)}}catch(e){o.e(e)}finally{o.f()}}else null!=e&&r(t,e,n);return this}},{key:"get",value:function(e,t){if(e=Re(e)){var n=he.findKey(this,e);if(n){var i=this[n];if(!t)return i;if(!0===t)return function(e){for(var t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=i.exec(e);)n[t[1]]=t[2];return n}(i);if(he.isFunction(t))return t.call(this,i,n);if(he.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Re(e)){var n=he.findKey(this,e);return!(!n||void 0===this[n]||t&&!Be(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,i=!1;function r(e){if(e=Re(e)){var r=he.findKey(n,e);!r||t&&!Be(0,n[r],r,t)||(delete n[r],i=!0)}}return he.isArray(e)?e.forEach(r):r(e),i}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,i=!1;n--;){var r=t[n];e&&!Be(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}},{key:"normalize",value:function(e){var t=this,n={};return he.forEach(this,(function(i,r){var s=he.findKey(n,r);if(s)return t[s]=ze(i),void delete t[r];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(r):String(r).trim();a!==r&&delete t[r],t[a]=ze(i),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return he.forEach(this,(function(n,i){null!=n&&!1!==n&&(t[i]=e&&he.isArray(n)?n.join(", "):n)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=y(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Fe]=this[Fe]={accessors:{}}).accessors,n=this.prototype;function i(e){var i=Re(e);t[i]||(function(e,t){var n=he.toCamelCase(" "+t);["get","set","has"].forEach((function(i){Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return he.isArray(e)?e.forEach(i):i(e),this}}]),e}();Ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Ve.prototype,(function(e,t){var n=e.value,i=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[i]=e}}})),he.freezeMethods(Ve);var We=Ve;function qe(e,t){var n=this||He,i=t||n,r=We.from(i.headers),s=i.data;return he.forEach(e,(function(e){s=e.call(n,s,r.normalize(),t?t.status:void 0)})),r.normalize(),s}function Ue(e){return!(!e||!e.__CANCEL__)}function $e(e,t,n){fe.call(this,null==e?"canceled":e,fe.ERR_CANCELED,t,n),this.name="CanceledError"}function Xe(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}he.inherits($e,fe,{__CANCEL__:!0});var Ge=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,i=0,r=function(e,t){e=e||10;var n,i=new Array(e),r=new Array(e),s=0,a=0;return t=void 0!==t?t:1e3,function(o){var l=Date.now(),c=r[a];n||(n=l),i[s]=o,r[s]=l;for(var u=a,d=0;u!==s;)d+=i[u++],u%=e;if((s=(s+1)%e)===a&&(a=(a+1)%e),!(l-n<t)){var h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}}(50,250);return function(e,t){var n,i,r=0,s=1e3/t,a=function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();r=s,n=null,i&&(clearTimeout(i),i=null),e.apply(null,t)};return[function(){for(var e=Date.now(),t=e-r,o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];t>=s?a(l,e):(n=l,i||(i=setTimeout((function(){i=null,a(n)}),s-t)))},function(){return n&&a(n)}]}((function(n){var s=n.loaded,a=n.lengthComputable?n.total:void 0,o=s-i,l=r(o);i=s;var c=v({loaded:s,total:a,progress:a?s/a:void 0,bytes:o,rate:l||void 0,estimated:l&&a&&s<=a?(a-s)/l:void 0,event:n,lengthComputable:null!=a},t?"download":"upload",!0);e(c)}),n)},Ze=function(e,t){var n=null!=e;return[function(i){return t[0]({lengthComputable:n,total:e,loaded:i})},t[1]]},Ke=function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return he.asap((function(){return e.apply(void 0,n)}))}},Je=Ye.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,Ye.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(Ye.origin),Ye.navigator&&/(msie|trident)/i.test(Ye.navigator.userAgent)):function(){return!0},Qe=Ye.hasStandardBrowserEnv?{write:function(e,t,n,i,r,s){var a=[e+"="+encodeURIComponent(t)];he.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),he.isString(i)&&a.push("path="+i),he.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function et(e,t,n){var i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var tt=function(e){return e instanceof We?o({},e):e};function nt(e,t){t=t||{};var n={};function i(e,t,n,i){return he.isPlainObject(e)&&he.isPlainObject(t)?he.merge.call({caseless:i},e,t):he.isPlainObject(t)?he.merge({},t):he.isArray(t)?t.slice():t}function r(e,t,n,r){return he.isUndefined(t)?he.isUndefined(e)?void 0:i(void 0,e,0,r):i(e,t,0,r)}function s(e,t){if(!he.isUndefined(t))return i(void 0,t)}function a(e,t){return he.isUndefined(t)?he.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function o(n,r,s){return s in t?i(n,r):s in e?i(void 0,n):void 0}var l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:function(e,t,n){return r(tt(e),tt(t),0,!0)}};return he.forEach(Object.keys(Object.assign({},e,t)),(function(i){var s=l[i]||r,a=s(e[i],t[i],i);he.isUndefined(a)&&s!==o||(n[i]=a)})),n}var it,rt,st=function(e){var t,n,i=nt({},e),r=i.data,s=i.withXSRFToken,a=i.xsrfHeaderName,o=i.xsrfCookieName,l=i.headers,c=i.auth;if(i.headers=l=We.from(l),i.url=Se(et(i.baseURL,i.url,i.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),he.isFormData(r))if(Ye.hasStandardBrowserEnv||Ye.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(t=l.getContentType())){var u=t?t.split(";").map((function(e){return e.trim()})).filter(Boolean):[],d=b(n=u)||x(n)||_(n)||k(),h=d[0],f=d.slice(1);l.setContentType([h||"multipart/form-data"].concat(function(e){return function(e){if(Array.isArray(e))return w(e)}(e)||x(e)||_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(f)).join("; "))}if(Ye.hasStandardBrowserEnv&&(s&&he.isFunction(s)&&(s=s(i)),s||!1!==s&&Je(i.url))){var p=a&&o&&Qe.read(o);p&&l.set(a,p)}return i},at="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var i,r,s,a,o,l=st(e),c=l.data,u=We.from(l.headers).normalize(),d=l.responseType,h=l.onUploadProgress,f=l.onDownloadProgress;function p(){a&&a(),o&&o(),l.cancelToken&&l.cancelToken.unsubscribe(i),l.signal&&l.signal.removeEventListener("abort",i)}var m=new XMLHttpRequest;function g(){if(m){var i=We.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Xe((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:e,request:m}),m=null}}if(m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new fe("Request aborted",fe.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new fe("Network Error",fe.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){var t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",i=l.transitional||Le;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new fe(t,i.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,m)),m=null},void 0===c&&u.setContentType(null),"setRequestHeader"in m&&he.forEach(u.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),he.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&"json"!==d&&(m.responseType=l.responseType),f){var v=y(Ge(f,!0),2);s=v[0],o=v[1],m.addEventListener("progress",s)}if(h&&m.upload){var b=y(Ge(h),2);r=b[0],a=b[1],m.upload.addEventListener("progress",r),m.upload.addEventListener("loadend",a)}(l.cancelToken||l.signal)&&(i=function(t){m&&(n(!t||t.type?new $e(null,e,m):t),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(i),l.signal&&(l.signal.aborted?i():l.signal.addEventListener("abort",i)));var x,_,w=(x=l.url,(_=/^([-+\w]{1,25})(:?\/\/|:)/.exec(x))&&_[1]||"");w&&-1===Ye.protocols.indexOf(w)?n(new fe("Unsupported protocol "+w+":",fe.ERR_BAD_REQUEST,e)):m.send(c||null)}))},ot=function(e,t){var n=(e=e?e.filter(Boolean):[]).length;if(t||n){var i,r=new AbortController,s=function(e){if(!i){i=!0,o();var t=e instanceof Error?e:this.reason;r.abort(t instanceof fe?t:new $e(t instanceof Error?t.message:t))}},a=t&&setTimeout((function(){a=null,s(new fe("timeout ".concat(t," of ms exceeded"),fe.ETIMEDOUT))}),t),o=function(){e&&(a&&clearTimeout(a),a=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)})),e=null)};e.forEach((function(e){return e.addEventListener("abort",s)}));var l=r.signal;return l.unsubscribe=function(){return he.asap(o)},l}},lt=l().mark((function e(t,n){var i,r,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.byteLength,n&&!(i<n)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:r=0;case 6:if(!(r<i)){e.next=13;break}return s=r+n,e.next=10,t.slice(r,s);case 10:r=s,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),ct=function(){var e=d(l().mark((function e(t,r){var a,o,c,u,d,h;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=!1,o=!1,e.prev=2,u=i(ut(t));case 4:return e.next=6,s(u.next());case 6:if(!(a=!(d=e.sent).done)){e.next=12;break}return h=d.value,e.delegateYield(n(i(lt(h,r))),"t0",9);case 9:a=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),o=!0,c=e.t1;case 18:if(e.prev=18,e.prev=19,!a||null==u.return){e.next=23;break}return e.next=23,s(u.return());case 23:if(e.prev=23,!o){e.next=26;break}throw c;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(t,n){return e.apply(this,arguments)}}(),ut=function(){var e=d(l().mark((function e(t){var r,a,o,c;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(n(i(t)),"t0",2);case 2:return e.abrupt("return");case 3:r=t.getReader(),e.prev=4;case 5:return e.next=7,s(r.read());case 7:if(a=e.sent,o=a.done,c=a.value,!o){e.next=12;break}return e.abrupt("break",16);case 12:return e.next=14,c;case 14:e.next=5;break;case 16:return e.prev=16,e.next=19,s(r.cancel());case 19:return e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,,16,20]])})));return function(t){return e.apply(this,arguments)}}(),dt=function(e,t,n,i){var r,s=ct(e,t),a=0,o=function(e){r||(r=!0,i&&i(e))};return new ReadableStream({pull:function(e){return f(l().mark((function t(){var i,r,c,u,d;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.next();case 3:if(i=t.sent,r=i.done,c=i.value,!r){t.next=10;break}return o(),e.close(),t.abrupt("return");case 10:u=c.byteLength,n&&(d=a+=u,n(d)),e.enqueue(new Uint8Array(c)),t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(0),o(t.t0),t.t0;case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))()},cancel:function(e){return o(e),s.return()}},{highWaterMark:2})},ht="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ft=ht&&"function"==typeof ReadableStream,pt=ht&&("function"==typeof TextEncoder?(it=new TextEncoder,function(e){return it.encode(e)}):function(){var e=f(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new Response(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),mt=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return!!e.apply(void 0,n)}catch(e){return!1}},gt=ft&&mt((function(){var e=!1,t=new Request(Ye.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),vt=ft&&mt((function(){return he.isReadableStream(new Response("").body)})),yt={stream:vt&&function(e){return e.body}};ht&&(rt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!yt[e]&&(yt[e]=he.isFunction(rt[e])?function(t){return t[e]()}:function(t,n){throw new fe("Response type '".concat(e,"' is not supported"),fe.ERR_NOT_SUPPORT,n)})})));var bt=function(){var e=f(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!he.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!he.isSpecCompliantForm(t)){e.next=9;break}return n=new Request(Ye.origin,{method:"POST",body:t}),e.next=8,n.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!he.isArrayBufferView(t)&&!he.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(he.isURLSearchParams(t)&&(t+=""),!he.isString(t)){e.next=16;break}return e.next=15,pt(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),xt=function(){var e=f(l().mark((function e(t,n){var i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=he.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==i?bt(n):i);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),_t=ht&&function(){var e=f(l().mark((function e(t){var n,i,r,s,a,c,u,d,h,f,p,m,g,v,b,x,_,w,k,M,S,A,L,T,C,D,E,O,P,Y,I,N,H,j;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=st(t),i=n.url,r=n.method,s=n.data,a=n.signal,c=n.cancelToken,u=n.timeout,d=n.onDownloadProgress,h=n.onUploadProgress,f=n.responseType,p=n.headers,m=n.withCredentials,g=void 0===m?"same-origin":m,v=n.fetchOptions,f=f?(f+"").toLowerCase():"text",b=ot([a,c&&c.toAbortSignal()],u),_=b&&b.unsubscribe&&function(){b.unsubscribe()},e.prev=4,e.t0=h&&gt&&"get"!==r&&"head"!==r,!e.t0){e.next=11;break}return e.next=9,xt(p,s);case 9:e.t1=w=e.sent,e.t0=0!==e.t1;case 11:if(!e.t0){e.next=15;break}k=new Request(i,{method:"POST",body:s,duplex:"half"}),he.isFormData(s)&&(M=k.headers.get("content-type"))&&p.setContentType(M),k.body&&(S=Ze(w,Ge(Ke(h))),A=y(S,2),L=A[0],T=A[1],s=dt(k.body,65536,L,T));case 15:return he.isString(g)||(g=g?"include":"omit"),C="credentials"in Request.prototype,x=new Request(i,o(o({},v),{},{signal:b,method:r.toUpperCase(),headers:p.normalize().toJSON(),body:s,duplex:"half",credentials:C?g:void 0})),e.next=20,fetch(x);case 20:return D=e.sent,E=vt&&("stream"===f||"response"===f),vt&&(d||E&&_)&&(O={},["status","statusText","headers"].forEach((function(e){O[e]=D[e]})),P=he.toFiniteNumber(D.headers.get("content-length")),Y=d&&Ze(P,Ge(Ke(d),!0))||[],I=y(Y,2),N=I[0],H=I[1],D=new Response(dt(D.body,65536,N,(function(){H&&H(),_&&_()})),O)),f=f||"text",e.next=26,yt[he.findKey(yt,f)||"text"](D,t);case 26:return j=e.sent,!E&&_&&_(),e.next=30,new Promise((function(e,n){Xe(e,n,{data:j,headers:We.from(D.headers),status:D.status,statusText:D.statusText,config:t,request:x})}));case 30:return e.abrupt("return",e.sent);case 33:if(e.prev=33,e.t2=e.catch(4),_&&_(),!e.t2||"TypeError"!==e.t2.name||!/fetch/i.test(e.t2.message)){e.next=38;break}throw Object.assign(new fe("Network Error",fe.ERR_NETWORK,t,x),{cause:e.t2.cause||e.t2});case 38:throw fe.from(e.t2,e.t2&&e.t2.code,t,x);case 39:case"end":return e.stop()}}),e,null,[[4,33]])})));return function(t){return e.apply(this,arguments)}}(),wt={http:null,xhr:at,fetch:_t};he.forEach(wt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var kt=function(e){return"- ".concat(e)},Mt=function(e){return he.isFunction(e)||null===e||!1===e},St=function(e){for(var t,n,i=(e=he.isArray(e)?e:[e]).length,r={},s=0;s<i;s++){var a=void 0;if(n=t=e[s],!Mt(t)&&void 0===(n=wt[(a=String(t)).toLowerCase()]))throw new fe("Unknown adapter '".concat(a,"'"));if(n)break;r[a||"#"+s]=n}if(!n){var o=Object.entries(r).map((function(e){var t=y(e,2),n=t[0],i=t[1];return"adapter ".concat(n," ")+(!1===i?"is not supported by the environment":"is not available in the build")}));throw new fe("There is no suitable adapter to dispatch the request "+(i?o.length>1?"since :\n"+o.map(kt).join("\n"):" "+kt(o[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function At(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $e(null,e)}function Lt(e){return At(e),e.headers=We.from(e.headers),e.data=qe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),St(e.adapter||He.adapter)(e).then((function(t){return At(e),t.data=qe.call(e,e.transformResponse,t),t.headers=We.from(t.headers),t}),(function(t){return Ue(t)||(At(e),t&&t.response&&(t.response.data=qe.call(e,e.transformResponse,t.response),t.response.headers=We.from(t.response.headers))),Promise.reject(t)}))}var Tt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Tt[e]=function(n){return u(n)===e||"a"+(t<1?"n ":" ")+e}}));var Ct={};Tt.transitional=function(e,t,n){function i(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new fe(i(r," has been removed"+(t?" in "+t:"")),fe.ERR_DEPRECATED);return t&&!Ct[r]&&(Ct[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},Tt.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var Dt={assertOptions:function(e,t,n){if("object"!==u(e))throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),r=i.length;r-- >0;){var s=i[r],a=t[s];if(a){var o=e[s],l=void 0===o||a(o,s,e);if(!0!==l)throw new fe("option "+s+" must be "+l,fe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new fe("Unknown option "+s,fe.ERR_BAD_OPTION)}},validators:Tt},Et=Dt.validators,Ot=function(){function e(t){p(this,e),this.defaults=t,this.interceptors={request:new Ae,response:new Ae}}var t;return g(e,[{key:"request",value:(t=f(l().mark((function e(t,n){var i,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,n);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){i={},Error.captureStackTrace?Error.captureStackTrace(i):i=new Error,r=i.stack?i.stack.replace(/^.+\n/,""):"";try{e.t0.stack?r&&!String(e.t0.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+r):e.t0.stack=r}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e,n){return t.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n=t=nt(this.defaults,t),i=n.transitional,r=n.paramsSerializer,s=n.headers;void 0!==i&&Dt.assertOptions(i,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),null!=r&&(he.isFunction(r)?t.paramsSerializer={serialize:r}:Dt.assertOptions(r,{encode:Et.function,serialize:Et.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Dt.assertOptions(t,{baseUrl:Et.spelling("baseURL"),withXsrfToken:Et.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=s&&he.merge(s.common,s[t.method]);s&&he.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete s[e]})),t.headers=We.concat(a,s);var o=[],l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));var c,u=[];this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));var d,h=0;if(!l){var f=[Lt.bind(this),void 0];for(f.unshift.apply(f,o),f.push.apply(f,u),d=f.length,c=Promise.resolve(t);h<d;)c=c.then(f[h++],f[h++]);return c}d=o.length;var p=t;for(h=0;h<d;){var m=o[h++],g=o[h++];try{p=m(p)}catch(e){g.call(this,e);break}}try{c=Lt.call(this,p)}catch(e){return Promise.reject(e)}for(h=0,d=u.length;h<d;)c=c.then(u[h++],u[h++]);return c}},{key:"getUri",value:function(e){return Se(et((e=nt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}]),e}();he.forEach(["delete","get","head","options"],(function(e){Ot.prototype[e]=function(t,n){return this.request(nt(n||{},{method:e,url:t,data:(n||{}).data}))}})),he.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(nt(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ot.prototype[e]=t(),Ot.prototype[e+"Form"]=t(!0)}));var Pt=Ot,Yt=function(){function e(t){if(p(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var i=this;this.promise.then((function(e){if(i._listeners){for(var t=i._listeners.length;t-- >0;)i._listeners[t](e);i._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},t((function(e,t,r){i.reason||(i.reason=new $e(e,t,r),n(i.reason))}))}return g(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}(),It=Yt,Nt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nt).forEach((function(e){var t=y(e,2),n=t[0],i=t[1];Nt[i]=n}));var Ht=Nt,jt=function e(t){var n=new Pt(t),i=M(Pt.prototype.request,n);return he.extend(i,Pt.prototype,n,{allOwnKeys:!0}),he.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(nt(t,n))},i}(He);return jt.Axios=Pt,jt.CanceledError=$e,jt.CancelToken=It,jt.isCancel=Ue,jt.VERSION="1.8.4",jt.toFormData=xe,jt.AxiosError=fe,jt.Cancel=jt.CanceledError,jt.all=function(e){return Promise.all(e)},jt.spread=function(e){return function(t){return e.apply(null,t)}},jt.isAxiosError=function(e){return he.isObject(e)&&!0===e.isAxiosError},jt.mergeConfig=nt,jt.AxiosHeaders=We,jt.formToJSON=function(e){return Ie(he.isHTMLForm(e)?new FormData(e):e)},jt.getAdapter=St,jt.HttpStatusCode=Ht,jt.default=jt,jt})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.lozad=t()}(this,(function(){"use strict";var e="undefined"!=typeof document&&document.documentMode,t={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var n=t.querySelector("img"),i=!1;null===n&&(n=document.createElement("img"),i=!0),e&&t.getAttribute("data-iesrc")&&(n.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(n.alt=t.getAttribute("data-alt")),i&&t.append(n)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var r=t.children,s=void 0,a=0;a<=r.length-1;a++)(s=r[a].getAttribute("data-src"))&&(r[a].src=s);t.load()}t.getAttribute("data-poster")&&(t.poster=t.getAttribute("data-poster")),t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset"));var o=",";if(t.getAttribute("data-background-delimiter")&&(o=t.getAttribute("data-background-delimiter")),t.getAttribute("data-background-image"))t.style.backgroundImage="url('"+t.getAttribute("data-background-image").split(o).join("'),url('")+"')";else if(t.getAttribute("data-background-image-set")){var l=t.getAttribute("data-background-image-set").split(o),c=l[0].substr(0,l[0].indexOf(" "))||l[0];c=-1===c.indexOf("url(")?"url("+c+")":c,1===l.length?t.style.backgroundImage=c:t.setAttribute("style",(t.getAttribute("style")||"")+"background-image: "+c+"; background-image: -webkit-image-set("+l+"); background-image: image-set("+l+")")}t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}};function n(e){e.setAttribute("data-loaded",!0)}var i=function(e){return"true"===e.getAttribute("data-loaded")},r=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return e instanceof Element?[e]:e instanceof NodeList?e:t.querySelectorAll(e)};return function(){var e,s,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},l=Object.assign({},t,o),c=l.root,u=l.rootMargin,d=l.threshold,h=l.load,f=l.loaded,p=void 0;"undefined"!=typeof window&&window.IntersectionObserver&&(p=new IntersectionObserver((e=h,s=f,function(t,r){t.forEach((function(t){(0<t.intersectionRatio||t.isIntersecting)&&(r.unobserve(t.target),i(t.target)||(e(t.target),n(t.target),s(t.target)))}))}),{root:c,rootMargin:u,threshold:d}));for(var m,g=r(a,c),v=0;v<g.length;v++)(m=g[v]).getAttribute("data-placeholder-background")&&(m.style.background=m.getAttribute("data-placeholder-background"));return{observe:function(){for(var e=r(a,c),t=0;t<e.length;t++)i(e[t])||(p?p.observe(e[t]):(h(e[t]),n(e[t]),f(e[t])))},triggerLoad:function(e){i(e)||(h(e),n(e),f(e))},observer:p}}})),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}((function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n;return function(){
/**
 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
 */
var e,n,i;t&&t.requirejs||(t?n=t:t={},function(t){var r,s,a,o,l={},c={},u={},d={},h=Object.prototype.hasOwnProperty,f=[].slice,p=/\.js$/;function m(e,t){return h.call(e,t)}function g(e,t){var n,i,r,s,a,o,l,c,d,h,f,m=t&&t.split("/"),g=u.map,v=g&&g["*"]||{};if(e){for(a=(e=e.split("/")).length-1,u.nodeIdCompat&&p.test(e[a])&&(e[a]=e[a].replace(p,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),d=0;d<e.length;d++)if("."===(f=e[d]))e.splice(d,1),d-=1;else if(".."===f){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((m||v)&&g){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),m)for(h=m.length;h>0;h-=1)if((r=g[m.slice(0,h).join("/")])&&(r=r[i])){s=r,o=d;break}if(s)break;!l&&v&&v[i]&&(l=v[i],c=d)}!s&&l&&(s=l,o=c),s&&(n.splice(0,o,s),e=n.join("/"))}return e}function v(e,n){return function(){var i=f.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),s.apply(t,i.concat([e,n]))}}function y(e){return function(t){l[e]=t}}function b(e){if(m(c,e)){var n=c[e];delete c[e],d[e]=!0,r.apply(t,n)}if(!m(l,e)&&!m(d,e))throw new Error("No "+e);return l[e]}function x(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function _(e){return e?x(e):[]}function w(e){return function(){return u&&u.config&&u.config[e]||{}}}a=function(e,t){var n,i,r=x(e),s=r[0],a=t[1];return e=r[1],s&&(n=b(s=g(s,a))),s?e=n&&n.normalize?n.normalize(e,(i=a,function(e){return g(e,i)})):g(e,a):(s=(r=x(e=g(e,a)))[0],e=r[1],s&&(n=b(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:n}},o={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:w(e)}}},r=function(e,n,i,r){var s,u,h,f,p,g,x,w=[],k=typeof i;if(g=_(r=r||e),"undefined"===k||"function"===k){for(n=!n.length&&i.length?["require","exports","module"]:n,p=0;p<n.length;p+=1)if("require"===(u=(f=a(n[p],g)).f))w[p]=o.require(e);else if("exports"===u)w[p]=o.exports(e),x=!0;else if("module"===u)s=w[p]=o.module(e);else if(m(l,u)||m(c,u)||m(d,u))w[p]=b(u);else{if(!f.p)throw new Error(e+" missing "+u);f.p.load(f.n,v(r,!0),y(u),{}),w[p]=l[u]}h=i?i.apply(l[e],w):void 0,e&&(s&&s.exports!==t&&s.exports!==l[e]?l[e]=s.exports:h===t&&x||(l[e]=h))}else e&&(l[e]=i)},e=n=s=function(e,n,i,l,c){if("string"==typeof e)return o[e]?o[e](n):b(a(e,_(n)).f);if(!e.splice){if((u=e).deps&&s(u.deps,u.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=l,l=c),l?r(t,e,n,i):setTimeout((function(){r(t,e,n,i)}),4),s},s.config=function(e){return s(e)},e._defined=l,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),m(l,e)||m(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i)}(),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&("constructor"!==i&&n.push(i))}return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),r=n(e);function s(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,r=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),r=t.prototype.constructor),r.apply(this,arguments)}t.displayName=e.displayName,s.prototype=new function(){this.constructor=s};for(var a=0;a<r.length;a++){var o=r[a];s.prototype[o]=e.prototype[o]}for(var l=function(e){var n=function(){};e in s.prototype&&(n=s.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},c=0;c<i.length;c++){var u=i[c];s.prototype[u]=l(u)}return s};var i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var s=n[r];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),r==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),r=n.style.overflowX,s=n.style.overflowY;return(r!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===r||"scroll"===s||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},t.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var r=0;return t.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return null!=n||(n=e.id?"select2-data-"+e.id:"select2-data-"+(++r).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",n)),n},t.StoreData=function(e,n,i){var r=t.GetUniqueElementId(e);t.__cache[r]||(t.__cache[r]={}),t.__cache[r][n]=i},t.GetData=function(n,i){var r=t.GetUniqueElementId(n);return i?t.__cache[r]&&null!=t.__cache[r][i]?t.__cache[r][i]:e(n).data(i):t.__cache[r]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter((function(e){return 0===e.indexOf("select2-")}));var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter((function(e){return 0!==e.indexOf("select2-")}));var r=n.concat(i);e.setAttribute("class",r.join(" "))},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);i.append(n(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var r=i.map((function(e){return e.id.toString()}));n.$results.find(".select2-results__option--selectable").each((function(){var n=e(this),i=t.GetData(this,"data"),s=""+i.id;null!=i.element&&i.element.selected||null==i.element&&r.indexOf(s)>-1?(this.classList.add("select2-results__option--selected"),n.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),n.attr("aria-selected","false"))}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.classList.add("select2-results__option"),i.classList.add("select2-results__option--selectable");var r={role:"option"},s=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=n.element&&s.call(n.element,":disabled")||null==n.element&&n.disabled)&&(r["aria-disabled"]="true",i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--disabled")),null==n.id&&i.classList.remove("select2-results__option--selectable"),null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--group")),r){var o=r[a];i.setAttribute(a,o)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group",this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var h=n.children[d],f=this.option(h);u.push(f)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});p.append(u),l.append(c),l.append(p)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,s=n.id+"-results";this.$results.attr("id",s),n.on("results:all",(function(e){r.clear(),r.append(e.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),n.on("results:append",(function(e){r.append(e.data),n.isOpen()&&r.setClasses()})),n.on("query",(function(e){r.hideMessages(),r.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),n.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e=r.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?r.trigger("close",{}):r.trigger("select",{data:n})}})),n.on("results:previous",(function(){var e=r.getHighlightedResults(),t=r.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var s=t.eq(i);s.trigger("mouseenter");var a=r.$results.offset().top,o=s.offset().top,l=r.$results.scrollTop()+(o-a);0===i?r.$results.scrollTop(0):o-a<0&&r.$results.scrollTop(l)}})),n.on("results:next",(function(){var e=r.getHighlightedResults(),t=r.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var s=r.$results.offset().top+r.$results.outerHeight(!1),a=i.offset().top+i.outerHeight(!1),o=r.$results.scrollTop()+a-s;0===n?r.$results.scrollTop(0):a>s&&r.$results.scrollTop(o)}})),n.on("results:focus",(function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")})),n.on("results:message",(function(e){r.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,s=e.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):s&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(n){var i=e(this),s=t.GetData(this,"data");i.hasClass("select2-results__option--selected")?r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:s}):r.trigger("close",{}):r.trigger("select",{originalEvent:n,data:s})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(n){var i=t.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),r.trigger("results:focus",{data:i,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),s=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),s=i(t,n);null==s?n.style.display="none":"string"==typeof s?n.innerHTML=r(s):e(n).append(s)},n})),t.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=i[0]&&t.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("aria-controls",i),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,r){var s=this;i.__super__.bind.apply(this,arguments);var a=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",a),this.$selection.on("click",(function(e){s.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!s.isDisabled()){var i=e(this).parent(),r=n.GetData(i[0],"data");s.trigger("unselect",{originalEvent:t,data:r})}})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){s.isDisabled()||e.stopPropagation()}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",r=0;r<e.length;r++){var s=e[r],a=this.selectionContainer(),o=this.display(s,a),l=i+n.generateChars(4)+"-";s.id?l+=s.id:l+=n.generateChars(4),a.find(".select2-selection__choice__display").append(o).attr("id",l);var c=s.title||s.text;c&&a.attr("title",c);var u=this.options.get("translations").get("removeItem"),d=a.find(".select2-selection__choice__remove");d.attr("title",u()),d.attr("aria-label",u()),d.attr("aria-describedby",l),n.StoreData(a[0],"data",s),t.push(a)}this.$selection.find(".select2-selection__rendered").append(t)}},i})),t.define("select2/selection/placeholder",[],(function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice");var i=t.title||t.text||n.text();return this.$selection.find(".select2-selection__rendered").attr("title",i),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e})),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){i._handleClear(e)})),t.on("keypress",(function(e){i._handleKeyboardClear(e,t)}))},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var r=n.GetData(i[0],"data"),s=this.$element.val();this.$element.val(this.placeholder.id);var a={data:r};if(this.trigger("clear",a),a.prevented)this.$element.val(s);else{for(var o=0;o<r.length;o++)if(a={data:r[o]},this.trigger("unselect",a),a.prevented)return void this.$element.val(s);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=this.$selection.find(".select2-selection__rendered").attr("id"),s=this.options.get("translations").get("removeAllItems"),a=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>');a.attr("title",s()),a.attr("aria-label",s()),a.attr("aria-describedby",r),n.StoreData(a[0],"data",i),this.$selection.prepend(a),this.$selection[0].classList.add("select2-selection--clearable")}},i})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=this.options.get("translations").get("search"),i=e('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n());var r=t.call(this);return this._transferTabIndex(),r.append(this.$searchContainer),r},i.prototype.bind=function(e,i,r){var s=this,a=i.id+"-results",o=i.id+"-container";e.call(this,i,r),s.$search.attr("aria-describedby",o),i.on("open",(function(){s.$search.attr("aria-controls",a),s.$search.trigger("focus")})),i.on("close",(function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")})),i.on("enable",(function(){s.$search.prop("disabled",!1),s._transferTabIndex()})),i.on("disable",(function(){s.$search.prop("disabled",!0)})),i.on("focus",(function(e){s.$search.trigger("focus")})),i.on("results:focus",(function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){s.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){s._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===s.$search.val()){var i=s.$selection.find(".select2-selection__choice").last();if(i.length>0){var r=t.GetData(i[0],"data");s.searchRemoveChoice(r),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){s.$search.val()&&e.stopPropagation()}));var l=document.documentMode,c=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){c?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(c&&"input"===e.type)s.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&s.handleSearch(e)}}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em");this.$search.css("width",e)},i})),t.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("selectionCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,i){var r=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",(function(t,n){if(-1!==s.indexOf(t)){n=n||{};var i=e.Event("select2:"+t,{params:n});r.$element.trigger(i),-1!==a.indexOf(t)&&(n.prevented=i.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(n(e))})))},i.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var i=[];(e=[e]).push.apply(e,n);for(var r=0;r<e.length;r++){var s=e[r].id;-1===i.indexOf(s)&&i.push(s)}t.$element.val(i),t.$element.trigger("input").trigger("change")}));else{var n=e.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(n){for(var i=[],r=0;r<n.length;r++){var s=n[r].id;s!==e.id&&-1===i.indexOf(s)&&i.push(s)}t.$element.val(i),t.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},i.prototype.query=function(e,t){var i=[],r=this;this.$element.children().each((function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=n(this),s=r.item(t),a=r.matches(e,s);null!==a&&i.push(a)}})),t({results:i})},i.prototype.addOptions=function(e){this.$element.append(e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var r=this._normalizeItem(e);return r.element=i,t.StoreData(i,"data",r),n(i)},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;var r=e[0];if("option"===r.tagName.toLowerCase())i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===r.tagName.toLowerCase()){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var s=e.children("option"),a=[],o=0;o<s.length;o++){var l=n(s[o]),c=this.item(l);a.push(c)}i.children=a}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var t=this,i=this.$element.find("option"),r=i.map((function(){return t.item(n(this)).id})).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var o=0;o<e.length;o++){var l=this._normalizeItem(e[o]);if(r.indexOf(l.id)>=0){var c=i.filter(a(l)),u=this.item(c),d=n.extend(!0,{},l,u),h=this.option(d);c.replaceWith(h)}else{var f=this.option(l);if(l.children){var p=this.convertToOptions(l.children);f.append(p)}s.push(f)}}return s},i})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var r=n.ajax(e);return r.then(t),r.fail(i),r}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);function s(){var n=r.transport(r,(function(n){var r=i.processResults(n,e);i.options.get("debug")&&window.console&&console.error&&(r&&r.results&&Array.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)}),(function(){(!("status"in n)||0!==n.status&&"0"!==n.status)&&i.trigger("results:message",{message:"errorLoading"})}));i._request=n}"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(s,this.ajaxOptions.delay)):s()},i})),t.define("select2/data/tags",["jquery"],(function(e){function t(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var s=n.get("insertTag");if(void 0!==s&&(this.insertTag=s),e.call(this,t,n),Array.isArray(i))for(var a=0;a<i.length;a++){var o=i[a],l=this._normalizeItem(o),c=this.option(l);this.$element.append(c)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(r,s){for(var a=r.results,o=0;o<a.length;o++){var l=a[o],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!s&&(r.data=a,void n(r))}if(s)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr("data-select2-tag","true"),i.addOptions([d]),i.insertTag(a,u)}r.results=a,n(r)})):e.call(this,t,n)},t.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var r=this;n.term=n.term||"";var s=this.tokenizer(n,this.options,(function(t){var n=r._normalizeItem(t);if(!r.$element.find("option").filter((function(){return e(this).val()===n.id})).length){var i=r.option(n);i.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])}!function(e){r.trigger("select",{data:e})}(n)}));s.term!==n.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),n.term=s.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,r){for(var s=i.get("tokenSeparators")||[],a=n.term,o=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};o<a.length;){var c=a[o];if(-1!==s.indexOf(c)){var u=a.substr(0,o),d=l(e.extend({},n,{term:u}));null!=d?(r(d),a=a.substr(o+1)||"",o=0):o++}else o++}return{term:a}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(){i._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected((function(){e.call(i,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),t.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("translations").get("search"),r=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(r),n},t.prototype.bind=function(t,n,i){var r=this,s=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",(function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){r.handleSearch(e)})),n.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",s),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),n.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||r.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer[0].classList.remove("select2-search--hide"):r.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",(function(e){i.lastParams=e,i.loading=!0})),t.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)})),t.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var r=this,s="scroll.select2."+i.id,a="resize.select2."+i.id,o="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(s,(function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(s+" "+a+" "+o,(function(e){r._positionDropdown(),r._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+s+" "+a)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),r=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=s.top,a.bottom=s.top+a.height;var o=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<s.top-o,d=c>s.bottom+o,h={left:s.left,top:a.bottom},f=this.$dropdownParent;"static"===f.css("position")&&(f=f.offsetParent());var p={top:0,left:0};(e.contains(document.body,f[0])||f[0].isConnected)&&(p=f.offset()),h.top-=p.top,h.left-=p.left,n||i||(r="below"),d||!u||n?!u&&d&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(h.top=a.top-p.top-o),null!=r&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+r),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+r)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t})),t.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",(function(e){i._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var s=e.GetData(r[0],"data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},t})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(e){i._selectTriggered(e)})),t.on("unselect",(function(e){i._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),t.define("select2/dropdown/dropdownCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("dropdownCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t})),t.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(e){function t(){}return t.prototype.highlightFirstItem=function(t){var n=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(n.length>0){var i=n.first(),r=e.GetData(i[0],"data").element;if(r&&r.getAttribute&&"true"===r.getAttribute("data-select2-tag"))return void i.trigger("mouseenter")}t.call(this)},t})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),t.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(e,t,n,i,r,s,a,o,l,c,u,d,h,f,p,m,g,v,y,b,x,_,w,k,M,S,A,L,T,C,D){function E(){this.reset()}return E.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter&&(null!=u.ajax?u.dataAdapter=p:null!=u.data?u.dataAdapter=f:u.dataAdapter=h,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,b)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,g))),null==u.resultsAdapter&&(u.resultsAdapter=t,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,k)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,w)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,A)),u.tags&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,C))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=x;else{var d=c.Decorate(x,_);u.dropdownAdapter=d}0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,S)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,L)),null!=u.dropdownCssClass&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,T)),u.dropdownAdapter=c.Decorate(u.dropdownAdapter,M)}null==u.selectionAdapter&&(u.multiple?u.selectionAdapter=i:u.selectionAdapter=n,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.selectionCssClass&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.selectionAdapter=c.Decorate(u.selectionAdapter,l)),u.language=this._resolveLanguage(u.language),u.language.push("en");for(var D=[],E=0;E<u.language.length;E++){var O=u.language[E];-1===D.indexOf(O)&&D.push(O)}return u.language=D,u.translations=this._processTranslations(u.language,u.debug),u},E.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return d[e]||e}))}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function n(i,r){if(null==i.term||""===i.term.trim())return r;if(r.children&&r.children.length>0){for(var s=e.extend(!0,{},r),a=r.children.length-1;a>=0;a--){null==n(i,r.children[a])&&s.children.splice(a,1)}return s.children.length>0?s:n(i,s)}var o=t(r.text).toUpperCase(),l=t(i.term).toUpperCase();return o.indexOf(l)>-1?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},E.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),s=t.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(s));return e.language=a,e},E.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=Array.isArray(t)?t:[t];for(var i=[],r=0;r<n.length;r++)if(i.push(n[r]),"string"==typeof n[r]&&n[r].indexOf("-")>0){var s=n[r].split("-")[0];i.push(s)}return i},E.prototype._processTranslations=function(t,n){for(var i=new u,r=0;r<t.length;r++){var s=new u,a=t[r];if("string"==typeof a)try{s=u.loadPath(a)}catch(e){try{a=this.defaults.amdLanguageBase+a,s=u.loadPath(a)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else s=e.isPlainObject(a)?new u(a):a;i.extend(s)}return i},E.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var r=c._convertData(i);e.extend(!0,this.defaults,r)},new E})),t.define("select2/options",["jquery","./defaults","./utils"],(function(e,t,n){function i(e,n){this.options=e,null!=n&&this.fromElement(n),null!=n&&(this.options=t.applyFromElement(this.options,n)),this.options=t.apply(this.options)}return i.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));var r={};function s(e,t){return t.toUpperCase()}for(var a=0;a<t[0].attributes.length;a++){var o=t[0].attributes[a].name,l="data-";if(o.substr(0,5)==l){var c=o.substring(5),u=n.GetData(t[0],c);r[c.replace(/-([a-z])/g,s)]=u}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var d=e.extend(!0,{},n.GetData(t[0]),r);for(var h in d=n._convertData(d))i.indexOf(h)>-1||(e.isPlainObject(this.options[h])?e.extend(this.options[h],d[h]):this.options[h]=d[h]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,i){var r=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),r.__super__.constructor.call(this);var s=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",s),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var o=this.render();this._placeContainer(o);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var s=e.attr("style");if("string"!=typeof s)return null;for(var a=s.split(";"),o=0,l=a.length;o<l;o+=1){var c=a[o].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(t){e._syncA(),e._syncS(t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,i){-1===t.indexOf(n)&&e.trigger(n,i)}))},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){e.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){e.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){e.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){e.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER||n===i.TAB?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0)for(var n=0;n<e.addedNodes.length;n++){if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&e.removedNodes.length>0)return!0;if(Array.isArray(e))return e.some((function(e){return t._isChangeMutation(e)}))}return!1},r.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current((function(e){n.trigger("selection:update",{data:e})}))},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var s=i[e],a={prevented:!1,name:e,args:t};if(n.call(this,s,a),a.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map((function(e){return e.toString()}))),this.$element.val(t).trigger("input").trigger("change")},r.prototype.destroy=function(){n.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},r})),t.define("select2/dropdown/attachContainer",[],(function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t[0].classList.add("select2-dropdown--below"),n[0].classList.add("select2-container--below")},e})),t.define("select2/dropdown/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),t.define("select2/selection/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),
/*!
 * jQuery Mousewheel 3.1.13
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 */
n=function(e){var t,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(e.event.fixHooks)for(var a=i.length;a;)e.event.fixHooks[i[--a]]=e.event.mouseHooks;var o=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",o.getLineHeight(this)),e.data(this,"mousewheel-page-height",o.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var r,a=i||window.event,l=s.call(arguments,1),d=0,h=0,f=0,p=0,m=0;if((i=e.event.fix(a)).type="mousewheel","detail"in a&&(f=-1*a.detail),"wheelDelta"in a&&(f=a.wheelDelta),"wheelDeltaY"in a&&(f=a.wheelDeltaY),"wheelDeltaX"in a&&(h=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(h=-1*f,f=0),d=0===f?h:f,"deltaY"in a&&(d=f=-1*a.deltaY),"deltaX"in a&&(h=a.deltaX,0===f&&(d=-1*h)),0!==f||0!==h){if(1===a.deltaMode){var g=e.data(this,"mousewheel-line-height");d*=g,f*=g,h*=g}else if(2===a.deltaMode){var v=e.data(this,"mousewheel-page-height");d*=v,f*=v,h*=v}if(r=Math.max(Math.abs(f),Math.abs(h)),(!n||r<n)&&(n=r,u(a,r)&&(n/=40)),u(a,r)&&(d/=40,h/=40,f/=40),d=Math[d>=1?"floor":"ceil"](d/n),h=Math[h>=1?"floor":"ceil"](h/n),f=Math[f>=1?"floor":"ceil"](f/n),o.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=i.clientX-y.left,m=i.clientY-y.top}return i.deltaX=h,i.deltaY=f,i.deltaFactor=n,i.offsetX=p,i.offsetY=m,i.deltaMode=0,l.unshift(i,d,h,f),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function c(){n=null}function u(e,t){return o.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],n):"object"==typeof exports?module.exports=n:n(e),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,i,r){if(null==e.fn.select2){var s=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new n(e(this),i)})),this;if("string"==typeof t){var i,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,a)})),s.indexOf(t)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n})),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n})),$.fn.select2.defaults.set("theme","bootstrap5"),$.fn.select2.defaults.set("width","100%"),$.fn.select2.defaults.set("selectionCssClass",":all:"),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).tempusDominus={})}(this,(function(e){"use strict";class t extends Error{}const n="tempus-dominus";class i{}i.NAME=n,i.dataKey="td",i.events=new class{constructor(){this.key=".td",this.change=`change${this.key}`,this.update=`update${this.key}`,this.error=`error${this.key}`,this.show=`show${this.key}`,this.hide=`hide${this.key}`,this.blur=`blur${this.key}`,this.focus=`focus${this.key}`,this.keyup=`keyup${this.key}`,this.keydown=`keydown${this.key}`}},i.css=new class{constructor(){this.widget=`${n}-widget`,this.calendarHeader="calendar-header",this.switch="picker-switch",this.toolbar="toolbar",this.noHighlight="no-highlight",this.sideBySide="timepicker-sbs",this.previous="previous",this.next="next",this.disabled="disabled",this.old="old",this.new="new",this.active="active",this.dateContainer="date-container",this.decadesContainer=`${this.dateContainer}-decades`,this.decade="decade",this.yearsContainer=`${this.dateContainer}-years`,this.year="year",this.monthsContainer=`${this.dateContainer}-months`,this.month="month",this.daysContainer=`${this.dateContainer}-days`,this.day="day",this.calendarWeeks="cw",this.dayOfTheWeek="dow",this.today="today",this.weekend="weekend",this.rangeIn="range-in",this.rangeStart="range-start",this.rangeEnd="range-end",this.timeContainer="time-container",this.separator="separator",this.clockContainer=`${this.timeContainer}-clock`,this.hourContainer=`${this.timeContainer}-hour`,this.minuteContainer=`${this.timeContainer}-minute`,this.secondContainer=`${this.timeContainer}-second`,this.hour="hour",this.minute="minute",this.second="second",this.toggleMeridiem="toggleMeridiem",this.show="show",this.collapsing="td-collapsing",this.collapse="td-collapse",this.inline="inline",this.lightTheme="light",this.darkTheme="dark",this.isDarkPreferredQuery="(prefers-color-scheme: dark)"}},i.errorMessages=new class{constructor(){this.base="TD:",this.failedToSetInvalidDate="Failed to set invalid date",this.failedToParseInput="Failed parse input field"}unexpectedOption(e){const n=new t(`${this.base} Unexpected option: ${e} does not match a known option.`);throw n.code=1,n}unexpectedOptions(e){const n=new t(`${this.base}: ${e.join(", ")}`);throw n.code=1,n}unexpectedOptionValue(e,n,i){const r=new t(`${this.base} Unexpected option value: ${e} does not accept a value of "${n}". Valid values are: ${i.join(", ")}`);throw r.code=2,r}typeMismatch(e,n,i){const r=new t(`${this.base} Mismatch types: ${e} has a type of ${n} instead of the required ${i}`);throw r.code=3,r}numbersOutOfRange(e,n,i){const r=new t(`${this.base} ${e} expected an array of number between ${n} and ${i}.`);throw r.code=4,r}failedToParseDate(e,n,i=!1){const r=new t(`${this.base} Could not correctly parse "${n}" to a date for ${e}.`);if(r.code=5,!i)throw r;console.warn(r)}mustProvideElement(){const e=new t(`${this.base} No element was provided.`);throw e.code=6,e}subscribeMismatch(){const e=new t(`${this.base} The subscribed events does not match the number of callbacks`);throw e.code=7,e}conflictingConfiguration(e){const n=new t(`${this.base} A configuration value conflicts with another rule. ${e}`);throw n.code=8,n}customDateFormatError(e){const n=new t(`${this.base} Custom Date Format: ${e}`);throw n.code=9,n}dateString(){console.warn(`${this.base} Using a string for date options is not recommended unless you specify an ISO string or use the customDateFormat plugin.`)}deprecatedWarning(e,t){console.warn(`${this.base} Warning ${e} is deprecated and will be removed in a future version. ${t}`)}throwError(e){const n=new t(`${this.base} ${e}`);throw n.code=9,n}};var r,s={dateFormats:{LTS:"h:mm:ss T",LT:"h:mm T",L:"MM/dd/yyyy",LL:"MMMM d, yyyy",LLL:"MMMM d, yyyy h:mm T",LLLL:"dddd, MMMM d, yyyy h:mm T"},format:"L LT",locale:"default",hourCycle:void 0,ordinal:e=>{const t=["th","st","nd","rd"],n=e%100;return`[${e}${t[(n-20)%10]||t[n]||t[0]}]`}};e.Unit=void 0,(r=e.Unit||(e.Unit={})).seconds="seconds",r.minutes="minutes",r.hours="hours",r.date="date",r.month="month",r.year="year";const a={month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},o=e=>{switch(e){case"date":return{dateStyle:"short"};case"month":return{month:"numeric",year:"numeric"};case"year":return{year:"numeric"}}},l=e=>{if(!e)return"h12";const t={hour:"2-digit",minute:"2-digit",numberingSystem:"latn"},n=(new c).setLocalization({locale:e});n.hours=0;const i=n.parts(void 0,t).hour;if("12"===i)return"h12";if("24"===i)return"h24";n.hours=23;const r=n.parts(void 0,t).hour;return"00"===i&&"11"===r?"h11":"00"===i&&"23"===r?"h23":void console.warn(`couldn't determine hour cycle for ${e}. start: ${i}. end: ${r}`)};class c extends Date{constructor(){super(...arguments),this.localization=s,this.nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],this.leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335],this.dateTimeRegex=/(\[[^[\]]*])|y{1,4}|M{1,4}|d{1,4}|H{1,2}|h{1,2}|t|T|m{1,2}|s{1,2}|f{3}/g,this.formattingTokens=/(\[[^[\]]*])|([-_:/.,()\s]+)|(T|t|yyyy|yy?|MM?M?M?|Do|dd?d?d?|hh?|HH?|mm?|ss?)/g,this.match2=/\d\d/,this.match3=/\d{3}/,this.match4=/\d{4}/,this.match1to2=/\d\d?/,this.matchSigned=/[+-]?\d+/,this.matchOffset=/[+-]\d\d:?(\d\d)?|Z/,this.matchWord=/[^\d_:/,\-()\s]+/,this.zoneExpressions=[this.matchOffset,(e,t)=>{e.offset=this.offsetFromString(t)}],this.expressions={t:{pattern:void 0,parser:(e,t)=>{e.afternoon=this.meridiemMatch(t)}},T:{pattern:void 0,parser:(e,t)=>{e.afternoon=this.meridiemMatch(t)}},fff:{pattern:this.match3,parser:(e,t)=>{e.milliseconds=+t}},s:{pattern:this.match1to2,parser:this.addInput("seconds")},ss:{pattern:this.match1to2,parser:this.addInput("seconds")},m:{pattern:this.match1to2,parser:this.addInput("minutes")},mm:{pattern:this.match1to2,parser:this.addInput("minutes")},H:{pattern:this.match1to2,parser:this.addInput("hours")},h:{pattern:this.match1to2,parser:this.addInput("hours")},HH:{pattern:this.match1to2,parser:this.addInput("hours")},hh:{pattern:this.match1to2,parser:this.addInput("hours")},d:{pattern:this.match1to2,parser:this.addInput("day")},dd:{pattern:this.match2,parser:this.addInput("day")},Do:{pattern:this.matchWord,parser:(e,t)=>{if(e.day=+(t.match(/\d+/)[0]||1),this.localization.ordinal)for(let n=1;n<=31;n+=1)this.localization.ordinal(n).replace(/[[\]]/g,"")===t&&(e.day=n)}},M:{pattern:this.match1to2,parser:this.addInput("month")},MM:{pattern:this.match2,parser:this.addInput("month")},MMM:{pattern:this.matchWord,parser:(e,t)=>{const n=this.getAllMonths(),i=(this.getAllMonths("short")||n.map((e=>e.slice(0,3)))).indexOf(t)+1;if(i<1)throw new Error;e.month=i%12||i}},MMMM:{pattern:this.matchWord,parser:(e,t)=>{const n=this.getAllMonths().indexOf(t)+1;if(n<1)throw new Error;e.month=n%12||n}},y:{pattern:this.matchSigned,parser:this.addInput("year")},yy:{pattern:this.match2,parser:(e,t)=>{e.year=this.parseTwoDigitYear(+t)}},yyyy:{pattern:this.match4,parser:this.addInput("year")}}}setLocale(e){return this.localization||(this.localization=s,this.localization.locale=e),this}setLocalization(e){return this.localization=e,this}static convert(e,t="default",n=void 0){if(!e)throw new Error("A date is required");return n||((n=s).locale=t),new c(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).setLocalization(n)}get clone(){return new c(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.getMilliseconds()).setLocalization(this.localization)}static isValid(e){return void 0!==e&&"null"!==JSON.stringify(e)&&e.constructor.name===c.name}startOf(t,n=0){if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);switch(t){case"seconds":this.setMilliseconds(0);break;case"minutes":this.setSeconds(0,0);break;case"hours":this.setMinutes(0,0,0);break;case"date":this.setHours(0,0,0,0);break;case"weekDay":{if(this.startOf(e.Unit.date),this.weekDay===n)break;const t=(this.weekDay-n+7)%7;this.manipulate(-1*t,e.Unit.date);break}case"month":this.startOf(e.Unit.date),this.setDate(1);break;case"year":this.startOf(e.Unit.date),this.setMonth(0,1)}return this}endOf(t,n=0){if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);switch(t){case"seconds":this.setMilliseconds(999);break;case"minutes":this.setSeconds(59,999);break;case"hours":this.setMinutes(59,59,999);break;case"date":this.setHours(23,59,59,999);break;case"weekDay":{this.endOf(e.Unit.date);const t=6+n;if(this.weekDay===t)break;this.manipulate(t-this.weekDay,e.Unit.date);break}case"month":this.endOf(e.Unit.date),this.manipulate(1,e.Unit.month),this.setDate(0);break;case"year":this.endOf(e.Unit.date),this.setMonth(11,31)}return this}manipulate(e,t){if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);return this[t]+=e,this}isBefore(e,t){if(!c.isValid(e))return!1;if(!t)return this.valueOf()<e.valueOf();if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);return this.clone.startOf(t).valueOf()<e.clone.startOf(t).valueOf()}isAfter(e,t){if(!c.isValid(e))return!1;if(!t)return this.valueOf()>e.valueOf();if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);return this.clone.startOf(t).valueOf()>e.clone.startOf(t).valueOf()}isSame(e,t){if(!c.isValid(e))return!1;if(!t)return this.valueOf()===e.valueOf();if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);return e=c.convert(e),this.clone.startOf(t).valueOf()===e.startOf(t).valueOf()}isBetween(e,t,n,i="()"){if(!c.isValid(e)||!c.isValid(t))return!1;if(n&&void 0===this[n])throw new Error(`Unit '${n}' is not valid`);const r="("===i[0],s=")"===i[1],a=r?this.isAfter(e,n):!this.isBefore(e,n),o=s?this.isBefore(t,n):!this.isAfter(t,n);return a&&o}parts(e=this.localization.locale,t={dateStyle:"full",timeStyle:"long"}){const n={};return new Intl.DateTimeFormat(e,t).formatToParts(this).filter((e=>"literal"!==e.type)).forEach((e=>n[e.type]=e.value)),n}get seconds(){return this.getSeconds()}set seconds(e){this.setSeconds(e)}get secondsFormatted(){return this.parts(void 0,a).second}get minutes(){return this.getMinutes()}set minutes(e){this.setMinutes(e)}get minutesFormatted(){return this.parts(void 0,a).minute}get hours(){return this.getHours()}set hours(e){this.setHours(e)}getHoursFormatted(e="h12"){return this.parts(void 0,{...a,hourCycle:e}).hour}meridiem(e=this.localization.locale){return new Intl.DateTimeFormat(e,{hour:"numeric",hour12:!0}).formatToParts(this).find((e=>"dayPeriod"===e.type))?.value}get date(){return this.getDate()}set date(e){this.setDate(e)}get dateFormatted(){return this.parts(void 0,a).day}get weekDay(){return this.getDay()}get month(){return this.getMonth()}set month(e){const t=new Date(this.year,e+1);t.setDate(0);const n=t.getDate();this.date>n&&(this.date=n),this.setMonth(e)}get monthFormatted(){return this.parts(void 0,a).month}get year(){return this.getFullYear()}set year(e){this.setFullYear(e)}get week(){const e=this.computeOrdinal(),t=this.getUTCDay();let n=Math.floor((e-t+10)/7);return n<1?n=this.weeksInWeekYear():n>this.weeksInWeekYear()&&(n=1),n}weeksInWeekYear(){const e=(this.year+Math.floor(this.year/4)-Math.floor(this.year/100)+Math.floor(this.year/400))%7,t=this.year-1,n=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return 4===e||3===n?53:52}dateToDataValue(){return c.isValid(this)?`${this.year}-${this.month.toString().padStart(2,"0")}-${this.date.toString().padStart(2,"0")}`:""}get isLeapYear(){return this.year%4==0&&(this.year%100!=0||this.year%400==0)}computeOrdinal(){return this.date+(this.isLeapYear?this.leapLadder:this.nonLeapLadder)[this.month]}getAllMonths(e="long"){const t=new Intl.DateTimeFormat(this.localization.locale,{month:e}).format;return[...Array(12).keys()].map((e=>t(new Date(2021,e))))}replaceTokens(e,t){return e.replace(/(\[[^[\]]*])|(LTS?|l{1,4}|L{1,4})/g,((e,n,i)=>{const r=i&&i.toUpperCase();return n||t[r]||s.dateFormats[r]}))}parseTwoDigitYear(e){return e+(e>68?1900:2e3)}offsetFromString(e){if(!e)return 0;if("Z"===e)return 0;const[t,n,i]=e.match(/([+-]|\d\d)/g),r=60*+n+(+i||0);return 0===r?0:"+"===t?-r:r}zoneInformation(e,t){let n=e.parts(this.localization.locale,{timeZoneName:"longOffset"}).timeZoneName.replace("GMT","").replace(":","");const i=n.includes("-");return n=n.replace("-",""),"z"===t?n=n.substring(1,2):"zz"===t&&(n=n.substring(0,2)),`${i?"-":""}${n}`}addInput(e){return(t,n)=>{t[e]=+n}}getLocaleAfternoon(){return new Intl.DateTimeFormat(this.localization.locale,{hour:"numeric",hour12:!0}).formatToParts(new Date(2022,3,4,13)).find((e=>"dayPeriod"===e.type))?.value?.replace(/\s+/g," ")}meridiemMatch(e){return e.toLowerCase()===this.getLocaleAfternoon().toLowerCase()}correctHours(e){const{afternoon:t}=e;if(void 0!==t){const{hours:n}=e;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}makeParser(e){const t=(e=this.replaceTokens(e,this.localization.dateFormats)).match(this.formattingTokens),{length:n}=t,i=[];for(let e=0;e<n;e+=1){const n=t[e],r=this.expressions[n];i[e]=r?.parser?r:n.replace(/^\[[^[\]]*]$/g,"")}return e=>{const t={hours:0,minutes:0,seconds:0,milliseconds:0};for(let r=0,s=0;r<n;r+=1){const n=i[r];if("string"==typeof n)s+=n.length;else{const i=e.slice(s);let r=i;n.pattern&&(r=n.pattern.exec(i)[0]),n.parser.call(this,t,r),e=e.replace(r,"")}}return this.correctHours(t),t}}static fromString(e,t){t?.format||i.errorMessages.customDateFormatError("No format was provided");try{const n=new c;if(n.setLocalization(t),["x","X"].indexOf(t.format)>-1)return new c(("X"===t.format?1e3:1)*+e);e=e.replace(/\s+/g," ");const i=n.makeParser(t.format),{year:r,month:s,day:a,hours:o,minutes:l,seconds:u,milliseconds:d,zone:h}=i(e),f=a||(r||s?1:n.getDate()),p=r||n.getFullYear();let m=0;return r&&!s||(m=s>0?s-1:n.getMonth()),h?new c(Date.UTC(p,m,f,o,l,u,d+60*h.offset*1e3)):new c(p,m,f,o,l,u,d)}catch(n){i.errorMessages.customDateFormatError(`Unable to parse provided input: ${e}, format: ${t.format}`)}}format(e,t=this.localization.locale){if(e&&"object"==typeof e)return new Intl.DateTimeFormat(t,e).format(this);const n=this.replaceTokens(e||this.localization.format||`${s.dateFormats.L}, ${s.dateFormats.LT}`,this.localization.dateFormats),i=e=>new Intl.DateTimeFormat(this.localization.locale,e).format(this);this.localization.hourCycle||(this.localization.hourCycle=l(this.localization.locale));const r=this.localization.hourCycle.startsWith("h1")?"h24":this.localization.hourCycle,a=this.localization.hourCycle.startsWith("h2")?"h12":this.localization.hourCycle,o={y:this.year,yy:i({year:"2-digit"}),yyyy:this.year,M:i({month:"numeric"}),MM:this.monthFormatted,MMM:this.getAllMonths("short")[this.getMonth()],MMMM:this.getAllMonths()[this.getMonth()],d:this.date,dd:this.dateFormatted,ddd:i({weekday:"short"}),dddd:i({weekday:"long"}),H:this.getHours(),HH:this.getHoursFormatted(r),h:this.hours>12?this.hours-12:this.hours,hh:this.getHoursFormatted(a),t:this.meridiem(),T:this.meridiem().toUpperCase(),m:this.minutes,mm:this.minutesFormatted,s:this.seconds,ss:this.secondsFormatted,fff:this.getMilliseconds()};return n.replace(this.dateTimeRegex,((e,t)=>t||o[e])).replace(/\[/g,"").replace(/]/g,"")}}class u{constructor(){this.cache=new Map}locate(e){const t=this.cache.get(e);if(t)return t;const n=new e;return this.cache.set(e,n),n}}let d;const h=[{name:"calendar",className:i.css.daysContainer,unit:e.Unit.month,step:1},{name:"months",className:i.css.monthsContainer,unit:e.Unit.year,step:1},{name:"years",className:i.css.yearsContainer,unit:e.Unit.year,step:10},{name:"decades",className:i.css.decadesContainer,unit:e.Unit.year,step:100}];class f{constructor(){this._currentCalendarViewMode=0,this._viewDate=new c,this.minimumCalendarViewMode=0,this.currentView="calendar"}get currentCalendarViewMode(){return this._currentCalendarViewMode}set currentCalendarViewMode(e){this._currentCalendarViewMode=e,this.currentView=h[e].name}get viewDate(){return this._viewDate}set viewDate(e){this._viewDate=e,this.options&&(this.options.viewDate=e)}refreshCurrentView(){this.currentView=h[this.currentCalendarViewMode].name}get isTwelveHour(){return["h12","h11"].includes(this.options.localization.hourCycle)}}class p{constructor(){this.optionsStore=d.locate(f)}isValid(t,n){if(!this._enabledDisabledDatesIsValid(n,t))return!1;if(n!==e.Unit.month&&n!==e.Unit.year&&this.optionsStore.options.restrictions.daysOfWeekDisabled?.length>0&&-1!==this.optionsStore.options.restrictions.daysOfWeekDisabled.indexOf(t.weekDay))return!1;if(!this._minMaxIsValid(n,t))return!1;if(n===e.Unit.hours||n===e.Unit.minutes||n===e.Unit.seconds){if(!this._enabledDisabledHoursIsValid(t))return!1;if(0!==this.optionsStore.options.restrictions.disabledTimeIntervals?.filter((e=>t.isBetween(e.from,e.to))).length)return!1}return!0}_enabledDisabledDatesIsValid(t,n){return!(t===e.Unit.date&&(this.optionsStore.options.restrictions.disabledDates.length>0&&this._isInDisabledDates(n)||this.optionsStore.options.restrictions.enabledDates.length>0&&!this._isInEnabledDates(n)))}_isInDisabledDates(t){return!(!this.optionsStore.options.restrictions.disabledDates||0===this.optionsStore.options.restrictions.disabledDates.length||!this.optionsStore.options.restrictions.disabledDates.find((n=>n.isSame(t,e.Unit.date))))}_isInEnabledDates(t){return!this.optionsStore.options.restrictions.enabledDates||0===this.optionsStore.options.restrictions.enabledDates.length||!!this.optionsStore.options.restrictions.enabledDates.find((n=>n.isSame(t,e.Unit.date)))}_minMaxIsValid(e,t){return!(this.optionsStore.options.restrictions.minDate&&t.isBefore(this.optionsStore.options.restrictions.minDate,e)||this.optionsStore.options.restrictions.maxDate&&t.isAfter(this.optionsStore.options.restrictions.maxDate,e))}_enabledDisabledHoursIsValid(e){return!(this.optionsStore.options.restrictions.disabledHours.length>0&&this._isInDisabledHours(e)||this.optionsStore.options.restrictions.enabledHours.length>0&&!this._isInEnabledHours(e))}_isInDisabledHours(e){if(!this.optionsStore.options.restrictions.disabledHours||0===this.optionsStore.options.restrictions.disabledHours.length)return!1;const t=e.hours;return this.optionsStore.options.restrictions.disabledHours.includes(t)}_isInEnabledHours(e){if(!this.optionsStore.options.restrictions.enabledHours||0===this.optionsStore.options.restrictions.enabledHours.length)return!0;const t=e.hours;return this.optionsStore.options.restrictions.enabledHours.includes(t)}dateRangeIsValid(t,n,i){if(!this.optionsStore.options.dateRange)return!0;if(2!==t.length&&1!==n)return!0;const r=t[0].clone;if(r.isSame(i,e.Unit.date))return!0;for(r.manipulate(1,e.Unit.date);!r.isSame(i,e.Unit.date);){if(!this.isValid(r,e.Unit.date))return!1;r.manipulate(1,e.Unit.date)}return!0}}class m{constructor(){this.subscribers=[]}subscribe(e){return this.subscribers.push(e),this.unsubscribe.bind(this,this.subscribers.length-1)}unsubscribe(e){this.subscribers.splice(e,1)}emit(e){this.subscribers.forEach((t=>{t(e)}))}destroy(){this.subscribers=null,this.subscribers=[]}}class g{constructor(){this.triggerEvent=new m,this.viewUpdate=new m,this.updateDisplay=new m,this.action=new m,this.updateViewDate=new m}destroy(){this.triggerEvent.destroy(),this.viewUpdate.destroy(),this.updateDisplay.destroy(),this.action.destroy(),this.updateViewDate.destroy()}}const v={clear:"Clear selection",close:"Close the picker",dateFormats:s.dateFormats,dayViewHeaderFormat:{month:"long",year:"2-digit"},decrementHour:"Decrement Hour",decrementMinute:"Decrement Minute",decrementSecond:"Decrement Second",format:s.format,hourCycle:s.hourCycle,incrementHour:"Increment Hour",incrementMinute:"Increment Minute",incrementSecond:"Increment Second",locale:s.locale,maxWeekdayLength:0,nextCentury:"Next Century",nextDecade:"Next Decade",nextMonth:"Next Month",nextYear:"Next Year",ordinal:s.ordinal,pickHour:"Pick Hour",pickMinute:"Pick Minute",pickSecond:"Pick Second",previousCentury:"Previous Century",previousDecade:"Previous Decade",previousMonth:"Previous Month",previousYear:"Previous Year",selectDate:"Select Date",selectDecade:"Select Decade",selectMonth:"Select Month",selectTime:"Select Time",selectYear:"Select Year",startOfTheWeek:0,today:"Go to today",toggleMeridiem:"Toggle Meridiem",toggleAriaLabel:"Change date"},y={allowInputToggle:!1,container:void 0,dateRange:!1,debug:!1,defaultDate:void 0,display:{icons:{type:"icons",time:"fa-solid fa-clock",date:"fa-solid fa-calendar",up:"fa-solid fa-arrow-up",down:"fa-solid fa-arrow-down",previous:"fa-solid fa-chevron-left",next:"fa-solid fa-chevron-right",today:"fa-solid fa-calendar-check",clear:"fa-solid fa-trash",close:"fa-solid fa-xmark"},sideBySide:!1,calendarWeeks:!1,viewMode:"calendar",toolbarPlacement:"bottom",keepOpen:!1,buttons:{today:!1,clear:!1,close:!1},components:{calendar:!0,date:!0,month:!0,year:!0,decades:!0,clock:!0,hours:!0,minutes:!0,seconds:!1,useTwentyfourHour:void 0},inline:!1,theme:"auto",placement:"bottom",keyboardNavigation:!0},keepInvalid:!1,localization:v,meta:{},multipleDates:!1,multipleDatesSeparator:"; ",promptTimeOnDateChange:!1,promptTimeOnDateChangeTransitionDelay:200,restrictions:{minDate:void 0,maxDate:void 0,disabledDates:[],enabledDates:[],daysOfWeekDisabled:[],disabledTimeIntervals:[],disabledHours:[],enabledHours:[]},stepping:1,useCurrent:!0,viewDate:new c},b={...v};function x(e,t){if(!e)return null;if(e.constructor.name===c.name)return e;if(e.constructor.name===Date.name)return c.convert(e);if("string"==typeof e){const n=c.fromString(e,t);return"null"===JSON.stringify(n)?null:n}return null}function _(e,t,n){"string"==typeof e&&"input"!==t&&i.errorMessages.dateString();const r=x(e,n);return r||i.errorMessages.failedToParseDate(t,e,"input"===t),r}function w(e,t,n,r=s){Array.isArray(t)||i.errorMessages.typeMismatch(e,n,"array of DateTime or Date");for(let n=0;n<t.length;n++){const i=_(t[n],e,r);i.setLocalization(r),t[n]=i}}function k(e,t,n){Array.isArray(t)&&!t.some((e=>"number"!=typeof e))||i.errorMessages.typeMismatch(e,n,"array of numbers")}function M(e){return({value:t,localization:n})=>{const i=_(t,e,n);if(void 0!==i)return i.setLocalization(n),i}}function S(e){const t=M(e);return e=>void 0===e.value?e.value:t(e)}function A(e,t,n){return({value:r,providedType:s})=>void 0===r?[]:(k(e,r,s),r.some((e=>e<t||e>n))&&i.errorMessages.numbersOutOfRange(e,t,n),r)}function L(e){return A(e,0,23)}function T(e){return({value:t,providedType:n,localization:i})=>void 0===t?[]:(w(e,t,n,i),t)}function C(e){return({value:t,path:n})=>(e.includes(t)||i.errorMessages.unexpectedOptionValue(n.substring(1),t,e),t)}const D=Object.freeze({defaultDate:M("defaultDate"),viewDate:M("viewDate"),minDate:S("restrictions.minDate"),maxDate:S("restrictions.maxDate"),disabledHours:L("restrictions.disabledHours"),enabledHours:L("restrictions.enabledHours"),disabledDates:T("restrictions.disabledDates"),enabledDates:T("restrictions.enabledDates"),daysOfWeekDisabled:A("restrictions.daysOfWeekDisabled",0,6),disabledTimeIntervals:({key:e,value:t,providedType:n,localization:r})=>{if(void 0===t)return[];Array.isArray(t)||i.errorMessages.typeMismatch(e,n,"array of { from: DateTime|Date, to: DateTime|Date }");const s=t;for(let t=0;t<s.length;t++)Object.keys(s[t]).forEach((n=>{const i=`${e}[${t}].${n}`,a=_(s[t][n],i,r);a.setLocalization(r),s[t][n]=a}));return s},toolbarPlacement:C(["top","bottom","default"]),type:C(["icons","sprites"]),viewMode:C(["clock","calendar","months","years","decades"]),theme:C(["light","dark","auto"]),placement:C(["top","bottom"]),meta:({value:e})=>e,dayViewHeaderFormat:({value:e})=>e,container:({value:e,path:t})=>(e&&!(e instanceof HTMLElement||e instanceof Element||e?.appendChild)&&i.errorMessages.typeMismatch(t.substring(1),typeof e,"HTMLElement"),e),useTwentyfourHour:({value:e,path:t,providedType:n,defaultType:r})=>{if(i.errorMessages.deprecatedWarning("useTwentyfourHour",'Please use "options.localization.hourCycle" instead'),void 0===e||"boolean"===n)return e;i.errorMessages.typeMismatch(t,n,r)},hourCycle:C(["h11","h12","h23","h24"])}),E=({value:e,defaultType:t,providedType:n,path:r})=>{switch(t){case"boolean":return"true"===e||!0===e;case"number":return+e;case"string":return e.toString();case"object":return{};case"function":return e;default:i.errorMessages.typeMismatch(r,n,t)}};class O{static deepCopy(e){const t={};return Object.keys(e).forEach((n=>{const i=e[n];i instanceof c?t[n]=i.clone:i instanceof Date?t[n]=new Date(i.valueOf()):(t[n]=i,"object"!=typeof i||i instanceof HTMLElement||i instanceof Element||Array.isArray(i)||(t[n]=O.deepCopy(i)))})),t}static objectPath(e,t){return"."===e.charAt(0)&&(e=e.slice(1)),e?e.split(".").reduce(((e,t)=>O.isValue(e)||O.isValue(e[t])?e[t]:void 0),t):t}static spread(e,t,n,r=""){const s=O.objectPath(r,y),a=Object.keys(e).filter((e=>!Object.keys(s).includes(e)));if(a.length>0){const e=O.getFlattenDefaultOptions(),t=a.map((t=>{let n=`"${r}${r?".":""}${t}" is not a known option.`;const i=e.find((e=>e.includes(t)));return i&&(n+=` Did you mean "${i}"?`),n}));i.errorMessages.unexpectedOptions(t)}Object.keys(e).filter((e=>"__proto__"!==e&&"constructor"!==e)).forEach((i=>{"."===(r+=`.${i}`).charAt(0)&&(r=r.slice(1));const a=s[i],o=typeof e[i],l=typeof a,c=e[i];if(null==c)return t[i]=c,void(r=r.substring(0,r.lastIndexOf(`.${i}`)));"object"!=typeof a||Array.isArray(e[i])||a instanceof Date||O.ignoreProperties.includes(i)?t[i]=O.processKey(i,c,o,l,r,n):O.spread(e[i],t[i],n,r),r=r.substring(0,r.lastIndexOf(`.${i}`))}))}static processKey(e,t,n,i,r,s){return(D[(a={key:e,value:t,providedType:n,defaultType:i,path:r,localization:s}).key]||E)(a);var a}static _mergeOptions(e,t){const n=O.deepCopy(t),i="default"!==t.localization?.locale?t.localization:e?.localization||y.localization;return O.spread(e,n,i,""),n}static _dataToOptions(e,t){const n=JSON.parse(JSON.stringify(e.dataset));if(n?.tdTargetInput&&delete n.tdTargetInput,n?.tdTargetToggle&&delete n.tdTargetToggle,!n||0===Object.keys(n).length)return t;const r={},s=e=>{const t={};return Object.keys(e).forEach((e=>{t[e.toLowerCase()]=e})),t},a=this.normalizeObject(s),o=s(t);return Object.keys(n).filter((e=>e.startsWith(i.dataKey))).map((e=>e.substring(2))).forEach((e=>{let i=o[e.toLowerCase()];if(e.includes("_")){const s=e.split("_");i=o[s[0].toLowerCase()],void 0!==i&&t[i].constructor===Object&&(r[i]=a(s,1,t[i],n[`td${e}`]))}else void 0!==i&&(r[i]=n[`td${e}`])})),this._mergeOptions(r,t)}static normalizeObject(e){const t=(n,i,r,s)=>{const a=e(r)[n[i].toLowerCase()],o={};return void 0===a||(r[a]?.constructor===Object?(i++,o[a]=t(n,i,r[a],s)):o[a]=s),o};return t}static _dateTypeCheck(e,t){return x(e,t)}static _typeCheckDateArray(e,t,n,i){return w(e,t,n,i)}static _typeCheckNumberArray(e,t,n){return k(e,t,n)}static dateConversion(e,t,n){return _(e,t,n)}static getFlattenDefaultOptions(){if(this._flattenDefaults)return this._flattenDefaults;const e=(t,n=[])=>Array.isArray(t)?[]:Object(t)===t?Object.entries(t).flatMap((([t,i])=>e(i,[...n,t]))):n.join(".");return this._flattenDefaults=e(y),this._flattenDefaults}static _validateConflicts(e){!e.display.sideBySide||e.display.components.clock&&(e.display.components.hours||e.display.components.minutes||e.display.components.seconds)||i.errorMessages.conflictingConfiguration("Cannot use side by side mode without the clock components"),e.restrictions.minDate&&e.restrictions.maxDate&&(e.restrictions.minDate.isAfter(e.restrictions.maxDate)&&i.errorMessages.conflictingConfiguration("minDate is after maxDate"),e.restrictions.maxDate.isBefore(e.restrictions.minDate)&&i.errorMessages.conflictingConfiguration("maxDate is before minDate")),e.multipleDates&&e.dateRange&&i.errorMessages.conflictingConfiguration('Cannot uss option "multipleDates" with "dateRange"')}}O.ignoreProperties=["meta","dayViewHeaderFormat","container","dateForms","ordinal"],O.isValue=e=>null!=e;class P{constructor(){this._dates=[],this.optionsStore=d.locate(f),this.validation=d.locate(p),this._eventEmitters=d.locate(g)}get picked(){return[...this._dates]}get lastPicked(){return this._dates[this.lastPickedIndex]?.clone}get lastPickedIndex(){return 0===this._dates.length?0:this._dates.length-1}formatInput(e){return e?(e.localization=this.optionsStore.options.localization,e.format()):""}parseInput(e){try{return O.dateConversion(e,"input",this.optionsStore.options.localization)}catch(t){return void this._eventEmitters.triggerEvent.emit({type:i.events.error,reason:i.errorMessages.failedToParseInput,format:this.optionsStore.options.localization.format,value:e})}}setFromInput(e,t){if(!e)return void this.setValue(void 0,t);const n=this.parseInput(e);n&&(n.setLocalization(this.optionsStore.options.localization),this.setValue(n,t))}add(e){this._dates.push(e)}isPicked(e,t){if(!c.isValid(e))return!1;if(!t)return void 0!==this._dates.find((t=>t.isSame(e)));const n=o(t),i=e.format(n);return void 0!==this._dates.map((e=>e.format(n))).find((e=>e===i))}pickedIndex(e,t){if(!c.isValid(e))return-1;if(!t)return this._dates.map((e=>e.valueOf())).indexOf(e.valueOf());const n=o(t),i=e.format(n);return this._dates.map((e=>e.format(n))).indexOf(i)}clear(){this.optionsStore.unset=!0,this._eventEmitters.triggerEvent.emit({type:i.events.change,date:void 0,oldDate:this.lastPicked,isClear:!0,isValid:!0}),this._dates=[],this.optionsStore.input&&(this.optionsStore.input.value=""),this._eventEmitters.updateDisplay.emit("all")}static getStartEndYear(e,t){const n=e/10,i=Math.floor(t/e)*e;return[i,i+9*n,Math.floor(t/n)*n]}updateInput(e){if(!this.optionsStore.input)return;let t=this.formatInput(e);(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)&&(t=this._dates.map((e=>this.formatInput(e))).join(this.optionsStore.options.multipleDatesSeparator)),this.optionsStore.input.value!=t&&(this.optionsStore.input.value=t)}setValue(t,n){const r=void 0===n,s=!t&&r;let a=this.optionsStore.unset?null:this._dates[n]?.clone;if(!a&&!this.optionsStore.unset&&r&&s&&(a=this.lastPicked),t&&a?.isSame(t))return void this.updateInput(t);if(!t)return void this._setValueNull(s,n,a);n=n||0,t=t.clone,1!==this.optionsStore.options.stepping&&(t.minutes=Math.round(t.minutes/this.optionsStore.options.stepping)*this.optionsStore.options.stepping,t.startOf(e.Unit.minutes));const o=e=>{this._dates[n]=t,this._eventEmitters.updateViewDate.emit(t.clone),this.updateInput(t),this.optionsStore.unset=!1,this._eventEmitters.updateDisplay.emit("all"),this._eventEmitters.triggerEvent.emit({type:i.events.change,date:t,oldDate:a,isClear:s,isValid:e})};this.validation.isValid(t)&&this.validation.dateRangeIsValid(this.picked,n,t)?o(!0):(this.optionsStore.options.keepInvalid&&o(!1),this._eventEmitters.triggerEvent.emit({type:i.events.error,reason:i.errorMessages.failedToSetInvalidDate,date:t,oldDate:a}))}_setValueNull(e,t,n){!this.optionsStore.options.multipleDates||1===this._dates.length||e?(this.optionsStore.unset=!0,this._dates=[]):this._dates.splice(t,1),this.updateInput(),this._eventEmitters.triggerEvent.emit({type:i.events.change,date:void 0,oldDate:n,isClear:e,isValid:!0}),this._eventEmitters.updateDisplay.emit("all")}}var Y;!function(e){e.next="next",e.previous="previous",e.changeCalendarView="changeCalendarView",e.selectMonth="selectMonth",e.selectYear="selectYear",e.selectDecade="selectDecade",e.selectDay="selectDay",e.selectHour="selectHour",e.selectMinute="selectMinute",e.selectSecond="selectSecond",e.incrementHours="incrementHours",e.incrementMinutes="incrementMinutes",e.incrementSeconds="incrementSeconds",e.decrementHours="decrementHours",e.decrementMinutes="decrementMinutes",e.decrementSeconds="decrementSeconds",e.toggleMeridiem="toggleMeridiem",e.togglePicker="togglePicker",e.showClock="showClock",e.showHours="showHours",e.showMinutes="showMinutes",e.showSeconds="showSeconds",e.clear="clear",e.close="close",e.today="today"}(Y||(Y={}));var I=Y;class N{constructor(){this.optionsStore=d.locate(f),this.dates=d.locate(P),this.validation=d.locate(p)}getPicker(){const e=document.createElement("div");if(e.classList.add(i.css.daysContainer),e.role="grid",e.append(...this._daysOfTheWeek()),this.optionsStore.options.display.calendarWeeks){const t=document.createElement("div");t.classList.add(i.css.calendarWeeks,i.css.noHighlight),e.appendChild(t)}const{rangeHoverEvent:t,rangeHoverOutEvent:n}=this.handleMouseEvents(e);for(let r=0;r<42;r++){if(0!==r&&r%7==0&&this.optionsStore.options.display.calendarWeeks){const t=document.createElement("div");t.classList.add(i.css.calendarWeeks,i.css.noHighlight),t.tabIndex=-1,e.appendChild(t)}const s=document.createElement("div");s.setAttribute("data-action",I.selectDay),s.role="gridcell",s.tabIndex=-1,e.appendChild(s),matchMedia("(hover: hover)").matches&&this.optionsStore.options.dateRange&&(s.addEventListener("mouseover",t),s.addEventListener("mouseout",n))}return e}_update(t,n){const r=t.getElementsByClassName(i.css.daysContainer)[0];this._updateCalendarView(r);const s=this.optionsStore.viewDate.clone.startOf(e.Unit.month).startOf("weekDay",this.optionsStore.options.localization.startOfTheWeek).manipulate(12,e.Unit.hours);this._handleCalendarWeeks(r,s.clone),r.querySelectorAll(`[data-action="${I.selectDay}"]`).forEach((t=>{const r=[];r.push(i.css.day),s.isBefore(this.optionsStore.viewDate,e.Unit.month)&&r.push(i.css.old),s.isAfter(this.optionsStore.viewDate,e.Unit.month)&&r.push(i.css.new),this.optionsStore.unset||this.optionsStore.options.dateRange||!this.dates.isPicked(s,e.Unit.date)||r.push(i.css.active),this.validation.isValid(s,e.Unit.date)||r.push(i.css.disabled),s.isSame(new c,e.Unit.date)&&r.push(i.css.today),0!==s.weekDay&&6!==s.weekDay||r.push(i.css.weekend),this._handleDateRange(s,r),n(e.Unit.date,s,r,t),t.classList.remove(...t.classList),t.classList.add(...r),t.setAttribute("data-value",s.dateToDataValue()),t.setAttribute("data-day",`${s.date}`),t.innerText=s.parts(void 0,{day:"numeric"}).day,t.ariaLabel=s.format("MMMM dd, yyyy"),s.manipulate(1,e.Unit.date)}))}_handleDateRange(t,n){const r=this.dates.picked[0],s=this.dates.picked[1];this.optionsStore.options.dateRange&&(t.isBetween(r,s,e.Unit.date)&&n.push(i.css.rangeIn),t.isSame(r,e.Unit.date)&&n.push(i.css.rangeStart),t.isSame(s,e.Unit.date)&&n.push(i.css.rangeEnd))}handleMouseEvents(t){return{rangeHoverEvent:n=>{const r=n?.currentTarget;if(1!==this.dates.picked.length||r.classList.contains(i.css.disabled))return;const s=[...t.querySelectorAll(".day")],a=r.getAttribute("data-value"),o=c.fromString(a,{format:"yyyy-MM-dd"}),l=s.findIndex((e=>e.getAttribute("data-value")===a)),u=this.dates.picked[0],d=this.dates.picked[1],h=u.dateToDataValue(),f=s.findIndex((e=>e.getAttribute("data-value")===h)),p=s[f];let m;o.isSame(u,e.Unit.date)||r.classList.remove(i.css.rangeStart),o.isSame(d,e.Unit.date)||r.classList.remove(i.css.rangeEnd),o.isBefore(u)?(r.classList.add(i.css.rangeStart),p?.classList.remove(i.css.rangeStart),p?.classList.add(i.css.rangeEnd),m=(e,t)=>t>l&&t<f):(r.classList.add(i.css.rangeEnd),p?.classList.remove(i.css.rangeEnd),p?.classList.add(i.css.rangeStart),m=(e,t)=>t<l&&t>f),s.filter(m).forEach((e=>{e.classList.add(i.css.rangeIn)}))},rangeHoverOutEvent:n=>{const r=[...t.querySelectorAll(".day")];if(1===this.dates.picked.length&&r.forEach((e=>e.classList.remove(i.css.rangeIn))),1!==this.dates.picked.length)return;const s=n?.currentTarget,a=new c(s.getAttribute("data-value"));a.isSame(this.dates.picked[0],e.Unit.date)||s.classList.remove(i.css.rangeStart),a.isSame(this.dates.picked[1],e.Unit.date)||s.classList.remove(i.css.rangeEnd)}}}_updateCalendarView(t){if("calendar"!==this.optionsStore.currentView)return;const[n,r,s]=t.parentElement.getElementsByClassName(i.css.calendarHeader)[0].getElementsByTagName("div");r.setAttribute(i.css.daysContainer,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat)),this.optionsStore.options.display.components.month?r.classList.remove(i.css.disabled):r.classList.add(i.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,e.Unit.month),e.Unit.month)?n.classList.remove(i.css.disabled):n.classList.add(i.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,e.Unit.month),e.Unit.month)?s.classList.remove(i.css.disabled):s.classList.add(i.css.disabled)}_daysOfTheWeek(){const t=this.optionsStore.viewDate.clone.startOf("weekDay",this.optionsStore.options.localization.startOfTheWeek).startOf(e.Unit.date),n=[];if(document.createElement("div"),this.optionsStore.options.display.calendarWeeks){const e=document.createElement("div");e.classList.add(i.css.calendarWeeks,i.css.noHighlight),e.innerText="#",n.push(e)}for(let r=0;r<7;r++){const r=document.createElement("div");r.classList.add(i.css.dayOfTheWeek,i.css.noHighlight);let s=t.format({weekday:"short"});this.optionsStore.options.localization.maxWeekdayLength>0&&(s=s.substring(0,this.optionsStore.options.localization.maxWeekdayLength)),r.innerText=s,r.ariaLabel=t.format({weekday:"long"}),t.manipulate(1,e.Unit.date),n.push(r)}return n}_handleCalendarWeeks(t,n){[...t.querySelectorAll(`.${i.css.calendarWeeks}`)].filter((e=>"#"!==e.innerText)).forEach((t=>{t.innerText=`${n.week}`,n.manipulate(7,e.Unit.date)}))}}class H{constructor(){this.optionsStore=d.locate(f),this.dates=d.locate(P),this.validation=d.locate(p)}getPicker(){const e=document.createElement("div");e.classList.add(i.css.monthsContainer);for(let t=0;t<12;t++){const t=document.createElement("div");t.tabIndex=-1,t.setAttribute("data-action",I.selectMonth),e.appendChild(t)}return e}_update(t,n){const r=t.getElementsByClassName(i.css.monthsContainer)[0];if("months"===this.optionsStore.currentView){const[t,n,s]=r.parentElement.getElementsByClassName(i.css.calendarHeader)[0].getElementsByTagName("div");n.setAttribute(i.css.monthsContainer,this.optionsStore.viewDate.format({year:"numeric"})),this.optionsStore.options.display.components.year?n.classList.remove(i.css.disabled):n.classList.add(i.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,e.Unit.year),e.Unit.year)?t.classList.remove(i.css.disabled):t.classList.add(i.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,e.Unit.year),e.Unit.year)?s.classList.remove(i.css.disabled):s.classList.add(i.css.disabled)}const s=this.optionsStore.viewDate.clone.startOf(e.Unit.year);r.querySelectorAll(`[data-action="${I.selectMonth}"]`).forEach(((t,r)=>{const a=[];a.push(i.css.month),!this.optionsStore.unset&&this.dates.isPicked(s,e.Unit.month)&&a.push(i.css.active),this.validation.isValid(s,e.Unit.month)||a.push(i.css.disabled),n(e.Unit.month,s,a,t),t.classList.remove(...t.classList),t.classList.add(...a),t.setAttribute("data-value",`${r}`),t.innerText=`${s.format({month:"short"})}`,s.manipulate(1,e.Unit.month)}))}}class j{constructor(){this.optionsStore=d.locate(f),this.dates=d.locate(P),this.validation=d.locate(p)}getPicker(){const e=document.createElement("div");e.classList.add(i.css.yearsContainer);for(let t=0;t<12;t++){const t=document.createElement("div");t.tabIndex=-1,t.setAttribute("data-action",I.selectYear),e.appendChild(t)}return e}_update(t,n){this._startYear=this.optionsStore.viewDate.clone.manipulate(-1,e.Unit.year),this._endYear=this.optionsStore.viewDate.clone.manipulate(10,e.Unit.year);const r=t.getElementsByClassName(i.css.yearsContainer)[0];if("years"===this.optionsStore.currentView){const[t,n,s]=r.parentElement.getElementsByClassName(i.css.calendarHeader)[0].getElementsByTagName("div");n.setAttribute(i.css.yearsContainer,`${this._startYear.format({year:"numeric"})}-${this._endYear.format({year:"numeric"})}`),this.optionsStore.options.display.components.decades?n.classList.remove(i.css.disabled):n.classList.add(i.css.disabled),this.validation.isValid(this._startYear,e.Unit.year)?t.classList.remove(i.css.disabled):t.classList.add(i.css.disabled),this.validation.isValid(this._endYear,e.Unit.year)?s.classList.remove(i.css.disabled):s.classList.add(i.css.disabled)}const s=this.optionsStore.viewDate.clone.startOf(e.Unit.year).manipulate(-1,e.Unit.year);r.querySelectorAll(`[data-action="${I.selectYear}"]`).forEach((t=>{const r=[];r.push(i.css.year),!this.optionsStore.unset&&this.dates.isPicked(s,e.Unit.year)&&r.push(i.css.active),this.validation.isValid(s,e.Unit.year)||r.push(i.css.disabled),n(e.Unit.year,s,r,t),t.classList.remove(...t.classList),t.classList.add(...r),t.setAttribute("data-value",`${s.year}`),t.innerText=s.format({year:"numeric"}),s.manipulate(1,e.Unit.year)}))}}class F{constructor(){this.optionsStore=d.locate(f),this.dates=d.locate(P),this.validation=d.locate(p)}getPicker(){const e=document.createElement("div");e.classList.add(i.css.decadesContainer);for(let t=0;t<12;t++){const t=document.createElement("div");t.tabIndex=-1,t.setAttribute("data-action",I.selectDecade),e.appendChild(t)}return e}_update(t,n){const[r,s]=P.getStartEndYear(100,this.optionsStore.viewDate.year);this._startDecade=this.optionsStore.viewDate.clone.startOf(e.Unit.year),this._startDecade.year=r,this._endDecade=this.optionsStore.viewDate.clone.startOf(e.Unit.year),this._endDecade.year=s;const a=t.getElementsByClassName(i.css.decadesContainer)[0],[o,l,c]=a.parentElement.getElementsByClassName(i.css.calendarHeader)[0].getElementsByTagName("div"),u=this.validation.isValid(this._startDecade,e.Unit.year);"decades"===this.optionsStore.currentView&&(l.setAttribute(i.css.decadesContainer,`${this._startDecade.format({year:"numeric"})}-${this._endDecade.format({year:"numeric"})}`),u?o.classList.remove(i.css.disabled):o.classList.add(i.css.disabled),this.validation.isValid(this._endDecade,e.Unit.year)?c.classList.remove(i.css.disabled):c.classList.add(i.css.disabled));const d=this.dates.picked.map((e=>e.year));a.querySelectorAll(`[data-action="${I.selectDecade}"]`).forEach(((t,r)=>{if(0===r)return t.classList.add(i.css.old),void(this._startDecade.year-10<0&&(t.textContent=" ",o.classList.add(i.css.disabled),t.classList.add(i.css.disabled),t.setAttribute("data-value","")));const s=[];s.push(i.css.decade);const a=this._startDecade.year,l=this._startDecade.year+9;!this.optionsStore.unset&&d.filter((e=>e>=a&&e<=l)).length>0&&s.push(i.css.active),u||this.validation.isValid(this._startDecade.clone.manipulate(10,e.Unit.year),e.Unit.year)||s.push(i.css.disabled),n("decade",this._startDecade,s,t),t.classList.remove(...t.classList),t.classList.add(...s),t.setAttribute("data-value",`${this._startDecade.year}`),t.innerText=`${this._startDecade.format({year:"numeric"})}`,this._startDecade.manipulate(10,e.Unit.year)}))}}class R{constructor(){this._gridColumns="",this.optionsStore=d.locate(f),this.dates=d.locate(P),this.validation=d.locate(p)}getPicker(e){const t=document.createElement("div");return t.classList.add(i.css.clockContainer),t.append(...this._grid(e)),t}_update(t){const n=t.getElementsByClassName(i.css.clockContainer)[0];let r=this.dates.lastPicked?.clone;if(!r&&this.optionsStore.options.useCurrent&&(r=this.optionsStore.viewDate.clone),n.querySelectorAll(".disabled").forEach((e=>e.classList.remove(i.css.disabled))),this.optionsStore.options.display.components.hours&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,e.Unit.hours),e.Unit.hours)||n.querySelector(`[data-action=${I.incrementHours}]`).classList.add(i.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,e.Unit.hours),e.Unit.hours)||n.querySelector(`[data-action=${I.decrementHours}]`).classList.add(i.css.disabled),n.querySelector(`[data-time-component=${e.Unit.hours}]`).innerText=r?r.getHoursFormatted(this.optionsStore.options.localization.hourCycle):"--"),this.optionsStore.options.display.components.minutes&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,e.Unit.minutes),e.Unit.minutes)||n.querySelector(`[data-action=${I.incrementMinutes}]`).classList.add(i.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,e.Unit.minutes),e.Unit.minutes)||n.querySelector(`[data-action=${I.decrementMinutes}]`).classList.add(i.css.disabled),n.querySelector(`[data-time-component=${e.Unit.minutes}]`).innerText=r?r.minutesFormatted:"--"),this.optionsStore.options.display.components.seconds&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,e.Unit.seconds),e.Unit.seconds)||n.querySelector(`[data-action=${I.incrementSeconds}]`).classList.add(i.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,e.Unit.seconds),e.Unit.seconds)||n.querySelector(`[data-action=${I.decrementSeconds}]`).classList.add(i.css.disabled),n.querySelector(`[data-time-component=${e.Unit.seconds}]`).innerText=r?r.secondsFormatted:"--"),this.optionsStore.isTwelveHour){const t=n.querySelector(`[data-action=${I.toggleMeridiem}]`),s=(r||this.optionsStore.viewDate).clone;t.innerText=s.meridiem(),this.validation.isValid(s.manipulate(s.hours>=12?-12:12,e.Unit.hours))?t.classList.remove(i.css.disabled):t.classList.add(i.css.disabled)}n.style.gridTemplateAreas=`"${this._gridColumns}"`}_grid(t){this._gridColumns="";const n=[],r=[],s=[],a=document.createElement("div"),o=t(this.optionsStore.options.display.icons.up),l=t(this.optionsStore.options.display.icons.down);a.classList.add(i.css.separator,i.css.noHighlight);const c=a.cloneNode(!0);c.innerHTML=":";const u=(e=!1)=>e?c.cloneNode(!0):a.cloneNode(!0);if(this.optionsStore.options.display.components.hours){let t=document.createElement("div");t.tabIndex=-1,t.setAttribute("title",this.optionsStore.options.localization.incrementHour),t.setAttribute("data-action",I.incrementHours),t.appendChild(o.cloneNode(!0)),n.push(t),t=document.createElement("div"),t.tabIndex=-1,t.setAttribute("title",this.optionsStore.options.localization.pickHour),t.setAttribute("data-action",I.showHours),t.setAttribute("data-time-component",e.Unit.hours),r.push(t),t=document.createElement("div"),t.tabIndex=-1,t.setAttribute("title",this.optionsStore.options.localization.decrementHour),t.setAttribute("data-action",I.decrementHours),t.appendChild(l.cloneNode(!0)),s.push(t),this._gridColumns+="a"}if(this.optionsStore.options.display.components.minutes){this._gridColumns+=" a",this.optionsStore.options.display.components.hours&&(n.push(u()),r.push(u(!0)),s.push(u()),this._gridColumns+=" a");let t=document.createElement("div");t.tabIndex=-1,t.setAttribute("title",this.optionsStore.options.localization.incrementMinute),t.setAttribute("data-action",I.incrementMinutes),t.appendChild(o.cloneNode(!0)),n.push(t),t=document.createElement("div"),t.tabIndex=-1,t.setAttribute("title",this.optionsStore.options.localization.pickMinute),t.setAttribute("data-action",I.showMinutes),t.setAttribute("data-time-component",e.Unit.minutes),r.push(t),t=document.createElement("div"),t.tabIndex=-1,t.setAttribute("title",this.optionsStore.options.localization.decrementMinute),t.setAttribute("data-action",I.decrementMinutes),t.appendChild(l.cloneNode(!0)),s.push(t)}if(this.optionsStore.options.display.components.seconds){this._gridColumns+=" a",this.optionsStore.options.display.components.minutes&&(n.push(u()),r.push(u(!0)),s.push(u()),this._gridColumns+=" a");let t=document.createElement("div");t.tabIndex=-1,t.setAttribute("title",this.optionsStore.options.localization.incrementSecond),t.setAttribute("data-action",I.incrementSeconds),t.appendChild(o.cloneNode(!0)),n.push(t),t=document.createElement("div"),t.tabIndex=-1,t.setAttribute("title",this.optionsStore.options.localization.pickSecond),t.setAttribute("data-action",I.showSeconds),t.setAttribute("data-time-component",e.Unit.seconds),r.push(t),t=document.createElement("div"),t.tabIndex=-1,t.setAttribute("title",this.optionsStore.options.localization.decrementSecond),t.setAttribute("data-action",I.decrementSeconds),t.appendChild(l.cloneNode(!0)),s.push(t)}if(this.optionsStore.isTwelveHour){this._gridColumns+=" a";let e=u();n.push(e);const t=document.createElement("button");t.tabIndex=-1,t.setAttribute("type","button"),t.setAttribute("title",this.optionsStore.options.localization.toggleMeridiem),t.setAttribute("data-action",I.toggleMeridiem),t.setAttribute("tabindex","-1"),i.css.toggleMeridiem.includes(",")?t.classList.add(...i.css.toggleMeridiem.split(",")):t.classList.add(i.css.toggleMeridiem),e=document.createElement("div"),e.classList.add(i.css.noHighlight),e.appendChild(t),r.push(e),e=u(),s.push(e)}return this._gridColumns=this._gridColumns.trim(),[...n,...r,...s]}}class z{constructor(){this.optionsStore=d.locate(f),this.validation=d.locate(p),this.dates=d.locate(P)}getPicker(){const e=document.createElement("div");e.classList.add(i.css.hourContainer);for(let t=0;t<(this.optionsStore.isTwelveHour?12:24);t++){const t=document.createElement("div");t.tabIndex=-1,t.setAttribute("data-action",I.selectHour),e.appendChild(t)}return e}_update(t,n){const r=t.getElementsByClassName(i.css.hourContainer)[0],s=this.optionsStore.viewDate.clone.startOf(e.Unit.date);r.querySelectorAll(`[data-action="${I.selectHour}"]`).forEach((t=>{const r=[];r.push(i.css.hour),this.validation.isValid(s,e.Unit.hours)||r.push(i.css.disabled),n(e.Unit.hours,s,r,t),t.classList.remove(...t.classList),t.classList.add(...r),t.setAttribute("data-value",`${s.hours}`),t.innerText=s.getHoursFormatted(this.optionsStore.options.localization.hourCycle),s.manipulate(1,e.Unit.hours)}))}}class B{constructor(){this.optionsStore=d.locate(f),this.validation=d.locate(p)}getPicker(){const e=document.createElement("div");e.classList.add(i.css.minuteContainer);const t=1===this.optionsStore.options.stepping?5:this.optionsStore.options.stepping;for(let n=0;n<60/t;n++){const t=document.createElement("div");t.tabIndex=-1,t.setAttribute("data-action",I.selectMinute),e.appendChild(t)}return e}_update(t,n){const r=t.getElementsByClassName(i.css.minuteContainer)[0],s=this.optionsStore.viewDate.clone.startOf(e.Unit.hours),a=1===this.optionsStore.options.stepping?5:this.optionsStore.options.stepping;r.querySelectorAll(`[data-action="${I.selectMinute}"]`).forEach((t=>{const r=[];r.push(i.css.minute),this.validation.isValid(s,e.Unit.minutes)||r.push(i.css.disabled),n(e.Unit.minutes,s,r,t),t.classList.remove(...t.classList),t.classList.add(...r),t.setAttribute("data-value",`${s.minutes}`),t.innerText=s.minutesFormatted,s.manipulate(a,e.Unit.minutes)}))}}class V{constructor(){this.optionsStore=d.locate(f),this.validation=d.locate(p)}getPicker(){const e=document.createElement("div");e.classList.add(i.css.secondContainer);for(let t=0;t<12;t++){const t=document.createElement("div");t.setAttribute("data-action",I.selectSecond),t.tabIndex=-1,e.appendChild(t)}return e}_update(t,n){const r=t.getElementsByClassName(i.css.secondContainer)[0],s=this.optionsStore.viewDate.clone.startOf(e.Unit.minutes);r.querySelectorAll(`[data-action="${I.selectSecond}"]`).forEach((t=>{const r=[];r.push(i.css.second),this.validation.isValid(s,e.Unit.seconds)||r.push(i.css.disabled),n(e.Unit.seconds,s,r,t),t.classList.remove(...t.classList),t.classList.add(...r),t.setAttribute("data-value",`${s.seconds}`),t.innerText=s.secondsFormatted,s.manipulate(5,e.Unit.seconds)}))}}class W{static toggle(e){e.classList.contains(i.css.show)?this.hide(e):this.show(e)}static showImmediately(e){e.classList.remove(i.css.collapsing),e.classList.add(i.css.collapse,i.css.show),e.style.height=""}static show(e){e.classList.contains(i.css.collapsing)||e.classList.contains(i.css.show)||(e.style.height="0",e.classList.remove(i.css.collapse),e.classList.add(i.css.collapsing),setTimeout((()=>{W.showImmediately(e)}),this.getTransitionDurationFromElement(e)),e.style.height=`${e.scrollHeight}px`)}static hideImmediately(e){e&&(e.classList.remove(i.css.collapsing,i.css.show),e.classList.add(i.css.collapse))}static hide(e){!e.classList.contains(i.css.collapsing)&&e.classList.contains(i.css.show)&&(e.style.height=`${e.getBoundingClientRect().height}px`,e.offsetHeight,e.classList.remove(i.css.collapse,i.css.show),e.classList.add(i.css.collapsing),e.style.height="",setTimeout((()=>{W.hideImmediately(e)}),this.getTransitionDurationFromElement(e)))}}W.getTransitionDurationFromElement=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),r=Number.parseFloat(n);return i||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0};class q{constructor(){this._isVisible=!1,this._keyboardEventBound=this._keyboardEvent.bind(this),this._documentClickEvent=e=>{this.optionsStore.options.debug||window.debug||!this._isVisible||e.composedPath().includes(this.widget)||e.composedPath()?.includes(this.optionsStore.element)||this.hide()},this._actionsClickEvent=e=>{this._eventEmitters.action.emit({e:e})},this.optionsStore=d.locate(f),this.validation=d.locate(p),this.dates=d.locate(P),this.dateDisplay=d.locate(N),this.monthDisplay=d.locate(H),this.yearDisplay=d.locate(j),this.decadeDisplay=d.locate(F),this.timeDisplay=d.locate(R),this.hourDisplay=d.locate(z),this.minuteDisplay=d.locate(B),this.secondDisplay=d.locate(V),this._eventEmitters=d.locate(g),this._widget=void 0,this._eventEmitters.updateDisplay.subscribe((e=>{this._update(e)}))}get widget(){return this._widget}get dateContainer(){return this.widget?.querySelector(`div.${i.css.dateContainer}`)}get timeContainer(){return this.widget?.querySelector(`div.${i.css.timeContainer}`)}get isVisible(){return this._isVisible}_update(t){if(this.widget)switch(t){case e.Unit.seconds:this.secondDisplay._update(this.widget,this.paint);break;case e.Unit.minutes:this.minuteDisplay._update(this.widget,this.paint);break;case e.Unit.hours:this.hourDisplay._update(this.widget,this.paint);break;case e.Unit.date:this.dateDisplay._update(this.widget,this.paint);break;case e.Unit.month:this.monthDisplay._update(this.widget,this.paint);break;case e.Unit.year:this.yearDisplay._update(this.widget,this.paint);break;case"decade":this.decadeDisplay._update(this.widget,this.paint);break;case"clock":if(!this._hasTime)break;this.timeDisplay._update(this.widget),this._update(e.Unit.hours),this._update(e.Unit.minutes),this._update(e.Unit.seconds);break;case"calendar":this._update(e.Unit.date),this._update(e.Unit.year),this._update(e.Unit.month),this.decadeDisplay._update(this.widget,this.paint),this._updateCalendarHeader();break;case"all":this._hasTime&&this._update("clock"),this._hasDate&&this._update("calendar")}}paint(e,t,n,i){}show(){if(null==this.widget){if(this._showSetDefaultIfNeeded(),this._buildWidget(),this._updateTheme(),this._showSetupViewMode(),this.optionsStore.options.display.inline)this.optionsStore.element.appendChild(this.widget);else{const e=this.optionsStore.options?.container||document.body,t=this.optionsStore.options?.display?.placement||"bottom";e.appendChild(this.widget);const n=this._handleFocus.bind(this);this.createPopup(this.optionsStore.element,this.widget,{modifiers:[{name:"eventListeners",enabled:!0},{name:"focusDate",enabled:!0,phase:"afterWrite",fn(){n()}}],placement:"rtl"===document.documentElement.dir?`${t}-end`:`${t}-start`}).then((()=>{this._handleFocus()}))}"clock"==this.optionsStore.options.display.viewMode&&this._eventEmitters.action.emit({e:null,action:I.showClock}),this.widget.querySelectorAll("[data-action]").forEach((e=>e.addEventListener("click",this._actionsClickEvent))),this._hasTime&&this.optionsStore.options.display.sideBySide&&(this.timeDisplay._update(this.widget),this.widget.getElementsByClassName(i.css.clockContainer)[0].style.display="grid")}this.widget.classList.add(i.css.show),this.optionsStore.options.display.inline||(this.updatePopup(),document.addEventListener("click",this._documentClickEvent)),this._eventEmitters.triggerEvent.emit({type:i.events.show}),this._isVisible=!0,this.optionsStore.options.display.keyboardNavigation&&this.widget.addEventListener("keydown",this._keyboardEventBound)}_showSetupViewMode(){const e=this._hasTime&&!this._hasDate;e?(this.optionsStore.currentView="clock",this._eventEmitters.action.emit({e:null,action:I.showClock})):this.optionsStore.currentCalendarViewMode||(this.optionsStore.currentCalendarViewMode=this.optionsStore.minimumCalendarViewMode),e||"clock"===this.optionsStore.options.display.viewMode||(this._hasTime&&(this.optionsStore.options.display.sideBySide?W.show(this.timeContainer):W.hideImmediately(this.timeContainer)),W.show(this.dateContainer)),this._hasDate&&this._showMode()}_showSetDefaultIfNeeded(){if(0==this.dates.picked.length){if(this.optionsStore.options.useCurrent&&!this.optionsStore.options.defaultDate){const t=(new c).setLocalization(this.optionsStore.options.localization);if(!this.optionsStore.options.keepInvalid){let n=0,i=1;for(this.optionsStore.options.restrictions.maxDate?.isBefore(t)&&(i=-1);!this.validation.isValid(t)&&n>31;)t.manipulate(i,e.Unit.date),n++}this.dates.setValue(t)}this.optionsStore.options.defaultDate&&this.dates.setValue(this.optionsStore.options.defaultDate)}}async createPopup(e,t,n){let i;if(window?.Popper)i=window?.Popper?.createPopper;else{const{createPopper:e}=await import("@popperjs/core");i=e}i&&(this._popperInstance=i(e,t,n))}updatePopup(){this._popperInstance&&this._popperInstance.update()}_showMode(e){if(!this.widget)return;if(e){const t=Math.max(this.optionsStore.minimumCalendarViewMode,Math.min(3,this.optionsStore.currentCalendarViewMode+e));if(this.optionsStore.currentCalendarViewMode==t)return;this.optionsStore.currentCalendarViewMode=t}this.widget.querySelectorAll(`.${i.css.dateContainer} > div:not(.${i.css.calendarHeader}), .${i.css.timeContainer} > div:not(.${i.css.clockContainer})`).forEach((e=>e.style.display="none"));const t=h[this.optionsStore.currentCalendarViewMode],n=this.widget.querySelector(`.${t.className}`);switch(t.className){case i.css.decadesContainer:this.decadeDisplay._update(this.widget,this.paint);break;case i.css.yearsContainer:this.yearDisplay._update(this.widget,this.paint);break;case i.css.monthsContainer:this.monthDisplay._update(this.widget,this.paint);break;case i.css.daysContainer:this.dateDisplay._update(this.widget,this.paint)}n.style.display="grid",this.optionsStore.options.display.sideBySide&&(this.widget.querySelectorAll(`.${i.css.clockContainer}`)[0].style.display="grid"),this._updateCalendarHeader(),this._eventEmitters.viewUpdate.emit(),this.findViewDateElement()?.focus()}_updateTheme(e){if(this.widget){if(e){if(this.optionsStore.options.display.theme===e)return;this.optionsStore.options.display.theme=e}this.widget.classList.remove("light","dark"),this.widget.classList.add(this._getThemeClass()),"auto"===this.optionsStore.options.display.theme?window.matchMedia(i.css.isDarkPreferredQuery).addEventListener("change",(()=>this._updateTheme())):window.matchMedia(i.css.isDarkPreferredQuery).removeEventListener("change",(()=>this._updateTheme()))}}_getThemeClass(){const e=this.optionsStore.options.display.theme||"auto",t=window.matchMedia&&window.matchMedia(i.css.isDarkPreferredQuery).matches;switch(e){case"light":return i.css.lightTheme;case"dark":return i.css.darkTheme;case"auto":return t?i.css.darkTheme:i.css.lightTheme}}_updateCalendarHeader(){if(!this._hasDate)return;const e=[...this.widget.querySelector(`.${i.css.dateContainer} div[style*="display: grid"]`).classList].find((e=>e.startsWith(i.css.dateContainer))),[t,n,r]=this.widget.getElementsByClassName(i.css.calendarHeader)[0].getElementsByTagName("div");switch(e){case i.css.decadesContainer:t.setAttribute("title",this.optionsStore.options.localization.previousCentury),n.setAttribute("title",""),r.setAttribute("title",this.optionsStore.options.localization.nextCentury);break;case i.css.yearsContainer:t.setAttribute("title",this.optionsStore.options.localization.previousDecade),n.setAttribute("title",this.optionsStore.options.localization.selectDecade),r.setAttribute("title",this.optionsStore.options.localization.nextDecade);break;case i.css.monthsContainer:t.setAttribute("title",this.optionsStore.options.localization.previousYear),n.setAttribute("title",this.optionsStore.options.localization.selectYear),r.setAttribute("title",this.optionsStore.options.localization.nextYear);break;case i.css.daysContainer:t.setAttribute("title",this.optionsStore.options.localization.previousMonth),n.setAttribute("title",this.optionsStore.options.localization.selectMonth),r.setAttribute("title",this.optionsStore.options.localization.nextMonth),n.setAttribute(e,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat))}n.innerText=n.getAttribute(e)}hide(){this.widget&&this._isVisible&&(this.widget.classList.remove(i.css.show),this._isVisible&&(this._eventEmitters.triggerEvent.emit({type:i.events.hide,date:this.optionsStore.unset?null:this.dates.lastPicked?.clone}),this._isVisible=!1),document.removeEventListener("click",this._documentClickEvent),this.optionsStore.options.display.keyboardNavigation&&this.widget.removeEventListener("keydown",this._keyboardEventBound),this.optionsStore.toggle?this.optionsStore.toggle.focus():this.optionsStore.input&&this.optionsStore.input.focus())}toggle(){return this._isVisible?this.hide():this.show()}_dispose(){document.removeEventListener("click",this._documentClickEvent),this.widget&&(this.widget.querySelectorAll("[data-action]").forEach((e=>e.removeEventListener("click",this._actionsClickEvent))),this.widget.parentNode.removeChild(this.widget),this._widget=void 0)}_buildWidget(){const e=document.createElement("div");e.tabIndex=-1,e.classList.add(i.css.widget),e.setAttribute("role","widget");const t=document.createElement("div");t.tabIndex=-1,t.classList.add(i.css.dateContainer),t.append(this.getHeadTemplate(),this.decadeDisplay.getPicker(),this.yearDisplay.getPicker(),this.monthDisplay.getPicker(),this.dateDisplay.getPicker());const n=document.createElement("div");n.tabIndex=-1,n.classList.add(i.css.timeContainer),n.appendChild(this.timeDisplay.getPicker(this._iconTag.bind(this))),n.appendChild(this.hourDisplay.getPicker()),n.appendChild(this.minuteDisplay.getPicker()),n.appendChild(this.secondDisplay.getPicker());const r=document.createElement("div");if(r.tabIndex=-1,r.classList.add(i.css.toolbar),r.append(...this.getToolbarElements()),this.optionsStore.options.display.inline&&e.classList.add(i.css.inline),this.optionsStore.options.display.calendarWeeks&&e.classList.add("calendarWeeks"),this.optionsStore.options.display.sideBySide&&this._hasDateAndTime)return void this._buildWidgetSideBySide(e,t,n,r);"top"===this.optionsStore.options.display.toolbarPlacement&&e.appendChild(r);const s=(t,n,r,s)=>{t&&(n&&(r.classList.add(i.css.collapse),s&&r.classList.add(i.css.show)),e.appendChild(r))};s(this._hasDate,this._hasTime,t,"clock"!==this.optionsStore.options.display.viewMode),s(this._hasTime,this._hasDate,n,"clock"===this.optionsStore.options.display.viewMode),"bottom"===this.optionsStore.options.display.toolbarPlacement&&e.appendChild(r);const a=document.createElement("div");a.classList.add("arrow"),a.setAttribute("data-popper-arrow",""),e.appendChild(a),this._widget=e}_buildWidgetSideBySide(e,t,n,r){e.classList.add(i.css.sideBySide),"top"===this.optionsStore.options.display.toolbarPlacement&&e.appendChild(r);const s=document.createElement("div");s.classList.add("td-row"),t.classList.add("td-half"),n.classList.add("td-half"),s.appendChild(t),s.appendChild(n),e.appendChild(s),"bottom"===this.optionsStore.options.display.toolbarPlacement&&e.appendChild(r),this._widget=e}get _hasTime(){return this.optionsStore.options.display.components.clock&&(this.optionsStore.options.display.components.hours||this.optionsStore.options.display.components.minutes||this.optionsStore.options.display.components.seconds)}get _hasDate(){return this.optionsStore.options.display.components.calendar&&(this.optionsStore.options.display.components.year||this.optionsStore.options.display.components.month||this.optionsStore.options.display.components.date)}get _hasDateAndTime(){return this._hasDate&&this._hasTime}getToolbarElements(){const e=[];if(this.optionsStore.options.display.buttons.today){const t=document.createElement("div");t.tabIndex=-1,t.setAttribute("data-action",I.today),t.setAttribute("title",this.optionsStore.options.localization.today),t.appendChild(this._iconTag(this.optionsStore.options.display.icons.today)),e.push(t)}if(!this.optionsStore.options.display.sideBySide&&this._hasDate&&this._hasTime){let t,n;"clock"===this.optionsStore.options.display.viewMode?(t=this.optionsStore.options.localization.selectDate,n=this.optionsStore.options.display.icons.date):(t=this.optionsStore.options.localization.selectTime,n=this.optionsStore.options.display.icons.time);const i=document.createElement("div");i.tabIndex=-1,i.setAttribute("data-action",I.togglePicker),i.setAttribute("title",t),i.appendChild(this._iconTag(n)),e.push(i)}if(this.optionsStore.options.display.buttons.clear){const t=document.createElement("div");t.tabIndex=-1,t.setAttribute("data-action",I.clear),t.setAttribute("title",this.optionsStore.options.localization.clear),t.appendChild(this._iconTag(this.optionsStore.options.display.icons.clear)),e.push(t)}if(this.optionsStore.options.display.buttons.close){const t=document.createElement("div");t.tabIndex=-1,t.setAttribute("data-action",I.close),t.setAttribute("title",this.optionsStore.options.localization.close),t.appendChild(this._iconTag(this.optionsStore.options.display.icons.close)),e.push(t)}return e}getHeadTemplate(){const e=document.createElement("div");e.classList.add(i.css.calendarHeader);const t=document.createElement("div");t.classList.add(i.css.previous),t.setAttribute("data-action",I.previous),t.appendChild(this._iconTag(this.optionsStore.options.display.icons.previous)),t.tabIndex=-1;const n=document.createElement("div");n.classList.add(i.css.switch),n.setAttribute("data-action",I.changeCalendarView),n.tabIndex=-1;const r=document.createElement("div");return r.classList.add(i.css.next),r.setAttribute("data-action",I.next),r.appendChild(this._iconTag(this.optionsStore.options.display.icons.next)),r.tabIndex=-1,e.append(t,n,r),e}_iconTag(e){if("sprites"===this.optionsStore.options.display.icons.type){const t=document.createElementNS("http://www.w3.org/2000/svg","svg"),n=document.createElementNS("http://www.w3.org/2000/svg","use");return n.setAttribute("xlink:href",e),n.setAttribute("href",e),t.appendChild(n),t}const t=document.createElement("i");return t.classList.add(...e.split(" ")),t}_rebuild(){const e=this._isVisible;this._dispose(),e&&this.show()}refreshCurrentView(){switch(this._isVisible||this._dispose(),this.optionsStore.currentView){case"clock":this._update("clock");break;case"calendar":this._update(e.Unit.date);break;case"months":this._update(e.Unit.month);break;case"years":this._update(e.Unit.year);break;case"decades":this._update("decade")}}_keyboardEvent(e){if("clock"!==this.optionsStore.currentView)return this._handleKeyDownDate(e),!1;this._handleKeyDownClock(e)}findViewDateElement(){let e="",t="";switch(this.optionsStore.currentView){case"clock":break;case"calendar":e=i.css.daysContainer,t=this.optionsStore.viewDate.dateToDataValue();break;case"months":e=i.css.monthsContainer,t=this.optionsStore.viewDate.month.toString();break;case"years":e=i.css.yearsContainer,t=this.optionsStore.viewDate.year.toString();break;case"decades":e=i.css.decadesContainer,t=(10*Math.floor(this.optionsStore.viewDate.year/10)).toString()}return this.widget.querySelector(`.${e} > div[data-value="${t}"]`)}_handleKeyDownDate(t){let n=!1;const i=document.activeElement;let r=null,s=7,a=1,o=1;const l=this.optionsStore.currentView;switch(l){case"calendar":r=e.Unit.date;break;case"months":r=e.Unit.month,s=3,a=1;break;case"years":r=e.Unit.year,s=3,a=1;break;case"decades":r=e.Unit.year,s=30,a=10}switch(t.key){case"Esc":case"Escape":this._eventEmitters.action.emit({e:null,action:I.close});break;case" ":case"Enter":return i.click(),t.stopPropagation(),void t.preventDefault();case"Tab":return void this._handleTab(i,t);case"Right":case"ArrowRight":o=a,n=!0;break;case"Left":case"ArrowLeft":n=!0,o=-a;break;case"Down":case"ArrowDown":n=!0,o=s;break;case"Up":case"ArrowUp":n=!0,o=-s;break;case"PageDown":switch(l){case"calendar":r=t.shiftKey?e.Unit.year:e.Unit.month,o=1;break;case"months":r=e.Unit.year,o=t.shiftKey?10:1;break;case"years":case"decades":r=e.Unit.year,o=t.shiftKey?100:10}n=!0;break;case"PageUp":switch(l){case"calendar":r=t.shiftKey?e.Unit.year:e.Unit.month,o=-1;break;case"months":r=e.Unit.year,o=-(t.shiftKey?10:1);break;case"years":case"decades":r=e.Unit.year,o=-(t.shiftKey?100:10)}n=!0;break;case"Home":this.optionsStore.viewDate=this.optionsStore.viewDate.clone.startOf("weekDay",this.optionsStore.options.localization.startOfTheWeek),n=!0,r=null;break;case"End":this.optionsStore.viewDate=this.optionsStore.viewDate.clone.endOf("weekDay",this.optionsStore.options.localization.startOfTheWeek),n=!0,r=null}if(!n)return;let c=this.optionsStore.viewDate;r&&(c=c.clone.manipulate(o,r)),this._eventEmitters.updateViewDate.emit(c);const u=this.findViewDateElement();u&&u.focus(),t.stopPropagation(),t.preventDefault()}_handleKeyDownClock(e){let t=!1;const n=document.activeElement,r=this.widget.querySelector(`.${i.css.timeContainer} > div[style*="display: grid"]`);let s=i.css.clockContainer;switch(r.classList.contains(i.css.hourContainer)&&(s=i.css.hourContainer),r.classList.contains(i.css.minuteContainer)&&(s=i.css.minuteContainer),r.classList.contains(i.css.secondContainer)&&(s=i.css.secondContainer),e.key){case"Esc":case"Escape":this._eventEmitters.action.emit({e:null,action:I.close});break;case" ":case"Enter":return n.click(),e.stopPropagation(),void e.preventDefault();case"Tab":return void this._handleTab(n,e)}if(s===i.css.clockContainer)return;const a=[...r.querySelectorAll("div")],o=a.indexOf(document.activeElement);let l;switch(e.key){case"Right":case"ArrowRight":l=o<a.length-1?o+1:null,t=!0;break;case"Left":case"ArrowLeft":t=!0,l=o>0?o-1:null;break;case"Down":case"ArrowDown":l=o+4<a.length?o+4:null,t=!0;break;case"Up":case"ArrowUp":l=o-4>=0?o-4:null,t=!0}t&&(null!=l&&a[l].focus(),e.stopPropagation(),e.preventDefault())}_handleTab(e,t){const n=t.shiftKey,r=()=>{const e=this.widget.querySelectorAll(`.${i.css.calendarHeader} > div`);s.push(...e)},s=[];switch(console.log(this.optionsStore.currentView),this.optionsStore.currentView){case"clock":{s.push(...this.widget.querySelectorAll(`.${i.css.timeContainer} > div[style*="display: grid"] > div[data-action]`));const e=this.widget.querySelectorAll(`.${i.css.clockContainer}`)[0];"grid"===e?.style.display&&s.push(...this.widget.querySelectorAll(`.${i.css.toggleMeridiem}`))}break;case"calendar":case"months":case"years":case"decades":r(),s.push(this.findViewDateElement())}const a=this.widget.querySelectorAll(`.${i.css.toolbar} > div`);s.push(...a);const o=s.indexOf(e);-1!==o&&(n?0===o?s[s.length-1].focus():s[o-1].focus():o===s.length-1?s[0].focus():s[o+1].focus(),t.stopPropagation(),t.preventDefault())}_handleFocus(){"clock"===this.optionsStore.currentView?this._handleFocusClock():this.findViewDateElement().focus()}_handleFocusClock(){this.widget.querySelector(`.${i.css.timeContainer} > div[style*="display: grid"]`).children[0].focus()}}class U{constructor(){this.optionsStore=d.locate(f),this.dates=d.locate(P),this.validation=d.locate(p),this.display=d.locate(q),this._eventEmitters=d.locate(g),this._eventEmitters.action.subscribe((e=>{this.do(e.e,e.action)}))}do(t,n){const r=t?.currentTarget;if(r?.classList?.contains(i.css.disabled))return;n=n||r?.dataset?.action;const s=(this.dates.lastPicked||this.optionsStore.viewDate).clone;switch(n){case I.next:case I.previous:this.handleNextPrevious(n);break;case I.changeCalendarView:this.display._showMode(1),this.display._updateCalendarHeader();break;case I.selectMonth:case I.selectYear:case I.selectDecade:this.handleSelectCalendarMode(n,r);break;case I.selectDay:this.handleSelectDay(r);break;case I.selectHour:{let e=+r.dataset.value;s.hours>=12&&this.optionsStore.isTwelveHour&&(e+=12),s.hours=e,this.dates.setValue(s,this.dates.lastPickedIndex),this.hideOrClock(t);break}case I.selectMinute:s.minutes=+r.dataset.value,this.dates.setValue(s,this.dates.lastPickedIndex),this.hideOrClock(t);break;case I.selectSecond:s.seconds=+r.dataset.value,this.dates.setValue(s,this.dates.lastPickedIndex),this.hideOrClock(t);break;case I.incrementHours:this.manipulateAndSet(s,e.Unit.hours);break;case I.incrementMinutes:this.manipulateAndSet(s,e.Unit.minutes,this.optionsStore.options.stepping);break;case I.incrementSeconds:this.manipulateAndSet(s,e.Unit.seconds);break;case I.decrementHours:this.manipulateAndSet(s,e.Unit.hours,-1);break;case I.decrementMinutes:this.manipulateAndSet(s,e.Unit.minutes,-1*this.optionsStore.options.stepping);break;case I.decrementSeconds:this.manipulateAndSet(s,e.Unit.seconds,-1);break;case I.toggleMeridiem:this.manipulateAndSet(s,e.Unit.hours,this.dates.lastPicked.hours>=12?-12:12);break;case I.togglePicker:this.handleToggle(r);break;case I.showClock:case I.showHours:case I.showMinutes:case I.showSeconds:this.optionsStore.options.display.sideBySide||"clock"===this.optionsStore.currentView||(W.hideImmediately(this.display.dateContainer),W.showImmediately(this.display.timeContainer)),this.handleShowClockContainers(n);break;case I.clear:this.dates.setValue(null),this.display._updateCalendarHeader();break;case I.close:this.display.hide();break;case I.today:{const t=(new c).setLocalization(this.optionsStore.options.localization);if(this._eventEmitters.updateViewDate.emit(t),!this.validation.isValid(t,e.Unit.date))break;this.optionsStore.options.dateRange?this.handleDateRange(t):this.optionsStore.options.multipleDates?this.handleMultiDate(t):this.dates.setValue(t,this.dates.lastPickedIndex);break}}}handleShowClockContainers(t){if(!this.display._hasTime)return void i.errorMessages.throwError("Cannot show clock containers when time is disabled.");this.optionsStore.currentView="clock",this.display.widget.querySelectorAll(`.${i.css.timeContainer} > div`).forEach((e=>e.style.display="none"));let n="";switch(t){case I.showClock:n=i.css.clockContainer,this.display._update("clock");break;case I.showHours:n=i.css.hourContainer,this.display._update(e.Unit.hours);break;case I.showMinutes:n=i.css.minuteContainer,this.display._update(e.Unit.minutes);break;case I.showSeconds:n=i.css.secondContainer,this.display._update(e.Unit.seconds)}const r=this.display.widget.getElementsByClassName(n)[0];r.style.display="grid",r.children[0]?.focus()}handleNextPrevious(e){const{unit:t,step:n}=h[this.optionsStore.currentCalendarViewMode];e===I.next?this.optionsStore.viewDate.manipulate(n,t):this.optionsStore.viewDate.manipulate(-1*n,t),this._eventEmitters.viewUpdate.emit(),this.display._showMode()}hideOrClock(e){this.optionsStore.isTwelveHour||this.optionsStore.options.display.components.minutes||this.optionsStore.options.display.keepOpen||this.optionsStore.options.display.inline?this.do(e,I.showClock):this.display.hide()}manipulateAndSet(e,t,n=1){const i=e.manipulate(n,t);this.validation.isValid(i,t)&&this.dates.setValue(i,this.dates.lastPickedIndex)}handleSelectCalendarMode(e,t){const n=+t.dataset.value;switch(e){case I.selectMonth:this.optionsStore.viewDate.month=n;break;case I.selectYear:case I.selectDecade:this.optionsStore.viewDate.year=n}this.optionsStore.currentCalendarViewMode===this.optionsStore.minimumCalendarViewMode?(this.dates.setValue(this.optionsStore.viewDate,this.dates.lastPickedIndex),this.optionsStore.options.display.inline||this.display.hide()):this.display._showMode(-1)}handleToggle(e){e.getAttribute("title")===this.optionsStore.options.localization.selectDate?(e.setAttribute("title",this.optionsStore.options.localization.selectTime),e.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.time).outerHTML,this.display._updateCalendarHeader(),this.optionsStore.refreshCurrentView()):(e.setAttribute("title",this.optionsStore.options.localization.selectDate),e.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.date).outerHTML,this.display._hasTime&&(this.handleShowClockContainers(I.showClock),this.display._update("clock"))),this.display.widget.querySelectorAll(`.${i.css.dateContainer}, .${i.css.timeContainer}`).forEach((e=>W.toggle(e))),this._eventEmitters.viewUpdate.emit();const t=this.display.widget.querySelector(`.${i.css.collapsing} > div[style*="display: grid"]`);t?.focus()}handleSelectDay(t){const n=this.optionsStore.viewDate.clone;t.classList.contains(i.css.old)&&n.manipulate(-1,e.Unit.month),t.classList.contains(i.css.new)&&n.manipulate(1,e.Unit.month),n.date=+t.dataset.day,this.optionsStore.options.dateRange?this.handleDateRange(n):this.optionsStore.options.multipleDates?this.handleMultiDate(n):this.dates.setValue(n,this.dates.lastPickedIndex),this.display._hasTime||this.optionsStore.options.display.keepOpen||this.optionsStore.options.display.inline||this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange||this.display.hide()}handleMultiDate(t){let n=this.dates.pickedIndex(t,e.Unit.date);-1!==n?this.dates.setValue(null,n):(n=this.dates.lastPickedIndex+1,0===this.dates.picked.length&&(n=0),this.dates.setValue(t,n))}handleDateRange(e){switch(this.dates.picked.length){case 2:this.dates.clear();break;case 1:{const t=this.dates.picked[0];if(e.getTime()===t.getTime()){this.dates.clear();break}return e.isBefore(t)?(this.dates.setValue(e,0),void this.dates.setValue(t,1)):void this.dates.setValue(e,1)}}this.dates.setValue(e,0)}}class ${constructor(e,t={}){this._subscribers={},this._isDisabled=!1,this._inputChangeEvent=e=>{const t=e?.detail;if(t)return;const n=()=>{this.dates.lastPicked&&(this.optionsStore.viewDate=this.dates.lastPicked.clone)},i=this.optionsStore.input.value;if(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)try{const e=i.split(this.optionsStore.options.multipleDatesSeparator);for(let t=0;t<e.length;t++)this.dates.setFromInput(e[t],t);n()}catch{console.warn("TD: Something went wrong trying to set the multipleDates values from the input field.")}else this.dates.setFromInput(i,0),n()},this._toggleClickEvent=()=>{this.optionsStore.element?.disabled||this.optionsStore.input?.disabled||"INPUT"===this.optionsStore.toggle.nodeName&&"text"===this.optionsStore.toggle?.type&&this.optionsStore.options.allowInputToggle||this.toggle()},this._openClickEvent=()=>{this.optionsStore.element?.disabled||this.optionsStore.input?.disabled||this.display.isVisible||this.show()},d=new u,this._eventEmitters=d.locate(g),this.optionsStore=d.locate(f),this.display=d.locate(q),this.dates=d.locate(P),this.actions=d.locate(U),e||i.errorMessages.mustProvideElement(),this.optionsStore.element=e,this._initializeOptions(t,y,!0),this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.optionsStore.unset=!0,this._initializeInput(),this._initializeToggle(),this.optionsStore.options.display.inline&&this.display.show(),this._eventEmitters.triggerEvent.subscribe((e=>{this._triggerEvent(e)})),this._eventEmitters.viewUpdate.subscribe((()=>{this._viewUpdate()})),this._eventEmitters.updateViewDate.subscribe((e=>{this.viewDate=e}))}get viewDate(){return this.optionsStore.viewDate}set viewDate(e){this.optionsStore.viewDate=e,this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.display._update("clock"===this.optionsStore.currentView?"clock":"calendar")}updateOptions(e,t=!1){t?this._initializeOptions(e,y):this._initializeOptions(e,this.optionsStore.options),this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.display.refreshCurrentView()}toggle(){this._isDisabled||this.display.toggle()}show(){this._isDisabled||this.display.show()}hide(){this.display.hide()}disable(){this._isDisabled=!0,this.optionsStore.input?.setAttribute("disabled","disabled"),this.display.hide()}enable(){this._isDisabled=!1,this.optionsStore.input?.removeAttribute("disabled")}clear(){this.optionsStore.input.value="",this.dates.clear()}subscribe(e,t){let n;"string"==typeof e&&(e=[e]),n=Array.isArray(t)?t:[t],e.length!==n.length&&i.errorMessages.subscribeMismatch();const r=[];for(let t=0;t<e.length;t++){const i=e[t];if(Array.isArray(this._subscribers[i])||(this._subscribers[i]=[]),this._subscribers[i].push(n[t]),r.push({unsubscribe:this._unsubscribe.bind(this,i,this._subscribers[i].length-1)}),1===e.length)return r[0]}return r}dispose(){this.display.hide(),this.display._dispose(),this._eventEmitters.destroy(),this.optionsStore.input?.removeEventListener("change",this._inputChangeEvent),this.optionsStore.options.allowInputToggle&&(this.optionsStore.input?.removeEventListener("click",this._openClickEvent),this.optionsStore.input?.removeEventListener("focus",this._openClickEvent)),this.optionsStore.toggle?.removeEventListener("click",this._toggleClickEvent),this.optionsStore.toggle?.removeEventListener("keydown",this._handleToggleKeydown),this._subscribers={}}locale(e){const t=X[e];t&&this.updateOptions({localization:t})}_triggerEvent(e){e.viewMode=this.optionsStore.currentView;const t=e.type===i.events.change;if(t){const{date:t,oldDate:n,isClear:i}=e;if(t&&n&&t.isSame(n)||!i&&!t&&!n)return;if(this._handleAfterChangeEvent(e),this.optionsStore.input?.dispatchEvent(new CustomEvent("change",{detail:e})),this.optionsStore.toggle){let e=this.optionsStore.options.localization.toggleAriaLabel;this.dates.picked.length>0&&(e=`${e}, ${this.dates.picked.map((e=>e.format())).join(", ")}`),this.optionsStore.toggle.ariaLabel=e}}if(this.optionsStore.element.dispatchEvent(new CustomEvent(e.type,{detail:e})),window.jQuery){const n=window.jQuery;t&&this.optionsStore.input?n(this.optionsStore.input).trigger(e):n(this.optionsStore.element).trigger(e)}this._publish(e)}_publish(e){Array.isArray(this._subscribers[e.type])&&this._subscribers[e.type].forEach((t=>{t(e)}))}_viewUpdate(){this._triggerEvent({type:i.events.update,viewDate:this.optionsStore.viewDate.clone})}_unsubscribe(e,t){this._subscribers[e].splice(t,1)}_initializeOptions(e,t,n=!1){let i=O.deepCopy(e);i=O._mergeOptions(i,t),n&&(i=O._dataToOptions(this.optionsStore.element,i)),O._validateConflicts(i),i.viewDate=i.viewDate.setLocalization(i.localization),this.optionsStore.viewDate.isSame(i.viewDate)||(this.optionsStore.viewDate=i.viewDate),i.display.components.year&&(this.optionsStore.minimumCalendarViewMode=2),i.display.components.month&&(this.optionsStore.minimumCalendarViewMode=1),i.display.components.date&&(this.optionsStore.minimumCalendarViewMode=0),this.optionsStore.currentCalendarViewMode=Math.max(this.optionsStore.minimumCalendarViewMode,this.optionsStore.currentCalendarViewMode),h[this.optionsStore.currentCalendarViewMode].name!==i.display.viewMode&&(this.optionsStore.currentCalendarViewMode=Math.max(h.findIndex((e=>e.name===i.display.viewMode)),this.optionsStore.minimumCalendarViewMode)),this.display?.isVisible&&this.display._update("all"),i.display.components.useTwentyfourHour&&void 0===i.localization.hourCycle?i.localization.hourCycle="h24":void 0===i.localization.hourCycle&&(i.localization.hourCycle=l(i.localization.locale)),this.optionsStore.options=i,i.restrictions.maxDate&&this.viewDate.isAfter(i.restrictions.maxDate)&&(this.viewDate=i.restrictions.maxDate.clone),i.restrictions.minDate&&this.viewDate.isBefore(i.restrictions.minDate)&&(this.viewDate=i.restrictions.minDate.clone)}_initializeInput(){if("INPUT"==this.optionsStore.element.tagName)this.optionsStore.input=this.optionsStore.element;else{const e=this.optionsStore.element.dataset.tdTargetInput;this.optionsStore.input=null==e||"nearest"==e?this.optionsStore.element.querySelector("input"):this.optionsStore.element.querySelector(e)}this.optionsStore.input&&(!this.optionsStore.input.value&&this.optionsStore.options.defaultDate&&(this.optionsStore.input.value=this.dates.formatInput(this.optionsStore.options.defaultDate)),this.optionsStore.input.addEventListener("change",this._inputChangeEvent),this.optionsStore.options.allowInputToggle&&(this.optionsStore.input.addEventListener("click",this._openClickEvent),this.optionsStore.input.addEventListener("focus",this._openClickEvent)),this.optionsStore.input.value&&this._inputChangeEvent())}_initializeToggle(){if(this.optionsStore.options.display.inline)return;let e=this.optionsStore.element.dataset.tdTargetToggle;"nearest"==e&&(e='[data-td-toggle="datetimepicker"]'),this.optionsStore.toggle=null==e?this.optionsStore.element:this.optionsStore.element.querySelector(e),null!=this.optionsStore.toggle&&(this.optionsStore.toggle.addEventListener("click",this._toggleClickEvent),this.optionsStore.toggle!==this.optionsStore.element&&this.optionsStore.toggle.addEventListener("keydown",this._handleToggleKeydown.bind(this)))}_handleAfterChangeEvent(e){!this.optionsStore.options.promptTimeOnDateChange||this.optionsStore.options.multipleDates||this.optionsStore.options.display.inline||this.optionsStore.options.display.sideBySide||!this.display._hasTime||this.display.widget?.getElementsByClassName(i.css.show)[0].classList.contains(i.css.timeContainer)||!e.oldDate&&this.optionsStore.options.useCurrent||e.oldDate&&e.date?.isSame(e.oldDate)||(clearTimeout(this._currentPromptTimeTimeout),this._currentPromptTimeTimeout=setTimeout((()=>{this.display.widget&&this._eventEmitters.action.emit({e:{currentTarget:this.display.widget.querySelector('[data-action="togglePicker"]')},action:I.togglePicker})}),this.optionsStore.options.promptTimeOnDateChangeTransitionDelay))}_handleToggleKeydown(e){" "!==e.key&&"Enter"!==e.key||(this.optionsStore.toggle.click(),e.stopPropagation(),e.preventDefault())}}const X={},G=e=>{X[e.name]||(X[e.name]=e.localization)},Z=e=>{const t=X[e];t&&(y.localization=t)},K=function(e,t=void 0){return e?(e.installed||(e(t,{TempusDominus:$,Dates:P,Display:q,DateTime:c,Namespace:i},Q),e.installed=!0),Q):Q},J="6.9.4",Q={TempusDominus:$,extend:K,loadLocale:G,locale:Z,Namespace:i,DefaultOptions:y,DateTime:c,Unit:e.Unit,version:J,DefaultEnLocalization:b};e.DateTime=c,e.DefaultEnLocalization=b,e.DefaultOptions=y,e.Namespace=i,e.TempusDominus=$,e.extend=K,e.loadLocale=G,e.locale=Z,e.version=J,Object.defineProperty(e,"__esModule",{value:!0})})),tempusDominus.DefaultOptions.display.icons={time:"ki-outline ki-time fs-3",date:"ki-outline ki-calendar fs-3",up:"ki-outline ki-up fs-3",down:"ki-outline ki-down fs-3",previous:"ki-outline ki-left fs-3",next:"ki-outline ki-right fs-3",today:"ki-outline ki-calendar-tick fs-3",clear:"ki-outline ki-trash fs-3",close:"ki-outline ki-cross fs-2"},
/*!
  * Tempus Dominus v6.10.2 (https://getdatepicker.com/)
  * Copyright 2013-2025 Jonathan Peterson
  * Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
  */
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).tempusDominus=e.tempusDominus||{},e.tempusDominus.locales=e.tempusDominus.locales||{},e.tempusDominus.locales.de={}))}(this,(function(e){"use strict";e.localization={today:"Heute",clear:"Auswahl löschen",close:"Auswahlbox schließen",selectMonth:"Monat wählen",previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",selectYear:"Jahr wählen",previousYear:"Letztes Jahr",nextYear:"Nächstes Jahr",selectDecade:"Jahrzehnt wählen",previousDecade:"Letztes Jahrzehnt",nextDecade:"Nächstes Jahrzehnt",previousCentury:"Letztes Jahrhundert",nextCentury:"Nächstes Jahrhundert",pickHour:"Stunde wählen",incrementHour:"Stunde erhöhen",decrementHour:"Stunde verringern",pickMinute:"Minute wählen",incrementMinute:"Minute erhöhen",decrementMinute:"Minute verringern",pickSecond:"Sekunde wählen",incrementSecond:"Sekunde erhöhen",decrementSecond:"Sekunde verringern",toggleMeridiem:"Tageszeit umschalten",selectTime:"Zeit wählen",selectDate:"Datum wählen",dayViewHeaderFormat:{month:"long",year:"2-digit"},locale:"de",startOfTheWeek:1,dateFormats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"dd.MM.yyyy",LL:"d. MMMM yyyy",LLL:"d. MMMM yyyy HH:mm",LLLL:"dddd, d. MMMM yyyy HH:mm"},ordinal:e=>`${e}.`,format:"L LT"},e.name="de",Object.defineProperty(e,"__esModule",{value:!0})})),
/*!
  * Tempus Dominus v6.10.2 (https://getdatepicker.com/)
  * Copyright 2013-2025 Jonathan Peterson
  * Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
  */
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).tempusDominus=e.tempusDominus||{},e.tempusDominus.plugins=e.tempusDominus.plugins||{},e.tempusDominus.plugins.customDateFormat=t())}(this,(function(){"use strict";return()=>{console.warn("This plugin has been merged with the main picker and is now longer required")}})),
/* flatpickr v4.6.13, @license MIT */
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=t()}(this,(function(){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */var e=function(){return e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},e.apply(this,arguments)};function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,r++)i[r]=s[a];return i}var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},r={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},s=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},a=function(e){return!0===e?1:0};function o(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(i,r)}),t)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function h(e,t){return t(e)?e:e.parentNode?h(e.parentNode,t):void 0}function f(e,t){var n=u("div","numInputWrapper"),i=u("input","numInput "+e),r=u("span","arrowUp"),s=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var a in t)i.setAttribute(a,t[a]);return n.appendChild(i),n.appendChild(r),n.appendChild(s),n}function p(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var m=function(){},g=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:m,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*a(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),r=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:m,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:m,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[b.w(e,t,n)]},F:function(e,t,n){return g(b.n(e,t,n)-1,!1,t)},G:function(e,t,n){return s(b.h(e,t,n))},H:function(e){return s(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[a(e.getHours()>11)]},M:function(e,t){return g(e.getMonth(),!0,t)},S:function(e){return s(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return s(e.getFullYear(),4)},d:function(e){return s(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return s(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return s(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},x=function(e){var t=e.config,n=void 0===t?i:t,s=e.l10n,a=void 0===s?r:s,o=e.isMobile,l=void 0!==o&&o;return function(e,t,i){var r=i||a;return void 0===n.formatDate||l?t.split("").map((function(t,i,s){return b[t]&&"\\"!==s[i-1]?b[t](e,r,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,r)}},_=function(e){var t=e.config,n=void 0===t?i:t,s=e.l10n,a=void 0===s?r:s;return function(e,t,r,s){if(0===e||e){var o,l=s||a,c=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var u=t||(n||i).dateFormat,d=String(e).trim();if("today"===d)o=new Date,r=!0;else if(n&&n.parseDate)o=n.parseDate(e,u);else if(/Z$/.test(d)||/GMT$/.test(d))o=new Date(e);else{for(var h=void 0,f=[],p=0,m=0,g="";p<u.length;p++){var b=u[p],x="\\"===b,_="\\"===u[p-1]||x;if(y[b]&&!_){g+=y[b];var w=new RegExp(g).exec(e);w&&(h=!0)&&f["Y"!==b?"push":"unshift"]({fn:v[b],val:w[++m]})}else x||(g+=".")}o=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),f.forEach((function(e){var t=e.fn,n=e.val;return o=t(o,n,l)||o})),o=h?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===r&&o.setHours(0,0,0,0),o;n.errorHandler(new Error("Invalid date provided: "+c))}}};function w(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var k=function(e,t,n){return 3600*e+60*t+n},M=864e5;function S(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),s=e.minDate.getMinutes(),a=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<s&&(n=s),t===r&&n===s&&i<a&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var o=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,o))===o&&(n=Math.min(l,n)),t===o&&n===l&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},r=0,s=t;r<s.length;r++){i(s[r])}return e});function A(m,v){var b={config:e(e({},i),T.defaultConfig),l10n:r};function A(){var e;return(null===(e=b.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function L(e){return e.bind(b)}function C(){var e=b.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==b.calendarContainer&&(b.calendarContainer.style.visibility="hidden",b.calendarContainer.style.display="block"),void 0!==b.daysContainer){var t=(b.days.offsetWidth+1)*e.showMonths;b.daysContainer.style.width=t+"px",b.calendarContainer.style.width=t+(void 0!==b.weekWrapper?b.weekWrapper.offsetWidth:0)+"px",b.calendarContainer.style.removeProperty("visibility"),b.calendarContainer.style.removeProperty("display")}}))}function D(e){if(0===b.selectedDates.length){var t=void 0===b.config.minDate||w(new Date,b.config.minDate)>=0?new Date:new Date(b.config.minDate.getTime()),n=S(b.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),b.selectedDates=[t],b.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=p(e),i=n;void 0!==b.amPM&&n===b.amPM&&(b.amPM.textContent=b.l10n.amPM[a(b.amPM.textContent===b.l10n.amPM[0])]);var r=parseFloat(i.getAttribute("min")),o=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),u=e.delta||(t?38===e.which?1:-1:0),d=c+l*u;if(void 0!==i.value&&2===i.value.length){var h=i===b.hourElement,f=i===b.minuteElement;d<r?(d=o+d+a(!h)+(a(h)&&a(!b.amPM)),f&&F(void 0,-1,b.hourElement)):d>o&&(d=i===b.hourElement?d-o-a(!b.amPM):r,f&&F(void 0,1,b.hourElement)),b.amPM&&h&&(1===l?d+c===23:Math.abs(d-c)>l)&&(b.amPM.textContent=b.l10n.amPM[a(b.amPM.textContent===b.l10n.amPM[0])]),i.value=s(d)}}(e);var i=b._input.value;E(),ke(),b._input.value!==i&&b._debouncedChange()}function E(){if(void 0!==b.hourElement&&void 0!==b.minuteElement){var e,t,n=(parseInt(b.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(b.minuteElement.value,10)||0)%60,r=void 0!==b.secondElement?(parseInt(b.secondElement.value,10)||0)%60:0;void 0!==b.amPM&&(e=n,t=b.amPM.textContent,n=e%12+12*a(t===b.l10n.amPM[1]));var s=void 0!==b.config.minTime||b.config.minDate&&b.minDateHasTime&&b.latestSelectedDateObj&&0===w(b.latestSelectedDateObj,b.config.minDate,!0),o=void 0!==b.config.maxTime||b.config.maxDate&&b.maxDateHasTime&&b.latestSelectedDateObj&&0===w(b.latestSelectedDateObj,b.config.maxDate,!0);if(void 0!==b.config.maxTime&&void 0!==b.config.minTime&&b.config.minTime>b.config.maxTime){var l=k(b.config.minTime.getHours(),b.config.minTime.getMinutes(),b.config.minTime.getSeconds()),c=k(b.config.maxTime.getHours(),b.config.maxTime.getMinutes(),b.config.maxTime.getSeconds()),u=k(n,i,r);if(u>c&&u<l){var d=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(l);n=d[0],i=d[1],r=d[2]}}else{if(o){var h=void 0!==b.config.maxTime?b.config.maxTime:b.config.maxDate;(n=Math.min(n,h.getHours()))===h.getHours()&&(i=Math.min(i,h.getMinutes())),i===h.getMinutes()&&(r=Math.min(r,h.getSeconds()))}if(s){var f=void 0!==b.config.minTime?b.config.minTime:b.config.minDate;(n=Math.max(n,f.getHours()))===f.getHours()&&i<f.getMinutes()&&(i=f.getMinutes()),i===f.getMinutes()&&(r=Math.max(r,f.getSeconds()))}}P(n,i,r)}}function O(e){var t=e||b.latestSelectedDateObj;t&&t instanceof Date&&P(t.getHours(),t.getMinutes(),t.getSeconds())}function P(e,t,n){void 0!==b.latestSelectedDateObj&&b.latestSelectedDateObj.setHours(e%24,t,n||0,0),b.hourElement&&b.minuteElement&&!b.isMobile&&(b.hourElement.value=s(b.config.time_24hr?e:(12+e)%12+12*a(e%12==0)),b.minuteElement.value=s(t),void 0!==b.amPM&&(b.amPM.textContent=b.l10n.amPM[a(e>=12)]),void 0!==b.secondElement&&(b.secondElement.value=s(n)))}function Y(e){var t=p(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&ee(n)}function I(e,t,n,i){return t instanceof Array?t.forEach((function(t){return I(e,t,n,i)})):e instanceof Array?e.forEach((function(e){return I(e,t,n,i)})):(e.addEventListener(t,n,i),void b._handlers.push({remove:function(){return e.removeEventListener(t,n,i)}}))}function N(){ye("onChange")}function H(e,t){var n=void 0!==e?b.parseDate(e):b.latestSelectedDateObj||(b.config.minDate&&b.config.minDate>b.now?b.config.minDate:b.config.maxDate&&b.config.maxDate<b.now?b.config.maxDate:b.now),i=b.currentYear,r=b.currentMonth;try{void 0!==n&&(b.currentYear=n.getFullYear(),b.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,b.config.errorHandler(e)}t&&b.currentYear!==i&&(ye("onYearChange"),U()),!t||b.currentYear===i&&b.currentMonth===r||ye("onMonthChange"),b.redraw()}function j(e){var t=p(e);~t.className.indexOf("arrow")&&F(e,t.classList.contains("arrowUp")?1:-1)}function F(e,t,n){var i=e&&p(e),r=n||i&&i.parentNode&&i.parentNode.firstChild,s=be("increment");s.delta=t,r&&r.dispatchEvent(s)}function R(e,t,n,i){var r=te(t,!0),s=u("span",e,t.getDate().toString());return s.dateObj=t,s.$i=i,s.setAttribute("aria-label",b.formatDate(t,b.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,b.now)&&(b.todayDateElem=s,s.classList.add("today"),s.setAttribute("aria-current","date")),r?(s.tabIndex=-1,xe(t)&&(s.classList.add("selected"),b.selectedDateElem=s,"range"===b.config.mode&&(c(s,"startRange",b.selectedDates[0]&&0===w(t,b.selectedDates[0],!0)),c(s,"endRange",b.selectedDates[1]&&0===w(t,b.selectedDates[1],!0)),"nextMonthDay"===e&&s.classList.add("inRange")))):s.classList.add("flatpickr-disabled"),"range"===b.config.mode&&function(e){return!("range"!==b.config.mode||b.selectedDates.length<2)&&(w(e,b.selectedDates[0])>=0&&w(e,b.selectedDates[1])<=0)}(t)&&!xe(t)&&s.classList.add("inRange"),b.weekNumbers&&1===b.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&b.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+b.config.getWeek(t)+"</span>"),ye("onDayCreate",s),s}function z(e){e.focus(),"range"===b.config.mode&&se(e)}function B(e){for(var t=e>0?0:b.config.showMonths-1,n=e>0?b.config.showMonths:-1,i=t;i!=n;i+=e)for(var r=b.daysContainer.children[i],s=e>0?0:r.children.length-1,a=e>0?r.children.length:-1,o=s;o!=a;o+=e){var l=r.children[o];if(-1===l.className.indexOf("hidden")&&te(l.dateObj))return l}}function V(e,t){var n=A(),i=ne(n||document.body),r=void 0!==e?e:i?n:void 0!==b.selectedDateElem&&ne(b.selectedDateElem)?b.selectedDateElem:void 0!==b.todayDateElem&&ne(b.todayDateElem)?b.todayDateElem:B(t>0?1:-1);void 0===r?b._input.focus():i?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():b.currentMonth,i=t>0?b.config.showMonths:-1,r=t>0?1:-1,s=n-b.currentMonth;s!=i;s+=r)for(var a=b.daysContainer.children[s],o=n-b.currentMonth===s?e.$i+t:t<0?a.children.length-1:0,l=a.children.length,c=o;c>=0&&c<l&&c!=(t>0?l:-1);c+=r){var u=a.children[c];if(-1===u.className.indexOf("hidden")&&te(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return z(u)}b.changeMonth(r),V(B(r),0)}(r,t):z(r)}function W(e,t){for(var n=(new Date(e,t,1).getDay()-b.l10n.firstDayOfWeek+7)%7,i=b.utils.getDaysInMonth((t-1+12)%12,e),r=b.utils.getDaysInMonth(t,e),s=window.document.createDocumentFragment(),a=b.config.showMonths>1,o=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,d=0;c<=i;c++,d++)s.appendChild(R("flatpickr-day "+o,new Date(e,t-1,c),0,d));for(c=1;c<=r;c++,d++)s.appendChild(R("flatpickr-day",new Date(e,t,c),0,d));for(var h=r+1;h<=42-n&&(1===b.config.showMonths||d%7!=0);h++,d++)s.appendChild(R("flatpickr-day "+l,new Date(e,t+1,h%r),0,d));var f=u("div","dayContainer");return f.appendChild(s),f}function q(){if(void 0!==b.daysContainer){d(b.daysContainer),b.weekNumbers&&d(b.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<b.config.showMonths;t++){var n=new Date(b.currentYear,b.currentMonth,1);n.setMonth(b.currentMonth+t),e.appendChild(W(n.getFullYear(),n.getMonth()))}b.daysContainer.appendChild(e),b.days=b.daysContainer.firstChild,"range"===b.config.mode&&1===b.selectedDates.length&&se()}}function U(){if(!(b.config.showMonths>1||"dropdown"!==b.config.monthSelectorType)){var e=function(e){return!(void 0!==b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&e<b.config.minDate.getMonth())&&!(void 0!==b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()&&e>b.config.maxDate.getMonth())};b.monthsDropdownContainer.tabIndex=-1,b.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(b.currentYear,t).getMonth().toString(),n.textContent=g(t,b.config.shorthandCurrentMonth,b.l10n),n.tabIndex=-1,b.currentMonth===t&&(n.selected=!0),b.monthsDropdownContainer.appendChild(n)}}}function $(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();b.config.showMonths>1||"static"===b.config.monthSelectorType?e=u("span","cur-month"):(b.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),b.monthsDropdownContainer.setAttribute("aria-label",b.l10n.monthAriaLabel),I(b.monthsDropdownContainer,"change",(function(e){var t=p(e),n=parseInt(t.value,10);b.changeMonth(n-b.currentMonth),ye("onMonthChange")})),U(),e=b.monthsDropdownContainer);var i=f("cur-year",{tabindex:"-1"}),r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",b.l10n.yearAriaLabel),b.config.minDate&&r.setAttribute("min",b.config.minDate.getFullYear().toString()),b.config.maxDate&&(r.setAttribute("max",b.config.maxDate.getFullYear().toString()),r.disabled=!!b.config.minDate&&b.config.minDate.getFullYear()===b.config.maxDate.getFullYear());var s=u("div","flatpickr-current-month");return s.appendChild(e),s.appendChild(i),n.appendChild(s),t.appendChild(n),{container:t,yearElement:r,monthElement:e}}function X(){d(b.monthNav),b.monthNav.appendChild(b.prevMonthNav),b.config.showMonths&&(b.yearElements=[],b.monthElements=[]);for(var e=b.config.showMonths;e--;){var t=$();b.yearElements.push(t.yearElement),b.monthElements.push(t.monthElement),b.monthNav.appendChild(t.container)}b.monthNav.appendChild(b.nextMonthNav)}function G(){b.weekdayContainer?d(b.weekdayContainer):b.weekdayContainer=u("div","flatpickr-weekdays");for(var e=b.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");b.weekdayContainer.appendChild(t)}return Z(),b.weekdayContainer}function Z(){if(b.weekdayContainer){var e=b.l10n.firstDayOfWeek,n=t(b.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=t(n.splice(e,n.length),n.splice(0,e)));for(var i=b.config.showMonths;i--;)b.weekdayContainer.children[i].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+n.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function K(e,t){void 0===t&&(t=!0);var n=t?e:e-b.currentMonth;n<0&&!0===b._hidePrevMonthArrow||n>0&&!0===b._hideNextMonthArrow||(b.currentMonth+=n,(b.currentMonth<0||b.currentMonth>11)&&(b.currentYear+=b.currentMonth>11?1:-1,b.currentMonth=(b.currentMonth+12)%12,ye("onYearChange"),U()),q(),ye("onMonthChange"),_e())}function J(e){return b.calendarContainer.contains(e)}function Q(e){if(b.isOpen&&!b.config.inline){var t=p(e),n=J(t),i=!(t===b.input||t===b.altInput||b.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(b.input)||~e.path.indexOf(b.altInput)))&&!n&&!J(e.relatedTarget),r=!b.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&r&&(b.config.allowInput&&b.setDate(b._input.value,!1,b.config.altInput?b.config.altFormat:b.config.dateFormat),void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement&&""!==b.input.value&&void 0!==b.input.value&&D(),b.close(),b.config&&"range"===b.config.mode&&1===b.selectedDates.length&&b.clear(!1))}}function ee(e){if(!(!e||b.config.minDate&&e<b.config.minDate.getFullYear()||b.config.maxDate&&e>b.config.maxDate.getFullYear())){var t=e,n=b.currentYear!==t;b.currentYear=t||b.currentYear,b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth=Math.min(b.config.maxDate.getMonth(),b.currentMonth):b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&(b.currentMonth=Math.max(b.config.minDate.getMonth(),b.currentMonth)),n&&(b.redraw(),ye("onYearChange"),U())}}function te(e,t){var n;void 0===t&&(t=!0);var i=b.parseDate(e,void 0,t);if(b.config.minDate&&i&&w(i,b.config.minDate,void 0!==t?t:!b.minDateHasTime)<0||b.config.maxDate&&i&&w(i,b.config.maxDate,void 0!==t?t:!b.maxDateHasTime)>0)return!1;if(!b.config.enable&&0===b.config.disable.length)return!0;if(void 0===i)return!1;for(var r=!!b.config.enable,s=null!==(n=b.config.enable)&&void 0!==n?n:b.config.disable,a=0,o=void 0;a<s.length;a++){if("function"==typeof(o=s[a])&&o(i))return r;if(o instanceof Date&&void 0!==i&&o.getTime()===i.getTime())return r;if("string"==typeof o){var l=b.parseDate(o,void 0,!0);return l&&l.getTime()===i.getTime()?r:!r}if("object"==typeof o&&void 0!==i&&o.from&&o.to&&i.getTime()>=o.from.getTime()&&i.getTime()<=o.to.getTime())return r}return!r}function ne(e){return void 0!==b.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&b.daysContainer.contains(e))}function ie(e){var t=e.target===b._input,n=b._input.value.trimEnd()!==we();!t||!n||e.relatedTarget&&J(e.relatedTarget)||b.setDate(b._input.value,!0,e.target===b.altInput?b.config.altFormat:b.config.dateFormat)}function re(e){var t=p(e),n=b.config.wrap?m.contains(t):t===b._input,i=b.config.allowInput,r=b.isOpen&&(!i||!n),s=b.config.inline&&n&&!i;if(13===e.keyCode&&n){if(i)return b.setDate(b._input.value,!0,t===b.altInput?b.config.altFormat:b.config.dateFormat),b.close(),t.blur();b.open()}else if(J(t)||r||s){var a=!!b.timeContainer&&b.timeContainer.contains(t);switch(e.keyCode){case 13:a?(e.preventDefault(),D(),he()):fe(e);break;case 27:e.preventDefault(),he();break;case 8:case 46:n&&!b.config.allowInput&&(e.preventDefault(),b.clear());break;case 37:case 39:if(a||n)b.hourElement&&b.hourElement.focus();else{e.preventDefault();var o=A();if(void 0!==b.daysContainer&&(!1===i||o&&ne(o))){var l=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),K(l),V(B(1),0)):V(void 0,l)}}break;case 38:case 40:e.preventDefault();var c=40===e.keyCode?1:-1;b.daysContainer&&void 0!==t.$i||t===b.input||t===b.altInput?e.ctrlKey?(e.stopPropagation(),ee(b.currentYear-c),V(B(1),0)):a||V(void 0,7*c):t===b.currentYearElement?ee(b.currentYear-c):b.config.enableTime&&(!a&&b.hourElement&&b.hourElement.focus(),D(e),b._debouncedChange());break;case 9:if(a){var u=[b.hourElement,b.minuteElement,b.secondElement,b.amPM].concat(b.pluginElements).filter((function(e){return e})),d=u.indexOf(t);if(-1!==d){var h=u[d+(e.shiftKey?-1:1)];e.preventDefault(),(h||b._input).focus()}}else!b.config.noCalendar&&b.daysContainer&&b.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),b._input.focus())}}if(void 0!==b.amPM&&t===b.amPM)switch(e.key){case b.l10n.amPM[0].charAt(0):case b.l10n.amPM[0].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[0],E(),ke();break;case b.l10n.amPM[1].charAt(0):case b.l10n.amPM[1].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[1],E(),ke()}(n||J(t))&&ye("onKeyDown",e)}function se(e,t){if(void 0===t&&(t="flatpickr-day"),1===b.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():b.days.firstElementChild.dateObj.getTime(),i=b.parseDate(b.selectedDates[0],void 0,!0).getTime(),r=Math.min(n,b.selectedDates[0].getTime()),s=Math.max(n,b.selectedDates[0].getTime()),a=!1,o=0,l=0,c=r;c<s;c+=M)te(new Date(c),!0)||(a=a||c>r&&c<s,c<i&&(!o||c>o)?o=c:c>i&&(!l||c<l)&&(l=c));Array.from(b.rContainer.querySelectorAll("*:nth-child(-n+"+b.config.showMonths+") > ."+t)).forEach((function(t){var r,s,c,u=t.dateObj.getTime(),d=o>0&&u<o||l>0&&u>l;if(d)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));a&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=b.selectedDates[0].getTime()?"startRange":"endRange"),i<n&&u===i?t.classList.add("startRange"):i>n&&u===i&&t.classList.add("endRange"),u>=o&&(0===l||u<=l)&&(s=i,c=n,(r=u)>Math.min(s,c)&&r<Math.max(s,c))&&t.classList.add("inRange")))}))}}function ae(){!b.isOpen||b.config.static||b.config.inline||ue()}function oe(e){return function(t){var n=b.config["_"+e+"Date"]=b.parseDate(t,b.config.dateFormat),i=b.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(b["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),b.selectedDates&&(b.selectedDates=b.selectedDates.filter((function(e){return te(e)})),b.selectedDates.length||"min"!==e||O(n),ke()),b.daysContainer&&(de(),void 0!==n?b.currentYearElement[e]=n.getFullYear().toString():b.currentYearElement.removeAttribute(e),b.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function le(){return b.config.wrap?m.querySelector("[data-input]"):m}function ce(){"object"!=typeof b.config.locale&&void 0===T.l10ns[b.config.locale]&&b.config.errorHandler(new Error("flatpickr: invalid locale "+b.config.locale)),b.l10n=e(e({},T.l10ns.default),"object"==typeof b.config.locale?b.config.locale:"default"!==b.config.locale?T.l10ns[b.config.locale]:void 0),y.D="("+b.l10n.weekdays.shorthand.join("|")+")",y.l="("+b.l10n.weekdays.longhand.join("|")+")",y.M="("+b.l10n.months.shorthand.join("|")+")",y.F="("+b.l10n.months.longhand.join("|")+")",y.K="("+b.l10n.amPM[0]+"|"+b.l10n.amPM[1]+"|"+b.l10n.amPM[0].toLowerCase()+"|"+b.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},v),JSON.parse(JSON.stringify(m.dataset||{}))).time_24hr&&void 0===T.defaultConfig.time_24hr&&(b.config.time_24hr=b.l10n.time_24hr),b.formatDate=x(b),b.parseDate=_({config:b.config,l10n:b.l10n})}function ue(e){if("function"!=typeof b.config.position){if(void 0!==b.calendarContainer){ye("onPreCalendarPosition");var t=e||b._positionElement,n=Array.prototype.reduce.call(b.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=b.calendarContainer.offsetWidth,r=b.config.position.split(" "),s=r[0],a=r.length>1?r[1]:null,o=t.getBoundingClientRect(),l=window.innerHeight-o.bottom,u="above"===s||"below"!==s&&l<n&&o.top>n,d=window.pageYOffset+o.top+(u?-n-2:t.offsetHeight+2);if(c(b.calendarContainer,"arrowTop",!u),c(b.calendarContainer,"arrowBottom",u),!b.config.inline){var h=window.pageXOffset+o.left,f=!1,p=!1;"center"===a?(h-=(i-o.width)/2,f=!0):"right"===a&&(h-=i-o.width,p=!0),c(b.calendarContainer,"arrowLeft",!f&&!p),c(b.calendarContainer,"arrowCenter",f),c(b.calendarContainer,"arrowRight",p);var m=window.document.body.offsetWidth-(window.pageXOffset+o.right),g=h+i>window.document.body.offsetWidth,v=m+i>window.document.body.offsetWidth;if(c(b.calendarContainer,"rightMost",g),!b.config.static)if(b.calendarContainer.style.top=d+"px",g)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===y)return;var x=window.document.body.offsetWidth,_=Math.max(0,x/2-i/2),w=y.cssRules.length,k="{left:"+o.left+"px;right:auto;}";c(b.calendarContainer,"rightMost",!1),c(b.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+k,w),b.calendarContainer.style.left=_+"px",b.calendarContainer.style.right="auto"}else b.calendarContainer.style.left="auto",b.calendarContainer.style.right=m+"px";else b.calendarContainer.style.left=h+"px",b.calendarContainer.style.right="auto"}}}else b.config.position(b,e)}function de(){b.config.noCalendar||b.isMobile||(U(),_e(),q())}function he(){b._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(b.close,0):b.close()}function fe(e){e.preventDefault(),e.stopPropagation();var t=h(p(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,i=b.latestSelectedDateObj=new Date(n.dateObj.getTime()),r=(i.getMonth()<b.currentMonth||i.getMonth()>b.currentMonth+b.config.showMonths-1)&&"range"!==b.config.mode;if(b.selectedDateElem=n,"single"===b.config.mode)b.selectedDates=[i];else if("multiple"===b.config.mode){var s=xe(i);s?b.selectedDates.splice(parseInt(s),1):b.selectedDates.push(i)}else"range"===b.config.mode&&(2===b.selectedDates.length&&b.clear(!1,!1),b.latestSelectedDateObj=i,b.selectedDates.push(i),0!==w(i,b.selectedDates[0],!0)&&b.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(E(),r){var a=b.currentYear!==i.getFullYear();b.currentYear=i.getFullYear(),b.currentMonth=i.getMonth(),a&&(ye("onYearChange"),U()),ye("onMonthChange")}if(_e(),q(),ke(),r||"range"===b.config.mode||1!==b.config.showMonths?void 0!==b.selectedDateElem&&void 0===b.hourElement&&b.selectedDateElem&&b.selectedDateElem.focus():z(n),void 0!==b.hourElement&&void 0!==b.hourElement&&b.hourElement.focus(),b.config.closeOnSelect){var o="single"===b.config.mode&&!b.config.enableTime,l="range"===b.config.mode&&2===b.selectedDates.length&&!b.config.enableTime;(o||l)&&he()}N()}}b.parseDate=_({config:b.config,l10n:b.l10n}),b._handlers=[],b.pluginElements=[],b.loadedPlugins=[],b._bind=I,b._setHoursFromDate=O,b._positionCalendar=ue,b.changeMonth=K,b.changeYear=ee,b.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);b.input.value="",void 0!==b.altInput&&(b.altInput.value="");void 0!==b.mobileInput&&(b.mobileInput.value="");b.selectedDates=[],b.latestSelectedDateObj=void 0,!0===t&&(b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth());if(!0===b.config.enableTime){var n=S(b.config);P(n.hours,n.minutes,n.seconds)}b.redraw(),e&&ye("onChange")},b.close=function(){b.isOpen=!1,b.isMobile||(void 0!==b.calendarContainer&&b.calendarContainer.classList.remove("open"),void 0!==b._input&&b._input.classList.remove("active"));ye("onClose")},b.onMouseOver=se,b._createElement=u,b.createDay=R,b.destroy=function(){void 0!==b.config&&ye("onDestroy");for(var e=b._handlers.length;e--;)b._handlers[e].remove();if(b._handlers=[],b.mobileInput)b.mobileInput.parentNode&&b.mobileInput.parentNode.removeChild(b.mobileInput),b.mobileInput=void 0;else if(b.calendarContainer&&b.calendarContainer.parentNode)if(b.config.static&&b.calendarContainer.parentNode){var t=b.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else b.calendarContainer.parentNode.removeChild(b.calendarContainer);b.altInput&&(b.input.type="text",b.altInput.parentNode&&b.altInput.parentNode.removeChild(b.altInput),delete b.altInput);b.input&&(b.input.type=b.input._type,b.input.classList.remove("flatpickr-input"),b.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete b[e]}catch(e){}}))},b.isEnabled=te,b.jumpToDate=H,b.updateValue=ke,b.open=function(e,t){void 0===t&&(t=b._positionElement);if(!0===b.isMobile){if(e){e.preventDefault();var n=p(e);n&&n.blur()}return void 0!==b.mobileInput&&(b.mobileInput.focus(),b.mobileInput.click()),void ye("onOpen")}if(b._input.disabled||b.config.inline)return;var i=b.isOpen;b.isOpen=!0,i||(b.calendarContainer.classList.add("open"),b._input.classList.add("active"),ye("onOpen"),ue(t));!0===b.config.enableTime&&!0===b.config.noCalendar&&(!1!==b.config.allowInput||void 0!==e&&b.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return b.hourElement.select()}),50))},b.redraw=de,b.set=function(e,t){if(null!==e&&"object"==typeof e)for(var i in Object.assign(b.config,e),e)void 0!==pe[i]&&pe[i].forEach((function(e){return e()}));else b.config[e]=t,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(b.config[e]=l(t));b.redraw(),ke(!0)},b.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=b.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return b.clear(t);me(e,n),b.latestSelectedDateObj=b.selectedDates[b.selectedDates.length-1],b.redraw(),H(void 0,t),O(),0===b.selectedDates.length&&b.clear(!1);ke(t),t&&ye("onChange")},b.toggle=function(e){if(!0===b.isOpen)return b.close();b.open(e)};var pe={locale:[ce,Z],showMonths:[X,C,G],minDate:[H],maxDate:[H],positionElement:[ve],clickOpens:[function(){!0===b.config.clickOpens?(I(b._input,"focus",b.open),I(b._input,"click",b.open)):(b._input.removeEventListener("focus",b.open),b._input.removeEventListener("click",b.open))}]};function me(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return b.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[b.parseDate(e,t)];else if("string"==typeof e)switch(b.config.mode){case"single":case"time":n=[b.parseDate(e,t)];break;case"multiple":n=e.split(b.config.conjunction).map((function(e){return b.parseDate(e,t)}));break;case"range":n=e.split(b.l10n.rangeSeparator).map((function(e){return b.parseDate(e,t)}))}else b.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));b.selectedDates=b.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&te(e,!1)})),"range"===b.config.mode&&b.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ge(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?b.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:b.parseDate(e.from,void 0),to:b.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ve(){b._positionElement=b.config.positionElement||b._input}function ye(e,t){if(void 0!==b.config){var n=b.config[e];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i<n.length;i++)n[i](b.selectedDates,b.input.value,b,t);"onChange"===e&&(b.input.dispatchEvent(be("change")),b.input.dispatchEvent(be("input")))}}function be(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function xe(e){for(var t=0;t<b.selectedDates.length;t++){var n=b.selectedDates[t];if(n instanceof Date&&0===w(n,e))return""+t}return!1}function _e(){b.config.noCalendar||b.isMobile||!b.monthNav||(b.yearElements.forEach((function(e,t){var n=new Date(b.currentYear,b.currentMonth,1);n.setMonth(b.currentMonth+t),b.config.showMonths>1||"static"===b.config.monthSelectorType?b.monthElements[t].textContent=g(n.getMonth(),b.config.shorthandCurrentMonth,b.l10n)+" ":b.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),b._hidePrevMonthArrow=void 0!==b.config.minDate&&(b.currentYear===b.config.minDate.getFullYear()?b.currentMonth<=b.config.minDate.getMonth():b.currentYear<b.config.minDate.getFullYear()),b._hideNextMonthArrow=void 0!==b.config.maxDate&&(b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth+1>b.config.maxDate.getMonth():b.currentYear>b.config.maxDate.getFullYear()))}function we(e){var t=e||(b.config.altInput?b.config.altFormat:b.config.dateFormat);return b.selectedDates.map((function(e){return b.formatDate(e,t)})).filter((function(e,t,n){return"range"!==b.config.mode||b.config.enableTime||n.indexOf(e)===t})).join("range"!==b.config.mode?b.config.conjunction:b.l10n.rangeSeparator)}function ke(e){void 0===e&&(e=!0),void 0!==b.mobileInput&&b.mobileFormatStr&&(b.mobileInput.value=void 0!==b.latestSelectedDateObj?b.formatDate(b.latestSelectedDateObj,b.mobileFormatStr):""),b.input.value=we(b.config.dateFormat),void 0!==b.altInput&&(b.altInput.value=we(b.config.altFormat)),!1!==e&&ye("onValueUpdate")}function Me(e){var t=p(e),n=b.prevMonthNav.contains(t),i=b.nextMonthNav.contains(t);n||i?K(n?-1:1):b.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?b.changeYear(b.currentYear+1):t.classList.contains("arrowDown")&&b.changeYear(b.currentYear-1)}return function(){b.element=b.input=m,b.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=e(e({},JSON.parse(JSON.stringify(m.dataset||{}))),v),s={};b.config.parseDate=r.parseDate,b.config.formatDate=r.formatDate,Object.defineProperty(b.config,"enable",{get:function(){return b.config._enable},set:function(e){b.config._enable=ge(e)}}),Object.defineProperty(b.config,"disable",{get:function(){return b.config._disable},set:function(e){b.config._disable=ge(e)}});var a="time"===r.mode;if(!r.dateFormat&&(r.enableTime||a)){var o=T.defaultConfig.dateFormat||i.dateFormat;s.dateFormat=r.noCalendar||a?"H:i"+(r.enableSeconds?":S":""):o+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||a)&&!r.altFormat){var c=T.defaultConfig.altFormat||i.altFormat;s.altFormat=r.noCalendar||a?"h:i"+(r.enableSeconds?":S K":" K"):c+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(b.config,"minDate",{get:function(){return b.config._minDate},set:oe("min")}),Object.defineProperty(b.config,"maxDate",{get:function(){return b.config._maxDate},set:oe("max")});var u=function(e){return function(t){b.config["min"===e?"_minTime":"_maxTime"]=b.parseDate(t,"H:i:S")}};Object.defineProperty(b.config,"minTime",{get:function(){return b.config._minTime},set:u("min")}),Object.defineProperty(b.config,"maxTime",{get:function(){return b.config._maxTime},set:u("max")}),"time"===r.mode&&(b.config.noCalendar=!0,b.config.enableTime=!0);Object.assign(b.config,s,r);for(var d=0;d<t.length;d++)b.config[t[d]]=!0===b.config[t[d]]||"true"===b.config[t[d]];n.filter((function(e){return void 0!==b.config[e]})).forEach((function(e){b.config[e]=l(b.config[e]||[]).map(L)})),b.isMobile=!b.config.disableMobile&&!b.config.inline&&"single"===b.config.mode&&!b.config.disable.length&&!b.config.enable&&!b.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(d=0;d<b.config.plugins.length;d++){var h=b.config.plugins[d](b)||{};for(var f in h)n.indexOf(f)>-1?b.config[f]=l(h[f]).map(L).concat(b.config[f]):void 0===r[f]&&(b.config[f]=h[f])}r.altInputClass||(b.config.altInputClass=le().className+" "+b.config.altInputClass);ye("onParseConfig")}(),ce(),function(){if(b.input=le(),!b.input)return void b.config.errorHandler(new Error("Invalid input element specified"));b.input._type=b.input.type,b.input.type="text",b.input.classList.add("flatpickr-input"),b._input=b.input,b.config.altInput&&(b.altInput=u(b.input.nodeName,b.config.altInputClass),b._input=b.altInput,b.altInput.placeholder=b.input.placeholder,b.altInput.disabled=b.input.disabled,b.altInput.required=b.input.required,b.altInput.tabIndex=b.input.tabIndex,b.altInput.type="text",b.input.setAttribute("type","hidden"),!b.config.static&&b.input.parentNode&&b.input.parentNode.insertBefore(b.altInput,b.input.nextSibling));b.config.allowInput||b._input.setAttribute("readonly","readonly");ve()}(),function(){b.selectedDates=[],b.now=b.parseDate(b.config.now)||new Date;var e=b.config.defaultDate||("INPUT"!==b.input.nodeName&&"TEXTAREA"!==b.input.nodeName||!b.input.placeholder||b.input.value!==b.input.placeholder?b.input.value:null);e&&me(e,b.config.dateFormat);b._initialDate=b.selectedDates.length>0?b.selectedDates[0]:b.config.minDate&&b.config.minDate.getTime()>b.now.getTime()?b.config.minDate:b.config.maxDate&&b.config.maxDate.getTime()<b.now.getTime()?b.config.maxDate:b.now,b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth(),b.selectedDates.length>0&&(b.latestSelectedDateObj=b.selectedDates[0]);void 0!==b.config.minTime&&(b.config.minTime=b.parseDate(b.config.minTime,"H:i"));void 0!==b.config.maxTime&&(b.config.maxTime=b.parseDate(b.config.maxTime,"H:i"));b.minDateHasTime=!!b.config.minDate&&(b.config.minDate.getHours()>0||b.config.minDate.getMinutes()>0||b.config.minDate.getSeconds()>0),b.maxDateHasTime=!!b.config.maxDate&&(b.config.maxDate.getHours()>0||b.config.maxDate.getMinutes()>0||b.config.maxDate.getSeconds()>0)}(),b.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=b.currentMonth),void 0===t&&(t=b.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:b.l10n.daysInMonth[e]}},b.isMobile||function(){var e=window.document.createDocumentFragment();if(b.calendarContainer=u("div","flatpickr-calendar"),b.calendarContainer.tabIndex=-1,!b.config.noCalendar){if(e.appendChild((b.monthNav=u("div","flatpickr-months"),b.yearElements=[],b.monthElements=[],b.prevMonthNav=u("span","flatpickr-prev-month"),b.prevMonthNav.innerHTML=b.config.prevArrow,b.nextMonthNav=u("span","flatpickr-next-month"),b.nextMonthNav.innerHTML=b.config.nextArrow,X(),Object.defineProperty(b,"_hidePrevMonthArrow",{get:function(){return b.__hidePrevMonthArrow},set:function(e){b.__hidePrevMonthArrow!==e&&(c(b.prevMonthNav,"flatpickr-disabled",e),b.__hidePrevMonthArrow=e)}}),Object.defineProperty(b,"_hideNextMonthArrow",{get:function(){return b.__hideNextMonthArrow},set:function(e){b.__hideNextMonthArrow!==e&&(c(b.nextMonthNav,"flatpickr-disabled",e),b.__hideNextMonthArrow=e)}}),b.currentYearElement=b.yearElements[0],_e(),b.monthNav)),b.innerContainer=u("div","flatpickr-innerContainer"),b.config.weekNumbers){var t=function(){b.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",b.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;b.innerContainer.appendChild(n),b.weekNumbers=i,b.weekWrapper=n}b.rContainer=u("div","flatpickr-rContainer"),b.rContainer.appendChild(G()),b.daysContainer||(b.daysContainer=u("div","flatpickr-days"),b.daysContainer.tabIndex=-1),q(),b.rContainer.appendChild(b.daysContainer),b.innerContainer.appendChild(b.rContainer),e.appendChild(b.innerContainer)}b.config.enableTime&&e.appendChild(function(){b.calendarContainer.classList.add("hasTime"),b.config.noCalendar&&b.calendarContainer.classList.add("noCalendar");var e=S(b.config);b.timeContainer=u("div","flatpickr-time"),b.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),n=f("flatpickr-hour",{"aria-label":b.l10n.hourAriaLabel});b.hourElement=n.getElementsByTagName("input")[0];var i=f("flatpickr-minute",{"aria-label":b.l10n.minuteAriaLabel});b.minuteElement=i.getElementsByTagName("input")[0],b.hourElement.tabIndex=b.minuteElement.tabIndex=-1,b.hourElement.value=s(b.latestSelectedDateObj?b.latestSelectedDateObj.getHours():b.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),b.minuteElement.value=s(b.latestSelectedDateObj?b.latestSelectedDateObj.getMinutes():e.minutes),b.hourElement.setAttribute("step",b.config.hourIncrement.toString()),b.minuteElement.setAttribute("step",b.config.minuteIncrement.toString()),b.hourElement.setAttribute("min",b.config.time_24hr?"0":"1"),b.hourElement.setAttribute("max",b.config.time_24hr?"23":"12"),b.hourElement.setAttribute("maxlength","2"),b.minuteElement.setAttribute("min","0"),b.minuteElement.setAttribute("max","59"),b.minuteElement.setAttribute("maxlength","2"),b.timeContainer.appendChild(n),b.timeContainer.appendChild(t),b.timeContainer.appendChild(i),b.config.time_24hr&&b.timeContainer.classList.add("time24hr");if(b.config.enableSeconds){b.timeContainer.classList.add("hasSeconds");var r=f("flatpickr-second");b.secondElement=r.getElementsByTagName("input")[0],b.secondElement.value=s(b.latestSelectedDateObj?b.latestSelectedDateObj.getSeconds():e.seconds),b.secondElement.setAttribute("step",b.minuteElement.getAttribute("step")),b.secondElement.setAttribute("min","0"),b.secondElement.setAttribute("max","59"),b.secondElement.setAttribute("maxlength","2"),b.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),b.timeContainer.appendChild(r)}b.config.time_24hr||(b.amPM=u("span","flatpickr-am-pm",b.l10n.amPM[a((b.latestSelectedDateObj?b.hourElement.value:b.config.defaultHour)>11)]),b.amPM.title=b.l10n.toggleTitle,b.amPM.tabIndex=-1,b.timeContainer.appendChild(b.amPM));return b.timeContainer}());c(b.calendarContainer,"rangeMode","range"===b.config.mode),c(b.calendarContainer,"animate",!0===b.config.animate),c(b.calendarContainer,"multiMonth",b.config.showMonths>1),b.calendarContainer.appendChild(e);var r=void 0!==b.config.appendTo&&void 0!==b.config.appendTo.nodeType;if((b.config.inline||b.config.static)&&(b.calendarContainer.classList.add(b.config.inline?"inline":"static"),b.config.inline&&(!r&&b.element.parentNode?b.element.parentNode.insertBefore(b.calendarContainer,b._input.nextSibling):void 0!==b.config.appendTo&&b.config.appendTo.appendChild(b.calendarContainer)),b.config.static)){var o=u("div","flatpickr-wrapper");b.element.parentNode&&b.element.parentNode.insertBefore(o,b.element),o.appendChild(b.element),b.altInput&&o.appendChild(b.altInput),o.appendChild(b.calendarContainer)}b.config.static||b.config.inline||(void 0!==b.config.appendTo?b.config.appendTo:window.document.body).appendChild(b.calendarContainer)}(),function(){b.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(b.element.querySelectorAll("[data-"+e+"]"),(function(t){return I(t,"click",b[e])}))}));if(b.isMobile)return void function(){var e=b.config.enableTime?b.config.noCalendar?"time":"datetime-local":"date";b.mobileInput=u("input",b.input.className+" flatpickr-mobile"),b.mobileInput.tabIndex=1,b.mobileInput.type=e,b.mobileInput.disabled=b.input.disabled,b.mobileInput.required=b.input.required,b.mobileInput.placeholder=b.input.placeholder,b.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",b.selectedDates.length>0&&(b.mobileInput.defaultValue=b.mobileInput.value=b.formatDate(b.selectedDates[0],b.mobileFormatStr));b.config.minDate&&(b.mobileInput.min=b.formatDate(b.config.minDate,"Y-m-d"));b.config.maxDate&&(b.mobileInput.max=b.formatDate(b.config.maxDate,"Y-m-d"));b.input.getAttribute("step")&&(b.mobileInput.step=String(b.input.getAttribute("step")));b.input.type="hidden",void 0!==b.altInput&&(b.altInput.type="hidden");try{b.input.parentNode&&b.input.parentNode.insertBefore(b.mobileInput,b.input.nextSibling)}catch(e){}I(b.mobileInput,"change",(function(e){b.setDate(p(e).value,!1,b.mobileFormatStr),ye("onChange"),ye("onClose")}))}();var e=o(ae,50);b._debouncedChange=o(N,300),b.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&I(b.daysContainer,"mouseover",(function(e){"range"===b.config.mode&&se(p(e))}));I(b._input,"keydown",re),void 0!==b.calendarContainer&&I(b.calendarContainer,"keydown",re);b.config.inline||b.config.static||I(window,"resize",e);void 0!==window.ontouchstart?I(window.document,"touchstart",Q):I(window.document,"mousedown",Q);I(window.document,"focus",Q,{capture:!0}),!0===b.config.clickOpens&&(I(b._input,"focus",b.open),I(b._input,"click",b.open));void 0!==b.daysContainer&&(I(b.monthNav,"click",Me),I(b.monthNav,["keyup","increment"],Y),I(b.daysContainer,"click",fe));if(void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement){var t=function(e){return p(e).select()};I(b.timeContainer,["increment"],D),I(b.timeContainer,"blur",D,{capture:!0}),I(b.timeContainer,"click",j),I([b.hourElement,b.minuteElement],["focus","click"],t),void 0!==b.secondElement&&I(b.secondElement,"focus",(function(){return b.secondElement&&b.secondElement.select()})),void 0!==b.amPM&&I(b.amPM,"click",(function(e){D(e)}))}b.config.allowInput&&I(b._input,"blur",ie)}(),(b.selectedDates.length||b.config.noCalendar)&&(b.config.enableTime&&O(b.config.noCalendar?b.latestSelectedDateObj:void 0),ke(!1)),C();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!b.isMobile&&t&&ue(),ye("onReady")}(),b}function L(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),i=[],r=0;r<n.length;r++){var s=n[r];try{if(null!==s.getAttribute("data-fp-omit"))continue;void 0!==s._flatpickr&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=A(s,t||{}),i.push(s._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return L(this,e)},HTMLElement.prototype.flatpickr=function(e){return L([this],e)});var T=function(e,t){return"string"==typeof e?L(window.document.querySelectorAll(e),t):e instanceof Node?L([e],t):L(e,t)};return T.defaultConfig={},T.l10ns={en:e({},r),default:e({},r)},T.localize=function(t){T.l10ns.default=e(e({},T.l10ns.default),t)},T.setDefaults=function(t){T.defaultConfig=e(e({},T.defaultConfig),t)},T.parseDate=_({}),T.formatDate=x({}),T.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return L(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=T),T})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ar={})}(this,(function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],longhand:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},firstDayOfWeek:6,rangeSeparator:" إلى ",weekAbbreviation:"Wk",scrollTitle:"قم بالتمرير للزيادة",toggleTitle:"اضغط للتبديل",amPM:["ص","م"],yearAriaLabel:"سنة",monthAriaLabel:"شهر",hourAriaLabel:"ساعة",minuteAriaLabel:"دقيقة",time_24hr:!1};t.l10ns.ar=n;var i=t.l10ns;e.Arabic=n,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})})),
/*!
 * https://github.com/paulmillr/es6-shim
 * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com)
 *   and contributors,  MIT License
 * es6-shim: v0.35.4
 * see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE
 * Details and documentation:
 * https://github.com/paulmillr/es6-shim/
 */
function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.returnExports=t()}(this,(function(){"use strict";var e,t,n=Function.call.bind(Function.apply),i=Function.call.bind(Function.call),r=Array.isArray,s=Object.keys,a=function(e){try{return e(),!1}catch(e){return!0}},o=function(e){try{return e()}catch(e){return!1}},l=(e=a,function(){return!n(e,this,arguments)}),c=!!Object.defineProperty&&!a((function(){return Object.defineProperty({},"x",{get:function(){}})})),u="foo"===function(){}.name,d=Function.call.bind(Array.prototype.forEach),h=Function.call.bind(Array.prototype.reduce),f=Function.call.bind(Array.prototype.filter),p=Function.call.bind(Array.prototype.some),m=function(e,t,n,i){!i&&t in e||(c?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n}):e[t]=n)},g=function(e,t,n){d(s(t),(function(i){var r=t[i];m(e,i,r,!!n)}))},v=Function.call.bind(Object.prototype.toString),y="function"==typeof/abc/?function(e){return"function"==typeof e&&"[object Function]"===v(e)}:function(e){return"function"==typeof e},b=function(e,t,n){if(!c)throw new TypeError("getters require true ES5 support");Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:n})},x=function(e,t,n){if(!c)throw new TypeError("getters require true ES5 support");var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,{configurable:i.configurable,enumerable:i.enumerable,get:function(){return e[t]},set:function(n){e[t]=n}})},_=function(e,t,n){if(c){var i=Object.getOwnPropertyDescriptor(e,t);i.value=n,Object.defineProperty(e,t,i)}else e[t]=n},w=function(e,t,n){c?Object.defineProperty(e,t,n):"value"in n&&(e[t]=n.value)},k=function(e,t){t&&y(t.toString)&&m(e,"toString",t.toString.bind(t),!0)},M=Object.create||function(e,t){var n=function(){};n.prototype=e;var i=new n;return void 0!==t&&s(t).forEach((function(e){w(i,e,t[e])})),i},S=function(e,t){return!!Object.setPrototypeOf&&o((function(){var n=function t(n){var i=new e(n);return Object.setPrototypeOf(i,t.prototype),i};return Object.setPrototypeOf(n,e),n.prototype=M(e.prototype,{constructor:{value:n}}),t(n)}))},A=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}(),L=A.isFinite,T=Function.call.bind(String.prototype.indexOf),C=Function.apply.bind(Array.prototype.indexOf),D=Function.call.bind(Array.prototype.concat),E=Function.call.bind(String.prototype.slice),O=Function.call.bind(Array.prototype.push),P=Function.apply.bind(Array.prototype.push),Y=Function.call.bind(Array.prototype.join),I=Function.call.bind(Array.prototype.shift),N=Math.max,H=Math.min,j=Math.floor,F=Math.abs,R=Math.exp,z=Math.log,B=Math.sqrt,V=Function.call.bind(Object.prototype.hasOwnProperty),W=function(){},q=A.Map,U=q&&q.prototype.delete,$=q&&q.prototype.get,X=q&&q.prototype.has,G=q&&q.prototype.set,Z=A.Symbol||{},K=Z.species||"@@species",J=Number.isNaN||function(e){return e!=e},Q=Number.isFinite||function(e){return"number"==typeof e&&L(e)},ee=y(Math.sign)?Math.sign:function(e){var t=Number(e);return 0===t||J(t)?t:t<0?-1:1},te=function(e){var t=Number(e);return t<-1||J(t)?NaN:0===t||t===1/0?t:-1===t?-1/0:1+t-1==0?t:t*(z(1+t)/(1+t-1))},ne=function(e){return"[object Arguments]"===v(e)},ie=ne(arguments)?ne:function(e){return null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==v(e)&&"[object Function]"===v(e.callee)},re=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},se=function(e){return"[object String]"===v(e)},ae=function(e){return"[object RegExp]"===v(e)},oe=function(e){return"function"==typeof A.Symbol&&"symbol"==typeof e},le=function(e,t,n){var i=e[t];m(e,t,n,!0),k(e[t],i)},ce="function"==typeof Z&&"function"==typeof Z.for&&oe(Z()),ue=oe(Z.iterator)?Z.iterator:"_es6-shim iterator_";A.Set&&"function"==typeof(new A.Set)["@@iterator"]&&(ue="@@iterator"),A.Reflect||m(A,"Reflect",{},!0);var de,he=A.Reflect,fe=String,pe="undefined"!=typeof document&&document?document.all:null,me=null==pe?function(e){return null==e}:function(e){return null==e&&e!==pe},ge={Call:function(e,t){var i=arguments.length>2?arguments[2]:[];if(!ge.IsCallable(e))throw new TypeError(e+" is not a function");return n(e,t,i)},RequireObjectCoercible:function(e,t){if(me(e))throw new TypeError(t||"Cannot call method on "+e);return e},TypeIsObject:function(e){return null!=e&&!0!==e&&!1!==e&&("function"==typeof e||"object"==typeof e||e===pe)},ToObject:function(e,t){return Object(ge.RequireObjectCoercible(e,t))},IsCallable:y,IsConstructor:function(e){return ge.IsCallable(e)},ToInt32:function(e){return ge.ToNumber(e)|0},ToUint32:function(e){return ge.ToNumber(e)>>>0},ToNumber:function(e){if(ce&&"[object Symbol]"===v(e))throw new TypeError("Cannot convert a Symbol value to a number");return+e},ToInteger:function(e){var t=ge.ToNumber(e);return J(t)?0:0!==t&&Q(t)?(t>0?1:-1)*j(F(t)):t},ToLength:function(e){var t=ge.ToInteger(e);return t<=0?0:t>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t},SameValue:function(e,t){return e===t?0!==e||1/e==1/t:J(e)&&J(t)},SameValueZero:function(e,t){return e===t||J(e)&&J(t)},GetIterator:function(e){if(ie(e))return new t(e,"value");var n=ge.GetMethod(e,ue);if(!ge.IsCallable(n))throw new TypeError("value is not an iterable");var i=ge.Call(n,e);if(!ge.TypeIsObject(i))throw new TypeError("bad iterator");return i},GetMethod:function(e,t){var n=ge.ToObject(e)[t];if(!me(n)){if(!ge.IsCallable(n))throw new TypeError("Method not callable: "+t);return n}},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,t){var n=ge.GetMethod(e,"return");if(void 0!==n){var i,r;try{i=ge.Call(n,e)}catch(e){r=e}if(!t){if(r)throw r;if(!ge.TypeIsObject(i))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!ge.TypeIsObject(t))throw new TypeError("bad iterator");return t},IteratorStep:function(e){var t=ge.IteratorNext(e);return!ge.IteratorComplete(t)&&t},Construct:function(e,t,n,i){var r=void 0===n?e:n;if(!i&&he.construct)return he.construct(e,t,r);var s=r.prototype;ge.TypeIsObject(s)||(s=Object.prototype);var a=M(s),o=ge.Call(e,a,t);return ge.TypeIsObject(o)?o:a},SpeciesConstructor:function(e,t){var n=e.constructor;if(void 0===n)return t;if(!ge.TypeIsObject(n))throw new TypeError("Bad constructor");var i=n[K];if(me(i))return t;if(!ge.IsConstructor(i))throw new TypeError("Bad @@species");return i},CreateHTML:function(e,t,n,i){var r=ge.ToString(e),s="<"+t;""!==n&&(s+=" "+n+'="'+ge.ToString(i).replace(/"/g,"&quot;")+'"');return s+">"+r+"</"+t+">"},IsRegExp:function(e){if(!ge.TypeIsObject(e))return!1;var t=e[Z.match];return void 0!==t?!!t:ae(e)},ToString:function(e){if(ce&&"[object Symbol]"===v(e))throw new TypeError("Cannot convert a Symbol value to a number");return fe(e)}};if(c&&ce){var ve=function(e){if(oe(Z[e]))return Z[e];var t=Z.for("Symbol."+e);return Object.defineProperty(Z,e,{configurable:!1,enumerable:!1,writable:!1,value:t}),t};if(!oe(Z.search)){var ye=ve("search"),be=String.prototype.search;m(RegExp.prototype,ye,(function(e){return ge.Call(be,e,[this])}));le(String.prototype,"search",(function(e){var t=ge.RequireObjectCoercible(this);if(!me(e)){var n=ge.GetMethod(e,ye);if(void 0!==n)return ge.Call(n,e,[t])}return ge.Call(be,t,[ge.ToString(e)])}))}if(!oe(Z.replace)){var xe=ve("replace"),_e=String.prototype.replace;m(RegExp.prototype,xe,(function(e,t){return ge.Call(_e,e,[this,t])}));le(String.prototype,"replace",(function(e,t){var n=ge.RequireObjectCoercible(this);if(!me(e)){var i=ge.GetMethod(e,xe);if(void 0!==i)return ge.Call(i,e,[n,t])}return ge.Call(_e,n,[ge.ToString(e),t])}))}if(!oe(Z.split)){var we=ve("split"),ke=String.prototype.split;m(RegExp.prototype,we,(function(e,t){return ge.Call(ke,e,[this,t])}));le(String.prototype,"split",(function(e,t){var n=ge.RequireObjectCoercible(this);if(!me(e)){var i=ge.GetMethod(e,we);if(void 0!==i)return ge.Call(i,e,[n,t])}return ge.Call(ke,n,[ge.ToString(e),t])}))}var Me=oe(Z.match),Se=Me&&((de={})[Z.match]=function(){return 42},42!=="a".match(de));if(!Me||Se){var Ae=ve("match"),Le=String.prototype.match;m(RegExp.prototype,Ae,(function(e){return ge.Call(Le,e,[this])}));le(String.prototype,"match",(function(e){var t=ge.RequireObjectCoercible(this);if(!me(e)){var n=ge.GetMethod(e,Ae);if(void 0!==n)return ge.Call(n,e,[t])}return ge.Call(Le,t,[ge.ToString(e)])}))}}var Te=function(e,t,n){k(t,e),Object.setPrototypeOf&&Object.setPrototypeOf(e,t),c?d(Object.getOwnPropertyNames(e),(function(i){i in W||n[i]||x(e,i,t)})):d(Object.keys(e),(function(i){i in W||n[i]||(t[i]=e[i])})),t.prototype=e.prototype,_(e.prototype,"constructor",t)},Ce=function(){return this},De=function(e){c&&!V(e,K)&&b(e,K,Ce)},Ee=function(e,t){var n=t||function(){return this};m(e,ue,n),!e[ue]&&oe(ue)&&(e[ue]=n)},Oe=function(e,t,n){if(function(e,t,n){c?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}(e,t,n),!ge.SameValue(e[t],n))throw new TypeError("property is nonconfigurable")},Pe=function(e,t,n,i){if(!ge.TypeIsObject(e))throw new TypeError("Constructor requires `new`: "+t.name);var r=t.prototype;ge.TypeIsObject(r)||(r=n);var s=M(r);for(var a in i)if(V(i,a)){var o=i[a];m(s,a,o,!0)}return s};if(String.fromCodePoint&&1!==String.fromCodePoint.length){var Ye=String.fromCodePoint;le(String,"fromCodePoint",(function(e){return ge.Call(Ye,this,arguments)}))}var Ie={fromCodePoint:function(e){for(var t,n=[],i=0,r=arguments.length;i<r;i++){if(t=Number(arguments[i]),!ge.SameValue(t,ge.ToInteger(t))||t<0||t>1114111)throw new RangeError("Invalid code point "+t);t<65536?O(n,String.fromCharCode(t)):(t-=65536,O(n,String.fromCharCode(55296+(t>>10))),O(n,String.fromCharCode(t%1024+56320)))}return Y(n,"")},raw:function(e){var t=ge.ToObject(e,"bad template"),n=ge.ToObject(t.raw,"bad raw value"),i=n.length,r=ge.ToLength(i);if(r<=0)return"";for(var s,a,o,l,c=[],u=0;u<r&&(s=ge.ToString(u),o=ge.ToString(n[s]),O(c,o),!(u+1>=r));)a=u+1<arguments.length?arguments[u+1]:"",l=ge.ToString(a),O(c,l),u+=1;return Y(c,"")}};String.raw&&"xy"!==String.raw({raw:{0:"x",1:"y",length:2}})&&le(String,"raw",Ie.raw),g(String,Ie);var Ne=function e(t,n){if(n<1)return"";if(n%2)return e(t,n-1)+t;var i=e(t,n/2);return i+i},He=1/0,je={repeat:function(e){var t=ge.ToString(ge.RequireObjectCoercible(this)),n=ge.ToInteger(e);if(n<0||n>=He)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return Ne(t,n)},startsWith:function(e){var t=ge.ToString(ge.RequireObjectCoercible(this));if(ge.IsRegExp(e))throw new TypeError('Cannot call method "startsWith" with a regex');var n,i=ge.ToString(e);arguments.length>1&&(n=arguments[1]);var r=N(ge.ToInteger(n),0);return E(t,r,r+i.length)===i},endsWith:function(e){var t=ge.ToString(ge.RequireObjectCoercible(this));if(ge.IsRegExp(e))throw new TypeError('Cannot call method "endsWith" with a regex');var n,i=ge.ToString(e),r=t.length;arguments.length>1&&(n=arguments[1]);var s=void 0===n?r:ge.ToInteger(n),a=H(N(s,0),r);return E(t,a-i.length,a)===i},includes:function(e){if(ge.IsRegExp(e))throw new TypeError('"includes" does not accept a RegExp');var t,n=ge.ToString(e);return arguments.length>1&&(t=arguments[1]),-1!==T(this,n,t)},codePointAt:function(e){var t=ge.ToString(ge.RequireObjectCoercible(this)),n=ge.ToInteger(e),i=t.length;if(n>=0&&n<i){var r=t.charCodeAt(n);if(r<55296||r>56319||n+1===i)return r;var s=t.charCodeAt(n+1);return s<56320||s>57343?r:1024*(r-55296)+(s-56320)+65536}}};if(String.prototype.includes&&!1!=="a".includes("a",1/0)&&le(String.prototype,"includes",je.includes),String.prototype.startsWith&&String.prototype.endsWith){var Fe=a((function(){return"/a/".startsWith(/a/)})),Re=o((function(){return!1==="abc".startsWith("a",1/0)}));Fe&&Re||(le(String.prototype,"startsWith",je.startsWith),le(String.prototype,"endsWith",je.endsWith))}ce&&(o((function(){var e=/a/;return e[Z.match]=!1,"/a/".startsWith(e)}))||le(String.prototype,"startsWith",je.startsWith),o((function(){var e=/a/;return e[Z.match]=!1,"/a/".endsWith(e)}))||le(String.prototype,"endsWith",je.endsWith),o((function(){var e=/a/;return e[Z.match]=!1,"/a/".includes(e)}))||le(String.prototype,"includes",je.includes));g(String.prototype,je);var ze=["\t\n\v\f\r   ᠎    ","         　\u2028","\u2029\ufeff"].join(""),Be=new RegExp("(^["+ze+"]+)|(["+ze+"]+$)","g"),Ve=function(){return ge.ToString(ge.RequireObjectCoercible(this)).replace(Be,"")},We=["","​",""].join(""),qe=new RegExp("["+We+"]","g"),Ue=/^[-+]0x[0-9a-f]+$/i,$e=We.trim().length!==We.length;m(String.prototype,"trim",Ve,$e);var Xe=function(e){return{value:e,done:0===arguments.length}},Ge=function(e){ge.RequireObjectCoercible(e),m(this,"_s",ge.ToString(e)),m(this,"_i",0)};Ge.prototype.next=function(){var e=this._s,t=this._i;if(void 0===e||t>=e.length)return this._s=void 0,Xe();var n,i,r=e.charCodeAt(t);return i=r<55296||r>56319||t+1===e.length||(n=e.charCodeAt(t+1))<56320||n>57343?1:2,this._i=t+i,Xe(e.substr(t,i))},Ee(Ge.prototype),Ee(String.prototype,(function(){return new Ge(this)}));var Ze={from:function(e){var t,n,r,s,a,o,l=this;if(arguments.length>1&&(t=arguments[1]),void 0===t)n=!1;else{if(!ge.IsCallable(t))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2]),n=!0}if(void 0!==(ie(e)||ge.GetMethod(e,ue))){a=ge.IsConstructor(l)?Object(new l):[];var c,u,d=ge.GetIterator(e);for(o=0;!1!==(c=ge.IteratorStep(d));){u=c.value;try{n&&(u=void 0===r?t(u,o):i(t,r,u,o)),a[o]=u}catch(e){throw ge.IteratorClose(d,!0),e}o+=1}s=o}else{var h,f=ge.ToObject(e);for(s=ge.ToLength(f.length),a=ge.IsConstructor(l)?Object(new l(s)):new Array(s),o=0;o<s;++o)h=f[o],n&&(h=void 0===r?t(h,o):i(t,r,h,o)),Oe(a,o,h)}return a.length=s,a},of:function(){for(var e=arguments.length,t=this,n=r(t)||!ge.IsCallable(t)?new Array(e):ge.Construct(t,[e]),i=0;i<e;++i)Oe(n,i,arguments[i]);return n.length=e,n}};g(Array,Ze),De(Array),g((t=function(e,t){m(this,"i",0),m(this,"array",e),m(this,"kind",t)}).prototype,{next:function(){var e=this.i,n=this.array;if(!(this instanceof t))throw new TypeError("Not an ArrayIterator");if(void 0!==n&&e<ge.ToLength(n.length)){var i,r=this.kind;return"key"===r?i=e:"value"===r?i=n[e]:"entry"===r&&(i=[e,n[e]]),this.i=e+1,Xe(i)}return this.array=void 0,Xe()}}),Ee(t.prototype),Array.of===Ze.of||function(){var e=function(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&2===t.length}()||le(Array,"of",Ze.of);var Ke={copyWithin:function(e,t){var n,i=ge.ToObject(this),r=ge.ToLength(i.length),s=ge.ToInteger(e),a=ge.ToInteger(t),o=s<0?N(r+s,0):H(s,r),l=a<0?N(r+a,0):H(a,r);arguments.length>2&&(n=arguments[2]);var c=void 0===n?r:ge.ToInteger(n),u=c<0?N(r+c,0):H(c,r),d=H(u-l,r-o),h=1;for(l<o&&o<l+d&&(h=-1,l+=d-1,o+=d-1);d>0;)l in i?i[o]=i[l]:delete i[o],l+=h,o+=h,d-=1;return i},fill:function(e){var t,n;arguments.length>1&&(t=arguments[1]),arguments.length>2&&(n=arguments[2]);var i=ge.ToObject(this),r=ge.ToLength(i.length);t=ge.ToInteger(void 0===t?0:t);for(var s=(n=ge.ToInteger(void 0===n?r:n))<0?r+n:n,a=t<0?N(r+t,0):H(t,r);a<r&&a<s;++a)i[a]=e;return i},find:function(e){var t=ge.ToObject(this),n=ge.ToLength(t.length);if(!ge.IsCallable(e))throw new TypeError("Array#find: predicate must be a function");for(var r,s=arguments.length>1?arguments[1]:null,a=0;a<n;a++)if(r=t[a],s){if(i(e,s,r,a,t))return r}else if(e(r,a,t))return r},findIndex:function(e){var t=ge.ToObject(this),n=ge.ToLength(t.length);if(!ge.IsCallable(e))throw new TypeError("Array#findIndex: predicate must be a function");for(var r=arguments.length>1?arguments[1]:null,s=0;s<n;s++)if(r){if(i(e,r,t[s],s,t))return s}else if(e(t[s],s,t))return s;return-1},keys:function(){return new t(this,"key")},values:function(){return new t(this,"value")},entries:function(){return new t(this,"entry")}};if(Array.prototype.keys&&!ge.IsCallable([1].keys().next)&&delete Array.prototype.keys,Array.prototype.entries&&!ge.IsCallable([1].entries().next)&&delete Array.prototype.entries,Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[ue]&&(g(Array.prototype,{values:Array.prototype[ue]}),oe(Z.unscopables)&&(Array.prototype[Z.unscopables].values=!0)),u&&Array.prototype.values&&"values"!==Array.prototype.values.name){var Je=Array.prototype.values;le(Array.prototype,"values",(function(){return ge.Call(Je,this,arguments)})),m(Array.prototype,ue,Array.prototype.values,!0)}if(g(Array.prototype,Ke),1/[!0].indexOf(!0,-0)<0&&m(Array.prototype,"indexOf",(function(e){var t=C(this,arguments);return 0===t&&1/t<0?0:t}),!0),Ee(Array.prototype,(function(){return this.values()})),Object.getPrototypeOf){var Qe=Object.getPrototypeOf([].values());Qe&&Ee(Qe)}var et,tt=o((function(){return 0===Array.from({length:-1}).length})),nt=1===(et=Array.from([0].entries())).length&&r(et[0])&&0===et[0][0]&&0===et[0][1];if(tt&&nt||le(Array,"from",Ze.from),!o((function(){return Array.from([0],void 0)}))){var it=Array.from;le(Array,"from",(function(e){return arguments.length>1&&void 0!==arguments[1]?ge.Call(it,this,arguments):i(it,this,e)}))}var rt=-(Math.pow(2,32)-1),st=function(e,t){var n={length:rt};return n[t?(n.length>>>0)-1:0]=!0,o((function(){return i(e,n,(function(){throw new RangeError("should not reach here")}),[]),!0}))};if(!st(Array.prototype.forEach)){var at=Array.prototype.forEach;le(Array.prototype,"forEach",(function(e){return ge.Call(at,this.length>=0?this:[],arguments)}))}if(!st(Array.prototype.map)){var ot=Array.prototype.map;le(Array.prototype,"map",(function(e){return ge.Call(ot,this.length>=0?this:[],arguments)}))}if(!st(Array.prototype.filter)){var lt=Array.prototype.filter;le(Array.prototype,"filter",(function(e){return ge.Call(lt,this.length>=0?this:[],arguments)}))}if(!st(Array.prototype.some)){var ct=Array.prototype.some;le(Array.prototype,"some",(function(e){return ge.Call(ct,this.length>=0?this:[],arguments)}))}if(!st(Array.prototype.every)){var ut=Array.prototype.every;le(Array.prototype,"every",(function(e){return ge.Call(ut,this.length>=0?this:[],arguments)}))}if(!st(Array.prototype.reduce)){var dt=Array.prototype.reduce;le(Array.prototype,"reduce",(function(e){return ge.Call(dt,this.length>=0?this:[],arguments)}))}if(!st(Array.prototype.reduceRight,!0)){var ht=Array.prototype.reduceRight;le(Array.prototype,"reduceRight",(function(e){return ge.Call(ht,this.length>=0?this:[],arguments)}))}var ft=8!==Number("0o10"),pt=2!==Number("0b10"),mt=p(We,(function(e){return 0===Number(e+0+e)}));if(ft||pt||mt){var gt=Number,vt=/^0b[01]+$/i,yt=/^0o[0-7]+$/i,bt=vt.test.bind(vt),xt=yt.test.bind(yt),_t=qe.test.bind(qe),wt=Ue.test.bind(Ue),kt=function(){var e=function(t){var n;"string"==typeof(n=arguments.length>0?re(t)?t:function(e){var t;if("function"==typeof e.valueOf&&(t=e.valueOf(),re(t)))return t;if("function"==typeof e.toString&&(t=e.toString(),re(t)))return t;throw new TypeError("No default value")}(t):0)&&(n=ge.Call(Ve,n),bt(n)?n=parseInt(E(n,2),2):xt(n)?n=parseInt(E(n,2),8):(_t(n)||wt(n))&&(n=NaN));var i=this,r=o((function(){return gt.prototype.valueOf.call(i),!0}));return i instanceof e&&!r?new gt(n):gt(n)};return e}();Te(gt,kt,{}),g(kt,{NaN:gt.NaN,MAX_VALUE:gt.MAX_VALUE,MIN_VALUE:gt.MIN_VALUE,NEGATIVE_INFINITY:gt.NEGATIVE_INFINITY,POSITIVE_INFINITY:gt.POSITIVE_INFINITY}),Number=kt,_(A,"Number",kt)}var Mt=Math.pow(2,53)-1;g(Number,{MAX_SAFE_INTEGER:Mt,MIN_SAFE_INTEGER:-Mt,EPSILON:2220446049250313e-31,parseInt:A.parseInt,parseFloat:A.parseFloat,isFinite:Q,isInteger:function(e){return Q(e)&&ge.ToInteger(e)===e},isSafeInteger:function(e){return Number.isInteger(e)&&F(e)<=Number.MAX_SAFE_INTEGER},isNaN:J}),m(Number,"parseInt",A.parseInt,Number.parseInt!==A.parseInt),1===[,1].find((function(){return!0}))&&le(Array.prototype,"find",Ke.find),0!==[,1].findIndex((function(){return!0}))&&le(Array.prototype,"findIndex",Ke.findIndex);var St,At,Lt,Tt=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),Ct=function(e,t){c&&Tt(e,t)&&Object.defineProperty(e,t,{enumerable:!1})},Dt=function(){for(var e=Number(this),t=arguments.length,n=t-e,i=new Array(n<0?0:n),r=e;r<t;++r)i[r-e]=arguments[r];return i},Et=function(e){return function(t,n){return t[n]=e[n],t}},Ot=function(e,t){var n,i=s(Object(t));return ge.IsCallable(Object.getOwnPropertySymbols)&&(n=f(Object.getOwnPropertySymbols(Object(t)),Tt(t))),h(D(i,n||[]),Et(t),e)},Pt={assign:function(e,t){var n=ge.ToObject(e,"Cannot convert undefined or null to object");return h(ge.Call(Dt,1,arguments),Ot,n)},is:function(e,t){return ge.SameValue(e,t)}};if(Object.assign&&Object.preventExtensions&&function(){var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}}()&&le(Object,"assign",Pt.assign),g(Object,Pt),c){var Yt={setPrototypeOf:function(e){var t,n=function(e,n){return function(e,t){if(!ge.TypeIsObject(e))throw new TypeError("cannot set prototype on a non-object");if(null!==t&&!ge.TypeIsObject(t))throw new TypeError("can only set prototype to an object or null"+t)}(e,n),i(t,e,n),e};try{t=e.getOwnPropertyDescriptor(e.prototype,"__proto__").set,i(t,{},null)}catch(i){if(e.prototype!=={}.__proto__)return;t=function(e){this.__proto__=e},n.polyfill=n(n({},null),e.prototype)instanceof e}return n}(Object)};g(Object,Yt)}if(Object.setPrototypeOf&&Object.getPrototypeOf&&null!==Object.getPrototypeOf(Object.setPrototypeOf({},null))&&null===Object.getPrototypeOf(Object.create(null))&&(St=Object.create(null),At=Object.getPrototypeOf,Lt=Object.setPrototypeOf,Object.getPrototypeOf=function(e){var t=At(e);return t===St?null:t},Object.setPrototypeOf=function(e,t){return Lt(e,null===t?St:t)},Object.setPrototypeOf.polyfill=!1),!!a((function(){return Object.keys("foo")}))){var It=Object.keys;le(Object,"keys",(function(e){return It(ge.ToObject(e))})),s=Object.keys}if(a((function(){return Object.keys(/a/g)}))){var Nt=Object.keys;le(Object,"keys",(function(e){if(ae(e)){var t=[];for(var n in e)V(e,n)&&O(t,n);return t}return Nt(e)})),s=Object.keys}if(Object.getOwnPropertyNames&&!!a((function(){return Object.getOwnPropertyNames("foo")}))){var Ht="object"==typeof window?Object.getOwnPropertyNames(window):[],jt=Object.getOwnPropertyNames;le(Object,"getOwnPropertyNames",(function(e){var t=ge.ToObject(e);if("[object Window]"===v(t))try{return jt(t)}catch(e){return D([],Ht)}return jt(t)}))}if(Object.getOwnPropertyDescriptor&&!!a((function(){return Object.getOwnPropertyDescriptor("foo","bar")}))){var Ft=Object.getOwnPropertyDescriptor;le(Object,"getOwnPropertyDescriptor",(function(e,t){return Ft(ge.ToObject(e),t)}))}if(Object.seal&&!!a((function(){return Object.seal("foo")}))){var Rt=Object.seal;le(Object,"seal",(function(e){return ge.TypeIsObject(e)?Rt(e):e}))}if(Object.isSealed&&!!a((function(){return Object.isSealed("foo")}))){var zt=Object.isSealed;le(Object,"isSealed",(function(e){return!ge.TypeIsObject(e)||zt(e)}))}if(Object.freeze&&!!a((function(){return Object.freeze("foo")}))){var Bt=Object.freeze;le(Object,"freeze",(function(e){return ge.TypeIsObject(e)?Bt(e):e}))}if(Object.isFrozen&&!!a((function(){return Object.isFrozen("foo")}))){var Vt=Object.isFrozen;le(Object,"isFrozen",(function(e){return!ge.TypeIsObject(e)||Vt(e)}))}if(Object.preventExtensions&&!!a((function(){return Object.preventExtensions("foo")}))){var Wt=Object.preventExtensions;le(Object,"preventExtensions",(function(e){return ge.TypeIsObject(e)?Wt(e):e}))}if(Object.isExtensible&&!!a((function(){return Object.isExtensible("foo")}))){var qt=Object.isExtensible;le(Object,"isExtensible",(function(e){return!!ge.TypeIsObject(e)&&qt(e)}))}if(Object.getPrototypeOf&&!!a((function(){return Object.getPrototypeOf("foo")}))){var Ut=Object.getPrototypeOf;le(Object,"getPrototypeOf",(function(e){return Ut(ge.ToObject(e))}))}var $t,Xt=c&&(($t=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))&&ge.IsCallable($t.get));if(c&&!Xt){b(RegExp.prototype,"flags",(function(){if(!ge.TypeIsObject(this))throw new TypeError("Method called on incompatible type: must be an object.");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}))}var Gt,Zt=c&&o((function(){return"/a/i"===String(new RegExp(/a/g,"i"))})),Kt=ce&&c&&((Gt=/./)[Z.match]=!1,RegExp(Gt)===Gt),Jt=o((function(){return"/abc/"===RegExp.prototype.toString.call({source:"abc"})})),Qt=Jt&&o((function(){return"/a/b"===RegExp.prototype.toString.call({source:"a",flags:"b"})}));if(!Jt||!Qt){var en=RegExp.prototype.toString;m(RegExp.prototype,"toString",(function(){var e=ge.RequireObjectCoercible(this);return ae(e)?i(en,e):"/"+fe(e.source)+"/"+fe(e.flags)}),!0),k(RegExp.prototype.toString,en),RegExp.prototype.toString.prototype=void 0}if(c&&(!Zt||Kt)){var tn=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get,nn=Object.getOwnPropertyDescriptor(RegExp.prototype,"source")||{},rn=ge.IsCallable(nn.get)?nn.get:function(){return this.source},sn=RegExp,an=function e(t,n){var i=ge.IsRegExp(t);return this instanceof e||!i||void 0!==n||t.constructor!==e?ae(t)?new e(ge.Call(rn,t),void 0===n?ge.Call(tn,t):n):(i&&(t.source,void 0===n&&t.flags),new sn(t,n)):t};Te(sn,an,{$input:!0}),RegExp=an,_(A,"RegExp",an)}if(c){var on={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};d(s(on),(function(e){e in RegExp&&!(on[e]in RegExp)&&b(RegExp,on[e],(function(){return RegExp[e]}))}))}De(RegExp);var ln=1/Number.EPSILON,cn=Math.pow(2,-23),un=Math.pow(2,127)*(2-cn),dn=Math.pow(2,-126),hn=Math.E,fn=Math.LOG2E,pn=Math.LOG10E,mn=Number.prototype.clz;delete Number.prototype.clz;var gn={acosh:function(e){var t=Number(e);if(J(t)||e<1)return NaN;if(1===t)return 0;if(t===1/0)return t;var n=1/(t*t);if(t<2)return te(t-1+B(1-n)*t);var i=t/2;return te(i+B(1-n)*i-1)+1/fn},asinh:function(e){var t=Number(e);if(0===t||!L(t))return t;var n=F(t),i=n*n,r=ee(t);return n<1?r*te(n+i/(B(i+1)+1)):r*(te(n/2+B(1+1/i)*n/2-1)+1/fn)},atanh:function(e){var t=Number(e);if(0===t)return t;if(-1===t)return-1/0;if(1===t)return 1/0;if(J(t)||t<-1||t>1)return NaN;var n=F(t);return ee(t)*te(2*n/(1-n))/2},cbrt:function(e){var t=Number(e);if(0===t)return t;var n,i=t<0;return i&&(t=-t),n=t===1/0?1/0:(t/((n=R(z(t)/3))*n)+2*n)/3,i?-n:n},clz32:function(e){var t=Number(e),n=ge.ToUint32(t);return 0===n?32:mn?ge.Call(mn,n):31-j(z(n+.5)*fn)},cosh:function(e){var t=Number(e);if(0===t)return 1;if(J(t))return NaN;if(!L(t))return 1/0;var n=R(F(t)-1);return(n+1/(n*hn*hn))*(hn/2)},expm1:function(e){var t=Number(e);if(t===-1/0)return-1;if(!L(t)||0===t)return t;if(F(t)>.5)return R(t)-1;for(var n=t,i=0,r=1;i+n!==i;)i+=n,n*=t/(r+=1);return i},hypot:function(e,t){for(var n=0,i=0,r=0;r<arguments.length;++r){var s=F(Number(arguments[r]));i<s?(n*=i/s*(i/s),n+=1,i=s):n+=s>0?s/i*(s/i):s}return i===1/0?1/0:i*B(n)},log2:function(e){return z(e)*fn},log10:function(e){return z(e)*pn},log1p:te,sign:ee,sinh:function(e){var t=Number(e);if(!L(t)||0===t)return t;var n=F(t);if(n<1){var i=Math.expm1(n);return ee(t)*i*(1+1/(i+1))/2}var r=R(n-1);return ee(t)*(r-1/(r*hn*hn))*(hn/2)},tanh:function(e){var t=Number(e);return J(t)||0===t?t:t>=20?1:t<=-20?-1:(Math.expm1(t)-Math.expm1(-t))/(R(t)+R(-t))},trunc:function(e){var t=Number(e);return t<0?-j(-t):j(t)},imul:function(e,t){var n=ge.ToUint32(e),i=ge.ToUint32(t),r=65535&n,s=65535&i;return r*s+((n>>>16&65535)*s+r*(i>>>16&65535)<<16>>>0)|0},fround:function(e){var t=Number(e);if(0===t||t===1/0||t===-1/0||J(t))return t;var n=ee(t),i=F(t);if(i<dn)return n*(i/dn/cn+ln-ln)*dn*cn;var r=(1+cn/Number.EPSILON)*i,s=r-(r-i);return s>un||J(s)?n*(1/0):n*s}},vn=function(e,t,n){return F(1-e/t)/Number.EPSILON<(n||8)};g(Math,gn),m(Math,"sinh",gn.sinh,Math.sinh(710)===1/0),m(Math,"cosh",gn.cosh,Math.cosh(710)===1/0),m(Math,"log1p",gn.log1p,-1e-17!==Math.log1p(-1e-17)),m(Math,"asinh",gn.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),m(Math,"asinh",gn.asinh,Math.asinh(1e300)===1/0),m(Math,"atanh",gn.atanh,0===Math.atanh(1e-300)),m(Math,"tanh",gn.tanh,-2e-17!==Math.tanh(-2e-17)),m(Math,"acosh",gn.acosh,Math.acosh(Number.MAX_VALUE)===1/0),m(Math,"acosh",gn.acosh,!vn(Math.acosh(1+Number.EPSILON),Math.sqrt(2*Number.EPSILON))),m(Math,"cbrt",gn.cbrt,!vn(Math.cbrt(1e-300),1e-100)),m(Math,"sinh",gn.sinh,-2e-17!==Math.sinh(-2e-17));var yn=Math.expm1(10);m(Math,"expm1",gn.expm1,yn>22025.465794806718||yn<22025.465794806718),m(Math,"hypot",gn.hypot,Math.hypot(1/0,NaN)!==1/0);var bn=Math.round,xn=0===Math.round(.5-Number.EPSILON/4)&&1===Math.round(Number.EPSILON/3.99-.5),_n=[ln+1,2*ln-1].every((function(e){return Math.round(e)===e}));m(Math,"round",(function(e){var t=j(e);return e-t<.5?t:-1===t?-0:t+1}),!xn||!_n),k(Math.round,bn);var wn=Math.imul;-5!==Math.imul(4294967295,5)&&(Math.imul=gn.imul,k(Math.imul,wn)),2!==Math.imul.length&&le(Math,"imul",(function(e,t){return ge.Call(wn,Math,arguments)}));var kn,Mn,Sn=function(){var e=A.setTimeout;if("function"==typeof e||"object"==typeof e){ge.IsPromise=function(e){return!!ge.TypeIsObject(e)&&void 0!==e._promise};var t,n=function(e){if(!ge.IsConstructor(e))throw new TypeError("Bad promise constructor");var t=this;if(t.resolve=void 0,t.reject=void 0,t.promise=new e((function(e,n){if(void 0!==t.resolve||void 0!==t.reject)throw new TypeError("Bad Promise implementation!");t.resolve=e,t.reject=n})),!ge.IsCallable(t.resolve)||!ge.IsCallable(t.reject))throw new TypeError("Bad promise constructor")};"undefined"!=typeof window&&ge.IsCallable(window.postMessage)&&(t=function(){var e=[],t="zero-timeout-message";return window.addEventListener("message",(function(n){if(n.source===window&&n.data===t){if(n.stopPropagation(),0===e.length)return;I(e)()}}),!0),function(n){O(e,n),window.postMessage(t,"*")}});var r,s,a,o,l=ge.IsCallable(A.setImmediate)?A.setImmediate:"object"==typeof process&&process.nextTick?process.nextTick:(r=A.Promise,(s=r&&r.resolve&&r.resolve())&&function(e){return s.then(e)}||(ge.IsCallable(t)?t():function(t){e(t,0)})),c=function(e){return e},u=function(e){throw e},d={},h=function(e,t,n){l((function(){f(e,t,n)}))},f=function(e,t,n){var i,r;if(t===d)return e(n);try{i=e(n),r=t.resolve}catch(e){i=e,r=t.reject}r(i)},p=function(e,t){var n=e._promise,i=n.reactionLength;if(i>0&&(h(n.fulfillReactionHandler0,n.reactionCapability0,t),n.fulfillReactionHandler0=void 0,n.rejectReactions0=void 0,n.reactionCapability0=void 0,i>1))for(var r=1,s=0;r<i;r++,s+=3)h(n[s+0],n[s+2],t),e[s+0]=void 0,e[s+1]=void 0,e[s+2]=void 0;n.result=t,n.state=1,n.reactionLength=0},m=function(e,t){var n=e._promise,i=n.reactionLength;if(i>0&&(h(n.rejectReactionHandler0,n.reactionCapability0,t),n.fulfillReactionHandler0=void 0,n.rejectReactions0=void 0,n.reactionCapability0=void 0,i>1))for(var r=1,s=0;r<i;r++,s+=3)h(n[s+1],n[s+2],t),e[s+0]=void 0,e[s+1]=void 0,e[s+2]=void 0;n.result=t,n.state=2,n.reactionLength=0},v=function(e){var t=!1;return{resolve:function(n){var i;if(!t){if(t=!0,n===e)return m(e,new TypeError("Self resolution"));if(!ge.TypeIsObject(n))return p(e,n);try{i=n.then}catch(t){return m(e,t)}if(!ge.IsCallable(i))return p(e,n);l((function(){b(e,n,i)}))}},reject:function(n){if(!t)return t=!0,m(e,n)}}},y=function(e,t,n,r){e===o?i(e,t,n,r,d):i(e,t,n,r)},b=function(e,t,n){var i=v(e),r=i.resolve,s=i.reject;try{y(n,t,r,s)}catch(e){s(e)}},x=function(){var e=function(t){if(!(this instanceof e))throw new TypeError('Constructor Promise requires "new"');if(this&&this._promise)throw new TypeError("Bad construction");if(!ge.IsCallable(t))throw new TypeError("not a valid resolver");var n=Pe(this,e,a,{_promise:{result:void 0,state:0,reactionLength:0,fulfillReactionHandler0:void 0,rejectReactionHandler0:void 0,reactionCapability0:void 0}}),i=v(n),r=i.reject;try{t(i.resolve,r)}catch(e){r(e)}return n};return e}();a=x.prototype;var _=function(e,t,n,i){var r=!1;return function(s){r||(r=!0,t[e]=s,0==--i.count&&(0,n.resolve)(t))}};return g(x,{all:function(e){var t=this;if(!ge.TypeIsObject(t))throw new TypeError("Promise is not object");var i,r,s=new n(t);try{return function(e,t,n){for(var i,r,s=e.iterator,a=[],o={count:1},l=0;;){try{if(!1===(i=ge.IteratorStep(s))){e.done=!0;break}r=i.value}catch(t){throw e.done=!0,t}a[l]=void 0;var c=t.resolve(r),u=_(l,a,n,o);o.count+=1,y(c.then,c,u,n.reject),l+=1}return 0==--o.count&&(0,n.resolve)(a),n.promise}(r={iterator:i=ge.GetIterator(e),done:!1},t,s)}catch(e){var a=e;if(r&&!r.done)try{ge.IteratorClose(i,!0)}catch(e){a=e}return(0,s.reject)(a),s.promise}},race:function(e){var t=this;if(!ge.TypeIsObject(t))throw new TypeError("Promise is not object");var i,r,s=new n(t);try{return function(e,t,n){for(var i,r,s,a=e.iterator;;){try{if(!1===(i=ge.IteratorStep(a))){e.done=!0;break}r=i.value}catch(t){throw e.done=!0,t}s=t.resolve(r),y(s.then,s,n.resolve,n.reject)}return n.promise}(r={iterator:i=ge.GetIterator(e),done:!1},t,s)}catch(e){var a=e;if(r&&!r.done)try{ge.IteratorClose(i,!0)}catch(e){a=e}return(0,s.reject)(a),s.promise}},reject:function(e){if(!ge.TypeIsObject(this))throw new TypeError("Bad promise constructor");var t=new n(this);return(0,t.reject)(e),t.promise},resolve:function(e){var t=this;if(!ge.TypeIsObject(t))throw new TypeError("Bad promise constructor");if(ge.IsPromise(e)&&e.constructor===t)return e;var i=new n(t);return(0,i.resolve)(e),i.promise}}),g(a,{catch:function(e){return this.then(null,e)},then:function(e,t){var i=this;if(!ge.IsPromise(i))throw new TypeError("not a promise");var r,s=ge.SpeciesConstructor(i,x);r=arguments.length>2&&arguments[2]===d&&s===x?d:new n(s);var a,o=ge.IsCallable(e)?e:c,l=ge.IsCallable(t)?t:u,f=i._promise;if(0===f.state){if(0===f.reactionLength)f.fulfillReactionHandler0=o,f.rejectReactionHandler0=l,f.reactionCapability0=r;else{var p=3*(f.reactionLength-1);f[p+0]=o,f[p+1]=l,f[p+2]=r}f.reactionLength+=1}else if(1===f.state)a=f.result,h(o,r,a);else{if(2!==f.state)throw new TypeError("unexpected Promise state");a=f.result,h(l,r,a)}return r.promise}}),d=new n(x),o=a.then,x}}();if(A.Promise&&(delete A.Promise.accept,delete A.Promise.defer,delete A.Promise.prototype.chain),"function"==typeof Sn){g(A,{Promise:Sn});var An=S(A.Promise,(function(e){return e.resolve(42).then((function(){}))instanceof e})),Ln=!a((function(){return A.Promise.reject(42).then(null,5).then(null,W)})),Tn=a((function(){return A.Promise.call(3,W)})),Cn=function(e){var t=e.resolve(5);t.constructor={};var n=e.resolve(t);try{n.then(null,W).then(null,W)}catch(e){return!0}return t===n}(A.Promise),Dn=c&&(kn=0,Mn=Object.defineProperty({},"then",{get:function(){kn+=1}}),Promise.resolve(Mn),1===kn),En=function e(t){var n=new Promise(t);t(3,(function(){})),this.then=n.then,this.constructor=e};En.prototype=Promise.prototype,En.all=Promise.all;var On=o((function(){return!!En.all([1,2])}));if(An&&Ln&&Tn&&!Cn&&Dn&&!On||(Promise=Sn,le(A,"Promise",Sn)),1!==Promise.all.length){var Pn=Promise.all;le(Promise,"all",(function(e){return ge.Call(Pn,this,arguments)}))}if(1!==Promise.race.length){var Yn=Promise.race;le(Promise,"race",(function(e){return ge.Call(Yn,this,arguments)}))}if(1!==Promise.resolve.length){var In=Promise.resolve;le(Promise,"resolve",(function(e){return ge.Call(In,this,arguments)}))}if(1!==Promise.reject.length){var Nn=Promise.reject;le(Promise,"reject",(function(e){return ge.Call(Nn,this,arguments)}))}Ct(Promise,"all"),Ct(Promise,"race"),Ct(Promise,"resolve"),Ct(Promise,"reject"),De(Promise)}var Hn,jn,Fn=function(e){var t=s(h(e,(function(e,t){return e[t]=!0,e}),{}));return e.join(":")===t.join(":")},Rn=Fn(["z","a","bb"]),zn=Fn(["z",1,"a","3",2]);if(c){var Bn=function(e,t){return t||Rn?me(e)?"^"+ge.ToString(e):"string"==typeof e?"$"+e:"number"==typeof e?zn?e:"n"+e:"boolean"==typeof e?"b"+e:null:null},Vn=function(){return Object.create?Object.create(null):{}},Wn=function(e,t,n){if(r(n)||se(n))d(n,(function(e){if(!ge.TypeIsObject(e))throw new TypeError("Iterator value "+e+" is not an entry object");t.set(e[0],e[1])}));else if(n instanceof e)i(e.prototype.forEach,n,(function(e,n){t.set(n,e)}));else{var s,a;if(!me(n)){if(a=t.set,!ge.IsCallable(a))throw new TypeError("bad map");s=ge.GetIterator(n)}if(void 0!==s)for(;;){var o=ge.IteratorStep(s);if(!1===o)break;var l=o.value;try{if(!ge.TypeIsObject(l))throw new TypeError("Iterator value "+l+" is not an entry object");i(a,t,l[0],l[1])}catch(e){throw ge.IteratorClose(s,!0),e}}}},qn=function(e,t,n){if(r(n)||se(n))d(n,(function(e){t.add(e)}));else if(n instanceof e)i(e.prototype.forEach,n,(function(e){t.add(e)}));else{var s,a;if(!me(n)){if(a=t.add,!ge.IsCallable(a))throw new TypeError("bad set");s=ge.GetIterator(n)}if(void 0!==s)for(;;){var o=ge.IteratorStep(s);if(!1===o)break;var l=o.value;try{i(a,t,l)}catch(e){throw ge.IteratorClose(s,!0),e}}}},Un={Map:function(){var e={},t=function(e,t){this.key=e,this.value=t,this.next=null,this.prev=null};t.prototype.isRemoved=function(){return this.key===e};var n,r=function(e,t){if(!ge.TypeIsObject(e)||!function(e){return!!e._es6map}(e))throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+ge.ToString(e))},s=function(e,t){r(e,"[[MapIterator]]"),m(this,"head",e._head),m(this,"i",this.head),m(this,"kind",t)};Ee(s.prototype={isMapIterator:!0,next:function(){if(!this.isMapIterator)throw new TypeError("Not a MapIterator");var e,t=this.i,n=this.kind,i=this.head;if(void 0===this.i)return Xe();for(;t.isRemoved()&&t!==i;)t=t.prev;for(;t.next!==i;)if(!(t=t.next).isRemoved())return e="key"===n?t.key:"value"===n?t.value:[t.key,t.value],this.i=t,Xe(e);return this.i=void 0,Xe()}});var a=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var i=Pe(this,e,n,{_es6map:!0,_head:null,_map:q?new q:null,_size:0,_storage:Vn()}),r=new t(null,null);return r.next=r.prev=r,i._head=r,arguments.length>0&&Wn(e,i,arguments[0]),i};return b(n=a.prototype,"size",(function(){if(void 0===this._size)throw new TypeError("size method called on incompatible Map");return this._size})),g(n,{get:function(e){var t;r(this,"get");var n=Bn(e,!0);if(null!==n)return(t=this._storage[n])?t.value:void 0;if(this._map)return(t=$.call(this._map,e))?t.value:void 0;for(var i=this._head,s=i;(s=s.next)!==i;)if(ge.SameValueZero(s.key,e))return s.value},has:function(e){r(this,"has");var t=Bn(e,!0);if(null!==t)return void 0!==this._storage[t];if(this._map)return X.call(this._map,e);for(var n=this._head,i=n;(i=i.next)!==n;)if(ge.SameValueZero(i.key,e))return!0;return!1},set:function(e,n){r(this,"set");var i,s=this._head,a=s,o=Bn(e,!0);if(null!==o){if(void 0!==this._storage[o])return this._storage[o].value=n,this;i=this._storage[o]=new t(e,n),a=s.prev}else this._map&&(X.call(this._map,e)?$.call(this._map,e).value=n:(i=new t(e,n),G.call(this._map,e,i),a=s.prev));for(;(a=a.next)!==s;)if(ge.SameValueZero(a.key,e))return a.value=n,this;return i=i||new t(e,n),ge.SameValue(-0,e)&&(i.key=0),i.next=this._head,i.prev=this._head.prev,i.prev.next=i,i.next.prev=i,this._size+=1,this},delete:function(t){r(this,"delete");var n=this._head,i=n,s=Bn(t,!0);if(null!==s){if(void 0===this._storage[s])return!1;i=this._storage[s].prev,delete this._storage[s]}else if(this._map){if(!X.call(this._map,t))return!1;i=$.call(this._map,t).prev,U.call(this._map,t)}for(;(i=i.next)!==n;)if(ge.SameValueZero(i.key,t))return i.key=e,i.value=e,i.prev.next=i.next,i.next.prev=i.prev,this._size-=1,!0;return!1},clear:function(){r(this,"clear"),this._map=q?new q:null,this._size=0,this._storage=Vn();for(var t=this._head,n=t,i=n.next;(n=i)!==t;)n.key=e,n.value=e,i=n.next,n.next=n.prev=t;t.next=t.prev=t},keys:function(){return r(this,"keys"),new s(this,"key")},values:function(){return r(this,"values"),new s(this,"value")},entries:function(){return r(this,"entries"),new s(this,"key+value")},forEach:function(e){r(this,"forEach");for(var t=arguments.length>1?arguments[1]:null,n=this.entries(),s=n.next();!s.done;s=n.next())t?i(e,t,s.value[1],s.value[0],this):e(s.value[1],s.value[0],this)}}),Ee(n,n.entries),a}(),Set:function(){var e,t=function(e,t){if(!ge.TypeIsObject(e)||!function(e){return e._es6set&&void 0!==e._storage}(e))throw new TypeError("Set.prototype."+t+" called on incompatible receiver "+ge.ToString(e))},n=function t(){if(!(this instanceof t))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var n=Pe(this,t,e,{_es6set:!0,"[[SetData]]":null,_storage:Vn()});if(!n._es6set)throw new TypeError("bad set");return arguments.length>0&&qn(t,n,arguments[0]),n};e=n.prototype;var r=function(e){if(!e["[[SetData]]"]){var t=new Un.Map;e["[[SetData]]"]=t,d(s(e._storage),(function(e){var n=function(e){var t=e;if("^null"===t)return null;if("^undefined"!==t){var n=t.charAt(0);return"$"===n?E(t,1):"n"===n?+E(t,1):"b"===n?"btrue"===t:+t}}(e);t.set(n,n)})),e["[[SetData]]"]=t}e._storage=null};b(n.prototype,"size",(function(){return t(this,"size"),this._storage?s(this._storage).length:(r(this),this["[[SetData]]"].size)})),g(n.prototype,{has:function(e){var n;return t(this,"has"),this._storage&&null!==(n=Bn(e))?!!this._storage[n]:(r(this),this["[[SetData]]"].has(e))},add:function(e){var n;return t(this,"add"),this._storage&&null!==(n=Bn(e))?(this._storage[n]=!0,this):(r(this),this["[[SetData]]"].set(e,e),this)},delete:function(e){var n;if(t(this,"delete"),this._storage&&null!==(n=Bn(e))){var i=V(this._storage,n);return delete this._storage[n]&&i}return r(this),this["[[SetData]]"].delete(e)},clear:function(){t(this,"clear"),this._storage&&(this._storage=Vn()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return t(this,"values"),r(this),new a(this["[[SetData]]"].values())},entries:function(){return t(this,"entries"),r(this),new a(this["[[SetData]]"].entries())},forEach:function(e){t(this,"forEach");var n=arguments.length>1?arguments[1]:null,s=this;r(s),this["[[SetData]]"].forEach((function(t,r){n?i(e,n,r,r,s):e(r,r,s)}))}}),m(n.prototype,"keys",n.prototype.values,!0),Ee(n.prototype,n.prototype.values);var a=function(e){m(this,"it",e)};return a.prototype={isSetIterator:!0,next:function(){if(!this.isSetIterator)throw new TypeError("Not a SetIterator");return this.it.next()}},Ee(a.prototype),n}()};if(A.Set&&!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray((new Set).keys)&&(A.Set=Un.Set),A.Map||A.Set){o((function(){return 2===new Map([[1,2]]).get(1)}))||(A.Map=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');var t=new q;return arguments.length>0&&Wn(e,t,arguments[0]),delete t.constructor,Object.setPrototypeOf(t,A.Map.prototype),t},A.Map.prototype=M(q.prototype),m(A.Map.prototype,"constructor",A.Map,!0),k(A.Map,q));var $n=new Map,Xn=((jn=new Map([[1,0],[2,0],[3,0],[4,0]])).set(-0,jn),jn.get(0)===jn&&jn.get(-0)===jn&&jn.has(0)&&jn.has(-0)),Gn=$n.set(1,2)===$n;Xn&&Gn||le(Map.prototype,"set",(function(e,t){return i(G,this,0===e?0:e,t),this})),Xn||(g(Map.prototype,{get:function(e){return i($,this,0===e?0:e)},has:function(e){return i(X,this,0===e?0:e)}},!0),k(Map.prototype.get,$),k(Map.prototype.has,X));var Zn=new Set,Kn=Set.prototype.delete&&Set.prototype.add&&Set.prototype.has&&((Hn=Zn).delete(0),Hn.add(-0),!Hn.has(0)),Jn=Zn.add(1)===Zn;if(!Kn||!Jn){var Qn=Set.prototype.add;Set.prototype.add=function(e){return i(Qn,this,0===e?0:e),this},k(Set.prototype.add,Qn)}if(!Kn){var ei=Set.prototype.has;Set.prototype.has=function(e){return i(ei,this,0===e?0:e)},k(Set.prototype.has,ei);var ti=Set.prototype.delete;Set.prototype.delete=function(e){return i(ti,this,0===e?0:e)},k(Set.prototype.delete,ti)}var ni=S(A.Map,(function(e){var t=new e([]);return t.set(42,42),t instanceof e})),ii=Object.setPrototypeOf&&!ni,ri=function(){try{return!(A.Map()instanceof A.Map)}catch(e){return e instanceof TypeError}}();0===A.Map.length&&!ii&&ri||(A.Map=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');var t=new q;return arguments.length>0&&Wn(e,t,arguments[0]),delete t.constructor,Object.setPrototypeOf(t,e.prototype),t},A.Map.prototype=q.prototype,m(A.Map.prototype,"constructor",A.Map,!0),k(A.Map,q));var si=S(A.Set,(function(e){var t=new e([]);return t.add(42,42),t instanceof e})),ai=Object.setPrototypeOf&&!si,oi=function(){try{return!(A.Set()instanceof A.Set)}catch(e){return e instanceof TypeError}}();if(0!==A.Set.length||ai||!oi){var li=A.Set;A.Set=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');var t=new li;return arguments.length>0&&qn(e,t,arguments[0]),delete t.constructor,Object.setPrototypeOf(t,e.prototype),t},A.Set.prototype=li.prototype,m(A.Set.prototype,"constructor",A.Set,!0),k(A.Set,li)}var ci=new A.Map,ui=!o((function(){return ci.keys().next().done}));if(("function"!=typeof A.Map.prototype.clear||0!==(new A.Set).size||0!==ci.size||"function"!=typeof A.Map.prototype.keys||"function"!=typeof A.Set.prototype.keys||"function"!=typeof A.Map.prototype.forEach||"function"!=typeof A.Set.prototype.forEach||l(A.Map)||l(A.Set)||"function"!=typeof ci.keys().next||ui||!ni)&&g(A,{Map:Un.Map,Set:Un.Set},!0),A.Set.prototype.keys!==A.Set.prototype.values&&m(A.Set.prototype,"keys",A.Set.prototype.values,!0),Ee(Object.getPrototypeOf((new A.Map).keys())),Ee(Object.getPrototypeOf((new A.Set).keys())),u&&"has"!==A.Set.prototype.has.name){var di=A.Set.prototype.has;le(A.Set.prototype,"has",(function(e){return i(di,this,e)}))}}g(A,Un),De(A.Map),De(A.Set)}var hi=function(e){if(!ge.TypeIsObject(e))throw new TypeError("target must be an object")},fi={apply:function(){return ge.Call(ge.Call,null,arguments)},construct:function(e,t){if(!ge.IsConstructor(e))throw new TypeError("First argument must be a constructor.");var n=arguments.length>2?arguments[2]:e;if(!ge.IsConstructor(n))throw new TypeError("new.target must be a constructor.");return ge.Construct(e,t,n,"internal")},deleteProperty:function(e,t){if(hi(e),c){var n=Object.getOwnPropertyDescriptor(e,t);if(n&&!n.configurable)return!1}return delete e[t]},has:function(e,t){return hi(e),t in e}};Object.getOwnPropertyNames&&Object.assign(fi,{ownKeys:function(e){hi(e);var t=Object.getOwnPropertyNames(e);return ge.IsCallable(Object.getOwnPropertySymbols)&&P(t,Object.getOwnPropertySymbols(e)),t}});var pi=function(e){return!a(e)};if(Object.preventExtensions&&Object.assign(fi,{isExtensible:function(e){return hi(e),Object.isExtensible(e)},preventExtensions:function(e){return hi(e),pi((function(){return Object.preventExtensions(e)}))}}),c){var mi=function(e,t,n){var i=Object.getOwnPropertyDescriptor(e,t);if(!i){var r=Object.getPrototypeOf(e);if(null===r)return;return mi(r,t,n)}return"value"in i?i.value:i.get?ge.Call(i.get,n):void 0},gi=function(e,t,n,r){var s=Object.getOwnPropertyDescriptor(e,t);if(!s){var a=Object.getPrototypeOf(e);if(null!==a)return gi(a,t,n,r);s={value:void 0,writable:!0,enumerable:!0,configurable:!0}}return"value"in s?!!s.writable&&(!!ge.TypeIsObject(r)&&(Object.getOwnPropertyDescriptor(r,t)?he.defineProperty(r,t,{value:n}):he.defineProperty(r,t,{value:n,writable:!0,enumerable:!0,configurable:!0}))):!!s.set&&(i(s.set,r,n),!0)};Object.assign(fi,{defineProperty:function(e,t,n){return hi(e),pi((function(){return Object.defineProperty(e,t,n)}))},getOwnPropertyDescriptor:function(e,t){return hi(e),Object.getOwnPropertyDescriptor(e,t)},get:function(e,t){return hi(e),mi(e,t,arguments.length>2?arguments[2]:e)},set:function(e,t,n){return hi(e),gi(e,t,n,arguments.length>3?arguments[3]:e)}})}if(Object.getPrototypeOf){var vi=Object.getPrototypeOf;fi.getPrototypeOf=function(e){return hi(e),vi(e)}}if(Object.setPrototypeOf&&fi.getPrototypeOf){Object.assign(fi,{setPrototypeOf:function(e,t){if(hi(e),null!==t&&!ge.TypeIsObject(t))throw new TypeError("proto must be an object or null");return t===he.getPrototypeOf(e)||!(he.isExtensible&&!he.isExtensible(e))&&(!function(e,t){for(var n=t;n;){if(e===n)return!0;n=fi.getPrototypeOf(n)}return!1}(e,t)&&(Object.setPrototypeOf(e,t),!0))}})}Object.keys(fi).forEach((function(e){!function(e,t){ge.IsCallable(A.Reflect[e])?o((function(){return A.Reflect[e](1),A.Reflect[e](NaN),A.Reflect[e](!0),!0}))&&le(A.Reflect,e,t):m(A.Reflect,e,t)}(e,fi[e])}));var yi=A.Reflect.getPrototypeOf;if(u&&yi&&"getPrototypeOf"!==yi.name&&le(A.Reflect,"getPrototypeOf",(function(e){return i(yi,A.Reflect,e)})),A.Reflect.setPrototypeOf&&o((function(){return A.Reflect.setPrototypeOf(1,{}),!0}))&&le(A.Reflect,"setPrototypeOf",fi.setPrototypeOf),A.Reflect.defineProperty&&(o((function(){var e=!A.Reflect.defineProperty(1,"test",{value:1}),t="function"!=typeof Object.preventExtensions||!A.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return e&&t}))||le(A.Reflect,"defineProperty",fi.defineProperty)),A.Reflect.construct&&(o((function(){var e=function(){};return A.Reflect.construct((function(){}),[],e)instanceof e}))||le(A.Reflect,"construct",fi.construct)),"Invalid Date"!==String(new Date(NaN))){var bi=Date.prototype.toString;le(Date.prototype,"toString",(function(){var e=+this;return e!=e?"Invalid Date":ge.Call(bi,this)}))}var xi={anchor:function(e){return ge.CreateHTML(this,"a","name",e)},big:function(){return ge.CreateHTML(this,"big","","")},blink:function(){return ge.CreateHTML(this,"blink","","")},bold:function(){return ge.CreateHTML(this,"b","","")},fixed:function(){return ge.CreateHTML(this,"tt","","")},fontcolor:function(e){return ge.CreateHTML(this,"font","color",e)},fontsize:function(e){return ge.CreateHTML(this,"font","size",e)},italics:function(){return ge.CreateHTML(this,"i","","")},link:function(e){return ge.CreateHTML(this,"a","href",e)},small:function(){return ge.CreateHTML(this,"small","","")},strike:function(){return ge.CreateHTML(this,"strike","","")},sub:function(){return ge.CreateHTML(this,"sub","","")},sup:function(){return ge.CreateHTML(this,"sup","","")}};d(Object.keys(xi),(function(e){var t=String.prototype[e],n=!1;if(ge.IsCallable(t)){var r=i(t,"",' " '),s=D([],r.match(/"/g)).length;n=r!==r.toLowerCase()||s>2}else n=!0;n&&le(String.prototype,e,xi[e])}));var _i=function(){if(!ce)return!1;var e="object"==typeof JSON&&"function"==typeof JSON.stringify?JSON.stringify:null;if(!e)return!1;if(void 0!==e(Z()))return!0;if("[null]"!==e([Z()]))return!0;var t={a:Z()};return t[Z()]=!0,"{}"!==e(t)}(),wi=o((function(){return!ce||"{}"===JSON.stringify(Object(Z()))&&"[{}]"===JSON.stringify([Object(Z())])}));if(_i||!wi){var ki=JSON.stringify;le(JSON,"stringify",(function(e){if("symbol"!=typeof e){var t;arguments.length>1&&(t=arguments[1]);var n=[e];if(r(t))n.push(t);else{var s=ge.IsCallable(t)?t:null;n.push((function(e,t){var n=s?i(s,this,e,t):t;if("symbol"!=typeof n)return oe(n)?Et({})(n):n}))}return arguments.length>2&&n.push(arguments[2]),ki.apply(this,n)}}))}return A})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FormValidation={})}(this,(function(e){"use strict";var t,n={exports:{}},i={};n.exports=function(){if(t)return i;t=1;var e={luhn:function(e){for(var t=e.length,n=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],i=0,r=0;t--;)r+=n[i][parseInt(e.charAt(t),10)],i=1-i;return r%10==0&&r>0},mod11And10:function(e){for(var t=e.length,n=5,i=0;i<t;i++)n=(2*(n||10)%11+parseInt(e.charAt(i),10))%10;return 1===n},mod37And36:function(e,t){void 0===t&&(t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");for(var n=e.length,i=t.length,r=Math.floor(i/2),s=0;s<n;s++)r=(2*(r||i)%(i+1)+t.indexOf(e.charAt(s)))%i;return 1===r},mod97And10:function(e){for(var t=function(e){return e.split("").map((function(e){var t=e.charCodeAt(0);return t>=65&&t<=90?t-55:e})).join("").split("").map((function(e){return parseInt(e,10)}))}(e),n=0,i=t.length,r=0;r<i-1;++r)n=10*(n+t[r])%97;return(n+=t[i-1])%97==1},verhoeff:function(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],i=e.reverse(),r=0,s=0;s<i.length;s++)r=t[r][n[s%8][i[s]]];return 0===r}},n=function(){function e(e,t){this.fields={},this.elements={},this.ee={fns:{},clear:function(){this.fns={}},emit:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];(this.fns[e]||[]).map((function(e){return e.apply(e,t)}))},off:function(e,t){if(this.fns[e]){var n=this.fns[e].indexOf(t);n>=0&&this.fns[e].splice(n,1)}},on:function(e,t){(this.fns[e]=this.fns[e]||[]).push(t)}},this.filter={filters:{},add:function(e,t){(this.filters[e]=this.filters[e]||[]).push(t)},clear:function(){this.filters={}},execute:function(e,t,n){if(!this.filters[e]||!this.filters[e].length)return t;for(var i=t,r=this.filters[e],s=r.length,a=0;a<s;a++)i=r[a].apply(i,n);return i},remove:function(e,t){this.filters[e]&&(this.filters[e]=this.filters[e].filter((function(e){return e!==t})))}},this.plugins={},this.results=new Map,this.validators={},this.form=e,this.fields=t}return e.prototype.on=function(e,t){return this.ee.on(e,t),this},e.prototype.off=function(e,t){return this.ee.off(e,t),this},e.prototype.emit=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return(t=this.ee).emit.apply(t,function(e,t,n){if(n||2===arguments.length)for(var i,r=0,s=t.length;r<s;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}([e],n,!1)),this},e.prototype.registerPlugin=function(e,t){if(this.plugins[e])throw new Error("The plguin ".concat(e," is registered"));return t.setCore(this),t.install(),this.plugins[e]=t,this},e.prototype.deregisterPlugin=function(e){var t=this.plugins[e];return t&&t.uninstall(),delete this.plugins[e],this},e.prototype.enablePlugin=function(e){var t=this.plugins[e];return t&&t.enable(),this},e.prototype.disablePlugin=function(e){var t=this.plugins[e];return t&&t.disable(),this},e.prototype.isPluginEnabled=function(e){var t=this.plugins[e];return!!t&&t.isPluginEnabled()},e.prototype.registerValidator=function(e,t){if(this.validators[e])throw new Error("The validator ".concat(e," is registered"));return this.validators[e]=t,this},e.prototype.registerFilter=function(e,t){return this.filter.add(e,t),this},e.prototype.deregisterFilter=function(e,t){return this.filter.remove(e,t),this},e.prototype.executeFilter=function(e,t,n){return this.filter.execute(e,t,n)},e.prototype.addField=function(e,t){var n=Object.assign({},{selector:"",validators:{}},t);return this.fields[e]=this.fields[e]?{selector:n.selector||this.fields[e].selector,validators:Object.assign({},this.fields[e].validators,n.validators)}:n,this.elements[e]=this.queryElements(e),this.emit("core.field.added",{elements:this.elements[e],field:e,options:this.fields[e]}),this},e.prototype.removeField=function(e){if(!this.fields[e])throw new Error("The field ".concat(e," validators are not defined. Please ensure the field is added first"));var t=this.elements[e],n=this.fields[e];return delete this.elements[e],delete this.fields[e],this.emit("core.field.removed",{elements:t,field:e,options:n}),this},e.prototype.validate=function(){var e=this;return this.emit("core.form.validating",{formValidation:this}),this.filter.execute("validate-pre",Promise.resolve(),[]).then((function(){return Promise.all(Object.keys(e.fields).map((function(t){return e.validateField(t)}))).then((function(t){switch(!0){case-1!==t.indexOf("Invalid"):return e.emit("core.form.invalid",{formValidation:e}),Promise.resolve("Invalid");case-1!==t.indexOf("NotValidated"):return e.emit("core.form.notvalidated",{formValidation:e}),Promise.resolve("NotValidated");default:return e.emit("core.form.valid",{formValidation:e}),Promise.resolve("Valid")}}))}))},e.prototype.validateField=function(e){var t=this,n=this.results.get(e);if("Valid"===n||"Invalid"===n)return Promise.resolve(n);this.emit("core.field.validating",e);var i=this.elements[e];if(0===i.length)return this.emit("core.field.valid",e),Promise.resolve("Valid");var r=i[0].getAttribute("type");return"radio"===r||"checkbox"===r||1===i.length?this.validateElement(e,i[0]):Promise.all(i.map((function(n){return t.validateElement(e,n)}))).then((function(n){switch(!0){case-1!==n.indexOf("Invalid"):return t.emit("core.field.invalid",e),t.results.set(e,"Invalid"),Promise.resolve("Invalid");case-1!==n.indexOf("NotValidated"):return t.emit("core.field.notvalidated",e),t.results.delete(e),Promise.resolve("NotValidated");default:return t.emit("core.field.valid",e),t.results.set(e,"Valid"),Promise.resolve("Valid")}}))},e.prototype.validateElement=function(e,t){var n=this;this.results.delete(e);var i=this.elements[e];if(this.filter.execute("element-ignored",!1,[e,t,i]))return this.emit("core.element.ignored",{element:t,elements:i,field:e}),Promise.resolve("Ignored");var r=this.fields[e].validators;this.emit("core.element.validating",{element:t,elements:i,field:e});var s=Object.keys(r).map((function(i){return function(){return n.executeValidator(e,t,i,r[i])}}));return this.waterfall(s).then((function(r){var s=-1===r.indexOf("Invalid");n.emit("core.element.validated",{element:t,elements:i,field:e,valid:s});var a=t.getAttribute("type");return"radio"!==a&&"checkbox"!==a&&1!==i.length||n.emit(s?"core.field.valid":"core.field.invalid",e),Promise.resolve(s?"Valid":"Invalid")})).catch((function(r){return n.emit("core.element.notvalidated",{element:t,elements:i,field:e}),Promise.resolve(r)}))},e.prototype.executeValidator=function(e,t,n,i){var r=this,s=this.elements[e],a=this.filter.execute("validator-name",n,[n,e]);if(i.message=this.filter.execute("validator-message",i.message,[this.locale,e,a]),!this.validators[a]||!1===i.enabled)return this.emit("core.validator.validated",{element:t,elements:s,field:e,result:this.normalizeResult(e,a,{valid:!0}),validator:a}),Promise.resolve("Valid");var o=this.validators[a],l=this.getElementValue(e,t,a);if(!this.filter.execute("field-should-validate",!0,[e,t,l,n]))return this.emit("core.validator.notvalidated",{element:t,elements:s,field:e,validator:n}),Promise.resolve("NotValidated");this.emit("core.validator.validating",{element:t,elements:s,field:e,validator:n});var c=o().validate({element:t,elements:s,field:e,l10n:this.localization,options:i,value:l});if("function"==typeof c.then)return c.then((function(i){var a=r.normalizeResult(e,n,i);return r.emit("core.validator.validated",{element:t,elements:s,field:e,result:a,validator:n}),a.valid?"Valid":"Invalid"}));var u=this.normalizeResult(e,n,c);return this.emit("core.validator.validated",{element:t,elements:s,field:e,result:u,validator:n}),Promise.resolve(u.valid?"Valid":"Invalid")},e.prototype.getElementValue=function(e,t,n){var i=function(e,t,n,i){var r=(n.getAttribute("type")||"").toLowerCase(),s=n.tagName.toLowerCase();if("textarea"===s)return n.value;if("select"===s){var a=n,o=a.selectedIndex;return o>=0?a.options.item(o).value:""}if("input"===s){if("radio"===r||"checkbox"===r){var l=i.filter((function(e){return e.checked})).length;return 0===l?"":l+""}return n.value}return""}(this.form,0,t,this.elements[e]);return this.filter.execute("field-value",i,[i,e,t,n])},e.prototype.getElements=function(e){return this.elements[e]},e.prototype.getFields=function(){return this.fields},e.prototype.getFormElement=function(){return this.form},e.prototype.getLocale=function(){return this.locale},e.prototype.getPlugin=function(e){return this.plugins[e]},e.prototype.updateFieldStatus=function(e,t,n){var i=this,r=this.elements[e],s=r[0].getAttribute("type");if(("radio"===s||"checkbox"===s?[r[0]]:r).forEach((function(r){return i.updateElementStatus(e,r,t,n)})),n)"Invalid"===t&&(this.emit("core.field.invalid",e),this.results.set(e,"Invalid"));else switch(t){case"NotValidated":this.emit("core.field.notvalidated",e),this.results.delete(e);break;case"Validating":this.emit("core.field.validating",e),this.results.delete(e);break;case"Valid":this.emit("core.field.valid",e),this.results.set(e,"Valid");break;case"Invalid":this.emit("core.field.invalid",e),this.results.set(e,"Invalid")}return this},e.prototype.updateElementStatus=function(e,t,n,i){var r=this,s=this.elements[e],a=this.fields[e].validators,o=i?[i]:Object.keys(a);switch(n){case"NotValidated":o.forEach((function(n){return r.emit("core.validator.notvalidated",{element:t,elements:s,field:e,validator:n})})),this.emit("core.element.notvalidated",{element:t,elements:s,field:e});break;case"Validating":o.forEach((function(n){return r.emit("core.validator.validating",{element:t,elements:s,field:e,validator:n})})),this.emit("core.element.validating",{element:t,elements:s,field:e});break;case"Valid":o.forEach((function(n){return r.emit("core.validator.validated",{element:t,elements:s,field:e,result:{message:a[n].message,valid:!0},validator:n})})),this.emit("core.element.validated",{element:t,elements:s,field:e,valid:!0});break;case"Invalid":o.forEach((function(n){return r.emit("core.validator.validated",{element:t,elements:s,field:e,result:{message:a[n].message,valid:!1},validator:n})})),this.emit("core.element.validated",{element:t,elements:s,field:e,valid:!1})}return this},e.prototype.resetForm=function(e){var t=this;return Object.keys(this.fields).forEach((function(n){return t.resetField(n,e)})),this.emit("core.form.reset",{formValidation:this,reset:e}),this},e.prototype.resetField=function(e,t){if(t){var n=this.elements[e],i=n[0].getAttribute("type");n.forEach((function(e){"radio"===i||"checkbox"===i?(e.removeAttribute("selected"),e.removeAttribute("checked"),e.checked=!1):(e.setAttribute("value",""),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=""))}))}return this.updateFieldStatus(e,"NotValidated"),this.emit("core.field.reset",{field:e,reset:t}),this},e.prototype.revalidateField=function(e){return this.fields[e]?(this.updateFieldStatus(e,"NotValidated"),this.validateField(e)):Promise.resolve("Ignored")},e.prototype.disableValidator=function(e,t){if(!this.fields[e])return this;var n=this.elements[e];return this.toggleValidator(!1,e,t),this.emit("core.validator.disabled",{elements:n,field:e,formValidation:this,validator:t}),this},e.prototype.enableValidator=function(e,t){if(!this.fields[e])return this;var n=this.elements[e];return this.toggleValidator(!0,e,t),this.emit("core.validator.enabled",{elements:n,field:e,formValidation:this,validator:t}),this},e.prototype.updateValidatorOption=function(e,t,n,i){return this.fields[e]&&this.fields[e].validators&&this.fields[e].validators[t]&&(this.fields[e].validators[t][n]=i),this},e.prototype.setFieldOptions=function(e,t){return this.fields[e]=t,this},e.prototype.destroy=function(){var e=this;return Object.keys(this.plugins).forEach((function(t){return e.plugins[t].uninstall()})),this.ee.clear(),this.filter.clear(),this.results.clear(),this.plugins={},this},e.prototype.setLocale=function(e,t){return this.locale=e,this.localization=t,this},e.prototype.waterfall=function(e){return e.reduce((function(e,t){return e.then((function(e){return t().then((function(t){return e.push(t),e}))}))}),Promise.resolve([]))},e.prototype.queryElements=function(e){var t=this.fields[e].selector?"#"===this.fields[e].selector.charAt(0)?'[id="'.concat(this.fields[e].selector.substring(1),'"]'):this.fields[e].selector:'[name="'.concat(e.replace(/"/g,'\\"'),'"]');return[].slice.call(this.form.querySelectorAll(t))},e.prototype.normalizeResult=function(e,t,n){var i=this.fields[e].validators[t];return Object.assign({},n,{message:n.message||(i?i.message:"")||(this.localization&&this.localization[t]&&this.localization[t].default?this.localization[t].default:"")||"The field ".concat(e," is not valid")})},e.prototype.toggleValidator=function(e,t,n){var i=this,r=this.fields[t].validators;return n&&r&&r[n]?this.fields[t].validators[n].enabled=e:n||Object.keys(r).forEach((function(n){return i.fields[t].validators[n].enabled=e})),this.updateFieldStatus(t,"NotValidated",n)},e}(),r=function(){function e(e){this.opts=e,this.isEnabled=!0}return e.prototype.setCore=function(e){return this.core=e,this},e.prototype.enable=function(){return this.isEnabled=!0,this.onEnabled(),this},e.prototype.disable=function(){return this.isEnabled=!1,this.onDisabled(),this},e.prototype.isPluginEnabled=function(){return this.isEnabled},e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.install=function(){},e.prototype.uninstall=function(){},e}(),s=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return n?n.call(e,t):[].slice.call(e.parentElement.querySelectorAll(t)).indexOf(e)>=0},a={call:function(e,t){if("function"==typeof e)return e.apply(this,t);if("string"==typeof e){var n=e;"()"===n.substring(n.length-2)&&(n=n.substring(0,n.length-2));for(var i=n.split("."),r=i.pop(),s=window,a=0,o=i;a<o.length;a++)s=s[o[a]];return void 0===s[r]?null:s[r].apply(this,t)}},classSet:function(e,t){var n=[],i=[];Object.keys(t).forEach((function(e){e&&(t[e]?n.push(e):i.push(e))})),i.forEach((function(t){return function(e,t){t.split(" ").forEach((function(t){e.classList?e.classList.remove(t):e.className=e.className.replace(t,"")}))}(e,t)})),n.forEach((function(t){return function(e,t){t.split(" ").forEach((function(t){e.classList?e.classList.add(t):" ".concat(e.className," ").indexOf(" ".concat(t," "))&&(e.className+=" ".concat(t))}))}(e,t)}))},closest:function(e,t){for(var n=e;n&&!s(n,t);)n=n.parentElement;return n},fetch:function(e,t){return new Promise((function(n,i){var r,s=Object.assign({},{crossDomain:!1,headers:{},method:"GET",params:{}},t),a=Object.keys(s.params).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(s.params[e]))})).join("&"),o=e.indexOf("?")>-1,l="GET"===s.method?"".concat(e).concat(o?"&":"?").concat(a):e;if(s.crossDomain){var c=document.createElement("script"),u="___FormValidationFetch_".concat(Array(12).fill("").map((function(e){return Math.random().toString(36).charAt(2)})).join(""),"___");window[u]=function(e){delete window[u],n(e)},c.src="".concat(l).concat(o?"&":"?","callback=").concat(u),c.async=!0,c.addEventListener("load",(function(){c.parentNode.removeChild(c)})),c.addEventListener("error",(function(){return i})),document.head.appendChild(c)}else{var d=new XMLHttpRequest;d.open(s.method,l),d.setRequestHeader("X-Requested-With","XMLHttpRequest"),"POST"===s.method&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),Object.keys(s.headers).forEach((function(e){return d.setRequestHeader(e,s.headers[e])})),d.addEventListener("load",(function(){n(JSON.parse(this.responseText))})),d.addEventListener("error",(function(){return i})),d.send((r=s.params,Object.keys(r).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(r[e]))})).join("&")))}}))},format:function(e,t){var n=Array.isArray(t)?t:[t],i=e;return n.forEach((function(e){i=i.replace("%s",e)})),i},hasClass:function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )".concat(t,"( |$)"),"gi").test(e.className)},isValidDate:function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n))return!1;if(e<1e3||e>9999||t<=0||t>12)return!1;if(n<=0||n>[31,e%400==0||e%100!=0&&e%4==0?29:28,31,30,31,30,31,31,30,31,30,31][t-1])return!1;if(!0===i){var r=new Date,s=r.getFullYear(),a=r.getMonth(),o=r.getDate();return e<s||e===s&&t-1<a||e===s&&t-1===a&&n<o}return!0},removeUndefined:function(e){return e?Object.entries(e).reduce((function(e,t){var n=t[0],i=t[1];return void 0===i||(e[n]=i),e}),{}):{}}};return i.Plugin=r,i.algorithms=e,i.formValidation=function(e,t){var i=Object.assign({},{fields:{},locale:"en_US",plugins:{},init:function(e){}},t),r=new n(e,i.fields);return r.setLocale(i.locale,i.localization),Object.keys(i.plugins).forEach((function(e){return r.registerPlugin(e,i.plugins[e])})),i.init(r),Object.keys(i.fields).forEach((function(e){return r.addField(e,i.fields[e])})),r},i.utils=a,i}();var r,s=n.exports,a={exports:{}},o={};a.exports=function(){if(r)return o;r=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.opts=e||{},n.validatorNameFilter=n.getValidatorName.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.registerFilter("validator-name",this.validatorNameFilter)},n.prototype.uninstall=function(){this.core.deregisterFilter("validator-name",this.validatorNameFilter)},n.prototype.getValidatorName=function(e,t){return this.isEnabled&&this.opts[e]||e},n}(s.Plugin);return o.Alias=t,o}();var l,c=a.exports,u={exports:{}},d={};u.exports=function(){if(l)return d;l=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(){var e=t.call(this,{})||this;return e.elementValidatedHandler=e.onElementValidated.bind(e),e.fieldValidHandler=e.onFieldValid.bind(e),e.fieldInvalidHandler=e.onFieldInvalid.bind(e),e.messageDisplayedHandler=e.onMessageDisplayed.bind(e),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.on("core.field.valid",this.fieldValidHandler).on("core.field.invalid",this.fieldInvalidHandler).on("core.element.validated",this.elementValidatedHandler).on("plugins.message.displayed",this.messageDisplayedHandler)},n.prototype.uninstall=function(){this.core.off("core.field.valid",this.fieldValidHandler).off("core.field.invalid",this.fieldInvalidHandler).off("core.element.validated",this.elementValidatedHandler).off("plugins.message.displayed",this.messageDisplayedHandler)},n.prototype.onElementValidated=function(e){e.valid&&(e.element.setAttribute("aria-invalid","false"),e.element.removeAttribute("aria-describedby"))},n.prototype.onFieldValid=function(e){var t=this.core.getElements(e);t&&t.forEach((function(e){e.setAttribute("aria-invalid","false"),e.removeAttribute("aria-describedby")}))},n.prototype.onFieldInvalid=function(e){var t=this.core.getElements(e);t&&t.forEach((function(e){return e.setAttribute("aria-invalid","true")}))},n.prototype.onMessageDisplayed=function(e){e.messageElement.setAttribute("role","alert"),e.messageElement.setAttribute("aria-hidden","false");var t=this.core.getElements(e.field),n=t.indexOf(e.element),i="js-fv-".concat(e.field,"-").concat(n,"-").concat(Date.now(),"-message");e.messageElement.setAttribute("id",i),e.element.setAttribute("aria-describedby",i);var r=e.element.getAttribute("type");"radio"!==r&&"checkbox"!==r||t.forEach((function(e){return e.setAttribute("aria-describedby",i)}))},n}(s.Plugin);return d.Aria=t,d}();var h,f=u.exports,p={exports:{}},m={};p.exports=function(){if(h)return m;h=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.addedFields=new Map,n.opts=Object.assign({},{html5Input:!1,pluginPrefix:"data-fvp-",prefix:"data-fv-"},e),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){var e=this;this.parsePlugins();var t=this.parseOptions();Object.keys(t).forEach((function(n){e.addedFields.has(n)||e.addedFields.set(n,!0),e.core.addField(n,t[n])})),this.core.on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)},n.prototype.uninstall=function(){this.addedFields.clear(),this.core.off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)},n.prototype.onFieldAdded=function(e){var t=this,n=e.elements;n&&0!==n.length&&!this.addedFields.has(e.field)&&(this.addedFields.set(e.field,!0),n.forEach((function(n){var i=t.parseElement(n);if(!t.isEmptyOption(i)){var r={selector:e.options.selector,validators:Object.assign({},e.options.validators||{},i.validators)};t.core.setFieldOptions(e.field,r)}})))},n.prototype.onFieldRemoved=function(e){e.field&&this.addedFields.has(e.field)&&this.addedFields.delete(e.field)},n.prototype.parseOptions=function(){var e=this,t=this.opts.prefix,n={},i=this.core.getFields(),r=this.core.getFormElement();return[].slice.call(r.querySelectorAll("[name], [".concat(t,"field]"))).forEach((function(i){var r=e.parseElement(i);if(!e.isEmptyOption(r)){var s=i.getAttribute("name")||i.getAttribute("".concat(t,"field"));n[s]=Object.assign({},n[s],r)}})),Object.keys(n).forEach((function(e){Object.keys(n[e].validators).forEach((function(t){n[e].validators[t].enabled=n[e].validators[t].enabled||!1,i[e]&&i[e].validators&&i[e].validators[t]&&Object.assign(n[e].validators[t],i[e].validators[t])}))})),Object.assign({},i,n)},n.prototype.createPluginInstance=function(e,t){for(var n=e.split("."),i=window||this,r=0,s=n.length;r<s;r++)i=i[n[r]];if("function"!=typeof i)throw new Error("the plugin ".concat(e," doesn't exist"));return new i(t)},n.prototype.parsePlugins=function(){for(var e,t=this,n=this.core.getFormElement(),i=new RegExp("^".concat(this.opts.pluginPrefix,"([a-z0-9-]+)(___)*([a-z0-9-]+)*$")),r=n.attributes.length,s={},a=0;a<r;a++){var o=n.attributes[a].name,l=n.attributes[a].value,c=i.exec(o);if(c&&4===c.length){var u=this.toCamelCase(c[1]);s[u]=Object.assign({},c[3]?((e={})[this.toCamelCase(c[3])]=l,e):{enabled:""===l||"true"===l},s[u])}}Object.keys(s).forEach((function(e){var n=s[e],i=n.enabled,r=n.class;if(i&&r){delete n.enabled,delete n.clazz;var a=t.createPluginInstance(r,n);t.core.registerPlugin(e,a)}}))},n.prototype.isEmptyOption=function(e){var t=e.validators;return 0===Object.keys(t).length&&t.constructor===Object},n.prototype.parseElement=function(e){for(var t=new RegExp("^".concat(this.opts.prefix,"([a-z0-9-]+)(___)*([a-z0-9-]+)*$")),n=e.attributes.length,i={},r=e.getAttribute("type"),s=0;s<n;s++){var a=e.attributes[s].name,o=e.attributes[s].value;if(this.opts.html5Input)switch(!0){case"minlength"===a:i.stringLength=Object.assign({},{enabled:!0,min:parseInt(o,10)},i.stringLength);break;case"maxlength"===a:i.stringLength=Object.assign({},{enabled:!0,max:parseInt(o,10)},i.stringLength);break;case"pattern"===a:i.regexp=Object.assign({},{enabled:!0,regexp:o},i.regexp);break;case"required"===a:i.notEmpty=Object.assign({},{enabled:!0},i.notEmpty);break;case"type"===a&&"color"===o:i.color=Object.assign({},{enabled:!0,type:"hex"},i.color);break;case"type"===a&&"email"===o:i.emailAddress=Object.assign({},{enabled:!0},i.emailAddress);break;case"type"===a&&"url"===o:i.uri=Object.assign({},{enabled:!0},i.uri);break;case"type"===a&&"range"===o:i.between=Object.assign({},{enabled:!0,max:parseFloat(e.getAttribute("max")),min:parseFloat(e.getAttribute("min"))},i.between);break;case"min"===a&&"date"!==r&&"range"!==r:i.greaterThan=Object.assign({},{enabled:!0,min:parseFloat(o)},i.greaterThan);break;case"max"===a&&"date"!==r&&"range"!==r:i.lessThan=Object.assign({},{enabled:!0,max:parseFloat(o)},i.lessThan)}var l=t.exec(a);if(l&&4===l.length){var c=this.toCamelCase(l[1]);i[c]||(i[c]={}),l[3]?i[c][this.toCamelCase(l[3])]=this.normalizeValue(o):!0===i[c].enabled&&!1===i[c].enabled||(i[c].enabled=""===o||"true"===o)}}return{validators:i}},n.prototype.normalizeValue=function(e){return"true"===e||""===e||"false"!==e&&e},n.prototype.toUpperCase=function(e){return e.charAt(1).toUpperCase()},n.prototype.toCamelCase=function(e){return e.replace(/-./g,this.toUpperCase)},n}(s.Plugin);return m.Declarative=t,m}();var g,v=p.exports,y={exports:{}},b={};y.exports=function(){if(g)return b;g=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(){var e=t.call(this,{})||this;return e.onValidHandler=e.onFormValid.bind(e),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){if(this.core.getFormElement().querySelectorAll('[type="submit"][name="submit"]').length)throw new Error("Do not use `submit` for the name attribute of submit button");this.core.on("core.form.valid",this.onValidHandler)},n.prototype.uninstall=function(){this.core.off("core.form.valid",this.onValidHandler)},n.prototype.onFormValid=function(){var e=this.core.getFormElement();this.isEnabled&&e instanceof HTMLFormElement&&e.submit()},n}(s.Plugin);return b.DefaultSubmit=t,b}();var x,_=y.exports,w={exports:{}},k={};w.exports=function(){if(x)return k;x=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.opts=e||{},n.triggerExecutedHandler=n.onTriggerExecuted.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.on("plugins.trigger.executed",this.triggerExecutedHandler)},n.prototype.uninstall=function(){this.core.off("plugins.trigger.executed",this.triggerExecutedHandler)},n.prototype.onTriggerExecuted=function(e){if(this.isEnabled&&this.opts[e.field])for(var t=0,n=this.opts[e.field].split(" ");t<n.length;t++){var i=n[t].trim();this.opts[i]&&this.core.revalidateField(i)}},n}(s.Plugin);return k.Dependency=t,k}();var M,S=w.exports,A={exports:{}},L={};A.exports=function(){if(M)return L;M=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.removeUndefined,i=function(e){function i(t){var r=e.call(this,t)||this;return r.opts=Object.assign({},{excluded:i.defaultIgnore},n(t)),r.ignoreValidationFilter=r.ignoreValidation.bind(r),r}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.defaultIgnore=function(e,t,n){var i=!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length),r=t.getAttribute("disabled");return""===r||"disabled"===r||"hidden"===t.getAttribute("type")||!i},i.prototype.install=function(){this.core.registerFilter("element-ignored",this.ignoreValidationFilter)},i.prototype.uninstall=function(){this.core.deregisterFilter("element-ignored",this.ignoreValidationFilter)},i.prototype.ignoreValidation=function(e,t,n){return!!this.isEnabled&&this.opts.excluded.apply(this,[e,t,n])},i}(e.Plugin);return L.Excluded=i,L}();var T,C=A.exports,D={exports:{}},E={};D.exports=function(){if(T)return E;T=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.statuses=new Map,n.opts=Object.assign({},{onStatusChanged:function(){}},e),n.elementValidatingHandler=n.onElementValidating.bind(n),n.elementValidatedHandler=n.onElementValidated.bind(n),n.elementNotValidatedHandler=n.onElementNotValidated.bind(n),n.elementIgnoredHandler=n.onElementIgnored.bind(n),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)},n.prototype.uninstall=function(){this.statuses.clear(),this.core.off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)},n.prototype.areFieldsValid=function(){return Array.from(this.statuses.values()).every((function(e){return"Valid"===e||"NotValidated"===e||"Ignored"===e}))},n.prototype.getStatuses=function(){return this.isEnabled?this.statuses:new Map},n.prototype.onFieldAdded=function(e){this.statuses.set(e.field,"NotValidated")},n.prototype.onFieldRemoved=function(e){this.statuses.has(e.field)&&this.statuses.delete(e.field),this.handleStatusChanged(this.areFieldsValid())},n.prototype.onElementValidating=function(e){this.statuses.set(e.field,"Validating"),this.handleStatusChanged(!1)},n.prototype.onElementValidated=function(e){this.statuses.set(e.field,e.valid?"Valid":"Invalid"),e.valid?this.handleStatusChanged(this.areFieldsValid()):this.handleStatusChanged(!1)},n.prototype.onElementNotValidated=function(e){this.statuses.set(e.field,"NotValidated"),this.handleStatusChanged(!1)},n.prototype.onElementIgnored=function(e){this.statuses.set(e.field,"Ignored"),this.handleStatusChanged(this.areFieldsValid())},n.prototype.handleStatusChanged=function(e){this.isEnabled&&this.opts.onStatusChanged(e)},n}(s.Plugin);return E.FieldStatus=t,E}();var O,P=D.exports,Y={exports:{}},I={},N={exports:{}},H={};N.exports=function(){if(O)return H;O=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.classSet,i=function(e){function i(t){var n=e.call(this,t)||this;return n.useDefaultContainer=!1,n.messages=new Map,n.defaultContainer=document.createElement("div"),n.useDefaultContainer=!t||!t.container,n.opts=Object.assign({},{container:function(e,t){return n.defaultContainer}},t),n.elementIgnoredHandler=n.onElementIgnored.bind(n),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n.validatorValidatedHandler=n.onValidatorValidated.bind(n),n.validatorNotValidatedHandler=n.onValidatorNotValidated.bind(n),n}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.getClosestContainer=function(e,t,n){for(var i=e;i&&i!==t&&(i=i.parentElement,!n.test(i.className)););return i},i.prototype.install=function(){this.useDefaultContainer&&this.core.getFormElement().appendChild(this.defaultContainer),this.core.on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler).on("core.validator.validated",this.validatorValidatedHandler).on("core.validator.notvalidated",this.validatorNotValidatedHandler)},i.prototype.uninstall=function(){this.useDefaultContainer&&this.core.getFormElement().removeChild(this.defaultContainer),this.messages.forEach((function(e){return e.parentNode.removeChild(e)})),this.messages.clear(),this.core.off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler).off("core.validator.validated",this.validatorValidatedHandler).off("core.validator.notvalidated",this.validatorNotValidatedHandler)},i.prototype.onEnabled=function(){this.messages.forEach((function(e,t,i){n(t,{"fv-plugins-message-container--enabled":!0,"fv-plugins-message-container--disabled":!1})}))},i.prototype.onDisabled=function(){this.messages.forEach((function(e,t,i){n(t,{"fv-plugins-message-container--enabled":!1,"fv-plugins-message-container--disabled":!0})}))},i.prototype.onFieldAdded=function(e){var t=this,n=e.elements;n&&(n.forEach((function(e){var n=t.messages.get(e);n&&(n.parentNode.removeChild(n),t.messages.delete(e))})),this.prepareFieldContainer(e.field,n))},i.prototype.onFieldRemoved=function(e){var t=this;if(e.elements.length&&e.field){var n=e.elements[0].getAttribute("type");("radio"===n||"checkbox"===n?[e.elements[0]]:e.elements).forEach((function(e){if(t.messages.has(e)){var n=t.messages.get(e);n.parentNode.removeChild(n),t.messages.delete(e)}}))}},i.prototype.prepareFieldContainer=function(e,t){var n=this;if(t.length){var i=t[0].getAttribute("type");"radio"===i||"checkbox"===i?this.prepareElementContainer(e,t[0],t):t.forEach((function(i){return n.prepareElementContainer(e,i,t)}))}},i.prototype.prepareElementContainer=function(e,t,i){var r;if("string"==typeof this.opts.container){var s="#"===this.opts.container.charAt(0)?'[id="'.concat(this.opts.container.substring(1),'"]'):this.opts.container;r=this.core.getFormElement().querySelector(s)}else r=this.opts.container(e,t);var a=document.createElement("div");r.appendChild(a),n(a,{"fv-plugins-message-container":!0,"fv-plugins-message-container--enabled":this.isEnabled,"fv-plugins-message-container--disabled":!this.isEnabled}),this.core.emit("plugins.message.placed",{element:t,elements:i,field:e,messageElement:a}),this.messages.set(t,a)},i.prototype.getMessage=function(e){return"string"==typeof e.message?e.message:e.message[this.core.getLocale()]},i.prototype.onValidatorValidated=function(e){var t,i=e.elements,r=e.element.getAttribute("type"),s=("radio"===r||"checkbox"===r)&&i.length>0?i[0]:e.element;if(this.messages.has(s)){var a=this.messages.get(s),o=a.querySelector('[data-field="'.concat(e.field.replace(/"/g,'\\"'),'"][data-validator="').concat(e.validator.replace(/"/g,'\\"'),'"]'));if(o||e.result.valid)o&&!e.result.valid?(o.innerHTML=this.getMessage(e.result),this.core.emit("plugins.message.displayed",{element:e.element,field:e.field,message:e.result.message,messageElement:o,meta:e.result.meta,validator:e.validator})):o&&e.result.valid&&a.removeChild(o);else{var l=document.createElement("div");l.innerHTML=this.getMessage(e.result),l.setAttribute("data-field",e.field),l.setAttribute("data-validator",e.validator),this.opts.clazz&&n(l,((t={})[this.opts.clazz]=!0,t)),a.appendChild(l),this.core.emit("plugins.message.displayed",{element:e.element,field:e.field,message:e.result.message,messageElement:l,meta:e.result.meta,validator:e.validator})}}},i.prototype.onValidatorNotValidated=function(e){var t=e.elements,n=e.element.getAttribute("type"),i="radio"===n||"checkbox"===n?t[0]:e.element;if(this.messages.has(i)){var r=this.messages.get(i),s=r.querySelector('[data-field="'.concat(e.field.replace(/"/g,'\\"'),'"][data-validator="').concat(e.validator.replace(/"/g,'\\"'),'"]'));s&&r.removeChild(s)}},i.prototype.onElementIgnored=function(e){var t=e.elements,n=e.element.getAttribute("type"),i="radio"===n||"checkbox"===n?t[0]:e.element;if(this.messages.has(i)){var r=this.messages.get(i);[].slice.call(r.querySelectorAll('[data-field="'.concat(e.field.replace(/"/g,'\\"'),'"]'))).forEach((function(e){r.removeChild(e)}))}},i}(e.Plugin);return H.Message=i,H}();var j,F=N.exports;
/** 
     * FormValidation (https://formvalidation.io)
     * The best validation library for JavaScript
     * (c) 2013 - 2023 Nguyen Huu Phuoc <me@phuoc.ng>
     *
     * @license https://formvalidation.io/license
     * @package @form-validation/plugin-framework
     * @version 2.4.0
     */Y.exports=function(){if(j)return I;j=1;var e=s,t=F,n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},i=e.utils.classSet,r=e.utils.closest,a=function(e){function s(t){var n=e.call(this,t)||this;return n.results=new Map,n.containers=new Map,n.opts=Object.assign({},{defaultMessageContainer:!0,eleInvalidClass:"",eleValidClass:"",rowClasses:"",rowValidatingClass:""},t),n.elementIgnoredHandler=n.onElementIgnored.bind(n),n.elementValidatingHandler=n.onElementValidating.bind(n),n.elementValidatedHandler=n.onElementValidated.bind(n),n.elementNotValidatedHandler=n.onElementNotValidated.bind(n),n.iconPlacedHandler=n.onIconPlaced.bind(n),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n.messagePlacedHandler=n.onMessagePlaced.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(s,e),s.prototype.install=function(){var e,n=this;i(this.core.getFormElement(),((e={})[this.opts.formClass]=!0,e["fv-plugins-framework"]=!0,e)),this.core.on("core.element.ignored",this.elementIgnoredHandler).on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("plugins.icon.placed",this.iconPlacedHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler),this.opts.defaultMessageContainer&&(this.core.registerPlugin(s.MESSAGE_PLUGIN,new t.Message({clazz:this.opts.messageClass,container:function(e,i){var s="string"==typeof n.opts.rowSelector?n.opts.rowSelector:n.opts.rowSelector(e,i),a=r(i,s);return t.Message.getClosestContainer(i,a,n.opts.rowPattern)}})),this.core.on("plugins.message.placed",this.messagePlacedHandler))},s.prototype.uninstall=function(){var e;this.results.clear(),this.containers.clear(),i(this.core.getFormElement(),((e={})[this.opts.formClass]=!1,e["fv-plugins-framework"]=!1,e)),this.core.off("core.element.ignored",this.elementIgnoredHandler).off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("plugins.icon.placed",this.iconPlacedHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler),this.opts.defaultMessageContainer&&(this.core.deregisterPlugin(s.MESSAGE_PLUGIN),this.core.off("plugins.message.placed",this.messagePlacedHandler))},s.prototype.onEnabled=function(){var e;i(this.core.getFormElement(),((e={})[this.opts.formClass]=!0,e)),this.opts.defaultMessageContainer&&this.core.enablePlugin(s.MESSAGE_PLUGIN)},s.prototype.onDisabled=function(){var e;i(this.core.getFormElement(),((e={})[this.opts.formClass]=!1,e)),this.opts.defaultMessageContainer&&this.core.disablePlugin(s.MESSAGE_PLUGIN)},s.prototype.onIconPlaced=function(e){},s.prototype.onMessagePlaced=function(e){},s.prototype.onFieldAdded=function(e){var t=this,n=e.elements;n&&(n.forEach((function(e){var n,r=t.containers.get(e);r&&(i(r,((n={})[t.opts.rowInvalidClass]=!1,n[t.opts.rowValidatingClass]=!1,n[t.opts.rowValidClass]=!1,n["fv-plugins-icon-container"]=!1,n)),t.containers.delete(e))})),this.prepareFieldContainer(e.field,n))},s.prototype.onFieldRemoved=function(e){var t=this;e.elements.forEach((function(e){var n,r=t.containers.get(e);r&&i(r,((n={})[t.opts.rowInvalidClass]=!1,n[t.opts.rowValidatingClass]=!1,n[t.opts.rowValidClass]=!1,n))}))},s.prototype.prepareFieldContainer=function(e,t){var n=this;if(t.length){var i=t[0].getAttribute("type");"radio"===i||"checkbox"===i?this.prepareElementContainer(e,t[0]):t.forEach((function(t){return n.prepareElementContainer(e,t)}))}},s.prototype.prepareElementContainer=function(e,t){var n,s="string"==typeof this.opts.rowSelector?this.opts.rowSelector:this.opts.rowSelector(e,t),a=r(t,s);a!==t&&(i(a,((n={})[this.opts.rowClasses]=!0,n["fv-plugins-icon-container"]=!0,n)),this.containers.set(t,a))},s.prototype.onElementValidating=function(e){this.removeClasses(e.element,e.elements)},s.prototype.onElementNotValidated=function(e){this.removeClasses(e.element,e.elements)},s.prototype.onElementIgnored=function(e){this.removeClasses(e.element,e.elements)},s.prototype.removeClasses=function(e,t){var n,r=this,s=e.getAttribute("type"),a="radio"===s||"checkbox"===s?t[0]:e;t.forEach((function(e){var t;i(e,((t={})[r.opts.eleValidClass]=!1,t[r.opts.eleInvalidClass]=!1,t))}));var o=this.containers.get(a);o&&i(o,((n={})[this.opts.rowInvalidClass]=!1,n[this.opts.rowValidatingClass]=!1,n[this.opts.rowValidClass]=!1,n))},s.prototype.onElementValidated=function(e){var t,n,r=this,s=e.elements,a=e.element.getAttribute("type"),o="radio"===a||"checkbox"===a?s[0]:e.element;s.forEach((function(t){var n;i(t,((n={})[r.opts.eleValidClass]=e.valid,n[r.opts.eleInvalidClass]=!e.valid,n))}));var l=this.containers.get(o);if(l)if(e.valid){this.results.delete(o);var c=!0;this.containers.forEach((function(e,t){e===l&&!1===r.results.get(t)&&(c=!1)})),c&&i(l,((n={})[this.opts.rowInvalidClass]=!1,n[this.opts.rowValidatingClass]=!1,n[this.opts.rowValidClass]=!0,n))}else this.results.set(o,!1),i(l,((t={})[this.opts.rowInvalidClass]=!0,t[this.opts.rowValidatingClass]=!1,t[this.opts.rowValidClass]=!1,t))},s.MESSAGE_PLUGIN="___frameworkMessage",s}(e.Plugin);return I.Framework=a,I}();var R,z=Y.exports,B={exports:{}},V={};B.exports=function(){if(R)return V;R=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.classSet,i=function(e){function i(t){var n=e.call(this,t)||this;return n.icons=new Map,n.opts=Object.assign({},{invalid:"fv-plugins-icon--invalid",onPlaced:function(){},onSet:function(){},valid:"fv-plugins-icon--valid",validating:"fv-plugins-icon--validating"},t),n.elementValidatingHandler=n.onElementValidating.bind(n),n.elementValidatedHandler=n.onElementValidated.bind(n),n.elementNotValidatedHandler=n.onElementNotValidated.bind(n),n.elementIgnoredHandler=n.onElementIgnored.bind(n),n.fieldAddedHandler=n.onFieldAdded.bind(n),n}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.prototype.install=function(){this.core.on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler)},i.prototype.uninstall=function(){this.icons.forEach((function(e){return e.parentNode.removeChild(e)})),this.icons.clear(),this.core.off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler)},i.prototype.onEnabled=function(){this.icons.forEach((function(e,t,i){n(t,{"fv-plugins-icon--enabled":!0,"fv-plugins-icon--disabled":!1})}))},i.prototype.onDisabled=function(){this.icons.forEach((function(e,t,i){n(t,{"fv-plugins-icon--enabled":!1,"fv-plugins-icon--disabled":!0})}))},i.prototype.onFieldAdded=function(e){var t=this,n=e.elements;n&&(n.forEach((function(e){var n=t.icons.get(e);n&&(n.parentNode.removeChild(n),t.icons.delete(e))})),this.prepareFieldIcon(e.field,n))},i.prototype.prepareFieldIcon=function(e,t){var n=this;if(t.length){var i=t[0].getAttribute("type");"radio"===i||"checkbox"===i?this.prepareElementIcon(e,t[0]):t.forEach((function(t){return n.prepareElementIcon(e,t)}))}},i.prototype.prepareElementIcon=function(e,t){var i=document.createElement("i");i.setAttribute("data-field",e),t.parentNode.insertBefore(i,t.nextSibling),n(i,{"fv-plugins-icon":!0,"fv-plugins-icon--enabled":this.isEnabled,"fv-plugins-icon--disabled":!this.isEnabled});var r={classes:{invalid:this.opts.invalid,valid:this.opts.valid,validating:this.opts.validating},element:t,field:e,iconElement:i};this.core.emit("plugins.icon.placed",r),this.opts.onPlaced(r),this.icons.set(t,i)},i.prototype.onElementValidating=function(e){var t,n=this.setClasses(e.field,e.element,e.elements,((t={})[this.opts.invalid]=!1,t[this.opts.valid]=!1,t[this.opts.validating]=!0,t)),i={element:e.element,field:e.field,iconElement:n,status:"Validating"};this.core.emit("plugins.icon.set",i),this.opts.onSet(i)},i.prototype.onElementValidated=function(e){var t,n=this.setClasses(e.field,e.element,e.elements,((t={})[this.opts.invalid]=!e.valid,t[this.opts.valid]=e.valid,t[this.opts.validating]=!1,t)),i={element:e.element,field:e.field,iconElement:n,status:e.valid?"Valid":"Invalid"};this.core.emit("plugins.icon.set",i),this.opts.onSet(i)},i.prototype.onElementNotValidated=function(e){var t,n=this.setClasses(e.field,e.element,e.elements,((t={})[this.opts.invalid]=!1,t[this.opts.valid]=!1,t[this.opts.validating]=!1,t)),i={element:e.element,field:e.field,iconElement:n,status:"NotValidated"};this.core.emit("plugins.icon.set",i),this.opts.onSet(i)},i.prototype.onElementIgnored=function(e){var t,n=this.setClasses(e.field,e.element,e.elements,((t={})[this.opts.invalid]=!1,t[this.opts.valid]=!1,t[this.opts.validating]=!1,t)),i={element:e.element,field:e.field,iconElement:n,status:"Ignored"};this.core.emit("plugins.icon.set",i),this.opts.onSet(i)},i.prototype.setClasses=function(e,t,i,r){var s=t.getAttribute("type"),a="radio"===s||"checkbox"===s?i[0]:t;if(this.icons.has(a)){var o=this.icons.get(a);return n(o,r),o}return null},i}(e.Plugin);return V.Icon=i,V}();var W,q=B.exports,U={exports:{}},$={};U.exports=function(){if(W)return $;W=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.removeUndefined,i=function(e){function i(t){var i=e.call(this,t)||this;return i.invalidFields=new Map,i.opts=Object.assign({},{enabled:!0},n(t)),i.validatorHandler=i.onValidatorValidated.bind(i),i.shouldValidateFilter=i.shouldValidate.bind(i),i.fieldAddedHandler=i.onFieldAdded.bind(i),i.elementNotValidatedHandler=i.onElementNotValidated.bind(i),i.elementValidatingHandler=i.onElementValidating.bind(i),i}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.prototype.install=function(){this.core.on("core.validator.validated",this.validatorHandler).on("core.field.added",this.fieldAddedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.validating",this.elementValidatingHandler).registerFilter("field-should-validate",this.shouldValidateFilter)},i.prototype.uninstall=function(){this.invalidFields.clear(),this.core.off("core.validator.validated",this.validatorHandler).off("core.field.added",this.fieldAddedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.validating",this.elementValidatingHandler).deregisterFilter("field-should-validate",this.shouldValidateFilter)},i.prototype.shouldValidate=function(e,t,n,i){return!this.isEnabled||!((!0===this.opts.enabled||!0===this.opts.enabled[e])&&this.invalidFields.has(t)&&this.invalidFields.get(t).length&&-1===this.invalidFields.get(t).indexOf(i))},i.prototype.onValidatorValidated=function(e){var t=this.invalidFields.has(e.element)?this.invalidFields.get(e.element):[],n=t.indexOf(e.validator);e.result.valid&&n>=0?t.splice(n,1):e.result.valid||-1!==n||t.push(e.validator),this.invalidFields.set(e.element,t)},i.prototype.onFieldAdded=function(e){e.elements&&this.clearInvalidFields(e.elements)},i.prototype.onElementNotValidated=function(e){this.clearInvalidFields(e.elements)},i.prototype.onElementValidating=function(e){this.clearInvalidFields(e.elements)},i.prototype.clearInvalidFields=function(e){var t=this;e.forEach((function(e){return t.invalidFields.delete(e)}))},i}(e.Plugin);return $.Sequence=i,$}();var X,G=U.exports,Z={exports:{}},K={};Z.exports=function(){if(X)return K;X=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.isFormValid=!1,n.isButtonClicked=!1,n.opts=Object.assign({},{aspNetButton:!1,buttons:function(e){return[].slice.call(e.querySelectorAll('[type="submit"]:not([formnovalidate])'))},liveMode:!0},e),n.submitHandler=n.handleSubmitEvent.bind(n),n.buttonClickHandler=n.handleClickEvent.bind(n),n.ignoreValidationFilter=n.ignoreValidation.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){var e=this;if(this.core.getFormElement()instanceof HTMLFormElement){var t=this.core.getFormElement();this.submitButtons=this.opts.buttons(t),t.setAttribute("novalidate","novalidate"),t.addEventListener("submit",this.submitHandler),this.hiddenClickedEle=document.createElement("input"),this.hiddenClickedEle.setAttribute("type","hidden"),t.appendChild(this.hiddenClickedEle),this.submitButtons.forEach((function(t){t.addEventListener("click",e.buttonClickHandler)})),this.core.registerFilter("element-ignored",this.ignoreValidationFilter)}},n.prototype.uninstall=function(){var e=this,t=this.core.getFormElement();t instanceof HTMLFormElement&&t.removeEventListener("submit",this.submitHandler),this.submitButtons.forEach((function(t){t.removeEventListener("click",e.buttonClickHandler)})),this.hiddenClickedEle.parentElement.removeChild(this.hiddenClickedEle),this.core.deregisterFilter("element-ignored",this.ignoreValidationFilter)},n.prototype.handleSubmitEvent=function(e){this.validateForm(e)},n.prototype.handleClickEvent=function(e){var t=e.currentTarget;if(this.isButtonClicked=!0,t instanceof HTMLElement)if(this.opts.aspNetButton&&!0===this.isFormValid);else{this.core.getFormElement().removeEventListener("submit",this.submitHandler),this.clickedButton=e.target;var n=this.clickedButton.getAttribute("name"),i=this.clickedButton.getAttribute("value");n&&i&&(this.hiddenClickedEle.setAttribute("name",n),this.hiddenClickedEle.setAttribute("value",i)),this.validateForm(e)}},n.prototype.validateForm=function(e){var t=this;this.isEnabled&&(e.preventDefault(),this.core.validate().then((function(e){"Valid"===e&&t.opts.aspNetButton&&!t.isFormValid&&t.clickedButton&&(t.isFormValid=!0,t.clickedButton.removeEventListener("click",t.buttonClickHandler),t.clickedButton.click())})))},n.prototype.ignoreValidation=function(e,t,n){return!!this.isEnabled&&!this.opts.liveMode&&!this.isButtonClicked},n}(s.Plugin);return K.SubmitButton=t,K}();var J,Q=Z.exports,ee={exports:{}},te={};ee.exports=function(){if(J)return te;J=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.classSet,i=function(e){function i(t){var n=e.call(this,t)||this;return n.messages=new Map,n.opts=Object.assign({},{placement:"top",trigger:"click"},t),n.iconPlacedHandler=n.onIconPlaced.bind(n),n.validatorValidatedHandler=n.onValidatorValidated.bind(n),n.elementValidatedHandler=n.onElementValidated.bind(n),n.documentClickHandler=n.onDocumentClicked.bind(n),n}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.prototype.install=function(){var e;this.tip=document.createElement("div"),n(this.tip,((e={"fv-plugins-tooltip":!0})["fv-plugins-tooltip--".concat(this.opts.placement)]=!0,e)),document.body.appendChild(this.tip),this.core.on("plugins.icon.placed",this.iconPlacedHandler).on("core.validator.validated",this.validatorValidatedHandler).on("core.element.validated",this.elementValidatedHandler),"click"===this.opts.trigger&&document.addEventListener("click",this.documentClickHandler)},i.prototype.uninstall=function(){this.messages.clear(),document.body.removeChild(this.tip),this.core.off("plugins.icon.placed",this.iconPlacedHandler).off("core.validator.validated",this.validatorValidatedHandler).off("core.element.validated",this.elementValidatedHandler),"click"===this.opts.trigger&&document.removeEventListener("click",this.documentClickHandler)},i.prototype.onIconPlaced=function(e){var t=this;n(e.iconElement,{"fv-plugins-tooltip-icon":!0}),"hover"===this.opts.trigger?(e.iconElement.addEventListener("mouseenter",(function(n){return t.show(e.element,n)})),e.iconElement.addEventListener("mouseleave",(function(e){return t.hide()}))):e.iconElement.addEventListener("click",(function(n){return t.show(e.element,n)}))},i.prototype.onValidatorValidated=function(e){if(!e.result.valid){var t=e.elements,n=e.element.getAttribute("type"),i="radio"===n||"checkbox"===n?t[0]:e.element,r="string"==typeof e.result.message?e.result.message:e.result.message[this.core.getLocale()];this.messages.set(i,r)}},i.prototype.onElementValidated=function(e){if(e.valid){var t=e.elements,n=e.element.getAttribute("type"),i="radio"===n||"checkbox"===n?t[0]:e.element;this.messages.delete(i)}},i.prototype.onDocumentClicked=function(e){this.hide()},i.prototype.show=function(e,t){if(this.isEnabled&&(t.preventDefault(),t.stopPropagation(),this.messages.has(e))){n(this.tip,{"fv-plugins-tooltip--hide":!1}),this.tip.innerHTML='<div class="fv-plugins-tooltip__content">'.concat(this.messages.get(e),"</div>");var i=t.target.getBoundingClientRect(),r=this.tip.getBoundingClientRect(),s=r.height,a=r.width,o=0,l=0;switch(this.opts.placement){case"bottom":o=i.top+i.height,l=i.left+i.width/2-a/2;break;case"bottom-left":o=i.top+i.height,l=i.left;break;case"bottom-right":o=i.top+i.height,l=i.left+i.width-a;break;case"left":o=i.top+i.height/2-s/2,l=i.left-a;break;case"right":o=i.top+i.height/2-s/2,l=i.left+i.width;break;case"top-left":o=i.top-s,l=i.left;break;case"top-right":o=i.top-s,l=i.left+i.width-a;break;default:o=i.top-s,l=i.left+i.width/2-a/2}o+=window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0,l+=window.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft||0,this.tip.setAttribute("style","top: ".concat(o,"px; left: ").concat(l,"px"))}},i.prototype.hide=function(){this.isEnabled&&n(this.tip,{"fv-plugins-tooltip--hide":!0})},i}(e.Plugin);return te.Tooltip=i,te}();var ne,ie=ee.exports,re={exports:{}},se={};re.exports=function(){if(ne)return se;ne=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;n.handlers=[],n.timers=new Map;var i=document.createElement("div");return n.defaultEvent="oninput"in i?"input":"keyup",n.opts=Object.assign({},{delay:0,event:n.defaultEvent,threshold:0},e),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)},n.prototype.uninstall=function(){this.handlers.forEach((function(e){return e.element.removeEventListener(e.event,e.handler)})),this.handlers=[],this.timers.forEach((function(e){return window.clearTimeout(e)})),this.timers.clear(),this.core.off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)},n.prototype.prepareHandler=function(e,t){var n=this;t.forEach((function(t){var i=[];if(n.opts.event&&!1===n.opts.event[e])i=[];else if(n.opts.event&&n.opts.event[e]&&"function"!=typeof n.opts.event[e])i=n.opts.event[e].split(" ");else if("string"==typeof n.opts.event&&n.opts.event!==n.defaultEvent)i=n.opts.event.split(" ");else{var r=t.getAttribute("type"),s=t.tagName.toLowerCase();i=["radio"===r||"checkbox"===r||"file"===r||"select"===s?"change":n.ieVersion>=10&&t.getAttribute("placeholder")?"keyup":n.defaultEvent]}i.forEach((function(i){var r=function(i){return n.handleEvent(i,e,t)};n.handlers.push({element:t,event:i,field:e,handler:r}),t.addEventListener(i,r)}))}))},n.prototype.handleEvent=function(e,t,n){var i=this;if(this.isEnabled&&this.exceedThreshold(t,n)&&this.core.executeFilter("plugins-trigger-should-validate",!0,[t,n])){var r=function(){return i.core.validateElement(t,n).then((function(r){i.core.emit("plugins.trigger.executed",{element:n,event:e,field:t})}))},s=this.opts.delay[t]||this.opts.delay;if(0===s)r();else{var a=this.timers.get(n);a&&window.clearTimeout(a),this.timers.set(n,window.setTimeout(r,1e3*s))}}},n.prototype.onFieldAdded=function(e){this.handlers.filter((function(t){return t.field===e.field})).forEach((function(e){return e.element.removeEventListener(e.event,e.handler)})),this.prepareHandler(e.field,e.elements)},n.prototype.onFieldRemoved=function(e){this.handlers.filter((function(t){return t.field===e.field&&e.elements.indexOf(t.element)>=0})).forEach((function(e){return e.element.removeEventListener(e.event,e.handler)}))},n.prototype.exceedThreshold=function(e,t){var n=0!==this.opts.threshold[e]&&0!==this.opts.threshold&&(this.opts.threshold[e]||this.opts.threshold);if(!n)return!0;var i=t.getAttribute("type");return-1!==["button","checkbox","file","hidden","image","radio","reset","submit"].indexOf(i)||this.core.getElementValue(e,t).length>=n},n}(s.Plugin);return se.Trigger=t,se}();var ae,oe=re.exports,le={exports:{}},ce={};le.exports=function(){if(ae)return ce;ae=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return ce.between=function(){var e=function(e){return parseFloat("".concat(e).replace(",","."))};return{validate:function(i){var r=i.value;if(""===r)return{valid:!0};var s=Object.assign({},{inclusive:!0,message:""},n(i.options)),a=e(s.min),o=e(s.max);return s.inclusive?{message:t(i.l10n?s.message||i.l10n.between.default:s.message,["".concat(a),"".concat(o)]),valid:parseFloat(r)>=a&&parseFloat(r)<=o}:{message:t(i.l10n?s.message||i.l10n.between.notInclusive:s.message,["".concat(a),"".concat(o)]),valid:parseFloat(r)>a&&parseFloat(r)<o}}}},ce}();var ue,de=le.exports,he={exports:{}},fe={};he.exports=(ue||(ue=1,fe.blank=function(){return{validate:function(e){return{valid:!0}}}}),fe);var pe,me=he.exports,ge={exports:{}},ve={};ge.exports=function(){if(pe)return ve;pe=1;var e=s.utils.call;return ve.callback=function(){return{validate:function(t){var n=e(t.options.callback,[t]);return"boolean"==typeof n?{valid:n}:n}}},ve}();var ye,be=ge.exports,xe={exports:{}},_e={};xe.exports=function(){if(ye)return _e;ye=1;var e=s.utils.format;return _e.choice=function(){return{validate:function(t){var n="select"===t.element.tagName.toLowerCase()?t.element.querySelectorAll("option:checked").length:t.elements.filter((function(e){return e.checked})).length,i=t.options.min?"".concat(t.options.min):"",r=t.options.max?"".concat(t.options.max):"",s=t.l10n?t.options.message||t.l10n.choice.default:t.options.message,a=!(i&&n<parseInt(i,10)||r&&n>parseInt(r,10));switch(!0){case!!i&&!!r:s=e(t.l10n?t.l10n.choice.between:t.options.message,[i,r]);break;case!!i:s=e(t.l10n?t.l10n.choice.more:t.options.message,i);break;case!!r:s=e(t.l10n?t.l10n.choice.less:t.options.message,r)}return{message:s,valid:a}}}},_e}();var we,ke=xe.exports,Me={exports:{}},Se={};Me.exports=function(){if(we)return Se;we=1;var e=s.algorithms.luhn,t={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DANKORT:{length:[16],prefix:["5019"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},ELO:{length:[16],prefix:["4011","4312","4389","4514","4573","4576","5041","5066","5067","509","6277","6362","6363","650","6516","6550"]},FORBRUGSFORENINGEN:{length:[16],prefix:["600722"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","5868","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]},VISA_ELECTRON:{length:[16],prefix:["4026","417500","4405","4508","4844","4913","4917"]}};return Se.CREDIT_CARD_TYPES=t,Se.creditCard=function(){return{validate:function(n){if(""===n.value)return{meta:{type:null},valid:!0};if(/[^0-9-\s]+/.test(n.value))return{meta:{type:null},valid:!1};var i=n.value.replace(/\D/g,"");if(!e(i))return{meta:{type:null},valid:!1};for(var r=0,s=Object.keys(t);r<s.length;r++){var a=s[r];for(var o in t[a].prefix)if(n.value.substr(0,t[a].prefix[o].length)===t[a].prefix[o]&&-1!==t[a].length.indexOf(i.length))return{meta:{type:a},valid:!0}}return{meta:{type:null},valid:!1}}}},Se}();var Ae,Le=Me.exports,Te={exports:{}},Ce={};Te.exports=function(){if(Ae)return Ce;Ae=1;var e=s,t=e.utils.format,n=e.utils.isValidDate,i=e.utils.removeUndefined,r=function(e,t,n){var i=t.indexOf("YYYY"),r=t.indexOf("MM"),s=t.indexOf("DD");if(-1===i||-1===r||-1===s)return null;var a=e.split(" "),o=a[0].split(n);if(o.length<3)return null;var l=new Date(parseInt(o[i],10),parseInt(o[r],10)-1,parseInt(o[s],10)),c=a.length>2?a[2]:null;if(a.length>1){var u=a[1].split(":"),d=u.length>0?parseInt(u[0],10):0;l.setHours(c&&"PM"===c.toUpperCase()&&d<12?d+12:d),l.setMinutes(u.length>1?parseInt(u[1],10):0),l.setSeconds(u.length>2?parseInt(u[2],10):0)}return l},a=function(e,t){var n=t.replace(/Y/g,"y").replace(/M/g,"m").replace(/D/g,"d").replace(/:m/g,":M").replace(/:mm/g,":MM").replace(/:S/,":s").replace(/:SS/,":ss"),i=e.getDate(),r=i<10?"0".concat(i):i,s=e.getMonth()+1,a=s<10?"0".concat(s):s,o="".concat(e.getFullYear()).substr(2),l=e.getFullYear(),c=e.getHours()%12||12,u=c<10?"0".concat(c):c,d=e.getHours(),h=d<10?"0".concat(d):d,f=e.getMinutes(),p=f<10?"0".concat(f):f,m=e.getSeconds(),g=m<10?"0".concat(m):m,v={H:"".concat(d),HH:"".concat(h),M:"".concat(f),MM:"".concat(p),d:"".concat(i),dd:"".concat(r),h:"".concat(c),hh:"".concat(u),m:"".concat(s),mm:"".concat(a),s:"".concat(m),ss:"".concat(g),yy:"".concat(o),yyyy:"".concat(l)};return n.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMs])\1?|"[^"]*"|'[^']*'/g,(function(e){return v[e]?v[e]:e.slice(1,e.length-1)}))};return Ce.date=function(){return{validate:function(e){if(""===e.value)return{meta:{date:null},valid:!0};var s=Object.assign({},{format:e.element&&"date"===e.element.getAttribute("type")?"YYYY-MM-DD":"MM/DD/YYYY",message:""},i(e.options)),o=e.l10n?e.l10n.date.default:s.message,l={message:"".concat(o),meta:{date:null},valid:!1},c=s.format.split(" "),u=c.length>1?c[1]:null,d=c.length>2?c[2]:null,h=e.value.split(" "),f=h[0],p=h.length>1?h[1]:null,m=h.length>2?h[2]:null;if(c.length!==h.length)return l;var g=s.separator||(-1!==f.indexOf("/")?"/":-1!==f.indexOf("-")?"-":-1!==f.indexOf(".")?".":"/");if(null===g||-1===f.indexOf(g))return l;var v=f.split(g),y=c[0].split(g);if(v.length!==y.length)return l;var b=v[y.indexOf("YYYY")],x=v[y.indexOf("MM")],_=v[y.indexOf("DD")];if(!/^\d+$/.test(b)||!/^\d+$/.test(x)||!/^\d+$/.test(_)||b.length>4||x.length>2||_.length>2)return l;var w=parseInt(b,10),k=parseInt(x,10),M=parseInt(_,10);if(!n(w,k,M))return l;var S=new Date(w,k-1,M);if(u){var A=p.split(":");if(u.split(":").length!==A.length)return l;var L=A.length>0?A[0].length<=2&&/^\d+$/.test(A[0])?parseInt(A[0],10):-1:0,T=A.length>1?A[1].length<=2&&/^\d+$/.test(A[1])?parseInt(A[1],10):-1:0,C=A.length>2?A[2].length<=2&&/^\d+$/.test(A[2])?parseInt(A[2],10):-1:0;if(-1===L||-1===T||-1===C)return l;if(C<0||C>60)return l;if(L<0||L>=24||d&&L>12)return l;if(T<0||T>59)return l;S.setHours(m&&"PM"===m.toUpperCase()&&L<12?L+12:L),S.setMinutes(T),S.setSeconds(C)}var D="function"==typeof s.min?s.min():s.min,E=D instanceof Date?D:D?r(D,y,g):S,O="function"==typeof s.max?s.max():s.max,P=O instanceof Date?O:O?r(O,y,g):S,Y=D instanceof Date?a(E,s.format):D,I=O instanceof Date?a(P,s.format):O;switch(!0){case!!Y&&!I:return{message:t(e.l10n?e.l10n.date.min:o,Y),meta:{date:S},valid:S.getTime()>=E.getTime()};case!!I&&!Y:return{message:t(e.l10n?e.l10n.date.max:o,I),meta:{date:S},valid:S.getTime()<=P.getTime()};case!!I&&!!Y:return{message:t(e.l10n?e.l10n.date.range:o,[Y,I]),meta:{date:S},valid:S.getTime()<=P.getTime()&&S.getTime()>=E.getTime()};default:return{message:"".concat(o),meta:{date:S},valid:!0}}}}},Ce}();var De,Ee=Te.exports,Oe={exports:{}},Pe={};Oe.exports=(De||(De=1,Pe.different=function(){return{validate:function(e){var t="function"==typeof e.options.compare?e.options.compare.call(this):e.options.compare;return{valid:""===t||e.value!==t}}}}),Pe);var Ye,Ie=Oe.exports,Ne={exports:{}},He={};Ne.exports=(Ye||(Ye=1,He.digits=function(){return{validate:function(e){return{valid:""===e.value||/^\d+$/.test(e.value)}}}}),He);var je,Fe=Ne.exports,Re={exports:{}},ze={};Re.exports=function(){if(je)return ze;je=1;var e=s.utils.removeUndefined,t=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,n=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/;return ze.emailAddress=function(){return{validate:function(i){if(""===i.value)return{valid:!0};var r=Object.assign({},{multiple:!1,requireGlobalDomain:!1,separator:/[,;]/},e(i.options)),s=r.requireGlobalDomain?n:t;if(!0===r.multiple||"true"==="".concat(r.multiple)){for(var a=r.separator||/[,;]/,o=function(e,t){for(var n=e.split(/"/),i=n.length,r=[],s="",a=0;a<i;a++)if(a%2==0){var o=n[a].split(t),l=o.length;if(1===l)s+=o[0];else{r.push(s+o[0]);for(var c=1;c<l-1;c++)r.push(o[c]);s=o[l-1]}}else s+='"'+n[a],a<i-1&&(s+='"');return r.push(s),r}(i.value,a),l=o.length,c=0;c<l;c++)if(!s.test(o[c]))return{valid:!1};return{valid:!0}}return{valid:s.test(i.value)}}}},ze}();var Be,Ve=Re.exports,We={exports:{}},qe={};We.exports=function(){if(Be)return qe;Be=1;var e=function(e){return-1===e.indexOf(".")?e:e.split(".").slice(0,-1).join(".")};return qe.file=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n,i,r=t.options.extension?t.options.extension.toLowerCase().split(",").map((function(e){return e.trim()})):[],s=t.options.type?t.options.type.toLowerCase().split(",").map((function(e){return e.trim()})):[];if(window.File&&window.FileList&&window.FileReader){var a=t.element.files,o=a.length,l=0;if(t.options.maxFiles&&o>parseInt("".concat(t.options.maxFiles),10))return{meta:{error:"INVALID_MAX_FILES"},valid:!1};if(t.options.minFiles&&o<parseInt("".concat(t.options.minFiles),10))return{meta:{error:"INVALID_MIN_FILES"},valid:!1};for(var c={},u=0;u<o;u++){if(l+=a[u].size,c={ext:n=a[u].name.substr(a[u].name.lastIndexOf(".")+1),file:a[u],size:a[u].size,type:a[u].type},t.options.minSize&&a[u].size<parseInt("".concat(t.options.minSize),10))return{meta:Object.assign({},{error:"INVALID_MIN_SIZE"},c),valid:!1};if(t.options.maxSize&&a[u].size>parseInt("".concat(t.options.maxSize),10))return{meta:Object.assign({},{error:"INVALID_MAX_SIZE"},c),valid:!1};if(r.length>0&&-1===r.indexOf(n.toLowerCase()))return{meta:Object.assign({},{error:"INVALID_EXTENSION"},c),valid:!1};if(s.length>0&&a[u].type&&-1===s.indexOf(a[u].type.toLowerCase()))return{meta:Object.assign({},{error:"INVALID_TYPE"},c),valid:!1};if(t.options.validateFileName&&!t.options.validateFileName(e(a[u].name)))return{meta:Object.assign({},{error:"INVALID_NAME"},c),valid:!1}}if(t.options.maxTotalSize&&l>parseInt("".concat(t.options.maxTotalSize),10))return{meta:Object.assign({},{error:"INVALID_MAX_TOTAL_SIZE",totalSize:l},c),valid:!1};if(t.options.minTotalSize&&l<parseInt("".concat(t.options.minTotalSize),10))return{meta:Object.assign({},{error:"INVALID_MIN_TOTAL_SIZE",totalSize:l},c),valid:!1}}else{if(n=t.value.substr(t.value.lastIndexOf(".")+1),r.length>0&&-1===r.indexOf(n.toLowerCase()))return{meta:{error:"INVALID_EXTENSION",ext:n},valid:!1};if(i=e(t.value),t.options.validateFileName&&!t.options.validateFileName(i))return{meta:{error:"INVALID_NAME",name:i},valid:!1}}return{valid:!0}}}},qe}();var Ue,$e=We.exports,Xe={exports:{}},Ge={};Xe.exports=function(){if(Ue)return Ge;Ue=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return Ge.greaterThan=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var i=Object.assign({},{inclusive:!0,message:""},n(e.options)),r=parseFloat("".concat(i.min).replace(",","."));return i.inclusive?{message:t(e.l10n?i.message||e.l10n.greaterThan.default:i.message,"".concat(r)),valid:parseFloat(e.value)>=r}:{message:t(e.l10n?i.message||e.l10n.greaterThan.notInclusive:i.message,"".concat(r)),valid:parseFloat(e.value)>r}}}},Ge}();var Ze,Ke=Xe.exports,Je={exports:{}},Qe={};Je.exports=(Ze||(Ze=1,Qe.identical=function(){return{validate:function(e){var t="function"==typeof e.options.compare?e.options.compare.call(this):e.options.compare;return{valid:""===t||e.value===t}}}}),Qe);var et,tt=Je.exports,nt={exports:{}},it={};nt.exports=function(){if(et)return it;et=1;var e=s.utils.removeUndefined;return it.integer=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},e(t.options)),i="."===n.decimalSeparator?"\\.":n.decimalSeparator,r="."===n.thousandsSeparator?"\\.":n.thousandsSeparator,s=new RegExp("^-?[0-9]{1,3}(".concat(r,"[0-9]{3})*(").concat(i,"[0-9]+)?$")),a=new RegExp(r,"g"),o="".concat(t.value);if(!s.test(o))return{valid:!1};r&&(o=o.replace(a,"")),i&&(o=o.replace(i,"."));var l=parseFloat(o);return{valid:!isNaN(l)&&isFinite(l)&&Math.floor(l)===l}}}},it}();var rt,st=nt.exports,at={exports:{}},ot={};at.exports=function(){if(rt)return ot;rt=1;var e=s.utils.removeUndefined;return ot.ip=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=Object.assign({},{ipv4:!0,ipv6:!0},e(t.options)),i=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\/([0-9]|[1-2][0-9]|3[0-2]))?$/,r=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*(\/(\d|\d\d|1[0-1]\d|12[0-8]))?$/;switch(!0){case n.ipv4&&!n.ipv6:return{message:t.l10n?n.message||t.l10n.ip.ipv4:n.message,valid:i.test(t.value)};case!n.ipv4&&n.ipv6:return{message:t.l10n?n.message||t.l10n.ip.ipv6:n.message,valid:r.test(t.value)};case n.ipv4&&n.ipv6:default:return{message:t.l10n?n.message||t.l10n.ip.default:n.message,valid:i.test(t.value)||r.test(t.value)}}}}},ot}();var lt,ct=at.exports,ut={exports:{}},dt={};ut.exports=function(){if(lt)return dt;lt=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return dt.lessThan=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var i=Object.assign({},{inclusive:!0,message:""},n(e.options)),r=parseFloat("".concat(i.max).replace(",","."));return i.inclusive?{message:t(e.l10n?i.message||e.l10n.lessThan.default:i.message,"".concat(r)),valid:parseFloat(e.value)<=r}:{message:t(e.l10n?i.message||e.l10n.lessThan.notInclusive:i.message,"".concat(r)),valid:parseFloat(e.value)<r}}}},dt}();var ht,ft=ut.exports,pt={exports:{}},mt={};pt.exports=(ht||(ht=1,mt.notEmpty=function(){return{validate:function(e){var t=!!e.options&&!!e.options.trim,n=e.value;return{valid:!t&&""!==n||t&&""!==n&&""!==n.trim()}}}}),mt);var gt,vt=pt.exports,yt={exports:{}},bt={};yt.exports=function(){if(gt)return bt;gt=1;var e=s.utils.removeUndefined;return bt.numeric=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},e(t.options)),i="".concat(t.value);i.substr(0,1)===n.decimalSeparator?i="0".concat(n.decimalSeparator).concat(i.substr(1)):i.substr(0,2)==="-".concat(n.decimalSeparator)&&(i="-0".concat(n.decimalSeparator).concat(i.substr(2)));var r="."===n.decimalSeparator?"\\.":n.decimalSeparator,s="."===n.thousandsSeparator?"\\.":n.thousandsSeparator,a=new RegExp("^-?[0-9]{1,3}(".concat(s,"[0-9]{3})*(").concat(r,"[0-9]+)?$")),o=new RegExp(s,"g");if(!a.test(i))return{valid:!1};s&&(i=i.replace(o,"")),r&&(i=i.replace(r,"."));var l=parseFloat(i);return{valid:!isNaN(l)&&isFinite(l)}}}},bt}();var xt,_t=yt.exports,wt={exports:{}},kt={};wt.exports=function(){if(xt)return kt;xt=1;var e=s.utils.call;return kt.promise=function(){return{validate:function(t){return e(t.options.promise,[t])}}},kt}();var Mt,St=wt.exports,At={exports:{}},Lt={};At.exports=(Mt||(Mt=1,Lt.regexp=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.options.regexp;if(t instanceof RegExp)return{valid:t.test(e.value)};var n=t.toString();return{valid:(e.options.flags?new RegExp(n,e.options.flags):new RegExp(n)).test(e.value)}}}}),Lt);var Tt,Ct=At.exports,Dt={exports:{}},Et={};Dt.exports=function(){if(Tt)return Et;Tt=1;var e=s,t=e.utils.fetch,n=e.utils.removeUndefined;return Et.remote=function(){var e={crossDomain:!1,data:{},headers:{},method:"GET",validKey:"valid"};return{validate:function(i){if(""===i.value)return Promise.resolve({valid:!0});var r=Object.assign({},e,n(i.options)),s=r.data;"function"==typeof r.data&&(s=r.data.call(this,i)),"string"==typeof s&&(s=JSON.parse(s)),s[r.name||i.field]=i.value;var a="function"==typeof r.url?r.url.call(this,i):r.url;return t(a,{crossDomain:r.crossDomain,headers:r.headers,method:r.method,params:s}).then((function(e){return Promise.resolve({message:e.message,meta:e,valid:"true"==="".concat(e[r.validKey])})})).catch((function(e){return Promise.reject({valid:!1})}))}}},Et}();var Ot,Pt=Dt.exports,Yt={exports:{}},It={};Yt.exports=function(){if(Ot)return It;Ot=1;var e=s.utils.removeUndefined;return It.stringCase=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=Object.assign({},{case:"lower"},e(t.options)),i=(n.case||"lower").toLowerCase();return{message:n.message||(t.l10n?"upper"===i?t.l10n.stringCase.upper:t.l10n.stringCase.default:n.message),valid:"upper"===i?t.value===t.value.toUpperCase():t.value===t.value.toLowerCase()}}}},It}();var Nt,Ht=Yt.exports,jt={exports:{}},Ft={};jt.exports=function(){if(Nt)return Ft;Nt=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return Ft.stringLength=function(){return{validate:function(e){var i=Object.assign({},{message:"",trim:!1,utf8Bytes:!1},n(e.options)),r=!0===i.trim||"true"==="".concat(i.trim)?e.value.trim():e.value;if(""===r)return{valid:!0};var s=i.min?"".concat(i.min):"",a=i.max?"".concat(i.max):"",o=i.utf8Bytes?function(e){for(var t=e.length,n=e.length-1;n>=0;n--){var i=e.charCodeAt(n);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&n--}return t}(r):r.length,l=!0,c=e.l10n?i.message||e.l10n.stringLength.default:i.message;switch((s&&o<parseInt(s,10)||a&&o>parseInt(a,10))&&(l=!1),!0){case!!s&&!!a:c=t(e.l10n?i.message||e.l10n.stringLength.between:i.message,[s,a]);break;case!!s:c=t(e.l10n?i.message||e.l10n.stringLength.more:i.message,"".concat(parseInt(s,10)));break;case!!a:c=t(e.l10n?i.message||e.l10n.stringLength.less:i.message,"".concat(parseInt(a,10)))}return{message:c,valid:l}}}},Ft}();var Rt,zt=jt.exports,Bt={exports:{}},Vt={};Bt.exports=function(){if(Rt)return Vt;Rt=1;var e=s.utils.removeUndefined;return Vt.uri=function(){var t={allowEmptyProtocol:!1,allowLocal:!1,protocol:"http, https, ftp"};return{validate:function(n){if(""===n.value)return{valid:!0};var i=Object.assign({},t,e(n.options)),r=!0===i.allowLocal||"true"==="".concat(i.allowLocal),s=!0===i.allowEmptyProtocol||"true"==="".concat(i.allowEmptyProtocol),a=i.protocol.split(",").join("|").replace(/\s/g,"");return{valid:new RegExp("^(?:(?:"+a+")://)"+(s?"?":"")+"(?:\\S+(?::\\S*)?@)?(?:"+(r?"":"(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")+"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9])*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))"+(r?"?":"")+")(?::\\d{2,5})?(?:/[^\\s]*)?$","i").test(n.value)}}}},Vt}();var Wt=Bt.exports,qt={Alias:c.Alias,Aria:f.Aria,Declarative:v.Declarative,DefaultSubmit:_.DefaultSubmit,Dependency:S.Dependency,Excluded:C.Excluded,FieldStatus:P.FieldStatus,Framework:z.Framework,Icon:q.Icon,Message:F.Message,Sequence:G.Sequence,SubmitButton:Q.SubmitButton,Tooltip:ie.Tooltip,Trigger:oe.Trigger},Ut={between:de.between,blank:me.blank,callback:be.callback,choice:ke.choice,creditCard:Le.creditCard,date:Ee.date,different:Ie.different,digits:Fe.digits,emailAddress:Ve.emailAddress,file:$e.file,greaterThan:Ke.greaterThan,identical:tt.identical,integer:st.integer,ip:ct.ip,lessThan:ft.lessThan,notEmpty:vt.notEmpty,numeric:_t.numeric,promise:St.promise,regexp:Ct.regexp,remote:Pt.remote,stringCase:Ht.stringCase,stringLength:zt.stringLength,uri:Wt.uri};e.Plugin=s.Plugin,e.algorithms=s.algorithms,e.formValidation=function(e,t){var n=s.formValidation(e,t);return Object.keys(Ut).forEach((function(e){return n.registerValidator(e,Ut[e])})),n},e.plugins=qt,e.utils=s.utils,e.validators=Ut})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FormValidation={})}(this,(function(e){"use strict";var t,n={exports:{}},i={};n.exports=function(){if(t)return i;t=1;var e={luhn:function(e){for(var t=e.length,n=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],i=0,r=0;t--;)r+=n[i][parseInt(e.charAt(t),10)],i=1-i;return r%10==0&&r>0},mod11And10:function(e){for(var t=e.length,n=5,i=0;i<t;i++)n=(2*(n||10)%11+parseInt(e.charAt(i),10))%10;return 1===n},mod37And36:function(e,t){void 0===t&&(t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");for(var n=e.length,i=t.length,r=Math.floor(i/2),s=0;s<n;s++)r=(2*(r||i)%(i+1)+t.indexOf(e.charAt(s)))%i;return 1===r},mod97And10:function(e){for(var t=function(e){return e.split("").map((function(e){var t=e.charCodeAt(0);return t>=65&&t<=90?t-55:e})).join("").split("").map((function(e){return parseInt(e,10)}))}(e),n=0,i=t.length,r=0;r<i-1;++r)n=10*(n+t[r])%97;return(n+=t[i-1])%97==1},verhoeff:function(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],i=e.reverse(),r=0,s=0;s<i.length;s++)r=t[r][n[s%8][i[s]]];return 0===r}},n=function(){function e(e,t){this.fields={},this.elements={},this.ee={fns:{},clear:function(){this.fns={}},emit:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];(this.fns[e]||[]).map((function(e){return e.apply(e,t)}))},off:function(e,t){if(this.fns[e]){var n=this.fns[e].indexOf(t);n>=0&&this.fns[e].splice(n,1)}},on:function(e,t){(this.fns[e]=this.fns[e]||[]).push(t)}},this.filter={filters:{},add:function(e,t){(this.filters[e]=this.filters[e]||[]).push(t)},clear:function(){this.filters={}},execute:function(e,t,n){if(!this.filters[e]||!this.filters[e].length)return t;for(var i=t,r=this.filters[e],s=r.length,a=0;a<s;a++)i=r[a].apply(i,n);return i},remove:function(e,t){this.filters[e]&&(this.filters[e]=this.filters[e].filter((function(e){return e!==t})))}},this.plugins={},this.results=new Map,this.validators={},this.form=e,this.fields=t}return e.prototype.on=function(e,t){return this.ee.on(e,t),this},e.prototype.off=function(e,t){return this.ee.off(e,t),this},e.prototype.emit=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return(t=this.ee).emit.apply(t,function(e,t,n){if(n||2===arguments.length)for(var i,r=0,s=t.length;r<s;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}([e],n,!1)),this},e.prototype.registerPlugin=function(e,t){if(this.plugins[e])throw new Error("The plguin ".concat(e," is registered"));return t.setCore(this),t.install(),this.plugins[e]=t,this},e.prototype.deregisterPlugin=function(e){var t=this.plugins[e];return t&&t.uninstall(),delete this.plugins[e],this},e.prototype.enablePlugin=function(e){var t=this.plugins[e];return t&&t.enable(),this},e.prototype.disablePlugin=function(e){var t=this.plugins[e];return t&&t.disable(),this},e.prototype.isPluginEnabled=function(e){var t=this.plugins[e];return!!t&&t.isPluginEnabled()},e.prototype.registerValidator=function(e,t){if(this.validators[e])throw new Error("The validator ".concat(e," is registered"));return this.validators[e]=t,this},e.prototype.registerFilter=function(e,t){return this.filter.add(e,t),this},e.prototype.deregisterFilter=function(e,t){return this.filter.remove(e,t),this},e.prototype.executeFilter=function(e,t,n){return this.filter.execute(e,t,n)},e.prototype.addField=function(e,t){var n=Object.assign({},{selector:"",validators:{}},t);return this.fields[e]=this.fields[e]?{selector:n.selector||this.fields[e].selector,validators:Object.assign({},this.fields[e].validators,n.validators)}:n,this.elements[e]=this.queryElements(e),this.emit("core.field.added",{elements:this.elements[e],field:e,options:this.fields[e]}),this},e.prototype.removeField=function(e){if(!this.fields[e])throw new Error("The field ".concat(e," validators are not defined. Please ensure the field is added first"));var t=this.elements[e],n=this.fields[e];return delete this.elements[e],delete this.fields[e],this.emit("core.field.removed",{elements:t,field:e,options:n}),this},e.prototype.validate=function(){var e=this;return this.emit("core.form.validating",{formValidation:this}),this.filter.execute("validate-pre",Promise.resolve(),[]).then((function(){return Promise.all(Object.keys(e.fields).map((function(t){return e.validateField(t)}))).then((function(t){switch(!0){case-1!==t.indexOf("Invalid"):return e.emit("core.form.invalid",{formValidation:e}),Promise.resolve("Invalid");case-1!==t.indexOf("NotValidated"):return e.emit("core.form.notvalidated",{formValidation:e}),Promise.resolve("NotValidated");default:return e.emit("core.form.valid",{formValidation:e}),Promise.resolve("Valid")}}))}))},e.prototype.validateField=function(e){var t=this,n=this.results.get(e);if("Valid"===n||"Invalid"===n)return Promise.resolve(n);this.emit("core.field.validating",e);var i=this.elements[e];if(0===i.length)return this.emit("core.field.valid",e),Promise.resolve("Valid");var r=i[0].getAttribute("type");return"radio"===r||"checkbox"===r||1===i.length?this.validateElement(e,i[0]):Promise.all(i.map((function(n){return t.validateElement(e,n)}))).then((function(n){switch(!0){case-1!==n.indexOf("Invalid"):return t.emit("core.field.invalid",e),t.results.set(e,"Invalid"),Promise.resolve("Invalid");case-1!==n.indexOf("NotValidated"):return t.emit("core.field.notvalidated",e),t.results.delete(e),Promise.resolve("NotValidated");default:return t.emit("core.field.valid",e),t.results.set(e,"Valid"),Promise.resolve("Valid")}}))},e.prototype.validateElement=function(e,t){var n=this;this.results.delete(e);var i=this.elements[e];if(this.filter.execute("element-ignored",!1,[e,t,i]))return this.emit("core.element.ignored",{element:t,elements:i,field:e}),Promise.resolve("Ignored");var r=this.fields[e].validators;this.emit("core.element.validating",{element:t,elements:i,field:e});var s=Object.keys(r).map((function(i){return function(){return n.executeValidator(e,t,i,r[i])}}));return this.waterfall(s).then((function(r){var s=-1===r.indexOf("Invalid");n.emit("core.element.validated",{element:t,elements:i,field:e,valid:s});var a=t.getAttribute("type");return"radio"!==a&&"checkbox"!==a&&1!==i.length||n.emit(s?"core.field.valid":"core.field.invalid",e),Promise.resolve(s?"Valid":"Invalid")})).catch((function(r){return n.emit("core.element.notvalidated",{element:t,elements:i,field:e}),Promise.resolve(r)}))},e.prototype.executeValidator=function(e,t,n,i){var r=this,s=this.elements[e],a=this.filter.execute("validator-name",n,[n,e]);if(i.message=this.filter.execute("validator-message",i.message,[this.locale,e,a]),!this.validators[a]||!1===i.enabled)return this.emit("core.validator.validated",{element:t,elements:s,field:e,result:this.normalizeResult(e,a,{valid:!0}),validator:a}),Promise.resolve("Valid");var o=this.validators[a],l=this.getElementValue(e,t,a);if(!this.filter.execute("field-should-validate",!0,[e,t,l,n]))return this.emit("core.validator.notvalidated",{element:t,elements:s,field:e,validator:n}),Promise.resolve("NotValidated");this.emit("core.validator.validating",{element:t,elements:s,field:e,validator:n});var c=o().validate({element:t,elements:s,field:e,l10n:this.localization,options:i,value:l});if("function"==typeof c.then)return c.then((function(i){var a=r.normalizeResult(e,n,i);return r.emit("core.validator.validated",{element:t,elements:s,field:e,result:a,validator:n}),a.valid?"Valid":"Invalid"}));var u=this.normalizeResult(e,n,c);return this.emit("core.validator.validated",{element:t,elements:s,field:e,result:u,validator:n}),Promise.resolve(u.valid?"Valid":"Invalid")},e.prototype.getElementValue=function(e,t,n){var i=function(e,t,n,i){var r=(n.getAttribute("type")||"").toLowerCase(),s=n.tagName.toLowerCase();if("textarea"===s)return n.value;if("select"===s){var a=n,o=a.selectedIndex;return o>=0?a.options.item(o).value:""}if("input"===s){if("radio"===r||"checkbox"===r){var l=i.filter((function(e){return e.checked})).length;return 0===l?"":l+""}return n.value}return""}(this.form,0,t,this.elements[e]);return this.filter.execute("field-value",i,[i,e,t,n])},e.prototype.getElements=function(e){return this.elements[e]},e.prototype.getFields=function(){return this.fields},e.prototype.getFormElement=function(){return this.form},e.prototype.getLocale=function(){return this.locale},e.prototype.getPlugin=function(e){return this.plugins[e]},e.prototype.updateFieldStatus=function(e,t,n){var i=this,r=this.elements[e],s=r[0].getAttribute("type");if(("radio"===s||"checkbox"===s?[r[0]]:r).forEach((function(r){return i.updateElementStatus(e,r,t,n)})),n)"Invalid"===t&&(this.emit("core.field.invalid",e),this.results.set(e,"Invalid"));else switch(t){case"NotValidated":this.emit("core.field.notvalidated",e),this.results.delete(e);break;case"Validating":this.emit("core.field.validating",e),this.results.delete(e);break;case"Valid":this.emit("core.field.valid",e),this.results.set(e,"Valid");break;case"Invalid":this.emit("core.field.invalid",e),this.results.set(e,"Invalid")}return this},e.prototype.updateElementStatus=function(e,t,n,i){var r=this,s=this.elements[e],a=this.fields[e].validators,o=i?[i]:Object.keys(a);switch(n){case"NotValidated":o.forEach((function(n){return r.emit("core.validator.notvalidated",{element:t,elements:s,field:e,validator:n})})),this.emit("core.element.notvalidated",{element:t,elements:s,field:e});break;case"Validating":o.forEach((function(n){return r.emit("core.validator.validating",{element:t,elements:s,field:e,validator:n})})),this.emit("core.element.validating",{element:t,elements:s,field:e});break;case"Valid":o.forEach((function(n){return r.emit("core.validator.validated",{element:t,elements:s,field:e,result:{message:a[n].message,valid:!0},validator:n})})),this.emit("core.element.validated",{element:t,elements:s,field:e,valid:!0});break;case"Invalid":o.forEach((function(n){return r.emit("core.validator.validated",{element:t,elements:s,field:e,result:{message:a[n].message,valid:!1},validator:n})})),this.emit("core.element.validated",{element:t,elements:s,field:e,valid:!1})}return this},e.prototype.resetForm=function(e){var t=this;return Object.keys(this.fields).forEach((function(n){return t.resetField(n,e)})),this.emit("core.form.reset",{formValidation:this,reset:e}),this},e.prototype.resetField=function(e,t){if(t){var n=this.elements[e],i=n[0].getAttribute("type");n.forEach((function(e){"radio"===i||"checkbox"===i?(e.removeAttribute("selected"),e.removeAttribute("checked"),e.checked=!1):(e.setAttribute("value",""),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=""))}))}return this.updateFieldStatus(e,"NotValidated"),this.emit("core.field.reset",{field:e,reset:t}),this},e.prototype.revalidateField=function(e){return this.fields[e]?(this.updateFieldStatus(e,"NotValidated"),this.validateField(e)):Promise.resolve("Ignored")},e.prototype.disableValidator=function(e,t){if(!this.fields[e])return this;var n=this.elements[e];return this.toggleValidator(!1,e,t),this.emit("core.validator.disabled",{elements:n,field:e,formValidation:this,validator:t}),this},e.prototype.enableValidator=function(e,t){if(!this.fields[e])return this;var n=this.elements[e];return this.toggleValidator(!0,e,t),this.emit("core.validator.enabled",{elements:n,field:e,formValidation:this,validator:t}),this},e.prototype.updateValidatorOption=function(e,t,n,i){return this.fields[e]&&this.fields[e].validators&&this.fields[e].validators[t]&&(this.fields[e].validators[t][n]=i),this},e.prototype.setFieldOptions=function(e,t){return this.fields[e]=t,this},e.prototype.destroy=function(){var e=this;return Object.keys(this.plugins).forEach((function(t){return e.plugins[t].uninstall()})),this.ee.clear(),this.filter.clear(),this.results.clear(),this.plugins={},this},e.prototype.setLocale=function(e,t){return this.locale=e,this.localization=t,this},e.prototype.waterfall=function(e){return e.reduce((function(e,t){return e.then((function(e){return t().then((function(t){return e.push(t),e}))}))}),Promise.resolve([]))},e.prototype.queryElements=function(e){var t=this.fields[e].selector?"#"===this.fields[e].selector.charAt(0)?'[id="'.concat(this.fields[e].selector.substring(1),'"]'):this.fields[e].selector:'[name="'.concat(e.replace(/"/g,'\\"'),'"]');return[].slice.call(this.form.querySelectorAll(t))},e.prototype.normalizeResult=function(e,t,n){var i=this.fields[e].validators[t];return Object.assign({},n,{message:n.message||(i?i.message:"")||(this.localization&&this.localization[t]&&this.localization[t].default?this.localization[t].default:"")||"The field ".concat(e," is not valid")})},e.prototype.toggleValidator=function(e,t,n){var i=this,r=this.fields[t].validators;return n&&r&&r[n]?this.fields[t].validators[n].enabled=e:n||Object.keys(r).forEach((function(n){return i.fields[t].validators[n].enabled=e})),this.updateFieldStatus(t,"NotValidated",n)},e}(),r=function(){function e(e){this.opts=e,this.isEnabled=!0}return e.prototype.setCore=function(e){return this.core=e,this},e.prototype.enable=function(){return this.isEnabled=!0,this.onEnabled(),this},e.prototype.disable=function(){return this.isEnabled=!1,this.onDisabled(),this},e.prototype.isPluginEnabled=function(){return this.isEnabled},e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.install=function(){},e.prototype.uninstall=function(){},e}(),s=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return n?n.call(e,t):[].slice.call(e.parentElement.querySelectorAll(t)).indexOf(e)>=0},a={call:function(e,t){if("function"==typeof e)return e.apply(this,t);if("string"==typeof e){var n=e;"()"===n.substring(n.length-2)&&(n=n.substring(0,n.length-2));for(var i=n.split("."),r=i.pop(),s=window,a=0,o=i;a<o.length;a++)s=s[o[a]];return void 0===s[r]?null:s[r].apply(this,t)}},classSet:function(e,t){var n=[],i=[];Object.keys(t).forEach((function(e){e&&(t[e]?n.push(e):i.push(e))})),i.forEach((function(t){return function(e,t){t.split(" ").forEach((function(t){e.classList?e.classList.remove(t):e.className=e.className.replace(t,"")}))}(e,t)})),n.forEach((function(t){return function(e,t){t.split(" ").forEach((function(t){e.classList?e.classList.add(t):" ".concat(e.className," ").indexOf(" ".concat(t," "))&&(e.className+=" ".concat(t))}))}(e,t)}))},closest:function(e,t){for(var n=e;n&&!s(n,t);)n=n.parentElement;return n},fetch:function(e,t){return new Promise((function(n,i){var r,s=Object.assign({},{crossDomain:!1,headers:{},method:"GET",params:{}},t),a=Object.keys(s.params).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(s.params[e]))})).join("&"),o=e.indexOf("?")>-1,l="GET"===s.method?"".concat(e).concat(o?"&":"?").concat(a):e;if(s.crossDomain){var c=document.createElement("script"),u="___FormValidationFetch_".concat(Array(12).fill("").map((function(e){return Math.random().toString(36).charAt(2)})).join(""),"___");window[u]=function(e){delete window[u],n(e)},c.src="".concat(l).concat(o?"&":"?","callback=").concat(u),c.async=!0,c.addEventListener("load",(function(){c.parentNode.removeChild(c)})),c.addEventListener("error",(function(){return i})),document.head.appendChild(c)}else{var d=new XMLHttpRequest;d.open(s.method,l),d.setRequestHeader("X-Requested-With","XMLHttpRequest"),"POST"===s.method&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),Object.keys(s.headers).forEach((function(e){return d.setRequestHeader(e,s.headers[e])})),d.addEventListener("load",(function(){n(JSON.parse(this.responseText))})),d.addEventListener("error",(function(){return i})),d.send((r=s.params,Object.keys(r).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(r[e]))})).join("&")))}}))},format:function(e,t){var n=Array.isArray(t)?t:[t],i=e;return n.forEach((function(e){i=i.replace("%s",e)})),i},hasClass:function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )".concat(t,"( |$)"),"gi").test(e.className)},isValidDate:function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n))return!1;if(e<1e3||e>9999||t<=0||t>12)return!1;if(n<=0||n>[31,e%400==0||e%100!=0&&e%4==0?29:28,31,30,31,30,31,31,30,31,30,31][t-1])return!1;if(!0===i){var r=new Date,s=r.getFullYear(),a=r.getMonth(),o=r.getDate();return e<s||e===s&&t-1<a||e===s&&t-1===a&&n<o}return!0},removeUndefined:function(e){return e?Object.entries(e).reduce((function(e,t){var n=t[0],i=t[1];return void 0===i||(e[n]=i),e}),{}):{}}};return i.Plugin=r,i.algorithms=e,i.formValidation=function(e,t){var i=Object.assign({},{fields:{},locale:"en_US",plugins:{},init:function(e){}},t),r=new n(e,i.fields);return r.setLocale(i.locale,i.localization),Object.keys(i.plugins).forEach((function(e){return r.registerPlugin(e,i.plugins[e])})),i.init(r),Object.keys(i.fields).forEach((function(e){return r.addField(e,i.fields[e])})),r},i.utils=a,i}();var r,s=n.exports,a={exports:{}},o={};a.exports=function(){if(r)return o;r=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.opts=e||{},n.validatorNameFilter=n.getValidatorName.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.registerFilter("validator-name",this.validatorNameFilter)},n.prototype.uninstall=function(){this.core.deregisterFilter("validator-name",this.validatorNameFilter)},n.prototype.getValidatorName=function(e,t){return this.isEnabled&&this.opts[e]||e},n}(s.Plugin);return o.Alias=t,o}();var l,c=a.exports,u={exports:{}},d={};u.exports=function(){if(l)return d;l=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(){var e=t.call(this,{})||this;return e.elementValidatedHandler=e.onElementValidated.bind(e),e.fieldValidHandler=e.onFieldValid.bind(e),e.fieldInvalidHandler=e.onFieldInvalid.bind(e),e.messageDisplayedHandler=e.onMessageDisplayed.bind(e),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.on("core.field.valid",this.fieldValidHandler).on("core.field.invalid",this.fieldInvalidHandler).on("core.element.validated",this.elementValidatedHandler).on("plugins.message.displayed",this.messageDisplayedHandler)},n.prototype.uninstall=function(){this.core.off("core.field.valid",this.fieldValidHandler).off("core.field.invalid",this.fieldInvalidHandler).off("core.element.validated",this.elementValidatedHandler).off("plugins.message.displayed",this.messageDisplayedHandler)},n.prototype.onElementValidated=function(e){e.valid&&(e.element.setAttribute("aria-invalid","false"),e.element.removeAttribute("aria-describedby"))},n.prototype.onFieldValid=function(e){var t=this.core.getElements(e);t&&t.forEach((function(e){e.setAttribute("aria-invalid","false"),e.removeAttribute("aria-describedby")}))},n.prototype.onFieldInvalid=function(e){var t=this.core.getElements(e);t&&t.forEach((function(e){return e.setAttribute("aria-invalid","true")}))},n.prototype.onMessageDisplayed=function(e){e.messageElement.setAttribute("role","alert"),e.messageElement.setAttribute("aria-hidden","false");var t=this.core.getElements(e.field),n=t.indexOf(e.element),i="js-fv-".concat(e.field,"-").concat(n,"-").concat(Date.now(),"-message");e.messageElement.setAttribute("id",i),e.element.setAttribute("aria-describedby",i);var r=e.element.getAttribute("type");"radio"!==r&&"checkbox"!==r||t.forEach((function(e){return e.setAttribute("aria-describedby",i)}))},n}(s.Plugin);return d.Aria=t,d}();var h,f=u.exports,p={exports:{}},m={};p.exports=function(){if(h)return m;h=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.addedFields=new Map,n.opts=Object.assign({},{html5Input:!1,pluginPrefix:"data-fvp-",prefix:"data-fv-"},e),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){var e=this;this.parsePlugins();var t=this.parseOptions();Object.keys(t).forEach((function(n){e.addedFields.has(n)||e.addedFields.set(n,!0),e.core.addField(n,t[n])})),this.core.on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)},n.prototype.uninstall=function(){this.addedFields.clear(),this.core.off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)},n.prototype.onFieldAdded=function(e){var t=this,n=e.elements;n&&0!==n.length&&!this.addedFields.has(e.field)&&(this.addedFields.set(e.field,!0),n.forEach((function(n){var i=t.parseElement(n);if(!t.isEmptyOption(i)){var r={selector:e.options.selector,validators:Object.assign({},e.options.validators||{},i.validators)};t.core.setFieldOptions(e.field,r)}})))},n.prototype.onFieldRemoved=function(e){e.field&&this.addedFields.has(e.field)&&this.addedFields.delete(e.field)},n.prototype.parseOptions=function(){var e=this,t=this.opts.prefix,n={},i=this.core.getFields(),r=this.core.getFormElement();return[].slice.call(r.querySelectorAll("[name], [".concat(t,"field]"))).forEach((function(i){var r=e.parseElement(i);if(!e.isEmptyOption(r)){var s=i.getAttribute("name")||i.getAttribute("".concat(t,"field"));n[s]=Object.assign({},n[s],r)}})),Object.keys(n).forEach((function(e){Object.keys(n[e].validators).forEach((function(t){n[e].validators[t].enabled=n[e].validators[t].enabled||!1,i[e]&&i[e].validators&&i[e].validators[t]&&Object.assign(n[e].validators[t],i[e].validators[t])}))})),Object.assign({},i,n)},n.prototype.createPluginInstance=function(e,t){for(var n=e.split("."),i=window||this,r=0,s=n.length;r<s;r++)i=i[n[r]];if("function"!=typeof i)throw new Error("the plugin ".concat(e," doesn't exist"));return new i(t)},n.prototype.parsePlugins=function(){for(var e,t=this,n=this.core.getFormElement(),i=new RegExp("^".concat(this.opts.pluginPrefix,"([a-z0-9-]+)(___)*([a-z0-9-]+)*$")),r=n.attributes.length,s={},a=0;a<r;a++){var o=n.attributes[a].name,l=n.attributes[a].value,c=i.exec(o);if(c&&4===c.length){var u=this.toCamelCase(c[1]);s[u]=Object.assign({},c[3]?((e={})[this.toCamelCase(c[3])]=l,e):{enabled:""===l||"true"===l},s[u])}}Object.keys(s).forEach((function(e){var n=s[e],i=n.enabled,r=n.class;if(i&&r){delete n.enabled,delete n.clazz;var a=t.createPluginInstance(r,n);t.core.registerPlugin(e,a)}}))},n.prototype.isEmptyOption=function(e){var t=e.validators;return 0===Object.keys(t).length&&t.constructor===Object},n.prototype.parseElement=function(e){for(var t=new RegExp("^".concat(this.opts.prefix,"([a-z0-9-]+)(___)*([a-z0-9-]+)*$")),n=e.attributes.length,i={},r=e.getAttribute("type"),s=0;s<n;s++){var a=e.attributes[s].name,o=e.attributes[s].value;if(this.opts.html5Input)switch(!0){case"minlength"===a:i.stringLength=Object.assign({},{enabled:!0,min:parseInt(o,10)},i.stringLength);break;case"maxlength"===a:i.stringLength=Object.assign({},{enabled:!0,max:parseInt(o,10)},i.stringLength);break;case"pattern"===a:i.regexp=Object.assign({},{enabled:!0,regexp:o},i.regexp);break;case"required"===a:i.notEmpty=Object.assign({},{enabled:!0},i.notEmpty);break;case"type"===a&&"color"===o:i.color=Object.assign({},{enabled:!0,type:"hex"},i.color);break;case"type"===a&&"email"===o:i.emailAddress=Object.assign({},{enabled:!0},i.emailAddress);break;case"type"===a&&"url"===o:i.uri=Object.assign({},{enabled:!0},i.uri);break;case"type"===a&&"range"===o:i.between=Object.assign({},{enabled:!0,max:parseFloat(e.getAttribute("max")),min:parseFloat(e.getAttribute("min"))},i.between);break;case"min"===a&&"date"!==r&&"range"!==r:i.greaterThan=Object.assign({},{enabled:!0,min:parseFloat(o)},i.greaterThan);break;case"max"===a&&"date"!==r&&"range"!==r:i.lessThan=Object.assign({},{enabled:!0,max:parseFloat(o)},i.lessThan)}var l=t.exec(a);if(l&&4===l.length){var c=this.toCamelCase(l[1]);i[c]||(i[c]={}),l[3]?i[c][this.toCamelCase(l[3])]=this.normalizeValue(o):!0===i[c].enabled&&!1===i[c].enabled||(i[c].enabled=""===o||"true"===o)}}return{validators:i}},n.prototype.normalizeValue=function(e){return"true"===e||""===e||"false"!==e&&e},n.prototype.toUpperCase=function(e){return e.charAt(1).toUpperCase()},n.prototype.toCamelCase=function(e){return e.replace(/-./g,this.toUpperCase)},n}(s.Plugin);return m.Declarative=t,m}();var g,v=p.exports,y={exports:{}},b={};y.exports=function(){if(g)return b;g=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(){var e=t.call(this,{})||this;return e.onValidHandler=e.onFormValid.bind(e),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){if(this.core.getFormElement().querySelectorAll('[type="submit"][name="submit"]').length)throw new Error("Do not use `submit` for the name attribute of submit button");this.core.on("core.form.valid",this.onValidHandler)},n.prototype.uninstall=function(){this.core.off("core.form.valid",this.onValidHandler)},n.prototype.onFormValid=function(){var e=this.core.getFormElement();this.isEnabled&&e instanceof HTMLFormElement&&e.submit()},n}(s.Plugin);return b.DefaultSubmit=t,b}();var x,_=y.exports,w={exports:{}},k={};w.exports=function(){if(x)return k;x=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.opts=e||{},n.triggerExecutedHandler=n.onTriggerExecuted.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.on("plugins.trigger.executed",this.triggerExecutedHandler)},n.prototype.uninstall=function(){this.core.off("plugins.trigger.executed",this.triggerExecutedHandler)},n.prototype.onTriggerExecuted=function(e){if(this.isEnabled&&this.opts[e.field])for(var t=0,n=this.opts[e.field].split(" ");t<n.length;t++){var i=n[t].trim();this.opts[i]&&this.core.revalidateField(i)}},n}(s.Plugin);return k.Dependency=t,k}();var M,S=w.exports,A={exports:{}},L={};A.exports=function(){if(M)return L;M=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.removeUndefined,i=function(e){function i(t){var r=e.call(this,t)||this;return r.opts=Object.assign({},{excluded:i.defaultIgnore},n(t)),r.ignoreValidationFilter=r.ignoreValidation.bind(r),r}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.defaultIgnore=function(e,t,n){var i=!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length),r=t.getAttribute("disabled");return""===r||"disabled"===r||"hidden"===t.getAttribute("type")||!i},i.prototype.install=function(){this.core.registerFilter("element-ignored",this.ignoreValidationFilter)},i.prototype.uninstall=function(){this.core.deregisterFilter("element-ignored",this.ignoreValidationFilter)},i.prototype.ignoreValidation=function(e,t,n){return!!this.isEnabled&&this.opts.excluded.apply(this,[e,t,n])},i}(e.Plugin);return L.Excluded=i,L}();var T,C=A.exports,D={exports:{}},E={};D.exports=function(){if(T)return E;T=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.statuses=new Map,n.opts=Object.assign({},{onStatusChanged:function(){}},e),n.elementValidatingHandler=n.onElementValidating.bind(n),n.elementValidatedHandler=n.onElementValidated.bind(n),n.elementNotValidatedHandler=n.onElementNotValidated.bind(n),n.elementIgnoredHandler=n.onElementIgnored.bind(n),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)},n.prototype.uninstall=function(){this.statuses.clear(),this.core.off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)},n.prototype.areFieldsValid=function(){return Array.from(this.statuses.values()).every((function(e){return"Valid"===e||"NotValidated"===e||"Ignored"===e}))},n.prototype.getStatuses=function(){return this.isEnabled?this.statuses:new Map},n.prototype.onFieldAdded=function(e){this.statuses.set(e.field,"NotValidated")},n.prototype.onFieldRemoved=function(e){this.statuses.has(e.field)&&this.statuses.delete(e.field),this.handleStatusChanged(this.areFieldsValid())},n.prototype.onElementValidating=function(e){this.statuses.set(e.field,"Validating"),this.handleStatusChanged(!1)},n.prototype.onElementValidated=function(e){this.statuses.set(e.field,e.valid?"Valid":"Invalid"),e.valid?this.handleStatusChanged(this.areFieldsValid()):this.handleStatusChanged(!1)},n.prototype.onElementNotValidated=function(e){this.statuses.set(e.field,"NotValidated"),this.handleStatusChanged(!1)},n.prototype.onElementIgnored=function(e){this.statuses.set(e.field,"Ignored"),this.handleStatusChanged(this.areFieldsValid())},n.prototype.handleStatusChanged=function(e){this.isEnabled&&this.opts.onStatusChanged(e)},n}(s.Plugin);return E.FieldStatus=t,E}();var O,P=D.exports,Y={exports:{}},I={},N={exports:{}},H={};N.exports=function(){if(O)return H;O=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.classSet,i=function(e){function i(t){var n=e.call(this,t)||this;return n.useDefaultContainer=!1,n.messages=new Map,n.defaultContainer=document.createElement("div"),n.useDefaultContainer=!t||!t.container,n.opts=Object.assign({},{container:function(e,t){return n.defaultContainer}},t),n.elementIgnoredHandler=n.onElementIgnored.bind(n),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n.validatorValidatedHandler=n.onValidatorValidated.bind(n),n.validatorNotValidatedHandler=n.onValidatorNotValidated.bind(n),n}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.getClosestContainer=function(e,t,n){for(var i=e;i&&i!==t&&(i=i.parentElement,!n.test(i.className)););return i},i.prototype.install=function(){this.useDefaultContainer&&this.core.getFormElement().appendChild(this.defaultContainer),this.core.on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler).on("core.validator.validated",this.validatorValidatedHandler).on("core.validator.notvalidated",this.validatorNotValidatedHandler)},i.prototype.uninstall=function(){this.useDefaultContainer&&this.core.getFormElement().removeChild(this.defaultContainer),this.messages.forEach((function(e){return e.parentNode.removeChild(e)})),this.messages.clear(),this.core.off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler).off("core.validator.validated",this.validatorValidatedHandler).off("core.validator.notvalidated",this.validatorNotValidatedHandler)},i.prototype.onEnabled=function(){this.messages.forEach((function(e,t,i){n(t,{"fv-plugins-message-container--enabled":!0,"fv-plugins-message-container--disabled":!1})}))},i.prototype.onDisabled=function(){this.messages.forEach((function(e,t,i){n(t,{"fv-plugins-message-container--enabled":!1,"fv-plugins-message-container--disabled":!0})}))},i.prototype.onFieldAdded=function(e){var t=this,n=e.elements;n&&(n.forEach((function(e){var n=t.messages.get(e);n&&(n.parentNode.removeChild(n),t.messages.delete(e))})),this.prepareFieldContainer(e.field,n))},i.prototype.onFieldRemoved=function(e){var t=this;if(e.elements.length&&e.field){var n=e.elements[0].getAttribute("type");("radio"===n||"checkbox"===n?[e.elements[0]]:e.elements).forEach((function(e){if(t.messages.has(e)){var n=t.messages.get(e);n.parentNode.removeChild(n),t.messages.delete(e)}}))}},i.prototype.prepareFieldContainer=function(e,t){var n=this;if(t.length){var i=t[0].getAttribute("type");"radio"===i||"checkbox"===i?this.prepareElementContainer(e,t[0],t):t.forEach((function(i){return n.prepareElementContainer(e,i,t)}))}},i.prototype.prepareElementContainer=function(e,t,i){var r;if("string"==typeof this.opts.container){var s="#"===this.opts.container.charAt(0)?'[id="'.concat(this.opts.container.substring(1),'"]'):this.opts.container;r=this.core.getFormElement().querySelector(s)}else r=this.opts.container(e,t);var a=document.createElement("div");r.appendChild(a),n(a,{"fv-plugins-message-container":!0,"fv-plugins-message-container--enabled":this.isEnabled,"fv-plugins-message-container--disabled":!this.isEnabled}),this.core.emit("plugins.message.placed",{element:t,elements:i,field:e,messageElement:a}),this.messages.set(t,a)},i.prototype.getMessage=function(e){return"string"==typeof e.message?e.message:e.message[this.core.getLocale()]},i.prototype.onValidatorValidated=function(e){var t,i=e.elements,r=e.element.getAttribute("type"),s=("radio"===r||"checkbox"===r)&&i.length>0?i[0]:e.element;if(this.messages.has(s)){var a=this.messages.get(s),o=a.querySelector('[data-field="'.concat(e.field.replace(/"/g,'\\"'),'"][data-validator="').concat(e.validator.replace(/"/g,'\\"'),'"]'));if(o||e.result.valid)o&&!e.result.valid?(o.innerHTML=this.getMessage(e.result),this.core.emit("plugins.message.displayed",{element:e.element,field:e.field,message:e.result.message,messageElement:o,meta:e.result.meta,validator:e.validator})):o&&e.result.valid&&a.removeChild(o);else{var l=document.createElement("div");l.innerHTML=this.getMessage(e.result),l.setAttribute("data-field",e.field),l.setAttribute("data-validator",e.validator),this.opts.clazz&&n(l,((t={})[this.opts.clazz]=!0,t)),a.appendChild(l),this.core.emit("plugins.message.displayed",{element:e.element,field:e.field,message:e.result.message,messageElement:l,meta:e.result.meta,validator:e.validator})}}},i.prototype.onValidatorNotValidated=function(e){var t=e.elements,n=e.element.getAttribute("type"),i="radio"===n||"checkbox"===n?t[0]:e.element;if(this.messages.has(i)){var r=this.messages.get(i),s=r.querySelector('[data-field="'.concat(e.field.replace(/"/g,'\\"'),'"][data-validator="').concat(e.validator.replace(/"/g,'\\"'),'"]'));s&&r.removeChild(s)}},i.prototype.onElementIgnored=function(e){var t=e.elements,n=e.element.getAttribute("type"),i="radio"===n||"checkbox"===n?t[0]:e.element;if(this.messages.has(i)){var r=this.messages.get(i);[].slice.call(r.querySelectorAll('[data-field="'.concat(e.field.replace(/"/g,'\\"'),'"]'))).forEach((function(e){r.removeChild(e)}))}},i}(e.Plugin);return H.Message=i,H}();var j,F=N.exports;
/** 
     * FormValidation (https://formvalidation.io)
     * The best validation library for JavaScript
     * (c) 2013 - 2023 Nguyen Huu Phuoc <me@phuoc.ng>
     *
     * @license https://formvalidation.io/license
     * @package @form-validation/plugin-framework
     * @version 2.4.0
     */Y.exports=function(){if(j)return I;j=1;var e=s,t=F,n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},i=e.utils.classSet,r=e.utils.closest,a=function(e){function s(t){var n=e.call(this,t)||this;return n.results=new Map,n.containers=new Map,n.opts=Object.assign({},{defaultMessageContainer:!0,eleInvalidClass:"",eleValidClass:"",rowClasses:"",rowValidatingClass:""},t),n.elementIgnoredHandler=n.onElementIgnored.bind(n),n.elementValidatingHandler=n.onElementValidating.bind(n),n.elementValidatedHandler=n.onElementValidated.bind(n),n.elementNotValidatedHandler=n.onElementNotValidated.bind(n),n.iconPlacedHandler=n.onIconPlaced.bind(n),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n.messagePlacedHandler=n.onMessagePlaced.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(s,e),s.prototype.install=function(){var e,n=this;i(this.core.getFormElement(),((e={})[this.opts.formClass]=!0,e["fv-plugins-framework"]=!0,e)),this.core.on("core.element.ignored",this.elementIgnoredHandler).on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("plugins.icon.placed",this.iconPlacedHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler),this.opts.defaultMessageContainer&&(this.core.registerPlugin(s.MESSAGE_PLUGIN,new t.Message({clazz:this.opts.messageClass,container:function(e,i){var s="string"==typeof n.opts.rowSelector?n.opts.rowSelector:n.opts.rowSelector(e,i),a=r(i,s);return t.Message.getClosestContainer(i,a,n.opts.rowPattern)}})),this.core.on("plugins.message.placed",this.messagePlacedHandler))},s.prototype.uninstall=function(){var e;this.results.clear(),this.containers.clear(),i(this.core.getFormElement(),((e={})[this.opts.formClass]=!1,e["fv-plugins-framework"]=!1,e)),this.core.off("core.element.ignored",this.elementIgnoredHandler).off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("plugins.icon.placed",this.iconPlacedHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler),this.opts.defaultMessageContainer&&(this.core.deregisterPlugin(s.MESSAGE_PLUGIN),this.core.off("plugins.message.placed",this.messagePlacedHandler))},s.prototype.onEnabled=function(){var e;i(this.core.getFormElement(),((e={})[this.opts.formClass]=!0,e)),this.opts.defaultMessageContainer&&this.core.enablePlugin(s.MESSAGE_PLUGIN)},s.prototype.onDisabled=function(){var e;i(this.core.getFormElement(),((e={})[this.opts.formClass]=!1,e)),this.opts.defaultMessageContainer&&this.core.disablePlugin(s.MESSAGE_PLUGIN)},s.prototype.onIconPlaced=function(e){},s.prototype.onMessagePlaced=function(e){},s.prototype.onFieldAdded=function(e){var t=this,n=e.elements;n&&(n.forEach((function(e){var n,r=t.containers.get(e);r&&(i(r,((n={})[t.opts.rowInvalidClass]=!1,n[t.opts.rowValidatingClass]=!1,n[t.opts.rowValidClass]=!1,n["fv-plugins-icon-container"]=!1,n)),t.containers.delete(e))})),this.prepareFieldContainer(e.field,n))},s.prototype.onFieldRemoved=function(e){var t=this;e.elements.forEach((function(e){var n,r=t.containers.get(e);r&&i(r,((n={})[t.opts.rowInvalidClass]=!1,n[t.opts.rowValidatingClass]=!1,n[t.opts.rowValidClass]=!1,n))}))},s.prototype.prepareFieldContainer=function(e,t){var n=this;if(t.length){var i=t[0].getAttribute("type");"radio"===i||"checkbox"===i?this.prepareElementContainer(e,t[0]):t.forEach((function(t){return n.prepareElementContainer(e,t)}))}},s.prototype.prepareElementContainer=function(e,t){var n,s="string"==typeof this.opts.rowSelector?this.opts.rowSelector:this.opts.rowSelector(e,t),a=r(t,s);a!==t&&(i(a,((n={})[this.opts.rowClasses]=!0,n["fv-plugins-icon-container"]=!0,n)),this.containers.set(t,a))},s.prototype.onElementValidating=function(e){this.removeClasses(e.element,e.elements)},s.prototype.onElementNotValidated=function(e){this.removeClasses(e.element,e.elements)},s.prototype.onElementIgnored=function(e){this.removeClasses(e.element,e.elements)},s.prototype.removeClasses=function(e,t){var n,r=this,s=e.getAttribute("type"),a="radio"===s||"checkbox"===s?t[0]:e;t.forEach((function(e){var t;i(e,((t={})[r.opts.eleValidClass]=!1,t[r.opts.eleInvalidClass]=!1,t))}));var o=this.containers.get(a);o&&i(o,((n={})[this.opts.rowInvalidClass]=!1,n[this.opts.rowValidatingClass]=!1,n[this.opts.rowValidClass]=!1,n))},s.prototype.onElementValidated=function(e){var t,n,r=this,s=e.elements,a=e.element.getAttribute("type"),o="radio"===a||"checkbox"===a?s[0]:e.element;s.forEach((function(t){var n;i(t,((n={})[r.opts.eleValidClass]=e.valid,n[r.opts.eleInvalidClass]=!e.valid,n))}));var l=this.containers.get(o);if(l)if(e.valid){this.results.delete(o);var c=!0;this.containers.forEach((function(e,t){e===l&&!1===r.results.get(t)&&(c=!1)})),c&&i(l,((n={})[this.opts.rowInvalidClass]=!1,n[this.opts.rowValidatingClass]=!1,n[this.opts.rowValidClass]=!0,n))}else this.results.set(o,!1),i(l,((t={})[this.opts.rowInvalidClass]=!0,t[this.opts.rowValidatingClass]=!1,t[this.opts.rowValidClass]=!1,t))},s.MESSAGE_PLUGIN="___frameworkMessage",s}(e.Plugin);return I.Framework=a,I}();var R,z=Y.exports,B={exports:{}},V={};B.exports=function(){if(R)return V;R=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.classSet,i=function(e){function i(t){var n=e.call(this,t)||this;return n.icons=new Map,n.opts=Object.assign({},{invalid:"fv-plugins-icon--invalid",onPlaced:function(){},onSet:function(){},valid:"fv-plugins-icon--valid",validating:"fv-plugins-icon--validating"},t),n.elementValidatingHandler=n.onElementValidating.bind(n),n.elementValidatedHandler=n.onElementValidated.bind(n),n.elementNotValidatedHandler=n.onElementNotValidated.bind(n),n.elementIgnoredHandler=n.onElementIgnored.bind(n),n.fieldAddedHandler=n.onFieldAdded.bind(n),n}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.prototype.install=function(){this.core.on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler)},i.prototype.uninstall=function(){this.icons.forEach((function(e){return e.parentNode.removeChild(e)})),this.icons.clear(),this.core.off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler)},i.prototype.onEnabled=function(){this.icons.forEach((function(e,t,i){n(t,{"fv-plugins-icon--enabled":!0,"fv-plugins-icon--disabled":!1})}))},i.prototype.onDisabled=function(){this.icons.forEach((function(e,t,i){n(t,{"fv-plugins-icon--enabled":!1,"fv-plugins-icon--disabled":!0})}))},i.prototype.onFieldAdded=function(e){var t=this,n=e.elements;n&&(n.forEach((function(e){var n=t.icons.get(e);n&&(n.parentNode.removeChild(n),t.icons.delete(e))})),this.prepareFieldIcon(e.field,n))},i.prototype.prepareFieldIcon=function(e,t){var n=this;if(t.length){var i=t[0].getAttribute("type");"radio"===i||"checkbox"===i?this.prepareElementIcon(e,t[0]):t.forEach((function(t){return n.prepareElementIcon(e,t)}))}},i.prototype.prepareElementIcon=function(e,t){var i=document.createElement("i");i.setAttribute("data-field",e),t.parentNode.insertBefore(i,t.nextSibling),n(i,{"fv-plugins-icon":!0,"fv-plugins-icon--enabled":this.isEnabled,"fv-plugins-icon--disabled":!this.isEnabled});var r={classes:{invalid:this.opts.invalid,valid:this.opts.valid,validating:this.opts.validating},element:t,field:e,iconElement:i};this.core.emit("plugins.icon.placed",r),this.opts.onPlaced(r),this.icons.set(t,i)},i.prototype.onElementValidating=function(e){var t,n=this.setClasses(e.field,e.element,e.elements,((t={})[this.opts.invalid]=!1,t[this.opts.valid]=!1,t[this.opts.validating]=!0,t)),i={element:e.element,field:e.field,iconElement:n,status:"Validating"};this.core.emit("plugins.icon.set",i),this.opts.onSet(i)},i.prototype.onElementValidated=function(e){var t,n=this.setClasses(e.field,e.element,e.elements,((t={})[this.opts.invalid]=!e.valid,t[this.opts.valid]=e.valid,t[this.opts.validating]=!1,t)),i={element:e.element,field:e.field,iconElement:n,status:e.valid?"Valid":"Invalid"};this.core.emit("plugins.icon.set",i),this.opts.onSet(i)},i.prototype.onElementNotValidated=function(e){var t,n=this.setClasses(e.field,e.element,e.elements,((t={})[this.opts.invalid]=!1,t[this.opts.valid]=!1,t[this.opts.validating]=!1,t)),i={element:e.element,field:e.field,iconElement:n,status:"NotValidated"};this.core.emit("plugins.icon.set",i),this.opts.onSet(i)},i.prototype.onElementIgnored=function(e){var t,n=this.setClasses(e.field,e.element,e.elements,((t={})[this.opts.invalid]=!1,t[this.opts.valid]=!1,t[this.opts.validating]=!1,t)),i={element:e.element,field:e.field,iconElement:n,status:"Ignored"};this.core.emit("plugins.icon.set",i),this.opts.onSet(i)},i.prototype.setClasses=function(e,t,i,r){var s=t.getAttribute("type"),a="radio"===s||"checkbox"===s?i[0]:t;if(this.icons.has(a)){var o=this.icons.get(a);return n(o,r),o}return null},i}(e.Plugin);return V.Icon=i,V}();var W,q=B.exports,U={exports:{}},$={};U.exports=function(){if(W)return $;W=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.removeUndefined,i=function(e){function i(t){var i=e.call(this,t)||this;return i.invalidFields=new Map,i.opts=Object.assign({},{enabled:!0},n(t)),i.validatorHandler=i.onValidatorValidated.bind(i),i.shouldValidateFilter=i.shouldValidate.bind(i),i.fieldAddedHandler=i.onFieldAdded.bind(i),i.elementNotValidatedHandler=i.onElementNotValidated.bind(i),i.elementValidatingHandler=i.onElementValidating.bind(i),i}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.prototype.install=function(){this.core.on("core.validator.validated",this.validatorHandler).on("core.field.added",this.fieldAddedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.validating",this.elementValidatingHandler).registerFilter("field-should-validate",this.shouldValidateFilter)},i.prototype.uninstall=function(){this.invalidFields.clear(),this.core.off("core.validator.validated",this.validatorHandler).off("core.field.added",this.fieldAddedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.validating",this.elementValidatingHandler).deregisterFilter("field-should-validate",this.shouldValidateFilter)},i.prototype.shouldValidate=function(e,t,n,i){return!this.isEnabled||!((!0===this.opts.enabled||!0===this.opts.enabled[e])&&this.invalidFields.has(t)&&this.invalidFields.get(t).length&&-1===this.invalidFields.get(t).indexOf(i))},i.prototype.onValidatorValidated=function(e){var t=this.invalidFields.has(e.element)?this.invalidFields.get(e.element):[],n=t.indexOf(e.validator);e.result.valid&&n>=0?t.splice(n,1):e.result.valid||-1!==n||t.push(e.validator),this.invalidFields.set(e.element,t)},i.prototype.onFieldAdded=function(e){e.elements&&this.clearInvalidFields(e.elements)},i.prototype.onElementNotValidated=function(e){this.clearInvalidFields(e.elements)},i.prototype.onElementValidating=function(e){this.clearInvalidFields(e.elements)},i.prototype.clearInvalidFields=function(e){var t=this;e.forEach((function(e){return t.invalidFields.delete(e)}))},i}(e.Plugin);return $.Sequence=i,$}();var X,G=U.exports,Z={exports:{}},K={};Z.exports=function(){if(X)return K;X=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;return n.isFormValid=!1,n.isButtonClicked=!1,n.opts=Object.assign({},{aspNetButton:!1,buttons:function(e){return[].slice.call(e.querySelectorAll('[type="submit"]:not([formnovalidate])'))},liveMode:!0},e),n.submitHandler=n.handleSubmitEvent.bind(n),n.buttonClickHandler=n.handleClickEvent.bind(n),n.ignoreValidationFilter=n.ignoreValidation.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){var e=this;if(this.core.getFormElement()instanceof HTMLFormElement){var t=this.core.getFormElement();this.submitButtons=this.opts.buttons(t),t.setAttribute("novalidate","novalidate"),t.addEventListener("submit",this.submitHandler),this.hiddenClickedEle=document.createElement("input"),this.hiddenClickedEle.setAttribute("type","hidden"),t.appendChild(this.hiddenClickedEle),this.submitButtons.forEach((function(t){t.addEventListener("click",e.buttonClickHandler)})),this.core.registerFilter("element-ignored",this.ignoreValidationFilter)}},n.prototype.uninstall=function(){var e=this,t=this.core.getFormElement();t instanceof HTMLFormElement&&t.removeEventListener("submit",this.submitHandler),this.submitButtons.forEach((function(t){t.removeEventListener("click",e.buttonClickHandler)})),this.hiddenClickedEle.parentElement.removeChild(this.hiddenClickedEle),this.core.deregisterFilter("element-ignored",this.ignoreValidationFilter)},n.prototype.handleSubmitEvent=function(e){this.validateForm(e)},n.prototype.handleClickEvent=function(e){var t=e.currentTarget;if(this.isButtonClicked=!0,t instanceof HTMLElement)if(this.opts.aspNetButton&&!0===this.isFormValid);else{this.core.getFormElement().removeEventListener("submit",this.submitHandler),this.clickedButton=e.target;var n=this.clickedButton.getAttribute("name"),i=this.clickedButton.getAttribute("value");n&&i&&(this.hiddenClickedEle.setAttribute("name",n),this.hiddenClickedEle.setAttribute("value",i)),this.validateForm(e)}},n.prototype.validateForm=function(e){var t=this;this.isEnabled&&(e.preventDefault(),this.core.validate().then((function(e){"Valid"===e&&t.opts.aspNetButton&&!t.isFormValid&&t.clickedButton&&(t.isFormValid=!0,t.clickedButton.removeEventListener("click",t.buttonClickHandler),t.clickedButton.click())})))},n.prototype.ignoreValidation=function(e,t,n){return!!this.isEnabled&&!this.opts.liveMode&&!this.isButtonClicked},n}(s.Plugin);return K.SubmitButton=t,K}();var J,Q=Z.exports,ee={exports:{}},te={};ee.exports=function(){if(J)return te;J=1;var e=s,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},n=e.utils.classSet,i=function(e){function i(t){var n=e.call(this,t)||this;return n.messages=new Map,n.opts=Object.assign({},{placement:"top",trigger:"click"},t),n.iconPlacedHandler=n.onIconPlaced.bind(n),n.validatorValidatedHandler=n.onValidatorValidated.bind(n),n.elementValidatedHandler=n.onElementValidated.bind(n),n.documentClickHandler=n.onDocumentClicked.bind(n),n}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(i,e),i.prototype.install=function(){var e;this.tip=document.createElement("div"),n(this.tip,((e={"fv-plugins-tooltip":!0})["fv-plugins-tooltip--".concat(this.opts.placement)]=!0,e)),document.body.appendChild(this.tip),this.core.on("plugins.icon.placed",this.iconPlacedHandler).on("core.validator.validated",this.validatorValidatedHandler).on("core.element.validated",this.elementValidatedHandler),"click"===this.opts.trigger&&document.addEventListener("click",this.documentClickHandler)},i.prototype.uninstall=function(){this.messages.clear(),document.body.removeChild(this.tip),this.core.off("plugins.icon.placed",this.iconPlacedHandler).off("core.validator.validated",this.validatorValidatedHandler).off("core.element.validated",this.elementValidatedHandler),"click"===this.opts.trigger&&document.removeEventListener("click",this.documentClickHandler)},i.prototype.onIconPlaced=function(e){var t=this;n(e.iconElement,{"fv-plugins-tooltip-icon":!0}),"hover"===this.opts.trigger?(e.iconElement.addEventListener("mouseenter",(function(n){return t.show(e.element,n)})),e.iconElement.addEventListener("mouseleave",(function(e){return t.hide()}))):e.iconElement.addEventListener("click",(function(n){return t.show(e.element,n)}))},i.prototype.onValidatorValidated=function(e){if(!e.result.valid){var t=e.elements,n=e.element.getAttribute("type"),i="radio"===n||"checkbox"===n?t[0]:e.element,r="string"==typeof e.result.message?e.result.message:e.result.message[this.core.getLocale()];this.messages.set(i,r)}},i.prototype.onElementValidated=function(e){if(e.valid){var t=e.elements,n=e.element.getAttribute("type"),i="radio"===n||"checkbox"===n?t[0]:e.element;this.messages.delete(i)}},i.prototype.onDocumentClicked=function(e){this.hide()},i.prototype.show=function(e,t){if(this.isEnabled&&(t.preventDefault(),t.stopPropagation(),this.messages.has(e))){n(this.tip,{"fv-plugins-tooltip--hide":!1}),this.tip.innerHTML='<div class="fv-plugins-tooltip__content">'.concat(this.messages.get(e),"</div>");var i=t.target.getBoundingClientRect(),r=this.tip.getBoundingClientRect(),s=r.height,a=r.width,o=0,l=0;switch(this.opts.placement){case"bottom":o=i.top+i.height,l=i.left+i.width/2-a/2;break;case"bottom-left":o=i.top+i.height,l=i.left;break;case"bottom-right":o=i.top+i.height,l=i.left+i.width-a;break;case"left":o=i.top+i.height/2-s/2,l=i.left-a;break;case"right":o=i.top+i.height/2-s/2,l=i.left+i.width;break;case"top-left":o=i.top-s,l=i.left;break;case"top-right":o=i.top-s,l=i.left+i.width-a;break;default:o=i.top-s,l=i.left+i.width/2-a/2}o+=window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0,l+=window.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft||0,this.tip.setAttribute("style","top: ".concat(o,"px; left: ").concat(l,"px"))}},i.prototype.hide=function(){this.isEnabled&&n(this.tip,{"fv-plugins-tooltip--hide":!0})},i}(e.Plugin);return te.Tooltip=i,te}();var ne,ie=ee.exports,re={exports:{}},se={};re.exports=function(){if(ne)return se;ne=1;var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},t=function(t){function n(e){var n=t.call(this,e)||this;n.handlers=[],n.timers=new Map;var i=document.createElement("div");return n.defaultEvent="oninput"in i?"input":"keyup",n.opts=Object.assign({},{delay:0,event:n.defaultEvent,threshold:0},e),n.fieldAddedHandler=n.onFieldAdded.bind(n),n.fieldRemovedHandler=n.onFieldRemoved.bind(n),n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,t),n.prototype.install=function(){this.core.on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)},n.prototype.uninstall=function(){this.handlers.forEach((function(e){return e.element.removeEventListener(e.event,e.handler)})),this.handlers=[],this.timers.forEach((function(e){return window.clearTimeout(e)})),this.timers.clear(),this.core.off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)},n.prototype.prepareHandler=function(e,t){var n=this;t.forEach((function(t){var i=[];if(n.opts.event&&!1===n.opts.event[e])i=[];else if(n.opts.event&&n.opts.event[e]&&"function"!=typeof n.opts.event[e])i=n.opts.event[e].split(" ");else if("string"==typeof n.opts.event&&n.opts.event!==n.defaultEvent)i=n.opts.event.split(" ");else{var r=t.getAttribute("type"),s=t.tagName.toLowerCase();i=["radio"===r||"checkbox"===r||"file"===r||"select"===s?"change":n.ieVersion>=10&&t.getAttribute("placeholder")?"keyup":n.defaultEvent]}i.forEach((function(i){var r=function(i){return n.handleEvent(i,e,t)};n.handlers.push({element:t,event:i,field:e,handler:r}),t.addEventListener(i,r)}))}))},n.prototype.handleEvent=function(e,t,n){var i=this;if(this.isEnabled&&this.exceedThreshold(t,n)&&this.core.executeFilter("plugins-trigger-should-validate",!0,[t,n])){var r=function(){return i.core.validateElement(t,n).then((function(r){i.core.emit("plugins.trigger.executed",{element:n,event:e,field:t})}))},s=this.opts.delay[t]||this.opts.delay;if(0===s)r();else{var a=this.timers.get(n);a&&window.clearTimeout(a),this.timers.set(n,window.setTimeout(r,1e3*s))}}},n.prototype.onFieldAdded=function(e){this.handlers.filter((function(t){return t.field===e.field})).forEach((function(e){return e.element.removeEventListener(e.event,e.handler)})),this.prepareHandler(e.field,e.elements)},n.prototype.onFieldRemoved=function(e){this.handlers.filter((function(t){return t.field===e.field&&e.elements.indexOf(t.element)>=0})).forEach((function(e){return e.element.removeEventListener(e.event,e.handler)}))},n.prototype.exceedThreshold=function(e,t){var n=0!==this.opts.threshold[e]&&0!==this.opts.threshold&&(this.opts.threshold[e]||this.opts.threshold);if(!n)return!0;var i=t.getAttribute("type");return-1!==["button","checkbox","file","hidden","image","radio","reset","submit"].indexOf(i)||this.core.getElementValue(e,t).length>=n},n}(s.Plugin);return se.Trigger=t,se}();var ae,oe=re.exports,le={exports:{}},ce={};le.exports=function(){if(ae)return ce;ae=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return ce.between=function(){var e=function(e){return parseFloat("".concat(e).replace(",","."))};return{validate:function(i){var r=i.value;if(""===r)return{valid:!0};var s=Object.assign({},{inclusive:!0,message:""},n(i.options)),a=e(s.min),o=e(s.max);return s.inclusive?{message:t(i.l10n?s.message||i.l10n.between.default:s.message,["".concat(a),"".concat(o)]),valid:parseFloat(r)>=a&&parseFloat(r)<=o}:{message:t(i.l10n?s.message||i.l10n.between.notInclusive:s.message,["".concat(a),"".concat(o)]),valid:parseFloat(r)>a&&parseFloat(r)<o}}}},ce}();var ue,de=le.exports,he={exports:{}},fe={};he.exports=(ue||(ue=1,fe.blank=function(){return{validate:function(e){return{valid:!0}}}}),fe);var pe,me=he.exports,ge={exports:{}},ve={};ge.exports=function(){if(pe)return ve;pe=1;var e=s.utils.call;return ve.callback=function(){return{validate:function(t){var n=e(t.options.callback,[t]);return"boolean"==typeof n?{valid:n}:n}}},ve}();var ye,be=ge.exports,xe={exports:{}},_e={};xe.exports=function(){if(ye)return _e;ye=1;var e=s.utils.format;return _e.choice=function(){return{validate:function(t){var n="select"===t.element.tagName.toLowerCase()?t.element.querySelectorAll("option:checked").length:t.elements.filter((function(e){return e.checked})).length,i=t.options.min?"".concat(t.options.min):"",r=t.options.max?"".concat(t.options.max):"",s=t.l10n?t.options.message||t.l10n.choice.default:t.options.message,a=!(i&&n<parseInt(i,10)||r&&n>parseInt(r,10));switch(!0){case!!i&&!!r:s=e(t.l10n?t.l10n.choice.between:t.options.message,[i,r]);break;case!!i:s=e(t.l10n?t.l10n.choice.more:t.options.message,i);break;case!!r:s=e(t.l10n?t.l10n.choice.less:t.options.message,r)}return{message:s,valid:a}}}},_e}();var we,ke=xe.exports,Me={exports:{}},Se={};Me.exports=function(){if(we)return Se;we=1;var e=s.algorithms.luhn,t={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DANKORT:{length:[16],prefix:["5019"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},ELO:{length:[16],prefix:["4011","4312","4389","4514","4573","4576","5041","5066","5067","509","6277","6362","6363","650","6516","6550"]},FORBRUGSFORENINGEN:{length:[16],prefix:["600722"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","5868","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]},VISA_ELECTRON:{length:[16],prefix:["4026","417500","4405","4508","4844","4913","4917"]}};return Se.CREDIT_CARD_TYPES=t,Se.creditCard=function(){return{validate:function(n){if(""===n.value)return{meta:{type:null},valid:!0};if(/[^0-9-\s]+/.test(n.value))return{meta:{type:null},valid:!1};var i=n.value.replace(/\D/g,"");if(!e(i))return{meta:{type:null},valid:!1};for(var r=0,s=Object.keys(t);r<s.length;r++){var a=s[r];for(var o in t[a].prefix)if(n.value.substr(0,t[a].prefix[o].length)===t[a].prefix[o]&&-1!==t[a].length.indexOf(i.length))return{meta:{type:a},valid:!0}}return{meta:{type:null},valid:!1}}}},Se}();var Ae,Le=Me.exports,Te={exports:{}},Ce={};Te.exports=function(){if(Ae)return Ce;Ae=1;var e=s,t=e.utils.format,n=e.utils.isValidDate,i=e.utils.removeUndefined,r=function(e,t,n){var i=t.indexOf("YYYY"),r=t.indexOf("MM"),s=t.indexOf("DD");if(-1===i||-1===r||-1===s)return null;var a=e.split(" "),o=a[0].split(n);if(o.length<3)return null;var l=new Date(parseInt(o[i],10),parseInt(o[r],10)-1,parseInt(o[s],10)),c=a.length>2?a[2]:null;if(a.length>1){var u=a[1].split(":"),d=u.length>0?parseInt(u[0],10):0;l.setHours(c&&"PM"===c.toUpperCase()&&d<12?d+12:d),l.setMinutes(u.length>1?parseInt(u[1],10):0),l.setSeconds(u.length>2?parseInt(u[2],10):0)}return l},a=function(e,t){var n=t.replace(/Y/g,"y").replace(/M/g,"m").replace(/D/g,"d").replace(/:m/g,":M").replace(/:mm/g,":MM").replace(/:S/,":s").replace(/:SS/,":ss"),i=e.getDate(),r=i<10?"0".concat(i):i,s=e.getMonth()+1,a=s<10?"0".concat(s):s,o="".concat(e.getFullYear()).substr(2),l=e.getFullYear(),c=e.getHours()%12||12,u=c<10?"0".concat(c):c,d=e.getHours(),h=d<10?"0".concat(d):d,f=e.getMinutes(),p=f<10?"0".concat(f):f,m=e.getSeconds(),g=m<10?"0".concat(m):m,v={H:"".concat(d),HH:"".concat(h),M:"".concat(f),MM:"".concat(p),d:"".concat(i),dd:"".concat(r),h:"".concat(c),hh:"".concat(u),m:"".concat(s),mm:"".concat(a),s:"".concat(m),ss:"".concat(g),yy:"".concat(o),yyyy:"".concat(l)};return n.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMs])\1?|"[^"]*"|'[^']*'/g,(function(e){return v[e]?v[e]:e.slice(1,e.length-1)}))};return Ce.date=function(){return{validate:function(e){if(""===e.value)return{meta:{date:null},valid:!0};var s=Object.assign({},{format:e.element&&"date"===e.element.getAttribute("type")?"YYYY-MM-DD":"MM/DD/YYYY",message:""},i(e.options)),o=e.l10n?e.l10n.date.default:s.message,l={message:"".concat(o),meta:{date:null},valid:!1},c=s.format.split(" "),u=c.length>1?c[1]:null,d=c.length>2?c[2]:null,h=e.value.split(" "),f=h[0],p=h.length>1?h[1]:null,m=h.length>2?h[2]:null;if(c.length!==h.length)return l;var g=s.separator||(-1!==f.indexOf("/")?"/":-1!==f.indexOf("-")?"-":-1!==f.indexOf(".")?".":"/");if(null===g||-1===f.indexOf(g))return l;var v=f.split(g),y=c[0].split(g);if(v.length!==y.length)return l;var b=v[y.indexOf("YYYY")],x=v[y.indexOf("MM")],_=v[y.indexOf("DD")];if(!/^\d+$/.test(b)||!/^\d+$/.test(x)||!/^\d+$/.test(_)||b.length>4||x.length>2||_.length>2)return l;var w=parseInt(b,10),k=parseInt(x,10),M=parseInt(_,10);if(!n(w,k,M))return l;var S=new Date(w,k-1,M);if(u){var A=p.split(":");if(u.split(":").length!==A.length)return l;var L=A.length>0?A[0].length<=2&&/^\d+$/.test(A[0])?parseInt(A[0],10):-1:0,T=A.length>1?A[1].length<=2&&/^\d+$/.test(A[1])?parseInt(A[1],10):-1:0,C=A.length>2?A[2].length<=2&&/^\d+$/.test(A[2])?parseInt(A[2],10):-1:0;if(-1===L||-1===T||-1===C)return l;if(C<0||C>60)return l;if(L<0||L>=24||d&&L>12)return l;if(T<0||T>59)return l;S.setHours(m&&"PM"===m.toUpperCase()&&L<12?L+12:L),S.setMinutes(T),S.setSeconds(C)}var D="function"==typeof s.min?s.min():s.min,E=D instanceof Date?D:D?r(D,y,g):S,O="function"==typeof s.max?s.max():s.max,P=O instanceof Date?O:O?r(O,y,g):S,Y=D instanceof Date?a(E,s.format):D,I=O instanceof Date?a(P,s.format):O;switch(!0){case!!Y&&!I:return{message:t(e.l10n?e.l10n.date.min:o,Y),meta:{date:S},valid:S.getTime()>=E.getTime()};case!!I&&!Y:return{message:t(e.l10n?e.l10n.date.max:o,I),meta:{date:S},valid:S.getTime()<=P.getTime()};case!!I&&!!Y:return{message:t(e.l10n?e.l10n.date.range:o,[Y,I]),meta:{date:S},valid:S.getTime()<=P.getTime()&&S.getTime()>=E.getTime()};default:return{message:"".concat(o),meta:{date:S},valid:!0}}}}},Ce}();var De,Ee=Te.exports,Oe={exports:{}},Pe={};Oe.exports=(De||(De=1,Pe.different=function(){return{validate:function(e){var t="function"==typeof e.options.compare?e.options.compare.call(this):e.options.compare;return{valid:""===t||e.value!==t}}}}),Pe);var Ye,Ie=Oe.exports,Ne={exports:{}},He={};Ne.exports=(Ye||(Ye=1,He.digits=function(){return{validate:function(e){return{valid:""===e.value||/^\d+$/.test(e.value)}}}}),He);var je,Fe=Ne.exports,Re={exports:{}},ze={};Re.exports=function(){if(je)return ze;je=1;var e=s.utils.removeUndefined,t=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,n=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/;return ze.emailAddress=function(){return{validate:function(i){if(""===i.value)return{valid:!0};var r=Object.assign({},{multiple:!1,requireGlobalDomain:!1,separator:/[,;]/},e(i.options)),s=r.requireGlobalDomain?n:t;if(!0===r.multiple||"true"==="".concat(r.multiple)){for(var a=r.separator||/[,;]/,o=function(e,t){for(var n=e.split(/"/),i=n.length,r=[],s="",a=0;a<i;a++)if(a%2==0){var o=n[a].split(t),l=o.length;if(1===l)s+=o[0];else{r.push(s+o[0]);for(var c=1;c<l-1;c++)r.push(o[c]);s=o[l-1]}}else s+='"'+n[a],a<i-1&&(s+='"');return r.push(s),r}(i.value,a),l=o.length,c=0;c<l;c++)if(!s.test(o[c]))return{valid:!1};return{valid:!0}}return{valid:s.test(i.value)}}}},ze}();var Be,Ve=Re.exports,We={exports:{}},qe={};We.exports=function(){if(Be)return qe;Be=1;var e=function(e){return-1===e.indexOf(".")?e:e.split(".").slice(0,-1).join(".")};return qe.file=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n,i,r=t.options.extension?t.options.extension.toLowerCase().split(",").map((function(e){return e.trim()})):[],s=t.options.type?t.options.type.toLowerCase().split(",").map((function(e){return e.trim()})):[];if(window.File&&window.FileList&&window.FileReader){var a=t.element.files,o=a.length,l=0;if(t.options.maxFiles&&o>parseInt("".concat(t.options.maxFiles),10))return{meta:{error:"INVALID_MAX_FILES"},valid:!1};if(t.options.minFiles&&o<parseInt("".concat(t.options.minFiles),10))return{meta:{error:"INVALID_MIN_FILES"},valid:!1};for(var c={},u=0;u<o;u++){if(l+=a[u].size,c={ext:n=a[u].name.substr(a[u].name.lastIndexOf(".")+1),file:a[u],size:a[u].size,type:a[u].type},t.options.minSize&&a[u].size<parseInt("".concat(t.options.minSize),10))return{meta:Object.assign({},{error:"INVALID_MIN_SIZE"},c),valid:!1};if(t.options.maxSize&&a[u].size>parseInt("".concat(t.options.maxSize),10))return{meta:Object.assign({},{error:"INVALID_MAX_SIZE"},c),valid:!1};if(r.length>0&&-1===r.indexOf(n.toLowerCase()))return{meta:Object.assign({},{error:"INVALID_EXTENSION"},c),valid:!1};if(s.length>0&&a[u].type&&-1===s.indexOf(a[u].type.toLowerCase()))return{meta:Object.assign({},{error:"INVALID_TYPE"},c),valid:!1};if(t.options.validateFileName&&!t.options.validateFileName(e(a[u].name)))return{meta:Object.assign({},{error:"INVALID_NAME"},c),valid:!1}}if(t.options.maxTotalSize&&l>parseInt("".concat(t.options.maxTotalSize),10))return{meta:Object.assign({},{error:"INVALID_MAX_TOTAL_SIZE",totalSize:l},c),valid:!1};if(t.options.minTotalSize&&l<parseInt("".concat(t.options.minTotalSize),10))return{meta:Object.assign({},{error:"INVALID_MIN_TOTAL_SIZE",totalSize:l},c),valid:!1}}else{if(n=t.value.substr(t.value.lastIndexOf(".")+1),r.length>0&&-1===r.indexOf(n.toLowerCase()))return{meta:{error:"INVALID_EXTENSION",ext:n},valid:!1};if(i=e(t.value),t.options.validateFileName&&!t.options.validateFileName(i))return{meta:{error:"INVALID_NAME",name:i},valid:!1}}return{valid:!0}}}},qe}();var Ue,$e=We.exports,Xe={exports:{}},Ge={};Xe.exports=function(){if(Ue)return Ge;Ue=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return Ge.greaterThan=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var i=Object.assign({},{inclusive:!0,message:""},n(e.options)),r=parseFloat("".concat(i.min).replace(",","."));return i.inclusive?{message:t(e.l10n?i.message||e.l10n.greaterThan.default:i.message,"".concat(r)),valid:parseFloat(e.value)>=r}:{message:t(e.l10n?i.message||e.l10n.greaterThan.notInclusive:i.message,"".concat(r)),valid:parseFloat(e.value)>r}}}},Ge}();var Ze,Ke=Xe.exports,Je={exports:{}},Qe={};Je.exports=(Ze||(Ze=1,Qe.identical=function(){return{validate:function(e){var t="function"==typeof e.options.compare?e.options.compare.call(this):e.options.compare;return{valid:""===t||e.value===t}}}}),Qe);var et,tt=Je.exports,nt={exports:{}},it={};nt.exports=function(){if(et)return it;et=1;var e=s.utils.removeUndefined;return it.integer=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},e(t.options)),i="."===n.decimalSeparator?"\\.":n.decimalSeparator,r="."===n.thousandsSeparator?"\\.":n.thousandsSeparator,s=new RegExp("^-?[0-9]{1,3}(".concat(r,"[0-9]{3})*(").concat(i,"[0-9]+)?$")),a=new RegExp(r,"g"),o="".concat(t.value);if(!s.test(o))return{valid:!1};r&&(o=o.replace(a,"")),i&&(o=o.replace(i,"."));var l=parseFloat(o);return{valid:!isNaN(l)&&isFinite(l)&&Math.floor(l)===l}}}},it}();var rt,st=nt.exports,at={exports:{}},ot={};at.exports=function(){if(rt)return ot;rt=1;var e=s.utils.removeUndefined;return ot.ip=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=Object.assign({},{ipv4:!0,ipv6:!0},e(t.options)),i=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\/([0-9]|[1-2][0-9]|3[0-2]))?$/,r=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*(\/(\d|\d\d|1[0-1]\d|12[0-8]))?$/;switch(!0){case n.ipv4&&!n.ipv6:return{message:t.l10n?n.message||t.l10n.ip.ipv4:n.message,valid:i.test(t.value)};case!n.ipv4&&n.ipv6:return{message:t.l10n?n.message||t.l10n.ip.ipv6:n.message,valid:r.test(t.value)};case n.ipv4&&n.ipv6:default:return{message:t.l10n?n.message||t.l10n.ip.default:n.message,valid:i.test(t.value)||r.test(t.value)}}}}},ot}();var lt,ct=at.exports,ut={exports:{}},dt={};ut.exports=function(){if(lt)return dt;lt=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return dt.lessThan=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var i=Object.assign({},{inclusive:!0,message:""},n(e.options)),r=parseFloat("".concat(i.max).replace(",","."));return i.inclusive?{message:t(e.l10n?i.message||e.l10n.lessThan.default:i.message,"".concat(r)),valid:parseFloat(e.value)<=r}:{message:t(e.l10n?i.message||e.l10n.lessThan.notInclusive:i.message,"".concat(r)),valid:parseFloat(e.value)<r}}}},dt}();var ht,ft=ut.exports,pt={exports:{}},mt={};pt.exports=(ht||(ht=1,mt.notEmpty=function(){return{validate:function(e){var t=!!e.options&&!!e.options.trim,n=e.value;return{valid:!t&&""!==n||t&&""!==n&&""!==n.trim()}}}}),mt);var gt,vt=pt.exports,yt={exports:{}},bt={};yt.exports=function(){if(gt)return bt;gt=1;var e=s.utils.removeUndefined;return bt.numeric=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},e(t.options)),i="".concat(t.value);i.substr(0,1)===n.decimalSeparator?i="0".concat(n.decimalSeparator).concat(i.substr(1)):i.substr(0,2)==="-".concat(n.decimalSeparator)&&(i="-0".concat(n.decimalSeparator).concat(i.substr(2)));var r="."===n.decimalSeparator?"\\.":n.decimalSeparator,s="."===n.thousandsSeparator?"\\.":n.thousandsSeparator,a=new RegExp("^-?[0-9]{1,3}(".concat(s,"[0-9]{3})*(").concat(r,"[0-9]+)?$")),o=new RegExp(s,"g");if(!a.test(i))return{valid:!1};s&&(i=i.replace(o,"")),r&&(i=i.replace(r,"."));var l=parseFloat(i);return{valid:!isNaN(l)&&isFinite(l)}}}},bt}();var xt,_t=yt.exports,wt={exports:{}},kt={};wt.exports=function(){if(xt)return kt;xt=1;var e=s.utils.call;return kt.promise=function(){return{validate:function(t){return e(t.options.promise,[t])}}},kt}();var Mt,St=wt.exports,At={exports:{}},Lt={};At.exports=(Mt||(Mt=1,Lt.regexp=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.options.regexp;if(t instanceof RegExp)return{valid:t.test(e.value)};var n=t.toString();return{valid:(e.options.flags?new RegExp(n,e.options.flags):new RegExp(n)).test(e.value)}}}}),Lt);var Tt,Ct=At.exports,Dt={exports:{}},Et={};Dt.exports=function(){if(Tt)return Et;Tt=1;var e=s,t=e.utils.fetch,n=e.utils.removeUndefined;return Et.remote=function(){var e={crossDomain:!1,data:{},headers:{},method:"GET",validKey:"valid"};return{validate:function(i){if(""===i.value)return Promise.resolve({valid:!0});var r=Object.assign({},e,n(i.options)),s=r.data;"function"==typeof r.data&&(s=r.data.call(this,i)),"string"==typeof s&&(s=JSON.parse(s)),s[r.name||i.field]=i.value;var a="function"==typeof r.url?r.url.call(this,i):r.url;return t(a,{crossDomain:r.crossDomain,headers:r.headers,method:r.method,params:s}).then((function(e){return Promise.resolve({message:e.message,meta:e,valid:"true"==="".concat(e[r.validKey])})})).catch((function(e){return Promise.reject({valid:!1})}))}}},Et}();var Ot,Pt=Dt.exports,Yt={exports:{}},It={};Yt.exports=function(){if(Ot)return It;Ot=1;var e=s.utils.removeUndefined;return It.stringCase=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=Object.assign({},{case:"lower"},e(t.options)),i=(n.case||"lower").toLowerCase();return{message:n.message||(t.l10n?"upper"===i?t.l10n.stringCase.upper:t.l10n.stringCase.default:n.message),valid:"upper"===i?t.value===t.value.toUpperCase():t.value===t.value.toLowerCase()}}}},It}();var Nt,Ht=Yt.exports,jt={exports:{}},Ft={};jt.exports=function(){if(Nt)return Ft;Nt=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return Ft.stringLength=function(){return{validate:function(e){var i=Object.assign({},{message:"",trim:!1,utf8Bytes:!1},n(e.options)),r=!0===i.trim||"true"==="".concat(i.trim)?e.value.trim():e.value;if(""===r)return{valid:!0};var s=i.min?"".concat(i.min):"",a=i.max?"".concat(i.max):"",o=i.utf8Bytes?function(e){for(var t=e.length,n=e.length-1;n>=0;n--){var i=e.charCodeAt(n);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&n--}return t}(r):r.length,l=!0,c=e.l10n?i.message||e.l10n.stringLength.default:i.message;switch((s&&o<parseInt(s,10)||a&&o>parseInt(a,10))&&(l=!1),!0){case!!s&&!!a:c=t(e.l10n?i.message||e.l10n.stringLength.between:i.message,[s,a]);break;case!!s:c=t(e.l10n?i.message||e.l10n.stringLength.more:i.message,"".concat(parseInt(s,10)));break;case!!a:c=t(e.l10n?i.message||e.l10n.stringLength.less:i.message,"".concat(parseInt(a,10)))}return{message:c,valid:l}}}},Ft}();var Rt,zt=jt.exports,Bt={exports:{}},Vt={};Bt.exports=function(){if(Rt)return Vt;Rt=1;var e=s.utils.removeUndefined;return Vt.uri=function(){var t={allowEmptyProtocol:!1,allowLocal:!1,protocol:"http, https, ftp"};return{validate:function(n){if(""===n.value)return{valid:!0};var i=Object.assign({},t,e(n.options)),r=!0===i.allowLocal||"true"==="".concat(i.allowLocal),s=!0===i.allowEmptyProtocol||"true"==="".concat(i.allowEmptyProtocol),a=i.protocol.split(",").join("|").replace(/\s/g,"");return{valid:new RegExp("^(?:(?:"+a+")://)"+(s?"?":"")+"(?:\\S+(?::\\S*)?@)?(?:"+(r?"":"(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")+"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9])*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))"+(r?"?":"")+")(?::\\d{2,5})?(?:/[^\\s]*)?$","i").test(n.value)}}}},Vt}();var Wt,qt=Bt.exports,Ut={exports:{}},$t={};Ut.exports=(Wt||(Wt=1,$t.base64=function(){return{validate:function(e){return{valid:""===e.value||/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/.test(e.value)}}}}),$t);var Xt,Gt=Ut.exports,Zt={exports:{}},Kt={};Zt.exports=(Xt||(Xt=1,Kt.bic=function(){return{validate:function(e){return{valid:""===e.value||/^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$/.test(e.value)}}}}),Kt);var Jt,Qt=Zt.exports,en={exports:{}},tn={};en.exports=(Jt||(Jt=1,tn.color=function(){var e=["hex","rgb","rgba","hsl","hsla","keyword"],t=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],n=function(e){return/^hsl\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/.test(e)},i=function(e){return/^hsla\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(e)},r=function(e){return t.indexOf(e)>=0},s=function(e){return/^rgb\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){2}(\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*)\)$/.test(e)||/^rgb\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/.test(e)},a=function(e){return/^rgba\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(e)||/^rgba\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(e)};return{validate:function(t){if(""===t.value)return{valid:!0};for(var o,l=0,c="string"==typeof t.options.type?t.options.type.toString().replace(/s/g,"").split(","):t.options.type||e;l<c.length;l++){var u=c[l].toLowerCase();if(-1!==e.indexOf(u)){var d=!0;switch(u){case"hex":o=t.value,d=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(o);break;case"hsl":d=n(t.value);break;case"hsla":d=i(t.value);break;case"keyword":d=r(t.value);break;case"rgb":d=s(t.value);break;case"rgba":d=a(t.value)}if(d)return{valid:!0}}}return{valid:!1}}}}),tn);var nn,rn=en.exports,sn={exports:{}},an={};sn.exports=(nn||(nn=1,an.cusip=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.value.toUpperCase();if(!/^[0123456789ABCDEFGHJKLMNPQRSTUVWXYZ*@#]{9}$/.test(t))return{valid:!1};var n=t.split(""),i=n.pop(),r=n.map((function(e){var t=e.charCodeAt(0);switch(!0){case"*"===e:return 36;case"@"===e:return 37;case"#"===e:return 38;case t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0):return t-"A".charCodeAt(0)+10;default:return parseInt(e,10)}})).map((function(e,t){var n=t%2==0?e:2*e;return Math.floor(n/10)+n%10})).reduce((function(e,t){return e+t}),0);return{valid:i==="".concat((10-r%10)%10)}}}}),an);var on,ln=sn.exports,cn={exports:{}},un={};cn.exports=(on||(on=1,un.ean=function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^(\d{8}|\d{12}|\d{13}|\d{14})$/.test(e.value))return{valid:!1};for(var t=e.value.length,n=0,i=8===t?[3,1]:[1,3],r=0;r<t-1;r++)n+=parseInt(e.value.charAt(r),10)*i[r%2];return{valid:"".concat(n=(10-n%10)%10)===e.value.charAt(t-1)}}}}),un);var dn,hn=cn.exports,fn={exports:{}},pn={};fn.exports=(dn||(dn=1,pn.ein=function(){var e={ANDOVER:["10","12"],ATLANTA:["60","67"],AUSTIN:["50","53"],BROOKHAVEN:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],CINCINNATI:["30","32","35","36","37","38","61"],FRESNO:["15","24"],INTERNET:["20","26","27","45","46","47"],KANSAS_CITY:["40","44"],MEMPHIS:["94","95"],OGDEN:["80","90"],PHILADELPHIA:["33","39","41","42","43","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],SMALL_BUSINESS_ADMINISTRATION:["31"]};return{validate:function(t){if(""===t.value)return{meta:null,valid:!0};if(!/^[0-9]{2}-?[0-9]{7}$/.test(t.value))return{meta:null,valid:!1};var n="".concat(t.value.substr(0,2));for(var i in e)if(-1!==e[i].indexOf(n))return{meta:{campus:i},valid:!0};return{meta:null,valid:!1}}}}),pn);var mn,gn=fn.exports,vn={exports:{}},yn={};vn.exports=function(){if(mn)return yn;mn=1;var e=s.algorithms.mod37And36;return yn.grid=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=t.value.toUpperCase();return/^[GRID:]*([0-9A-Z]{2})[-\s]*([0-9A-Z]{5})[-\s]*([0-9A-Z]{10})[-\s]*([0-9A-Z]{1})$/g.test(n)?("GRID:"===(n=n.replace(/\s/g,"").replace(/-/g,"")).substr(0,5)&&(n=n.substr(5)),{valid:e(n)}):{valid:!1}}}},yn}();var bn,xn=vn.exports,_n={exports:{}},wn={};_n.exports=(bn||(bn=1,wn.hex=function(){return{validate:function(e){return{valid:""===e.value||/^[0-9a-fA-F]+$/.test(e.value)}}}}),wn);var kn,Mn=_n.exports,Sn={exports:{}},An={};Sn.exports=function(){if(kn)return An;kn=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return An.iban=function(){var e={AD:"AD[0-9]{2}[0-9]{4}[0-9]{4}[A-Z0-9]{12}",AE:"AE[0-9]{2}[0-9]{3}[0-9]{16}",AL:"AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}",AO:"AO[0-9]{2}[0-9]{21}",AT:"AT[0-9]{2}[0-9]{5}[0-9]{11}",AZ:"AZ[0-9]{2}[A-Z]{4}[A-Z0-9]{20}",BA:"BA[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{8}[0-9]{2}",BE:"BE[0-9]{2}[0-9]{3}[0-9]{7}[0-9]{2}",BF:"BF[0-9]{2}[0-9]{23}",BG:"BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}",BH:"BH[0-9]{2}[A-Z]{4}[A-Z0-9]{14}",BI:"BI[0-9]{2}[0-9]{12}",BJ:"BJ[0-9]{2}[A-Z]{1}[0-9]{23}",BR:"BR[0-9]{2}[0-9]{8}[0-9]{5}[0-9]{10}[A-Z][A-Z0-9]",CH:"CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}",CI:"CI[0-9]{2}[A-Z]{1}[0-9]{23}",CM:"CM[0-9]{2}[0-9]{23}",CR:"CR[0-9]{2}[0-9][0-9]{3}[0-9]{14}",CV:"CV[0-9]{2}[0-9]{21}",CY:"CY[0-9]{2}[0-9]{3}[0-9]{5}[A-Z0-9]{16}",CZ:"CZ[0-9]{2}[0-9]{20}",DE:"DE[0-9]{2}[0-9]{8}[0-9]{10}",DK:"DK[0-9]{2}[0-9]{14}",DO:"DO[0-9]{2}[A-Z0-9]{4}[0-9]{20}",DZ:"DZ[0-9]{2}[0-9]{20}",EE:"EE[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{11}[0-9]{1}",ES:"ES[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{1}[0-9]{1}[0-9]{10}",FI:"FI[0-9]{2}[0-9]{6}[0-9]{7}[0-9]{1}",FO:"FO[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",FR:"FR[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",GB:"GB[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",GE:"GE[0-9]{2}[A-Z]{2}[0-9]{16}",GI:"GI[0-9]{2}[A-Z]{4}[A-Z0-9]{15}",GL:"GL[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",GR:"GR[0-9]{2}[0-9]{3}[0-9]{4}[A-Z0-9]{16}",GT:"GT[0-9]{2}[A-Z0-9]{4}[A-Z0-9]{20}",HR:"HR[0-9]{2}[0-9]{7}[0-9]{10}",HU:"HU[0-9]{2}[0-9]{3}[0-9]{4}[0-9]{1}[0-9]{15}[0-9]{1}",IE:"IE[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",IL:"IL[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{13}",IR:"IR[0-9]{2}[0-9]{22}",IS:"IS[0-9]{2}[0-9]{4}[0-9]{2}[0-9]{6}[0-9]{10}",IT:"IT[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",JO:"JO[0-9]{2}[A-Z]{4}[0-9]{4}[0]{8}[A-Z0-9]{10}",KW:"KW[0-9]{2}[A-Z]{4}[0-9]{22}",KZ:"KZ[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LB:"LB[0-9]{2}[0-9]{4}[A-Z0-9]{20}",LI:"LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}",LT:"LT[0-9]{2}[0-9]{5}[0-9]{11}",LU:"LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LV:"LV[0-9]{2}[A-Z]{4}[A-Z0-9]{13}",MC:"MC[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",MD:"MD[0-9]{2}[A-Z0-9]{20}",ME:"ME[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",MG:"MG[0-9]{2}[0-9]{23}",MK:"MK[0-9]{2}[0-9]{3}[A-Z0-9]{10}[0-9]{2}",ML:"ML[0-9]{2}[A-Z]{1}[0-9]{23}",MR:"MR13[0-9]{5}[0-9]{5}[0-9]{11}[0-9]{2}",MT:"MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}",MU:"MU[0-9]{2}[A-Z]{4}[0-9]{2}[0-9]{2}[0-9]{12}[0-9]{3}[A-Z]{3}",MZ:"MZ[0-9]{2}[0-9]{21}",NL:"NL[0-9]{2}[A-Z]{4}[0-9]{10}",NO:"NO[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{1}",PK:"PK[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",PL:"PL[0-9]{2}[0-9]{8}[0-9]{16}",PS:"PS[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",PT:"PT[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{11}[0-9]{2}",QA:"QA[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",RO:"RO[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",RS:"RS[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",SA:"SA[0-9]{2}[0-9]{2}[A-Z0-9]{18}",SE:"SE[0-9]{2}[0-9]{3}[0-9]{16}[0-9]{1}",SI:"SI[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}",SK:"SK[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{10}",SM:"SM[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",SN:"SN[0-9]{2}[A-Z]{1}[0-9]{23}",TL:"TL38[0-9]{3}[0-9]{14}[0-9]{2}",TN:"TN59[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",TR:"TR[0-9]{2}[0-9]{5}[A-Z0-9]{1}[A-Z0-9]{16}",VG:"VG[0-9]{2}[A-Z]{4}[0-9]{16}",XK:"XK[0-9]{2}[0-9]{4}[0-9]{10}[0-9]{2}"},i=["AT","BE","BG","CH","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GI","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MC","MT","NL","NO","PL","PT","RO","SE","SI","SK","SM"];return{validate:function(r){if(""===r.value)return{valid:!0};var s=Object.assign({},{message:""},n(r.options)),a=r.value.replace(/[^a-zA-Z0-9]/g,"").toUpperCase(),o=s.country||a.substr(0,2);if(!e[o])return{message:s.message,valid:!1};if(void 0!==s.sepa){var l=-1!==i.indexOf(o);if(("true"===s.sepa||!0===s.sepa)&&!l||("false"===s.sepa||!1===s.sepa)&&l)return{message:s.message,valid:!1}}var c=t(r.l10n?s.message||r.l10n.iban.country:s.message,r.l10n?r.l10n.iban.countries[o]:o);if(!new RegExp("^".concat(e[o],"$")).test(r.value))return{message:c,valid:!1};a=(a="".concat(a.substr(4)).concat(a.substr(0,4))).split("").map((function(e){var t=e.charCodeAt(0);return t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?t-"A".charCodeAt(0)+10:e})).join("");for(var u=parseInt(a.substr(0,1),10),d=a.length,h=1;h<d;++h)u=(10*u+parseInt(a.substr(h,1),10))%97;return{message:c,valid:1===u}}}},An}();var Ln,Tn=Sn.exports,Cn={exports:{}},Dn={};Cn.exports=function(){if(Ln)return Dn;Ln=1;var e=s;function t(e,t){if(!/^\d{13}$/.test(e))return!1;var n=parseInt(e.substr(0,2),10),i=parseInt(e.substr(2,2),10),r=parseInt(e.substr(7,2),10),s=parseInt(e.substr(12,1),10);if(n>31||i>12)return!1;for(var a=0,o=0;o<6;o++)a+=(7-o)*(parseInt(e.charAt(o),10)+parseInt(e.charAt(o+6),10));if(10!=(a=11-a%11)&&11!==a||(a=0),a!==s)return!1;switch(t.toUpperCase()){case"BA":return 10<=r&&r<=19;case"MK":return 41<=r&&r<=49;case"ME":return 20<=r&&r<=29;case"RS":return 70<=r&&r<=99;case"SI":return 50<=r&&r<=59;default:return!0}}var n=e.utils.isValidDate,i=e.utils.isValidDate,r=e.utils.isValidDate;function a(e){if(!/^\d{9,10}$/.test(e))return{meta:{},valid:!1};var t=1900+parseInt(e.substr(0,2),10),n=parseInt(e.substr(2,2),10)%50%20,i=parseInt(e.substr(4,2),10);if(9===e.length){if(t>=1980&&(t-=100),t>1953)return{meta:{},valid:!1}}else t<1954&&(t+=100);if(!r(t,n,i))return{meta:{},valid:!1};if(10===e.length){var s=parseInt(e.substr(0,9),10)%11;return t<1985&&(s%=10),{meta:{},valid:"".concat(s)===e.substr(9,1)}}return{meta:{},valid:!0}}var o=e.utils.isValidDate,l=e.utils.isValidDate,c=e.algorithms.mod11And10,u=e.algorithms.verhoeff,d=e.algorithms.luhn,h=e.utils.isValidDate,f=e.utils.isValidDate,p=e.utils.isValidDate;function m(e){if(!/^[0-9]{11}$/.test(e))return{meta:{},valid:!1};var t=parseInt(e.charAt(0),10),n=parseInt(e.substr(1,2),10),i=parseInt(e.substr(3,2),10),r=parseInt(e.substr(5,2),10);if(!p(n=100*(t%2==0?17+t/2:17+(t+1)/2)+n,i,r,!0))return{meta:{},valid:!1};var s,a=[1,2,3,4,5,6,7,8,9,1],o=0;for(s=0;s<10;s++)o+=parseInt(e.charAt(s),10)*a[s];if(10!=(o%=11))return{meta:{},valid:"".concat(o)===e.charAt(10)};for(o=0,a=[3,4,5,6,7,8,9,1,2,3],s=0;s<10;s++)o+=parseInt(e.charAt(s),10)*a[s];return 10==(o%=11)&&(o=0),{meta:{},valid:"".concat(o)===e.charAt(10)}}var g=e.utils.isValidDate,v=e.utils.isValidDate,y=e.utils.isValidDate,b=e.utils.isValidDate,x=e.algorithms.luhn,_=e.utils.isValidDate,w=e.algorithms.luhn,k=e.utils.isValidDate,M=e.utils.format,S=e.utils.removeUndefined;return Dn.id=function(){var e=["AR","BA","BG","BR","CH","CL","CN","CO","CZ","DK","EE","ES","FI","FR","HK","HR","ID","IE","IL","IS","KR","LT","LV","ME","MK","MX","MY","NL","NO","PE","PL","RO","RS","SE","SI","SK","SM","TH","TR","TW","UY","ZA"];return{validate:function(r){if(""===r.value)return{valid:!0};var s=Object.assign({},{message:""},S(r.options)),p=r.value.substr(0,2);if(p="function"==typeof s.country?s.country.call(this):s.country,-1===e.indexOf(p))return{valid:!0};var A,L={meta:{},valid:!0};switch(p.toLowerCase()){case"ar":A=r.value.replace(/\./g,""),L={meta:{},valid:/^\d{7,8}$/.test(A)};break;case"ba":L=function(e){return{meta:{},valid:t(e,"BA")}}(r.value);break;case"bg":L=function(e){if(!/^\d{10}$/.test(e)&&!/^\d{6}\s\d{3}\s\d{1}$/.test(e))return{meta:{},valid:!1};var t=e.replace(/\s/g,""),i=parseInt(t.substr(0,2),10)+1900,r=parseInt(t.substr(2,2),10),s=parseInt(t.substr(4,2),10);if(r>40?(i+=100,r-=40):r>20&&(i-=100,r-=20),!n(i,r,s))return{meta:{},valid:!1};for(var a=0,o=[2,4,8,5,10,9,7,3,6],l=0;l<9;l++)a+=parseInt(t.charAt(l),10)*o[l];return{meta:{},valid:"".concat(a=a%11%10)===t.substr(9,1)}}(r.value);break;case"br":L=function(e){var t=e.replace(/\D/g,"");if(!/^\d{11}$/.test(t)||/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(t))return{meta:{},valid:!1};var n,i=0;for(n=0;n<9;n++)i+=(10-n)*parseInt(t.charAt(n),10);if(10!=(i=11-i%11)&&11!==i||(i=0),"".concat(i)!==t.charAt(9))return{meta:{},valid:!1};var r=0;for(n=0;n<10;n++)r+=(11-n)*parseInt(t.charAt(n),10);return 10!=(r=11-r%11)&&11!==r||(r=0),{meta:{},valid:"".concat(r)===t.charAt(10)}}(r.value);break;case"ch":L=function(e){if(!/^756[.]{0,1}[0-9]{4}[.]{0,1}[0-9]{4}[.]{0,1}[0-9]{2}$/.test(e))return{meta:{},valid:!1};for(var t=e.replace(/\D/g,"").substr(3),n=t.length,i=8===n?[3,1]:[1,3],r=0,s=0;s<n-1;s++)r+=parseInt(t.charAt(s),10)*i[s%2];return{meta:{},valid:"".concat(r=10-r%10)===t.charAt(n-1)}}(r.value);break;case"cl":L=function(e){if(!/^\d{7,8}[-]{0,1}[0-9K]$/i.test(e))return{meta:{},valid:!1};for(var t=e.replace(/-/g,"");t.length<9;)t="0".concat(t);for(var n=[3,2,7,6,5,4,3,2],i=0,r=0;r<8;r++)i+=parseInt(t.charAt(r),10)*n[r];var s="".concat(i=11-i%11);return 11===i?s="0":10===i&&(s="K"),{meta:{},valid:s===t.charAt(8).toUpperCase()}}(r.value);break;case"cn":L=function(e){var t=e.trim();if(!/^\d{15}$/.test(t)&&!/^\d{17}[\dXx]{1}$/.test(t))return{meta:{},valid:!1};var n={11:{0:[0],1:[[0,9],[11,17]],2:[0,28,29]},12:{0:[0],1:[[0,16]],2:[0,21,23,25]},13:{0:[0],1:[[0,5],7,8,21,[23,33],[81,85]],2:[[0,5],[7,9],[23,25],27,29,30,81,83],3:[[0,4],[21,24]],4:[[0,4],6,21,[23,35],81],5:[[0,3],[21,35],81,82],6:[[0,4],[21,38],[81,84]],7:[[0,3],5,6,[21,33]],8:[[0,4],[21,28]],9:[[0,3],[21,30],[81,84]],10:[[0,3],[22,26],28,81,82],11:[[0,2],[21,28],81,82]},14:{0:[0],1:[0,1,[5,10],[21,23],81],2:[[0,3],11,12,[21,27]],3:[[0,3],11,21,22],4:[[0,2],11,21,[23,31],81],5:[[0,2],21,22,24,25,81],6:[[0,3],[21,24]],7:[[0,2],[21,29],81],8:[[0,2],[21,30],81,82],9:[[0,2],[21,32],81],10:[[0,2],[21,34],81,82],11:[[0,2],[21,30],81,82],23:[[0,3],22,23,[25,30],32,33]},15:{0:[0],1:[[0,5],[21,25]],2:[[0,7],[21,23]],3:[[0,4]],4:[[0,4],[21,26],[28,30]],5:[[0,2],[21,26],81],6:[[0,2],[21,27]],7:[[0,3],[21,27],[81,85]],8:[[0,2],[21,26]],9:[[0,2],[21,29],81],22:[[0,2],[21,24]],25:[[0,2],[22,31]],26:[[0,2],[24,27],[29,32],34],28:[0,1,[22,27]],29:[0,[21,23]]},21:{0:[0],1:[[0,6],[11,14],[22,24],81],2:[[0,4],[11,13],24,[81,83]],3:[[0,4],11,21,23,81],4:[[0,4],11,[21,23]],5:[[0,5],21,22],6:[[0,4],24,81,82],7:[[0,3],11,26,27,81,82],8:[[0,4],11,81,82],9:[[0,5],11,21,22],10:[[0,5],11,21,81],11:[[0,3],21,22],12:[[0,2],4,21,23,24,81,82],13:[[0,3],21,22,24,81,82],14:[[0,4],21,22,81]},22:{0:[0],1:[[0,6],12,22,[81,83]],2:[[0,4],11,21,[81,84]],3:[[0,3],22,23,81,82],4:[[0,3],21,22],5:[[0,3],21,23,24,81,82],6:[[0,2],4,5,[21,23],25,81],7:[[0,2],[21,24],81],8:[[0,2],21,22,81,82],24:[[0,6],24,26]},23:{0:[0],1:[[0,12],21,[23,29],[81,84]],2:[[0,8],21,[23,25],27,[29,31],81],3:[[0,7],21,81,82],4:[[0,7],21,22],5:[[0,3],5,6,[21,24]],6:[[0,6],[21,24]],7:[[0,16],22,81],8:[[0,5],11,22,26,28,33,81,82],9:[[0,4],21],10:[[0,5],24,25,81,[83,85]],11:[[0,2],21,23,24,81,82],12:[[0,2],[21,26],[81,83]],27:[[0,4],[21,23]]},31:{0:[0],1:[0,1,[3,10],[12,20]],2:[0,30]},32:{0:[0],1:[[0,7],11,[13,18],24,25],2:[[0,6],11,81,82],3:[[0,5],11,12,[21,24],81,82],4:[[0,2],4,5,11,12,81,82],5:[[0,9],[81,85]],6:[[0,2],11,12,21,23,[81,84]],7:[0,1,3,5,6,[21,24]],8:[[0,4],11,26,[29,31]],9:[[0,3],[21,25],28,81,82],10:[[0,3],11,12,23,81,84,88],11:[[0,2],11,12,[81,83]],12:[[0,4],[81,84]],13:[[0,2],11,[21,24]]},33:{0:[0],1:[[0,6],[8,10],22,27,82,83,85],2:[0,1,[3,6],11,12,25,26,[81,83]],3:[[0,4],22,24,[26,29],81,82],4:[[0,2],11,21,24,[81,83]],5:[[0,3],[21,23]],6:[[0,2],21,24,[81,83]],7:[[0,3],23,26,27,[81,84]],8:[[0,3],22,24,25,81],9:[[0,3],21,22],10:[[0,4],[21,24],81,82],11:[[0,2],[21,27],81]},34:{0:[0],1:[[0,4],11,[21,24],81],2:[[0,4],7,8,[21,23],25],3:[[0,4],11,[21,23]],4:[[0,6],21],5:[[0,4],6,[21,23]],6:[[0,4],21],7:[[0,3],11,21],8:[[0,3],11,[22,28],81],10:[[0,4],[21,24]],11:[[0,3],22,[24,26],81,82],12:[[0,4],21,22,25,26,82],13:[[0,2],[21,24]],14:[[0,2],[21,24]],15:[[0,3],[21,25]],16:[[0,2],[21,23]],17:[[0,2],[21,23]],18:[[0,2],[21,25],81]},35:{0:[0],1:[[0,5],11,[21,25],28,81,82],2:[[0,6],[11,13]],3:[[0,5],22],4:[[0,3],21,[23,30],81],5:[[0,5],21,[24,27],[81,83]],6:[[0,3],[22,29],81],7:[[0,2],[21,25],[81,84]],8:[[0,2],[21,25],81],9:[[0,2],[21,26],81,82]},36:{0:[0],1:[[0,5],11,[21,24]],2:[[0,3],22,81],3:[[0,2],13,[21,23]],4:[[0,3],21,[23,30],81,82],5:[[0,2],21],6:[[0,2],22,81],7:[[0,2],[21,35],81,82],8:[[0,3],[21,30],81],9:[[0,2],[21,26],[81,83]],10:[[0,2],[21,30]],11:[[0,2],[21,30],81]},37:{0:[0],1:[[0,5],12,13,[24,26],81],2:[[0,3],5,[11,14],[81,85]],3:[[0,6],[21,23]],4:[[0,6],81],5:[[0,3],[21,23]],6:[[0,2],[11,13],34,[81,87]],7:[[0,5],24,25,[81,86]],8:[[0,2],11,[26,32],[81,83]],9:[[0,3],11,21,23,82,83],10:[[0,2],[81,83]],11:[[0,3],21,22],12:[[0,3]],13:[[0,2],11,12,[21,29]],14:[[0,2],[21,28],81,82],15:[[0,2],[21,26],81],16:[[0,2],[21,26]],17:[[0,2],[21,28]]},41:{0:[0],1:[[0,6],8,22,[81,85]],2:[[0,5],11,[21,25]],3:[[0,7],11,[22,29],81],4:[[0,4],11,[21,23],25,81,82],5:[[0,3],5,6,22,23,26,27,81],6:[[0,3],11,21,22],7:[[0,4],11,21,[24,28],81,82],8:[[0,4],11,[21,23],25,[81,83]],9:[[0,2],22,23,[26,28]],10:[[0,2],[23,25],81,82],11:[[0,4],[21,23]],12:[[0,2],21,22,24,81,82],13:[[0,3],[21,30],81],14:[[0,3],[21,26],81],15:[[0,3],[21,28]],16:[[0,2],[21,28],81],17:[[0,2],[21,29]],90:[0,1]},42:{0:[0],1:[[0,7],[11,17]],2:[[0,5],22,81],3:[[0,3],[21,25],81],5:[[0,6],[25,29],[81,83]],6:[[0,2],6,7,[24,26],[82,84]],7:[[0,4]],8:[[0,2],4,21,22,81],9:[[0,2],[21,23],81,82,84],10:[[0,3],[22,24],81,83,87],11:[[0,2],[21,27],81,82],12:[[0,2],[21,24],81],13:[[0,3],21,81],28:[[0,2],22,23,[25,28]],90:[0,[4,6],21]},43:{0:[0],1:[[0,5],11,12,21,22,24,81],2:[[0,4],11,21,[23,25],81],3:[[0,2],4,21,81,82],4:[0,1,[5,8],12,[21,24],26,81,82],5:[[0,3],11,[21,25],[27,29],81],6:[[0,3],11,21,23,24,26,81,82],7:[[0,3],[21,26],81],8:[[0,2],11,21,22],9:[[0,3],[21,23],81],10:[[0,3],[21,28],81],11:[[0,3],[21,29]],12:[[0,2],[21,30],81],13:[[0,2],21,22,81,82],31:[0,1,[22,27],30]},44:{0:[0],1:[[0,7],[11,16],83,84],2:[[0,5],21,22,24,29,32,33,81,82],3:[0,1,[3,8]],4:[[0,4]],5:[0,1,[6,15],23,82,83],6:[0,1,[4,8]],7:[0,1,[3,5],81,[83,85]],8:[[0,4],11,23,25,[81,83]],9:[[0,3],23,[81,83]],12:[[0,3],[23,26],83,84],13:[[0,3],[22,24],81],14:[[0,2],[21,24],26,27,81],15:[[0,2],21,23,81],16:[[0,2],[21,25]],17:[[0,2],21,23,81],18:[[0,3],21,23,[25,27],81,82],19:[0],20:[0],51:[[0,3],21,22],52:[[0,3],21,22,24,81],53:[[0,2],[21,23],81]},45:{0:[0],1:[[0,9],[21,27]],2:[[0,5],[21,26]],3:[[0,5],11,12,[21,32]],4:[0,1,[3,6],11,[21,23],81],5:[[0,3],12,21],6:[[0,3],21,81],7:[[0,3],21,22],8:[[0,4],21,81],9:[[0,3],[21,24],81],10:[[0,2],[21,31]],11:[[0,2],[21,23]],12:[[0,2],[21,29],81],13:[[0,2],[21,24],81],14:[[0,2],[21,25],81]},46:{0:[0],1:[0,1,[5,8]],2:[0,1],3:[0,[21,23]],90:[[0,3],[5,7],[21,39]]},50:{0:[0],1:[[0,19]],2:[0,[22,38],[40,43]],3:[0,[81,84]]},51:{0:[0],1:[0,1,[4,8],[12,15],[21,24],29,31,32,[81,84]],3:[[0,4],11,21,22],4:[[0,3],11,21,22],5:[[0,4],21,22,24,25],6:[0,1,3,23,26,[81,83]],7:[0,1,3,4,[22,27],81],8:[[0,2],11,12,[21,24]],9:[[0,4],[21,23]],10:[[0,2],11,24,25,28],11:[[0,2],[11,13],23,24,26,29,32,33,81],13:[[0,4],[21,25],81],14:[[0,2],[21,25]],15:[[0,3],[21,29]],16:[[0,3],[21,23],81],17:[[0,3],[21,25],81],18:[[0,3],[21,27]],19:[[0,3],[21,23]],20:[[0,2],21,22,81],32:[0,[21,33]],33:[0,[21,38]],34:[0,1,[22,37]]},52:{0:[0],1:[[0,3],[11,15],[21,23],81],2:[0,1,3,21,22],3:[[0,3],[21,30],81,82],4:[[0,2],[21,25]],5:[[0,2],[21,27]],6:[[0,3],[21,28]],22:[0,1,[22,30]],23:[0,1,[22,28]],24:[0,1,[22,28]],26:[0,1,[22,36]],27:[[0,2],22,23,[25,32]]},53:{0:[0],1:[[0,3],[11,14],21,22,[24,29],81],3:[[0,2],[21,26],28,81],4:[[0,2],[21,28]],5:[[0,2],[21,24]],6:[[0,2],[21,30]],7:[[0,2],[21,24]],8:[[0,2],[21,29]],9:[[0,2],[21,27]],23:[0,1,[22,29],31],25:[[0,4],[22,32]],26:[0,1,[21,28]],27:[0,1,[22,30]],28:[0,1,22,23],29:[0,1,[22,32]],31:[0,2,3,[22,24]],34:[0,[21,23]],33:[0,21,[23,25]],35:[0,[21,28]]},54:{0:[0],1:[[0,2],[21,27]],21:[0,[21,29],32,33],22:[0,[21,29],[31,33]],23:[0,1,[22,38]],24:[0,[21,31]],25:[0,[21,27]],26:[0,[21,27]]},61:{0:[0],1:[[0,4],[11,16],22,[24,26]],2:[[0,4],22],3:[[0,4],[21,24],[26,31]],4:[[0,4],[22,31],81],5:[[0,2],[21,28],81,82],6:[[0,2],[21,32]],7:[[0,2],[21,30]],8:[[0,2],[21,31]],9:[[0,2],[21,29]],10:[[0,2],[21,26]]},62:{0:[0],1:[[0,5],11,[21,23]],2:[0,1],3:[[0,2],21],4:[[0,3],[21,23]],5:[[0,3],[21,25]],6:[[0,2],[21,23]],7:[[0,2],[21,25]],8:[[0,2],[21,26]],9:[[0,2],[21,24],81,82],10:[[0,2],[21,27]],11:[[0,2],[21,26]],12:[[0,2],[21,28]],24:[0,21,[24,29]],26:[0,21,[23,30]],29:[0,1,[21,27]],30:[0,1,[21,27]]},63:{0:[0],1:[[0,5],[21,23]],2:[0,2,[21,25]],21:[0,[21,23],[26,28]],22:[0,[21,24]],23:[0,[21,24]],25:[0,[21,25]],26:[0,[21,26]],27:[0,1,[21,26]],28:[[0,2],[21,23]]},64:{0:[0],1:[0,1,[4,6],21,22,81],2:[[0,3],5,[21,23]],3:[[0,3],[21,24],81],4:[[0,2],[21,25]],5:[[0,2],21,22]},65:{0:[0],1:[[0,9],21],2:[[0,5]],21:[0,1,22,23],22:[0,1,22,23],23:[[0,3],[23,25],27,28],28:[0,1,[22,29]],29:[0,1,[22,29]],30:[0,1,[22,24]],31:[0,1,[21,31]],32:[0,1,[21,27]],40:[0,2,3,[21,28]],42:[[0,2],21,[23,26]],43:[0,1,[21,26]],90:[[0,4]],27:[[0,2],22,23]},71:{0:[0]},81:{0:[0]},82:{0:[0]}},r=parseInt(t.substr(0,2),10),s=parseInt(t.substr(2,2),10),a=parseInt(t.substr(4,2),10);if(!n[r]||!n[r][s])return{meta:{},valid:!1};var o,l,c=!1,u=n[r][s];for(o=0;o<u.length;o++)if(Array.isArray(u[o])&&u[o][0]<=a&&a<=u[o][1]||!Array.isArray(u[o])&&a===u[o]){c=!0;break}if(!c)return{meta:{},valid:!1};l=18===t.length?t.substr(6,8):"19".concat(t.substr(6,6));var d=parseInt(l.substr(0,4),10),h=parseInt(l.substr(4,2),10),f=parseInt(l.substr(6,2),10);if(!i(d,h,f))return{meta:{},valid:!1};if(18===t.length){var p=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],m=0;for(o=0;o<17;o++)m+=parseInt(t.charAt(o),10)*p[o];return m=(12-m%11)%11,{meta:{},valid:("X"!==t.charAt(17).toUpperCase()?parseInt(t.charAt(17),10):10)===m}}return{meta:{},valid:!0}}(r.value);break;case"co":L=function(e){var t=e.replace(/\./g,"").replace("-","");if(!/^\d{8,16}$/.test(t))return{meta:{},valid:!1};for(var n=t.length,i=[3,7,13,17,19,23,29,37,41,43,47,53,59,67,71],r=0,s=n-2;s>=0;s--)r+=parseInt(t.charAt(s),10)*i[s];return(r%=11)>=2&&(r=11-r),{meta:{},valid:"".concat(r)===t.substr(n-1)}}(r.value);break;case"cz":case"sk":L=a(r.value);break;case"dk":L=function(e){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(e))return{meta:{},valid:!1};var t=e.replace(/-/g,""),n=parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10),r=parseInt(t.substr(4,2),10);switch(!0){case-1!=="5678".indexOf(t.charAt(6))&&r>=58:r+=1800;break;case-1!=="0123".indexOf(t.charAt(6)):case-1!=="49".indexOf(t.charAt(6))&&r>=37:r+=1900;break;default:r+=2e3}return{meta:{},valid:o(r,i,n)}}(r.value);break;case"ee":case"lt":L=m(r.value);break;case"es":L=function(e){var t=/^[0-9]{8}[-]{0,1}[A-HJ-NP-TV-Z]$/.test(e),n=/^[XYZ][-]{0,1}[0-9]{7}[-]{0,1}[A-HJ-NP-TV-Z]$/.test(e),i=/^[A-HNPQS][-]{0,1}[0-9]{7}[-]{0,1}[0-9A-J]$/.test(e);if(!t&&!n&&!i)return{meta:{},valid:!1};var r,s,a=e.replace(/-/g,"");if(t||n){s="DNI";var o="XYZ".indexOf(a.charAt(0));return-1!==o&&(a=o+a.substr(1)+"",s="NIE"),{meta:{type:s},valid:(r="TRWAGMYFPDXBNJZSQVHLCKE"[(r=parseInt(a.substr(0,8),10))%23])===a.substr(8,1)}}r=a.substr(1,7),s="CIF";for(var l=a[0],c=a.substr(-1),u=0,d=0;d<r.length;d++)if(d%2!=0)u+=parseInt(r[d],10);else{var h=""+2*parseInt(r[d],10);u+=parseInt(h[0],10),2===h.length&&(u+=parseInt(h[1],10))}var f=u-10*Math.floor(u/10);return 0!==f&&(f=10-f),{meta:{type:s},valid:-1!=="KQS".indexOf(l)?c==="JABCDEFGHI"[f]:-1!=="ABEH".indexOf(l)?c===""+f:c===""+f||c==="JABCDEFGHI"[f]}}(r.value);break;case"fi":L=function(e){if(!/^[0-9]{6}[-+A][0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/.test(e))return{meta:{},valid:!1};var t=parseInt(e.substr(0,2),10),n=parseInt(e.substr(2,2),10),i=parseInt(e.substr(4,2),10);if(i={"+":1800,"-":1900,A:2e3}[e.charAt(6)]+i,!l(i,n,t))return{meta:{},valid:!1};if(parseInt(e.substr(7,3),10)<2)return{meta:{},valid:!1};var r=parseInt(e.substr(0,6)+e.substr(7,3)+"",10);return{meta:{},valid:"0123456789ABCDEFHJKLMNPRSTUVWXY".charAt(r%31)===e.charAt(10)}}(r.value);break;case"fr":L=function(e){var t=e.toUpperCase();if(!/^(1|2)\d{2}\d{2}(\d{2}|\d[A-Z]|\d{3})\d{2,3}\d{3}\d{2}$/.test(t))return{meta:{},valid:!1};var n=t.substr(5,2);switch(!0){case/^\d{2}$/.test(n):t=e;break;case"2A"===n:t="".concat(e.substr(0,5),"19").concat(e.substr(7));break;case"2B"===n:t="".concat(e.substr(0,5),"18").concat(e.substr(7));break;default:return{meta:{},valid:!1}}var i=97-parseInt(t.substr(0,13),10)%97;return{meta:{},valid:(i<10?"0".concat(i):"".concat(i))===t.substr(13)}}(r.value);break;case"hk":L=function(e){var t=e.toUpperCase();if(!/^[A-MP-Z]{1,2}[0-9]{6}[0-9A]$/.test(t))return{meta:{},valid:!1};var n="ABCDEFGHIJKLMNOPQRSTUVWXYZ",i=t.charAt(0),r=t.charAt(1),s=0,a=t;/^[A-Z]$/.test(r)?(s+=9*(10+n.indexOf(i)),s+=8*(10+n.indexOf(r)),a=t.substr(2)):(s+=324,s+=8*(10+n.indexOf(i)),a=t.substr(1));for(var o=a.length,l=0;l<o-1;l++)s+=(7-l)*parseInt(a.charAt(l),10);var c=s%11;return{meta:{},valid:(0===c?"0":11-c==10?"A":"".concat(11-c))===a.charAt(o-1)}}(r.value);break;case"hr":L=function(e){return{meta:{},valid:/^[0-9]{11}$/.test(e)&&c(e)}}(r.value);break;case"id":L=function(e){if(!/^[2-9]\d{11}$/.test(e))return{meta:{},valid:!1};var t=e.split("").map((function(e){return parseInt(e,10)}));return{meta:{},valid:u(t)}}(r.value);break;case"ie":L=function(e){if(!/^\d{7}[A-W][AHWTX]?$/.test(e))return{meta:{},valid:!1};var t=function(e){for(var t=e;t.length<7;)t="0".concat(t);for(var n="WABCDEFGHIJKLMNOPQRSTUV",i=0,r=0;r<7;r++)i+=parseInt(t.charAt(r),10)*(8-r);return i+=9*n.indexOf(t.substr(7)),n[i%23]};return{meta:{},valid:9!==e.length||"A"!==e.charAt(8)&&"H"!==e.charAt(8)?e.charAt(7)===t(e.substr(0,7)):e.charAt(7)===t(e.substr(0,7)+e.substr(8)+"")}}(r.value);break;case"il":L=function(e){return/^\d{1,9}$/.test(e)?{meta:{},valid:d(e)}:{meta:{},valid:!1}}(r.value);break;case"is":L=function(e){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(e))return{meta:{},valid:!1};var t=e.replace(/-/g,""),n=parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10),r=parseInt(t.substr(4,2),10),s=parseInt(t.charAt(9),10);if(!h(r=9===s?1900+r:100*(20+s)+r,i,n,!0))return{meta:{},valid:!1};for(var a=[3,2,7,6,5,4,3,2],o=0,l=0;l<8;l++)o+=parseInt(t.charAt(l),10)*a[l];return{meta:{},valid:"".concat(o=11-o%11)===t.charAt(8)}}(r.value);break;case"kr":L=function(e){var t=e.replace("-","");if(!/^\d{13}$/.test(t))return{meta:{},valid:!1};var n=t.charAt(6),i=parseInt(t.substr(0,2),10),r=parseInt(t.substr(2,2),10),s=parseInt(t.substr(4,2),10);switch(n){case"1":case"2":case"5":case"6":i+=1900;break;case"3":case"4":case"7":case"8":i+=2e3;break;default:i+=1800}if(!f(i,r,s))return{meta:{},valid:!1};for(var a=[2,3,4,5,6,7,8,9,2,3,4,5],o=t.length,l=0,c=0;c<o-1;c++)l+=a[c]*parseInt(t.charAt(c),10);return{meta:{},valid:"".concat((11-l%11)%10)===t.charAt(o-1)}}(r.value);break;case"lv":L=function(e){if(!/^[0-9]{6}[-]{0,1}[0-9]{5}$/.test(e))return{meta:{},valid:!1};var t=e.replace(/\D/g,""),n=parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10),r=parseInt(t.substr(4,2),10);if(r=r+1800+100*parseInt(t.charAt(6),10),!g(r,i,n,!0))return{meta:{},valid:!1};for(var s=0,a=[10,5,8,4,2,1,6,3,7,9],o=0;o<10;o++)s+=parseInt(t.charAt(o),10)*a[o];return{meta:{},valid:"".concat(s=(s+1)%11%10)===t.charAt(10)}}(r.value);break;case"me":L=function(e){return{meta:{},valid:t(e,"ME")}}(r.value);break;case"mk":L=function(e){return{meta:{},valid:t(e,"MK")}}(r.value);break;case"mx":L=function(e){var t=e.toUpperCase();if(!/^[A-Z]{4}\d{6}[A-Z]{6}[0-9A-Z]\d$/.test(t))return{meta:{},valid:!1};var n=t.substr(0,4);if(["BACA","BAKA","BUEI","BUEY","CACA","CACO","CAGA","CAGO","CAKA","CAKO","COGE","COGI","COJA","COJE","COJI","COJO","COLA","CULO","FALO","FETO","GETA","GUEI","GUEY","JETA","JOTO","KACA","KACO","KAGA","KAGO","KAKA","KAKO","KOGE","KOGI","KOJA","KOJE","KOJI","KOJO","KOLA","KULO","LILO","LOCA","LOCO","LOKA","LOKO","MAME","MAMO","MEAR","MEAS","MEON","MIAR","MION","MOCO","MOKO","MULA","MULO","NACA","NACO","PEDA","PEDO","PENE","PIPI","PITO","POPO","PUTA","PUTO","QULO","RATA","ROBA","ROBE","ROBO","RUIN","SENO","TETA","VACA","VAGA","VAGO","VAKA","VUEI","VUEY","WUEI","WUEY"].indexOf(n)>=0)return{meta:{},valid:!1};var i=parseInt(t.substr(4,2),10),r=parseInt(t.substr(6,2),10),s=parseInt(t.substr(6,2),10);if(/^[0-9]$/.test(t.charAt(16))?i+=1900:i+=2e3,!v(i,r,s))return{meta:{},valid:!1};var a=t.charAt(10);if("H"!==a&&"M"!==a)return{meta:{},valid:!1};var o=t.substr(11,2);if(-1===["AS","BC","BS","CC","CH","CL","CM","CS","DF","DG","GR","GT","HG","JC","MC","MN","MS","NE","NL","NT","OC","PL","QR","QT","SL","SP","SR","TC","TL","TS","VZ","YN","ZS"].indexOf(o))return{meta:{},valid:!1};for(var l=0,c=t.length,u=0;u<c-1;u++)l+=(18-u)*"0123456789ABCDEFGHIJKLMN&OPQRSTUVWXYZ".indexOf(t.charAt(u));return{meta:{},valid:"".concat(l=(10-l%10)%10)===t.charAt(c-1)}}(r.value);break;case"my":L=function(e){if(!/^\d{12}$/.test(e))return{meta:{},valid:!1};var t=parseInt(e.substr(0,2),10),n=parseInt(e.substr(2,2),10),i=parseInt(e.substr(4,2),10);if(!y(t+1900,n,i)&&!y(t+2e3,n,i))return{meta:{},valid:!1};var r=e.substr(6,2);return{meta:{},valid:-1===["17","18","19","20","69","70","73","80","81","94","95","96","97"].indexOf(r)}}(r.value);break;case"nl":L=function(e){if(e.length<8)return{meta:{},valid:!1};var t=e;if(8===t.length&&(t="0".concat(t)),!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(t))return{meta:{},valid:!1};if(t=t.replace(/\./g,""),0===parseInt(t,10))return{meta:{},valid:!1};for(var n=0,i=t.length,r=0;r<i-1;r++)n+=(9-r)*parseInt(t.charAt(r),10);return 10==(n%=11)&&(n=0),{meta:{},valid:"".concat(n)===t.charAt(i-1)}}(r.value);break;case"no":L=function(e){return/^\d{11}$/.test(e)?{meta:{},valid:"".concat(function(e){for(var t=[3,7,6,1,8,9,4,5,2],n=0,i=0;i<9;i++)n+=t[i]*parseInt(e.charAt(i),10);return 11-n%11}(e))===e.substr(-2,1)&&"".concat(function(e){for(var t=[5,4,3,2,7,6,5,4,3,2],n=0,i=0;i<10;i++)n+=t[i]*parseInt(e.charAt(i),10);return 11-n%11}(e))===e.substr(-1)}:{meta:{},valid:!1}}(r.value);break;case"pe":L=function(e){if(!/^\d{8}[0-9A-Z]*$/.test(e))return{meta:{},valid:!1};if(8===e.length)return{meta:{},valid:!0};for(var t=[3,2,7,6,5,4,3,2],n=0,i=0;i<8;i++)n+=t[i]*parseInt(e.charAt(i),10);var r=n%11,s=[6,5,4,3,2,1,1,0,9,8,7][r],a="KJIHGFEDCBA".charAt(r);return{meta:{},valid:e.charAt(8)==="".concat(s)||e.charAt(8)===a}}(r.value);break;case"pl":L=function(e){if(!/^[0-9]{11}$/.test(e))return{meta:{},valid:!1};for(var t=0,n=e.length,i=[1,3,7,9,1,3,7,9,1,3,7],r=0;r<n-1;r++)t+=i[r]*parseInt(e.charAt(r),10);return 0==(t%=10)&&(t=10),{meta:{},valid:"".concat(t=10-t)===e.charAt(n-1)}}(r.value);break;case"ro":L=function(e){if(!/^[0-9]{13}$/.test(e))return{meta:{},valid:!1};var t=parseInt(e.charAt(0),10);if(0===t||7===t||8===t)return{meta:{},valid:!1};var n=parseInt(e.substr(1,2),10),i=parseInt(e.substr(3,2),10),r=parseInt(e.substr(5,2),10);if(r>31&&i>12)return{meta:{},valid:!1};if(9!==t&&!b(n={1:1900,2:1900,3:1800,4:1800,5:2e3,6:2e3}[t+""]+n,i,r))return{meta:{},valid:!1};for(var s=0,a=[2,7,9,1,4,6,3,5,8,2,7,9],o=e.length,l=0;l<o-1;l++)s+=parseInt(e.charAt(l),10)*a[l];return 10==(s%=11)&&(s=1),{meta:{},valid:"".concat(s)===e.charAt(o-1)}}(r.value);break;case"rs":L=function(e){return{meta:{},valid:t(e,"RS")}}(r.value);break;case"se":L=function(e){if(!/^[0-9]{10}$/.test(e)&&!/^[0-9]{6}[-|+][0-9]{4}$/.test(e))return{meta:{},valid:!1};var t=e.replace(/[^0-9]/g,""),n=parseInt(t.substr(0,2),10)+1900,i=parseInt(t.substr(2,2),10),r=parseInt(t.substr(4,2),10);return _(n,i,r)?{meta:{},valid:x(t)}:{meta:{},valid:!1}}(r.value);break;case"si":L=function(e){return{meta:{},valid:t(e,"SI")}}(r.value);break;case"sm":L=function(e){return{meta:{},valid:/^\d{5}$/.test(e)}}(r.value);break;case"th":L=function(e){if(13!==e.length)return{meta:{},valid:!1};for(var t=0,n=0;n<12;n++)t+=parseInt(e.charAt(n),10)*(13-n);return{meta:{},valid:(11-t%11)%10===parseInt(e.charAt(12),10)}}(r.value);break;case"tr":L=function(e){if(11!==e.length)return{meta:{},valid:!1};for(var t=0,n=0;n<10;n++)t+=parseInt(e.charAt(n),10);return{meta:{},valid:t%10===parseInt(e.charAt(10),10)}}(r.value);break;case"tw":L=function(e){var t=e.toUpperCase();if(!/^[A-Z][12][0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var n=t.length,i="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(t.charAt(0))+10,r=Math.floor(i/10)+i%10*(n-1),s=0,a=1;a<n-1;a++)s+=parseInt(t.charAt(a),10)*(n-1-a);return{meta:{},valid:(r+s+parseInt(t.charAt(n-1),10))%10==0}}(r.value);break;case"uy":L=function(e){if(!/^\d{8}$/.test(e))return{meta:{},valid:!1};for(var t=[2,9,8,7,6,3,4],n=0,i=0;i<7;i++)n+=parseInt(e.charAt(i),10)*t[i];return(n%=10)>0&&(n=10-n),{meta:{},valid:"".concat(n)===e.charAt(7)}}(r.value);break;case"za":L=function(e){if(!/^[0-9]{10}[0|1][8|9][0-9]$/.test(e))return{meta:{},valid:!1};var t=parseInt(e.substr(0,2),10),n=(new Date).getFullYear()%100,i=parseInt(e.substr(2,2),10),r=parseInt(e.substr(4,2),10);return k(t=t>=n?t+1900:t+2e3,i,r)?{meta:{},valid:w(e)}:{meta:{},valid:!1}}(r.value)}var T=M(r.l10n&&r.l10n.id?s.message||r.l10n.id.country:s.message,r.l10n&&r.l10n.id&&r.l10n.id.countries?r.l10n.id.countries[p.toUpperCase()]:p.toUpperCase());return Object.assign({},{message:T},L)}}},Dn}();var En,On=Cn.exports,Pn={exports:{}},Yn={};Pn.exports=function(){if(En)return Yn;En=1;var e=s.algorithms.luhn;return Yn.imei=function(){return{validate:function(t){if(""===t.value)return{valid:!0};switch(!0){case/^\d{15}$/.test(t.value):case/^\d{2}-\d{6}-\d{6}-\d{1}$/.test(t.value):case/^\d{2}\s\d{6}\s\d{6}\s\d{1}$/.test(t.value):return{valid:e(t.value.replace(/[^0-9]/g,""))};case/^\d{14}$/.test(t.value):case/^\d{16}$/.test(t.value):case/^\d{2}-\d{6}-\d{6}(|-\d{2})$/.test(t.value):case/^\d{2}\s\d{6}\s\d{6}(|\s\d{2})$/.test(t.value):return{valid:!0};default:return{valid:!1}}}}},Yn}();var In,Nn=Pn.exports,Hn={exports:{}},jn={};Hn.exports=(In||(In=1,jn.imo=function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^IMO \d{7}$/i.test(e.value))return{valid:!1};for(var t=e.value.replace(/^.*(\d{7})$/,"$1"),n=0,i=6;i>=1;i--)n+=parseInt(t.slice(6-i,-i),10)*(i+1);return{valid:n%10===parseInt(t.charAt(6),10)}}}}),jn);var Fn,Rn=Hn.exports,zn={exports:{}},Bn={};zn.exports=(Fn||(Fn=1,Bn.isbn=function(){return{validate:function(e){if(""===e.value)return{meta:{type:null},valid:!0};var t;switch(!0){case/^\d{9}[\dX]$/.test(e.value):case 13===e.value.length&&/^(\d+)-(\d+)-(\d+)-([\dX])$/.test(e.value):case 13===e.value.length&&/^(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(e.value):t="ISBN10";break;case/^(978|979)\d{9}[\dX]$/.test(e.value):case 17===e.value.length&&/^(978|979)-(\d+)-(\d+)-(\d+)-([\dX])$/.test(e.value):case 17===e.value.length&&/^(978|979)\s(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(e.value):t="ISBN13";break;default:return{meta:{type:null},valid:!1}}var n,i,r=e.value.replace(/[^0-9X]/gi,"").split(""),s=r.length,a=0;switch(t){case"ISBN10":for(a=0,n=0;n<s-1;n++)a+=parseInt(r[n],10)*(10-n);return 11==(i=11-a%11)?i=0:10===i&&(i="X"),{meta:{type:t},valid:"".concat(i)===r[s-1]};case"ISBN13":for(a=0,n=0;n<s-1;n++)a+=n%2==0?parseInt(r[n],10):3*parseInt(r[n],10);return 10==(i=10-a%10)&&(i="0"),{meta:{type:t},valid:"".concat(i)===r[s-1]}}}}}),Bn);var Vn,Wn=zn.exports,qn={exports:{}},Un={};qn.exports=(Vn||(Vn=1,Un.isin=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.value.toUpperCase();if(!new RegExp("^(AF|AX|AL|DZ|AS|AD|AO|AI|AQ|AG|AR|AM|AW|AU|AT|AZ|BS|BH|BD|BB|BY|BE|BZ|BJ|BM|BT|BO|BQ|BA|BW|BV|BR|IO|BN|BG|BF|BI|KH|CM|CA|CV|KY|CF|TD|CL|CN|CX|CC|CO|KM|CG|CD|CK|CR|CI|HR|CU|CW|CY|CZ|DK|DJ|DM|DO|EC|EG|SV|GQ|ER|EE|ET|FK|FO|FJ|FI|FR|GF|PF|TF|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GU|GT|GG|GN|GW|GY|HT|HM|VA|HN|HK|HU|IS|IN|ID|IR|IQ|IE|IM|IL|IT|JM|JP|JE|JO|KZ|KE|KI|KP|KR|KW|KG|LA|LV|LB|LS|LR|LY|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MH|MQ|MR|MU|YT|MX|FM|MD|MC|MN|ME|MS|MA|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NU|NF|MP|NO|OM|PK|PW|PS|PA|PG|PY|PE|PH|PN|PL|PT|PR|QA|RE|RO|RU|RW|BL|SH|KN|LC|MF|PM|VC|WS|SM|ST|SA|SN|RS|SC|SL|SG|SX|SK|SI|SB|SO|ZA|GS|SS|ES|LK|SD|SR|SJ|SZ|SE|CH|SY|TW|TJ|TZ|TH|TL|TG|TK|TO|TT|TN|TR|TM|TC|TV|UG|UA|AE|GB|US|UM|UY|UZ|VU|VE|VN|VG|VI|WF|EH|YE|ZM|ZW)[0-9A-Z]{10}$").test(e.value))return{valid:!1};var n,i=t.length,r="";for(n=0;n<i-1;n++){var s=t.charCodeAt(n);r+=s>57?(s-55).toString():t.charAt(n)}var a="",o=r.length,l=o%2!=0?0:1;for(n=0;n<o;n++)a+=parseInt(r[n],10)*(n%2===l?2:1)+"";var c=0;for(n=0;n<a.length;n++)c+=parseInt(a.charAt(n),10);return{valid:"".concat(c=(10-c%10)%10)===t.charAt(i-1)}}}}),Un);var $n,Xn=qn.exports,Gn={exports:{}},Zn={};Gn.exports=($n||($n=1,Zn.ismn=function(){return{validate:function(e){if(""===e.value)return{meta:null,valid:!0};var t;switch(!0){case/^M\d{9}$/.test(e.value):case/^M-\d{4}-\d{4}-\d{1}$/.test(e.value):case/^M\s\d{4}\s\d{4}\s\d{1}$/.test(e.value):t="ISMN10";break;case/^9790\d{9}$/.test(e.value):case/^979-0-\d{4}-\d{4}-\d{1}$/.test(e.value):case/^979\s0\s\d{4}\s\d{4}\s\d{1}$/.test(e.value):t="ISMN13";break;default:return{meta:null,valid:!1}}var n=e.value;"ISMN10"===t&&(n="9790".concat(n.substr(1)));for(var i=0,r=(n=n.replace(/[^0-9]/gi,"")).length,s=[1,3],a=0;a<r-1;a++)i+=parseInt(n.charAt(a),10)*s[a%2];return{meta:{type:t},valid:"".concat(i=(10-i%10)%10)===n.charAt(r-1)}}}}),Zn);var Kn,Jn=Gn.exports,Qn={exports:{}},ei={};Qn.exports=(Kn||(Kn=1,ei.issn=function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^\d{4}-\d{3}[\dX]$/.test(e.value))return{valid:!1};var t=e.value.replace(/[^0-9X]/gi,"").split(""),n=t.length,i=0;"X"===t[7]&&(t[7]="10");for(var r=0;r<n;r++)i+=parseInt(t[r],10)*(8-r);return{valid:i%11==0}}}}),ei);var ti,ni=Qn.exports,ii={exports:{}},ri={};ii.exports=(ti||(ti=1,ri.mac=function(){return{validate:function(e){return{valid:""===e.value||/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(e.value)||/^([0-9A-Fa-f]{4}\.){2}([0-9A-Fa-f]{4})$/.test(e.value)}}}}),ri);var si,ai=ii.exports,oi={exports:{}},li={};oi.exports=function(){if(si)return li;si=1;var e=s.algorithms.luhn;return li.meid=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=t.value;if(/^[0-9A-F]{15}$/i.test(n)||/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}[- ][0-9A-F]$/i.test(n)||/^\d{19}$/.test(n)||/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}[- ]\d$/.test(n)){var i=n.charAt(n.length-1).toUpperCase();if((n=n.replace(/[- ]/g,"")).match(/^\d*$/i))return{valid:e(n)};n=n.slice(0,-1);var r="",s=void 0;for(s=1;s<=13;s+=2)r+=(2*parseInt(n.charAt(s),16)).toString(16);var a=0;for(s=0;s<r.length;s++)a+=parseInt(r.charAt(s),16);return{valid:a%10==0?"0"===i:i===(2*(10*Math.floor((a+10)/10)-a)).toString(16).toUpperCase()}}return/^[0-9A-F]{14}$/i.test(n)||/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}$/i.test(n)||/^\d{18}$/.test(n)||/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}$/.test(n)?{valid:!0}:{valid:!1}}}},li}();var ci,ui=oi.exports,di={exports:{}},hi={};di.exports=function(){if(ci)return hi;ci=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return hi.phone=function(){var e=["AE","BG","BR","CN","CZ","DE","DK","ES","FR","GB","IN","MA","NL","PK","RO","RU","SK","TH","US","VE"];return{validate:function(i){if(""===i.value)return{valid:!0};var r=Object.assign({},{message:""},n(i.options)),s=i.value.trim(),a=s.substr(0,2);if(!(a="function"==typeof r.country?r.country.call(this):r.country)||-1===e.indexOf(a.toUpperCase()))return{valid:!0};var o=!0;switch(a.toUpperCase()){case"AE":o=/^(((\+|00)?971[\s.-]?(\(0\)[\s.-]?)?|0)(\(5(0|2|5|6)\)|5(0|2|5|6)|2|3|4|6|7|9)|60)([\s.-]?[0-9]){7}$/.test(s);break;case"BG":o=/^(0|359|00)(((700|900)[0-9]{5}|((800)[0-9]{5}|(800)[0-9]{4}))|(87|88|89)([0-9]{7})|((2[0-9]{7})|(([3-9][0-9])(([0-9]{6})|([0-9]{5})))))$/.test(s.replace(/\+|\s|-|\/|\(|\)/gi,""));break;case"BR":o=/^(([\d]{4}[-.\s]{1}[\d]{2,3}[-.\s]{1}[\d]{2}[-.\s]{1}[\d]{2})|([\d]{4}[-.\s]{1}[\d]{3}[-.\s]{1}[\d]{4})|((\(?\+?[0-9]{2}\)?\s?)?(\(?\d{2}\)?\s?)?\d{4,5}[-.\s]?\d{4}))$/.test(s);break;case"CN":o=/^((00|\+)?(86(?:-| )))?((\d{11})|(\d{3}[- ]{1}\d{4}[- ]{1}\d{4})|((\d{2,4}[- ]){1}(\d{7,8}|(\d{3,4}[- ]{1}\d{4}))([- ]{1}\d{1,4})?))$/.test(s);break;case"CZ":o=/^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(s);break;case"DE":o=/^(((((((00|\+)49[ \-/]?)|0)[1-9][0-9]{1,4})[ \-/]?)|((((00|\+)49\()|\(0)[1-9][0-9]{1,4}\)[ \-/]?))[0-9]{1,7}([ \-/]?[0-9]{1,5})?)$/.test(s);break;case"DK":o=/^(\+45|0045|\(45\))?\s?[2-9](\s?\d){7}$/.test(s);break;case"ES":o=/^(?:(?:(?:\+|00)34\D?))?(?:5|6|7|8|9)(?:\d\D?){8}$/.test(s);break;case"FR":o=/^(?:(?:(?:\+|00)33[ ]?(?:\(0\)[ ]?)?)|0){1}[1-9]{1}([ .-]?)(?:\d{2}\1?){3}\d{2}$/.test(s);break;case"GB":o=/^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|#)\d+)?)$/.test(s);break;case"IN":o=/((\+?)((0[ -]+)*|(91 )*)(\d{12}|\d{10}))|\d{5}([- ]*)\d{6}/.test(s);break;case"MA":o=/^(?:(?:(?:\+|00)212[\s]?(?:[\s]?\(0\)[\s]?)?)|0){1}(?:5[\s.-]?[2-3]|6[\s.-]?[13-9]){1}[0-9]{1}(?:[\s.-]?\d{2}){3}$/.test(s);break;case"NL":o=/^((\+|00(\s|\s?-\s?)?)31(\s|\s?-\s?)?(\(0\)[-\s]?)?|0)[1-9]((\s|\s?-\s?)?[0-9])((\s|\s?-\s?)?[0-9])((\s|\s?-\s?)?[0-9])\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]$/gm.test(s);break;case"PK":o=/^0?3[0-9]{2}[0-9]{7}$/.test(s);break;case"RO":o=/^(\+4|)?(07[0-8]{1}[0-9]{1}|02[0-9]{2}|03[0-9]{2}){1}?(\s|\.|-)?([0-9]{3}(\s|\.|-|)){2}$/g.test(s);break;case"RU":o=/^((8|\+7|007)[-./ ]?)?([(/.]?\d{3}[)/.]?[-./ ]?)?[\d\-./ ]{7,10}$/g.test(s);break;case"SK":o=/^(((00)([- ]?)|\+)(421)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(s);break;case"TH":o=/^0\(?([6|8-9]{2})*-([0-9]{3})*-([0-9]{4})$/.test(s);break;case"VE":o=/^0(?:2(?:12|4[0-9]|5[1-9]|6[0-9]|7[0-8]|8[1-35-8]|9[1-5]|3[45789])|4(?:1[246]|2[46]))\d{7}$/.test(s);break;default:o=/^(?:(1-?)|(\+1 ?))?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/.test(s)}return{message:t(i.l10n&&i.l10n.phone?r.message||i.l10n.phone.country:r.message,i.l10n&&i.l10n.phone&&i.l10n.phone.countries?i.l10n.phone.countries[a]:a),valid:o}}}},hi}();var fi,pi=di.exports,mi={exports:{}},gi={};mi.exports=(fi||(fi=1,gi.rtn=function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^\d{9}$/.test(e.value))return{valid:!1};for(var t=0,n=0;n<e.value.length;n+=3)t+=3*parseInt(e.value.charAt(n),10)+7*parseInt(e.value.charAt(n+1),10)+parseInt(e.value.charAt(n+2),10);return{valid:0!==t&&t%10==0}}}}),gi);var vi,yi=mi.exports,bi={exports:{}},xi={};bi.exports=(vi||(vi=1,xi.sedol=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.value.toUpperCase();if(!/^[0-9A-Z]{7}$/.test(t))return{valid:!1};for(var n=[1,3,1,7,3,9,1],i=t.length,r=0,s=0;s<i-1;s++)r+=n[s]*parseInt(t.charAt(s),36);return{valid:"".concat(r=(10-r%10)%10)===t.charAt(i-1)}}}}),xi);var _i,wi=bi.exports,ki={exports:{}},Mi={};ki.exports=function(){if(_i)return Mi;_i=1;var e=s.algorithms.luhn;return Mi.siren=function(){return{validate:function(t){return{valid:""===t.value||/^\d{9}$/.test(t.value)&&e(t.value)}}}},Mi}();var Si,Ai=ki.exports,Li={exports:{}},Ti={};Li.exports=(Si||(Si=1,Ti.siret=function(){return{validate:function(e){if(""===e.value)return{valid:!0};for(var t,n=e.value.length,i=0,r=0;r<n;r++)t=parseInt(e.value.charAt(r),10),r%2==0&&(t*=2)>9&&(t-=9),i+=t;return{valid:i%10==0}}}}),Ti);var Ci,Di=Li.exports,Ei={exports:{}},Oi={};Ei.exports=function(){if(Ci)return Oi;Ci=1;var e=s.utils.format;return Oi.step=function(){return{validate:function(t){if(""===t.value)return{valid:!0};var n=parseFloat(t.value);if(isNaN(n)||!isFinite(n))return{valid:!1};var i=Object.assign({},{baseValue:0,message:"",step:1},t.options),r=function(e,t){if(0===t)return 1;var n="".concat(e).split("."),i="".concat(t).split("."),r=(1===n.length?0:n[1].length)+(1===i.length?0:i[1].length);return function(e,t){var n,i=Math.pow(10,t),r=e*i;switch(!0){case 0===r:n=0;break;case r>0:n=1;break;case r<0:n=-1}return r%1==.5*n?(Math.floor(r)+(n>0?1:0))/i:Math.round(r)/i}(e-t*Math.floor(e/t),r)}(n-i.baseValue,i.step);return{message:e(t.l10n?i.message||t.l10n.step.default:i.message,"".concat(i.step)),valid:0===r||r===i.step}}}},Oi}();var Pi,Yi=Ei.exports,Ii={exports:{}},Ni={};Ii.exports=function(){if(Pi)return Ni;Pi=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return Ni.uuid=function(){return{validate:function(e){if(""===e.value)return{valid:!0};var i=Object.assign({},{message:""},n(e.options)),r={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},s=i.version?"".concat(i.version):"all";return{message:i.version?t(e.l10n?i.message||e.l10n.uuid.version:i.message,i.version):e.l10n?e.l10n.uuid.default:i.message,valid:null===r[s]||r[s].test(e.value)}}}},Ni}();var Hi,ji=Ii.exports,Fi={exports:{}},Ri={};Fi.exports=function(){if(Hi)return Ri;Hi=1;var e=s,t=e.utils.isValidDate,n=e.utils.isValidDate,i=e.algorithms.mod11And10,r=e.algorithms.luhn,a=e.algorithms.mod11And10,o=e.algorithms.luhn,l=e.utils.isValidDate,c=e.algorithms.mod97And10;function u(e){if(e.length<8)return{meta:{},valid:!1};var t=e;if(8===t.length&&(t="0".concat(t)),!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(t))return{meta:{},valid:!1};if(t=t.replace(/\./g,""),0===parseInt(t,10))return{meta:{},valid:!1};for(var n=0,i=t.length,r=0;r<i-1;r++)n+=(9-r)*parseInt(t.charAt(r),10);return 10==(n%=11)&&(n=0),{meta:{},valid:"".concat(n)===t.charAt(i-1)}}var d=e.algorithms.luhn,h=e.utils.format,f=e.utils.removeUndefined;return Ri.vat=function(){var e=["AR","AT","BE","BG","BR","CH","CY","CZ","DE","DK","EE","EL","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LT","LU","LV","MT","NL","NO","PL","PT","RO","RU","RS","SE","SK","SI","VE","ZA"];return{validate:function(s){var p=s.value;if(""===p)return{valid:!0};var m=Object.assign({},{message:""},f(s.options)),g=p.substr(0,2);if(g="function"==typeof m.country?m.country.call(this):m.country,-1===e.indexOf(g))return{valid:!0};var v={meta:{},valid:!0};switch(g.toLowerCase()){case"ar":v=function(e){var t=e.replace("-","");if(/^AR[0-9]{11}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{11}$/.test(t))return{meta:{},valid:!1};for(var n=[5,4,3,2,7,6,5,4,3,2],i=0,r=0;r<10;r++)i+=parseInt(t.charAt(r),10)*n[r];return 11==(i=11-i%11)&&(i=0),{meta:{},valid:"".concat(i)===t.substr(10)}}(p);break;case"at":v=function(e){var t=e;if(/^ATU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^U[0-9]{8}$/.test(t))return{meta:{},valid:!1};t=t.substr(1);for(var n=[1,2,1,2,1,2,1],i=0,r=0,s=0;s<7;s++)(r=parseInt(t.charAt(s),10)*n[s])>9&&(r=Math.floor(r/10)+r%10),i+=r;return 10==(i=10-(i+4)%10)&&(i=0),{meta:{},valid:"".concat(i)===t.substr(7,1)}}(p);break;case"be":v=function(e){var t=e;return/^BE[0]?[0-9]{9}$/.test(t)&&(t=t.substr(2)),/^[0]?[0-9]{9}$/.test(t)?(9===t.length&&(t="0".concat(t)),"0"===t.substr(1,1)?{meta:{},valid:!1}:{meta:{},valid:(parseInt(t.substr(0,8),10)+parseInt(t.substr(8,2),10))%97==0}):{meta:{},valid:!1}}(p);break;case"bg":v=function(e){var n=e;if(/^BG[0-9]{9,10}$/.test(n)&&(n=n.substr(2)),!/^[0-9]{9,10}$/.test(n))return{meta:{},valid:!1};var i=0,r=0;if(9===n.length){for(r=0;r<8;r++)i+=parseInt(n.charAt(r),10)*(r+1);if(10==(i%=11)){for(i=0,r=0;r<8;r++)i+=parseInt(n.charAt(r),10)*(r+3);i%=11}return{meta:{},valid:"".concat(i%=10)===n.substr(8)}}return{meta:{},valid:function(e){var n=parseInt(e.substr(0,2),10)+1900,i=parseInt(e.substr(2,2),10),r=parseInt(e.substr(4,2),10);if(i>40?(n+=100,i-=40):i>20&&(n-=100,i-=20),!t(n,i,r))return!1;for(var s=[2,4,8,5,10,9,7,3,6],a=0,o=0;o<9;o++)a+=parseInt(e.charAt(o),10)*s[o];return"".concat(a=a%11%10)===e.substr(9,1)}(n)||function(e){for(var t=[21,19,17,13,11,9,7,3,1],n=0,i=0;i<9;i++)n+=parseInt(e.charAt(i),10)*t[i];return"".concat(n%=10)===e.substr(9,1)}(n)||function(e){for(var t=[4,3,2,7,6,5,4,3,2],n=0,i=0;i<9;i++)n+=parseInt(e.charAt(i),10)*t[i];return 10!=(n=11-n%11)&&(11===n&&(n=0),"".concat(n)===e.substr(9,1))}(n)}}(p);break;case"br":v=function(e){if(""===e)return{meta:{},valid:!0};var t=e.replace(/[^\d]+/g,"");if(""===t||14!==t.length)return{meta:{},valid:!1};if("00000000000000"===t||"11111111111111"===t||"22222222222222"===t||"33333333333333"===t||"44444444444444"===t||"55555555555555"===t||"66666666666666"===t||"77777777777777"===t||"88888888888888"===t||"99999999999999"===t)return{meta:{},valid:!1};var n,i=t.length-2,r=t.substring(0,i),s=t.substring(i),a=0,o=i-7;for(n=i;n>=1;n--)a+=parseInt(r.charAt(i-n),10)*o--,o<2&&(o=9);var l=a%11<2?0:11-a%11;if(l!==parseInt(s.charAt(0),10))return{meta:{},valid:!1};for(i+=1,r=t.substring(0,i),a=0,o=i-7,n=i;n>=1;n--)a+=parseInt(r.charAt(i-n),10)*o--,o<2&&(o=9);return{meta:{},valid:(l=a%11<2?0:11-a%11)===parseInt(s.charAt(1),10)}}(p);break;case"ch":v=function(e){var t=e;if(/^CHE[0-9]{9}(MWST|TVA|IVA|TPV)?$/.test(t)&&(t=t.substr(2)),!/^E[0-9]{9}(MWST|TVA|IVA|TPV)?$/.test(t))return{meta:{},valid:!1};t=t.substr(1);for(var n=[5,4,3,2,7,6,5,4],i=0,r=0;r<8;r++)i+=parseInt(t.charAt(r),10)*n[r];return 10==(i=11-i%11)?{meta:{},valid:!1}:(11===i&&(i=0),{meta:{},valid:"".concat(i)===t.substr(8,1)})}(p);break;case"cy":v=function(e){var t=e;if(/^CY[0-5|9][0-9]{7}[A-Z]$/.test(t)&&(t=t.substr(2)),!/^[0-5|9][0-9]{7}[A-Z]$/.test(t))return{meta:{},valid:!1};if("12"===t.substr(0,2))return{meta:{},valid:!1};for(var n=0,i={0:1,1:0,2:5,3:7,4:9,5:13,6:15,7:17,8:19,9:21},r=0;r<8;r++){var s=parseInt(t.charAt(r),10);r%2==0&&(s=i["".concat(s)]),n+=s}return{meta:{},valid:"".concat("ABCDEFGHIJKLMNOPQRSTUVWXYZ"[n%26])===t.substr(8,1)}}(p);break;case"cz":v=function(e){var t=e;if(/^CZ[0-9]{8,10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8,10}$/.test(t))return{meta:{},valid:!1};var i=0,r=0;if(8===t.length){if("9"==="".concat(t.charAt(0)))return{meta:{},valid:!1};for(i=0,r=0;r<7;r++)i+=parseInt(t.charAt(r),10)*(8-r);return 10==(i=11-i%11)&&(i=0),11===i&&(i=1),{meta:{},valid:"".concat(i)===t.substr(7,1)}}if(9===t.length&&"6"==="".concat(t.charAt(0))){for(i=0,r=0;r<7;r++)i+=parseInt(t.charAt(r+1),10)*(8-r);return 10==(i=11-i%11)&&(i=0),11===i&&(i=1),{meta:{},valid:"".concat(i=[8,7,6,5,4,3,2,1,0,9,10][i-1])===t.substr(8,1)}}if(9===t.length||10===t.length){var s=1900+parseInt(t.substr(0,2),10),a=parseInt(t.substr(2,2),10)%50%20,o=parseInt(t.substr(4,2),10);if(9===t.length){if(s>=1980&&(s-=100),s>1953)return{meta:{},valid:!1}}else s<1954&&(s+=100);if(!n(s,a,o))return{meta:{},valid:!1};if(10===t.length){var l=parseInt(t.substr(0,9),10)%11;return s<1985&&(l%=10),{meta:{},valid:"".concat(l)===t.substr(9,1)}}return{meta:{},valid:!0}}return{meta:{},valid:!1}}(p);break;case"de":v=function(e){var t=e;return/^DE[0-9]{9}$/.test(t)&&(t=t.substr(2)),/^[1-9][0-9]{8}$/.test(t)?{meta:{},valid:i(t)}:{meta:{},valid:!1}}(p);break;case"dk":v=function(e){var t=e;if(/^DK[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var n=0,i=[2,7,6,5,4,3,2,1],r=0;r<8;r++)n+=parseInt(t.charAt(r),10)*i[r];return{meta:{},valid:n%11==0}}(p);break;case"ee":v=function(e){var t=e;if(/^EE[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var n=0,i=[3,7,1,3,7,1,3,7,1],r=0;r<9;r++)n+=parseInt(t.charAt(r),10)*i[r];return{meta:{},valid:n%10==0}}(p);break;case"el":case"gr":v=function(e){var t=e;if(/^(GR|EL)[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};8===t.length&&(t="0".concat(t));for(var n=[256,128,64,32,16,8,4,2],i=0,r=0;r<8;r++)i+=parseInt(t.charAt(r),10)*n[r];return{meta:{},valid:"".concat(i=i%11%10)===t.substr(8,1)}}(p);break;case"es":v=function(e){var t=e;if(/^ES[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(t)&&(t=t.substr(2)),!/^[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(t))return{meta:{},valid:!1};var n,i,r=t.charAt(0);return/^[0-9]$/.test(r)?{meta:{type:"DNI"},valid:(n=t,i=parseInt(n.substr(0,8),10),"".concat("TRWAGMYFPDXBNJZSQVHLCKE"[i%23])===n.substr(8,1))}:/^[XYZ]$/.test(r)?{meta:{type:"NIE"},valid:function(e){var t=["XYZ".indexOf(e.charAt(0)),e.substr(1)].join(""),n="TRWAGMYFPDXBNJZSQVHLCKE"[parseInt(t,10)%23];return"".concat(n)===e.substr(8,1)}(t)}:{meta:{type:"CIF"},valid:function(e){var t,n=e.charAt(0);if(-1!=="KLM".indexOf(n))return t=parseInt(e.substr(1,8),10),"".concat(t="TRWAGMYFPDXBNJZSQVHLCKE"[t%23])===e.substr(8,1);if(-1!=="ABCDEFGHJNPQRSUVW".indexOf(n)){for(var i=[2,1,2,1,2,1,2],r=0,s=0,a=0;a<7;a++)(s=parseInt(e.charAt(a+1),10)*i[a])>9&&(s=Math.floor(s/10)+s%10),r+=s;return 10==(r=10-r%10)&&(r=0),"".concat(r)===e.substr(8,1)||"JABCDEFGHI"[r]===e.substr(8,1)}return!1}(t)}}(p);break;case"fi":v=function(e){var t=e;if(/^FI[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var n=[7,9,10,5,8,4,2,1],i=0,r=0;r<8;r++)i+=parseInt(t.charAt(r),10)*n[r];return{meta:{},valid:i%11==0}}(p);break;case"fr":v=function(e){var t=e;if(/^FR[0-9A-Z]{2}[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9A-Z]{2}[0-9]{9}$/.test(t))return{meta:{},valid:!1};if("000"!==t.substr(2,4))return{meta:{},valid:r(t.substr(2))};if(/^[0-9]{2}$/.test(t.substr(0,2)))return{meta:{},valid:t.substr(0,2)==="".concat(parseInt(t.substr(2)+"12",10)%97)};var n,i="0123456789ABCDEFGHJKLMNPQRSTUVWXYZ";return n=/^[0-9]$/.test(t.charAt(0))?24*i.indexOf(t.charAt(0))+i.indexOf(t.charAt(1))-10:34*i.indexOf(t.charAt(0))+i.indexOf(t.charAt(1))-100,{meta:{},valid:(parseInt(t.substr(2),10)+1+Math.floor(n/11))%11==n%11}}(p);break;case"gb":v=function(e){var t=e;if((/^GB[0-9]{9}$/.test(t)||/^GB[0-9]{12}$/.test(t)||/^GBGD[0-9]{3}$/.test(t)||/^GBHA[0-9]{3}$/.test(t)||/^GB(GD|HA)8888[0-9]{5}$/.test(t))&&(t=t.substr(2)),!(/^[0-9]{9}$/.test(t)||/^[0-9]{12}$/.test(t)||/^GD[0-9]{3}$/.test(t)||/^HA[0-9]{3}$/.test(t)||/^(GD|HA)8888[0-9]{5}$/.test(t)))return{meta:{},valid:!1};var n=t.length;if(5===n){var i=t.substr(0,2),r=parseInt(t.substr(2),10);return{meta:{},valid:"GD"===i&&r<500||"HA"===i&&r>=500}}if(11===n&&("GD8888"===t.substr(0,6)||"HA8888"===t.substr(0,6)))return"GD"===t.substr(0,2)&&parseInt(t.substr(6,3),10)>=500||"HA"===t.substr(0,2)&&parseInt(t.substr(6,3),10)<500?{meta:{},valid:!1}:{meta:{},valid:parseInt(t.substr(6,3),10)%97===parseInt(t.substr(9,2),10)};if(9===n||12===n){for(var s=[8,7,6,5,4,3,2,10,1],a=0,o=0;o<9;o++)a+=parseInt(t.charAt(o),10)*s[o];return a%=97,{meta:{},valid:parseInt(t.substr(0,3),10)>=100?0===a||42===a||55===a:0===a}}return{meta:{},valid:!0}}(p);break;case"hr":v=function(e){var t=e;return/^HR[0-9]{11}$/.test(t)&&(t=t.substr(2)),/^[0-9]{11}$/.test(t)?{meta:{},valid:a(t)}:{meta:{},valid:!1}}(p);break;case"hu":v=function(e){var t=e;if(/^HU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var n=[9,7,3,1,9,7,3,1],i=0,r=0;r<8;r++)i+=parseInt(t.charAt(r),10)*n[r];return{meta:{},valid:i%10==0}}(p);break;case"ie":v=function(e){var t=e;if(/^IE[0-9][0-9A-Z*+][0-9]{5}[A-Z]{1,2}$/.test(t)&&(t=t.substr(2)),!/^[0-9][0-9A-Z*+][0-9]{5}[A-Z]{1,2}$/.test(t))return{meta:{},valid:!1};var n=function(e){for(var t=e;t.length<7;)t="0".concat(t);for(var n="WABCDEFGHIJKLMNOPQRSTUV",i=0,r=0;r<7;r++)i+=parseInt(t.charAt(r),10)*(8-r);return i+=9*n.indexOf(t.substr(7)),n[i%23]};return/^[0-9]+$/.test(t.substr(0,7))?{meta:{},valid:t.charAt(7)===n("".concat(t.substr(0,7)).concat(t.substr(8)))}:-1!=="ABCDEFGHIJKLMNOPQRSTUVWXYZ+*".indexOf(t.charAt(1))?{meta:{},valid:t.charAt(7)===n("".concat(t.substr(2,5)).concat(t.substr(0,1)))}:{meta:{},valid:!0}}(p);break;case"is":v=function(e){var t=e;return/^IS[0-9]{5,6}$/.test(t)&&(t=t.substr(2)),{meta:{},valid:/^[0-9]{5,6}$/.test(t)}}(p);break;case"it":v=function(e){var t=e;if(/^IT[0-9]{11}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{11}$/.test(t))return{meta:{},valid:!1};if(0===parseInt(t.substr(0,7),10))return{meta:{},valid:!1};var n=parseInt(t.substr(7,3),10);return n<1||n>201&&999!==n&&888!==n?{meta:{},valid:!1}:{meta:{},valid:o(t)}}(p);break;case"lt":v=function(e){var t=e;if(/^LT([0-9]{7}1[0-9]|[0-9]{10}1[0-9])$/.test(t)&&(t=t.substr(2)),!/^([0-9]{7}1[0-9]|[0-9]{10}1[0-9])$/.test(t))return{meta:{},valid:!1};var n,i=t.length,r=0;for(n=0;n<i-1;n++)r+=parseInt(t.charAt(n),10)*(1+n%9);var s=r%11;if(10===s)for(r=0,n=0;n<i-1;n++)r+=parseInt(t.charAt(n),10)*(1+(n+2)%9);return{meta:{},valid:"".concat(s=s%11%10)===t.charAt(i-1)}}(p);break;case"lu":v=function(e){var t=e;return/^LU[0-9]{8}$/.test(t)&&(t=t.substring(2)),/^[0-9]{8}$/.test(t)?{meta:{},valid:parseInt(t.substring(0,6),10)%89===parseInt(t.substring(6,8),10)}:{meta:{},valid:!1}}(p);break;case"lv":v=function(e){var t=e;if(/^LV[0-9]{11}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{11}$/.test(t))return{meta:{},valid:!1};var n,i=parseInt(t.charAt(0),10),r=t.length,s=0,a=[];if(i>3){for(s=0,a=[9,1,4,8,3,10,2,5,7,6,1],n=0;n<r;n++)s+=parseInt(t.charAt(n),10)*a[n];return{meta:{},valid:3==(s%=11)}}var o=parseInt(t.substr(0,2),10),c=parseInt(t.substr(2,2),10),u=parseInt(t.substr(4,2),10);if(u=u+1800+100*parseInt(t.charAt(6),10),!l(u,c,o))return{meta:{},valid:!1};for(s=0,a=[10,5,8,4,2,1,6,3,7,9],n=0;n<r-1;n++)s+=parseInt(t.charAt(n),10)*a[n];return{meta:{},valid:"".concat(s=(s+1)%11%10)===t.charAt(r-1)}}(p);break;case"mt":v=function(e){var t=e;if(/^MT[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var n=[3,4,6,7,8,9,10,1],i=0,r=0;r<8;r++)i+=parseInt(t.charAt(r),10)*n[r];return{meta:{},valid:i%37==0}}(p);break;case"nl":v=function(e){var t=e;return/^NL[0-9]{9}B[0-9]{2}$/.test(t)&&(t=t.substr(2)),/^[0-9]{9}B[0-9]{2}$/.test(t)?{meta:{},valid:u(t.substr(0,9)).valid||c("NL".concat(t))}:{meta:{},valid:!1}}(p);break;case"no":v=function(e){var t=e;if(/^NO[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var n=[3,2,7,6,5,4,3,2],i=0,r=0;r<8;r++)i+=parseInt(t.charAt(r),10)*n[r];return 11==(i=11-i%11)&&(i=0),{meta:{},valid:"".concat(i)===t.substr(8,1)}}(p);break;case"pl":v=function(e){var t=e;if(/^PL[0-9]{10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{10}$/.test(t))return{meta:{},valid:!1};for(var n=[6,5,7,2,3,4,5,6,7,-1],i=0,r=0;r<10;r++)i+=parseInt(t.charAt(r),10)*n[r];return{meta:{},valid:i%11==0}}(p);break;case"pt":v=function(e){var t=e;if(/^PT[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var n=[9,8,7,6,5,4,3,2],i=0,r=0;r<8;r++)i+=parseInt(t.charAt(r),10)*n[r];return(i=11-i%11)>9&&(i=0),{meta:{},valid:"".concat(i)===t.substr(8,1)}}(p);break;case"ro":v=function(e){var t=e;if(/^RO[1-9][0-9]{1,9}$/.test(t)&&(t=t.substr(2)),!/^[1-9][0-9]{1,9}$/.test(t))return{meta:{},valid:!1};for(var n=t.length,i=[7,5,3,2,1,7,5,3,2].slice(10-n),r=0,s=0;s<n-1;s++)r+=parseInt(t.charAt(s),10)*i[s];return{meta:{},valid:"".concat(r=10*r%11%10)===t.substr(n-1,1)}}(p);break;case"rs":v=function(e){var t=e;if(/^RS[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var n=10,i=0,r=0;r<8;r++)0==(i=(parseInt(t.charAt(r),10)+n)%10)&&(i=10),n=2*i%11;return{meta:{},valid:(n+parseInt(t.substr(8,1),10))%10==1}}(p);break;case"ru":v=function(e){var t=e;if(/^RU([0-9]{10}|[0-9]{12})$/.test(t)&&(t=t.substr(2)),!/^([0-9]{10}|[0-9]{12})$/.test(t))return{meta:{},valid:!1};var n=0;if(10===t.length){var i=[2,4,10,3,5,9,4,6,8,0],r=0;for(n=0;n<10;n++)r+=parseInt(t.charAt(n),10)*i[n];return(r%=11)>9&&(r%=10),{meta:{},valid:"".concat(r)===t.substr(9,1)}}if(12===t.length){var s=[7,2,4,10,3,5,9,4,6,8,0],a=[3,7,2,4,10,3,5,9,4,6,8,0],o=0,l=0;for(n=0;n<11;n++)o+=parseInt(t.charAt(n),10)*s[n],l+=parseInt(t.charAt(n),10)*a[n];return(o%=11)>9&&(o%=10),(l%=11)>9&&(l%=10),{meta:{},valid:"".concat(o)===t.substr(10,1)&&"".concat(l)===t.substr(11,1)}}return{meta:{},valid:!0}}(p);break;case"se":v=function(e){var t=e;return/^SE[0-9]{10}01$/.test(t)&&(t=t.substr(2)),/^[0-9]{10}01$/.test(t)?(t=t.substr(0,10),{meta:{},valid:d(t)}):{meta:{},valid:!1}}(p);break;case"si":v=function(e){var t=e.match(/^(SI)?([1-9][0-9]{7})$/);if(!t)return{meta:{},valid:!1};for(var n=t[1]?e.substr(2):e,i=[8,7,6,5,4,3,2],r=0,s=0;s<7;s++)r+=parseInt(n.charAt(s),10)*i[s];return 10==(r=11-r%11)&&(r=0),{meta:{},valid:"".concat(r)===n.substr(7,1)}}(p);break;case"sk":v=function(e){var t=e;return/^SK[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(t)&&(t=t.substr(2)),/^[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(t)?{meta:{},valid:parseInt(t,10)%11==0}:{meta:{},valid:!1}}(p);break;case"ve":v=function(e){var t=e;if(/^VE[VEJPG][0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[VEJPG][0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var n=[3,2,7,6,5,4,3,2],i={E:8,G:20,J:12,P:16,V:4}[t.charAt(0)],r=0;r<8;r++)i+=parseInt(t.charAt(r+1),10)*n[r];return 11!=(i=11-i%11)&&10!==i||(i=0),{meta:{},valid:"".concat(i)===t.substr(9,1)}}(p);break;case"za":v=function(e){var t=e;return/^ZA4[0-9]{9}$/.test(t)&&(t=t.substr(2)),{meta:{},valid:/^4[0-9]{9}$/.test(t)}}(p)}var y=h(s.l10n&&s.l10n.vat?m.message||s.l10n.vat.country:m.message,s.l10n&&s.l10n.vat&&s.l10n.vat.countries?s.l10n.vat.countries[g.toUpperCase()]:g.toUpperCase());return Object.assign({},{message:y},v)}}},Ri}();var zi,Bi=Fi.exports,Vi={exports:{}},Wi={};Vi.exports=(zi||(zi=1,Wi.vin=function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^[a-hj-npr-z0-9]{8}[0-9xX][a-hj-npr-z0-9]{8}$/i.test(e.value))return{valid:!1};for(var t=e.value.toUpperCase(),n={A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,J:1,K:2,L:3,M:4,N:5,P:7,R:9,S:2,T:3,U:4,V:5,W:6,X:7,Y:8,Z:9,0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},i=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],r=t.length,s=0,a=0;a<r;a++)s+=n["".concat(t.charAt(a))]*i[a];var o="".concat(s%11);return"10"===o&&(o="X"),{valid:o===t.charAt(8)}}}}),Wi);var qi,Ui=Vi.exports,$i={exports:{}},Xi={};$i.exports=function(){if(qi)return Xi;qi=1;var e=s,t=e.utils.format,n=e.utils.removeUndefined;return Xi.zipCode=function(){var e=["AT","BG","BR","CA","CH","CZ","DE","DK","ES","FR","GB","IE","IN","IT","MA","NL","PL","PT","RO","RU","SE","SG","SK","US"];return{validate:function(i){var r=Object.assign({},{message:""},n(i.options));if(""===i.value||!r.country)return{valid:!0};var s=i.value.substr(0,2);if(!(s="function"==typeof r.country?r.country.call(this):r.country)||-1===e.indexOf(s.toUpperCase()))return{valid:!0};var a=!1;switch(s=s.toUpperCase()){case"AT":case"CH":a=/^([1-9]{1})(\d{3})$/.test(i.value);break;case"BG":a=/^([1-9]{1}[0-9]{3})$/.test(i.value);break;case"BR":a=/^(\d{2})([.]?)(\d{3})([-]?)(\d{3})$/.test(i.value);break;case"CA":a=/^(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}\s?[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}[0-9]{1}$/i.test(i.value);break;case"CZ":case"SK":a=/^(\d{3})([ ]?)(\d{2})$/.test(i.value);break;case"DE":a=/^(?!01000|99999)(0[1-9]\d{3}|[1-9]\d{4})$/.test(i.value);break;case"DK":a=/^(DK(-|\s)?)?\d{4}$/i.test(i.value);break;case"ES":a=/^(?:0[1-9]|[1-4][0-9]|5[0-2])\d{3}$/.test(i.value);break;case"FR":a=/^[0-9]{5}$/i.test(i.value);break;case"GB":a=function(e){for(var t="[ABCDEFGHIJKLMNOPRSTUWYZ]",n="[ABCDEFGHKLMNOPQRSTUVWXY]",i="[ABDEFGHJLNPQRSTUWXYZ]",r=0,s=[new RegExp("^(".concat(t,"{1}").concat(n,"?[0-9]{1,2})(\\s*)([0-9]{1}").concat(i,"{2})$"),"i"),new RegExp("^(".concat(t,"{1}[0-9]{1}").concat("[ABCDEFGHJKPMNRSTUVWXY]","{1})(\\s*)([0-9]{1}").concat(i,"{2})$"),"i"),new RegExp("^(".concat(t,"{1}").concat(n,"{1}?[0-9]{1}").concat("[ABEHMNPRVWXY]","{1})(\\s*)([0-9]{1}").concat(i,"{2})$"),"i"),new RegExp("^(BF1)(\\s*)([0-6]{1}[ABDEFGHJLNPQRST]{1}[ABDEFGHJLNPQRSTUWZYZ]{1})$","i"),/^(GIR)(\s*)(0AA)$/i,/^(BFPO)(\s*)([0-9]{1,4})$/i,/^(BFPO)(\s*)(c\/o\s*[0-9]{1,3})$/i,/^([A-Z]{4})(\s*)(1ZZ)$/i,/^(AI-2640)$/i];r<s.length;r++)if(s[r].test(e))return!0;return!1}(i.value);break;case"IN":a=/^\d{3}\s?\d{3}$/.test(i.value);break;case"IE":a=/^(D6W|[ACDEFHKNPRTVWXY]\d{2})\s[0-9ACDEFHKNPRTVWXY]{4}$/.test(i.value);break;case"IT":a=/^(I-|IT-)?\d{5}$/i.test(i.value);break;case"MA":a=/^[1-9][0-9]{4}$/i.test(i.value);break;case"NL":a=/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(i.value);break;case"PL":a=/^[0-9]{2}-[0-9]{3}$/.test(i.value);break;case"PT":a=/^[1-9]\d{3}-\d{3}$/.test(i.value);break;case"RO":a=/^(0[1-8]{1}|[1-9]{1}[0-5]{1})?[0-9]{4}$/i.test(i.value);break;case"RU":a=/^[0-9]{6}$/i.test(i.value);break;case"SE":a=/^(S-)?\d{3}\s?\d{2}$/i.test(i.value);break;case"SG":a=/^([0][1-9]|[1-6][0-9]|[7]([0-3]|[5-9])|[8][0-2])(\d{4})$/i.test(i.value);break;default:a=/^\d{4,5}([-]?\d{4})?$/.test(i.value)}return{message:t(i.l10n&&i.l10n.zipCode?r.message||i.l10n.zipCode.country:r.message,i.l10n&&i.l10n.zipCode&&i.l10n.zipCode.countries?i.l10n.zipCode.countries[s]:s),valid:a}}}},Xi}();var Gi=$i.exports,Zi={Alias:c.Alias,Aria:f.Aria,Declarative:v.Declarative,DefaultSubmit:_.DefaultSubmit,Dependency:S.Dependency,Excluded:C.Excluded,FieldStatus:P.FieldStatus,Framework:z.Framework,Icon:q.Icon,Message:F.Message,Sequence:G.Sequence,SubmitButton:Q.SubmitButton,Tooltip:ie.Tooltip,Trigger:oe.Trigger},Ki={between:de.between,blank:me.blank,callback:be.callback,choice:ke.choice,creditCard:Le.creditCard,date:Ee.date,different:Ie.different,digits:Fe.digits,emailAddress:Ve.emailAddress,file:$e.file,greaterThan:Ke.greaterThan,identical:tt.identical,integer:st.integer,ip:ct.ip,lessThan:ft.lessThan,notEmpty:vt.notEmpty,numeric:_t.numeric,promise:St.promise,regexp:Ct.regexp,remote:Pt.remote,stringCase:Ht.stringCase,stringLength:zt.stringLength,uri:qt.uri,base64:Gt.base64,bic:Qt.bic,color:rn.color,cusip:ln.cusip,ean:hn.ean,ein:gn.ein,grid:xn.grid,hex:Mn.hex,iban:Tn.iban,id:On.id,imei:Nn.imei,imo:Rn.imo,isbn:Wn.isbn,isin:Xn.isin,ismn:Jn.ismn,issn:ni.issn,mac:ai.mac,meid:ui.meid,phone:pi.phone,rtn:yi.rtn,sedol:wi.sedol,siren:Ai.siren,siret:Di.siret,step:Yi.step,uuid:ji.uuid,vat:Bi.vat,vin:Ui.vin,zipCode:Gi.zipCode};e.Plugin=s.Plugin,e.algorithms=s.algorithms,e.formValidation=function(e,t){var n=s.formValidation(e,t);return Object.keys(Ki).forEach((function(e){return n.registerValidator(e,Ki[e])})),n},e.plugins=Zi,e.utils=s.utils,e.validators=Ki})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@form-validation/core"),require("@form-validation/plugin-framework")):"function"==typeof define&&define.amd?define(["@form-validation/core","@form-validation/plugin-framework"],t):((e="undefined"!=typeof globalThis?globalThis:e||self).FormValidation=e.FormValidation||{},e.FormValidation.plugins=e.FormValidation.plugins||{},e.FormValidation.plugins.Bootstrap5=t(e.FormValidation,e.FormValidation.plugins))}(this,(function(e,t){"use strict";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},i=e.utils.classSet,r=e.utils.hasClass;return function(e){function t(t){var n=e.call(this,Object.assign({},{eleInvalidClass:"is-invalid",eleValidClass:"is-valid",formClass:"fv-plugins-bootstrap5",rowInvalidClass:"fv-plugins-bootstrap5-row-invalid",rowPattern:/^(.*)(col|offset)(-(sm|md|lg|xl))*-[0-9]+(.*)$/,rowSelector:".row",rowValidClass:"fv-plugins-bootstrap5-row-valid"},t))||this;return n.eleValidatedHandler=n.handleElementValidated.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(t,e),t.prototype.install=function(){e.prototype.install.call(this),this.core.on("core.element.validated",this.eleValidatedHandler)},t.prototype.uninstall=function(){e.prototype.uninstall.call(this),this.core.off("core.element.validated",this.eleValidatedHandler)},t.prototype.handleElementValidated=function(e){var t=e.element.getAttribute("type");if(("checkbox"===t||"radio"===t)&&e.elements.length>1&&r(e.element,"form-check-input")){var n=e.element.parentElement;r(n,"form-check")&&r(n,"form-check-inline")&&i(n,{"is-invalid":!e.valid,"is-valid":e.valid})}},t.prototype.onIconPlaced=function(e){i(e.element,{"fv-plugins-icon-input":!0});var t=e.element.parentElement;r(t,"input-group")&&(t.parentElement.insertBefore(e.iconElement,t.nextSibling),e.element.nextElementSibling&&r(e.element.nextElementSibling,"input-group-text")&&i(e.iconElement,{"fv-plugins-icon-input-group":!0}));var n=e.element.getAttribute("type");if("checkbox"===n||"radio"===n){var s=t.parentElement;r(t,"form-check")?(i(e.iconElement,{"fv-plugins-icon-check":!0}),t.parentElement.insertBefore(e.iconElement,t.nextSibling)):r(t.parentElement,"form-check")&&(i(e.iconElement,{"fv-plugins-icon-check":!0}),s.parentElement.insertBefore(e.iconElement,s.nextSibling))}},t.prototype.onMessagePlaced=function(e){e.messageElement.classList.add("invalid-feedback");var t=e.element.parentElement;if(r(t,"input-group"))return t.appendChild(e.messageElement),void i(t,{"has-validation":!0});var n=e.element.getAttribute("type");"checkbox"!==n&&"radio"!==n||!r(e.element,"form-check-input")||r(t,"form-check")||r(t,"form-check-inline")||e.elements[e.elements.length-1].parentElement.appendChild(e.messageElement)},t}(t.Framework)})),function(e){"use strict";e.event.special.destroyed||(e.event.special.destroyed={remove:function(e){e.handler&&e.handler()}}),e.fn.extend({maxlength:function(t,n){var i=e("body");function r(e){var t=e.charCodeAt();return t?t<128?1:t<2048?2:3:0}function s(e){return e.split("").map(r).concat(0).reduce((function(e,t){return e+t}))}function a(e){var n=e.val();n=t.twoCharLinebreak?n.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n"):n.replace(/(?:\r\n|\r|\n)/g,"\n");var i=0;return i=t.utf8?s(n):n.length,"file"===e.prop("type")&&""!==e.val()&&(i-=12),i}function o(e,t){return t-a(e)}function l(e,t){t.css({display:"block"}),e.trigger("maxlength.shown")}function c(e,n,i){var r="";return t.message?r="function"==typeof t.message?t.message(e,n):t.message.replace("%charsTyped%",i).replace("%charsRemaining%",n-i).replace("%charsTotal%",n):(t.preText&&(r+=t.preText),t.showCharsTyped?r+=i:r+=n-i,t.showMaxLength&&(r+=t.separator+n),t.postText&&(r+=t.postText)),r}function u(e,n,i,r){var s,o,u,d;r&&(r.html(c(n.val(),i,i-e)),e>0?(s=n,o=t.threshold,u=i,d=!0,!t.alwaysShow&&u-a(s)>o&&(d=!1),d?l(n,r.removeClass(t.limitReachedClass+" "+t.limitExceededClass).addClass(t.warningClass)):function(e,n){t.alwaysShow||(n.css({display:"none"}),e.trigger("maxlength.hidden"))}(n,r)):t.limitExceededClass?l(n,0===e?r.removeClass(t.warningClass+" "+t.limitExceededClass).addClass(t.limitReachedClass):r.removeClass(t.warningClass+" "+t.limitReachedClass).addClass(t.limitExceededClass)):l(n,r.removeClass(t.warningClass).addClass(t.limitReachedClass))),t.customMaxAttribute&&(e<0?n.addClass(t.customMaxClass):n.removeClass(t.customMaxClass))}function d(n,i){var r=function(t){var n=t[0];return e.extend({},"function"==typeof n.getBoundingClientRect?n.getBoundingClientRect():{width:n.offsetWidth,height:n.offsetHeight},t.offset())}(n);if("function"!==e.type(t.placement))if(e.isPlainObject(t.placement))!function(n,i){if(n&&i){var r={};e.each(["top","bottom","left","right","position"],(function(e,n){var i=t.placement[n];void 0!==i&&(r[n]=i)})),i.css(r)}}(t.placement,i);else{var s=n.outerWidth(),a=i.outerWidth(),o=i.width(),l=i.height();switch(t.appendToParent&&(r.top-=n.parent().offset().top,r.left-=n.parent().offset().left),t.placement){case"bottom":i.css({top:r.top+r.height,left:r.left+r.width/2-o/2});break;case"top":i.css({top:r.top-l,left:r.left+r.width/2-o/2});break;case"left":i.css({top:r.top+r.height/2-l/2,left:r.left-o});break;case"right":i.css({top:r.top+r.height/2-l/2,left:r.left+r.width});break;case"bottom-right":i.css({top:r.top+r.height,left:r.left+r.width});break;case"top-right":i.css({top:r.top-l,left:r.left+s});break;case"top-left":i.css({top:r.top-l,left:r.left-a});break;case"bottom-left":i.css({top:r.top+n.outerHeight(),left:r.left-a});break;case"centered-right":i.css({top:r.top+l/2,left:r.left+s-a-3});break;case"bottom-right-inside":i.css({top:r.top+r.height,left:r.left+r.width-a});break;case"top-right-inside":i.css({top:r.top-l,left:r.left+s-a});break;case"top-left-inside":i.css({top:r.top-l,left:r.left});break;case"bottom-left-inside":i.css({top:r.top+n.outerHeight(),left:r.left})}}else t.placement(n,i,r)}function h(e){var n=e.attr("maxlength")||t.customMaxAttribute;if(t.customMaxAttribute&&!t.allowOverMax){var i=e.attr(t.customMaxAttribute);(!n||i<n)&&(n=i)}return n||(n=e.attr("size")),n}return e.isFunction(t)&&!n&&(n=t,t={}),t=e.extend({showOnReady:!1,alwaysShow:!0,threshold:0,warningClass:"small form-text text-body-secondary",limitReachedClass:"small form-text text-danger",limitExceededClass:"",separator:" / ",preText:"",postText:"",showMaxLength:!0,placement:"bottom-right-inside",message:null,showCharsTyped:!0,validate:!1,utf8:!1,appendToParent:!1,twoCharLinebreak:!0,customMaxAttribute:null,customMaxClass:"overmax",allowOverMax:!1,zIndex:1099},t),this.each((function(){var n,a,l=e(this);function f(){var r=c(l.val(),n,"0");n=h(l),a||(a=e('<span class="bootstrap-maxlength"></span>').css({display:"none",position:"absolute",whiteSpace:"nowrap",zIndex:t.zIndex}).html(r)),l.is("textarea")&&(l.data("maxlenghtsizex",l.outerWidth()),l.data("maxlenghtsizey",l.outerHeight()),l.mouseup((function(){l.outerWidth()===l.data("maxlenghtsizex")&&l.outerHeight()===l.data("maxlenghtsizey")||d(l,a),l.data("maxlenghtsizex",l.outerWidth()),l.data("maxlenghtsizey",l.outerHeight())}))),t.appendToParent?(l.parent().append(a),l.parent().css("position","relative")):i.append(a),u(o(l,h(l)),l,n,a),d(l,a)}e(window).resize((function(){a&&d(l,a)})),t.showOnReady?l.ready((function(){f()})):l.focus((function(){f()})),l.on("maxlength.reposition",(function(){d(l,a)})),l.on("destroyed",(function(){a&&a.remove()})),l.on("blur",(function(){a&&!t.showOnReady&&a.remove()})),l.on("input",(function(){var e=h(l),i=o(l,e),c=!0;return t.validate&&i<0?(!function(e,n){var i=e.val();if(t.twoCharLinebreak&&"\n"===(i=i.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n"))[i.length-1]&&(n-=i.length%2),t.utf8){for(var a=i.split("").map(r),o=0,l=s(i)-n;o<l;o+=a.pop());n-=n-a.length}e.val(i.substr(0,n))}(l,e),c=!1):u(i,l,n,a),c}))}))}})}(jQuery),
/**
* @version: 3.1
* @author: Dan Grossman http://www.dangrossman.info/
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
* @website: http://www.daterangepicker.com/
*/
function(e,t){if("function"==typeof define&&define.amd)define(["moment","jquery"],(function(e,n){return n.fn||(n.fn={}),"function"!=typeof e&&e.hasOwnProperty("default")&&(e=e.default),t(e,n)}));else if("object"==typeof module&&module.exports){var n="undefined"!=typeof window?window.jQuery:void 0;n||(n=require("jquery")).fn||(n.fn={});var i="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=t(i,n)}else e.daterangepicker=t(e.moment,e.jQuery)}(this,(function(e,t){var n=function(n,i,r){if(this.parentEl="body",this.element=t(n),this.startDate=e().startOf("day"),this.endDate=e().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=e().subtract(100,"year").format("YYYY"),this.maxYear=e().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:e.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:e.weekdaysMin(),monthNames:e.monthsShort(),firstDay:e.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof i&&null!==i||(i={}),"string"==typeof(i=t.extend(this.element.data(),i)).template||i.template instanceof t||(i.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=i.parentEl&&t(i.parentEl).length?t(i.parentEl):t(this.parentEl),this.container=t(i.template).appendTo(this.parentEl),"object"==typeof i.locale&&("string"==typeof i.locale.direction&&(this.locale.direction=i.locale.direction),"string"==typeof i.locale.format&&(this.locale.format=i.locale.format),"string"==typeof i.locale.separator&&(this.locale.separator=i.locale.separator),"object"==typeof i.locale.daysOfWeek&&(this.locale.daysOfWeek=i.locale.daysOfWeek.slice()),"object"==typeof i.locale.monthNames&&(this.locale.monthNames=i.locale.monthNames.slice()),"number"==typeof i.locale.firstDay&&(this.locale.firstDay=i.locale.firstDay),"string"==typeof i.locale.applyLabel&&(this.locale.applyLabel=i.locale.applyLabel),"string"==typeof i.locale.cancelLabel&&(this.locale.cancelLabel=i.locale.cancelLabel),"string"==typeof i.locale.weekLabel&&(this.locale.weekLabel=i.locale.weekLabel),"string"==typeof i.locale.customRangeLabel)){(f=document.createElement("textarea")).innerHTML=i.locale.customRangeLabel;var s=f.value;this.locale.customRangeLabel=s}if(this.container.addClass(this.locale.direction),"string"==typeof i.startDate&&(this.startDate=e(i.startDate,this.locale.format)),"string"==typeof i.endDate&&(this.endDate=e(i.endDate,this.locale.format)),"string"==typeof i.minDate&&(this.minDate=e(i.minDate,this.locale.format)),"string"==typeof i.maxDate&&(this.maxDate=e(i.maxDate,this.locale.format)),"object"==typeof i.startDate&&(this.startDate=e(i.startDate)),"object"==typeof i.endDate&&(this.endDate=e(i.endDate)),"object"==typeof i.minDate&&(this.minDate=e(i.minDate)),"object"==typeof i.maxDate&&(this.maxDate=e(i.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof i.applyButtonClasses&&(this.applyButtonClasses=i.applyButtonClasses),"string"==typeof i.applyClass&&(this.applyButtonClasses=i.applyClass),"string"==typeof i.cancelButtonClasses&&(this.cancelButtonClasses=i.cancelButtonClasses),"string"==typeof i.cancelClass&&(this.cancelButtonClasses=i.cancelClass),"object"==typeof i.maxSpan&&(this.maxSpan=i.maxSpan),"object"==typeof i.dateLimit&&(this.maxSpan=i.dateLimit),"string"==typeof i.opens&&(this.opens=i.opens),"string"==typeof i.drops&&(this.drops=i.drops),"boolean"==typeof i.showWeekNumbers&&(this.showWeekNumbers=i.showWeekNumbers),"boolean"==typeof i.showISOWeekNumbers&&(this.showISOWeekNumbers=i.showISOWeekNumbers),"string"==typeof i.buttonClasses&&(this.buttonClasses=i.buttonClasses),"object"==typeof i.buttonClasses&&(this.buttonClasses=i.buttonClasses.join(" ")),"boolean"==typeof i.showDropdowns&&(this.showDropdowns=i.showDropdowns),"number"==typeof i.minYear&&(this.minYear=i.minYear),"number"==typeof i.maxYear&&(this.maxYear=i.maxYear),"boolean"==typeof i.showCustomRangeLabel&&(this.showCustomRangeLabel=i.showCustomRangeLabel),"boolean"==typeof i.singleDatePicker&&(this.singleDatePicker=i.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof i.timePicker&&(this.timePicker=i.timePicker),"boolean"==typeof i.timePickerSeconds&&(this.timePickerSeconds=i.timePickerSeconds),"number"==typeof i.timePickerIncrement&&(this.timePickerIncrement=i.timePickerIncrement),"boolean"==typeof i.timePicker24Hour&&(this.timePicker24Hour=i.timePicker24Hour),"boolean"==typeof i.autoApply&&(this.autoApply=i.autoApply),"boolean"==typeof i.autoUpdateInput&&(this.autoUpdateInput=i.autoUpdateInput),"boolean"==typeof i.linkedCalendars&&(this.linkedCalendars=i.linkedCalendars),"function"==typeof i.isInvalidDate&&(this.isInvalidDate=i.isInvalidDate),"function"==typeof i.isCustomDate&&(this.isCustomDate=i.isCustomDate),"boolean"==typeof i.alwaysShowCalendars&&(this.alwaysShowCalendars=i.alwaysShowCalendars),0!=this.locale.firstDay)for(var a=this.locale.firstDay;a>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),a--;var o,l,c;if(void 0===i.startDate&&void 0===i.endDate&&t(this.element).is(":text")){var u=t(this.element).val(),d=u.split(this.locale.separator);o=l=null,2==d.length?(o=e(d[0],this.locale.format),l=e(d[1],this.locale.format)):this.singleDatePicker&&""!==u&&(o=e(u,this.locale.format),l=e(u,this.locale.format)),null!==o&&null!==l&&(this.setStartDate(o),this.setEndDate(l))}if("object"==typeof i.ranges){for(c in i.ranges){o="string"==typeof i.ranges[c][0]?e(i.ranges[c][0],this.locale.format):e(i.ranges[c][0]),l="string"==typeof i.ranges[c][1]?e(i.ranges[c][1],this.locale.format):e(i.ranges[c][1]),this.minDate&&o.isBefore(this.minDate)&&(o=this.minDate.clone());var h=this.maxDate;if(this.maxSpan&&h&&o.clone().add(this.maxSpan).isAfter(h)&&(h=o.clone().add(this.maxSpan)),h&&l.isAfter(h)&&(l=h.clone()),!(this.minDate&&l.isBefore(this.minDate,this.timepicker?"minute":"day")||h&&o.isAfter(h,this.timepicker?"minute":"day"))){var f;(f=document.createElement("textarea")).innerHTML=c;s=f.value;this.ranges[s]=[o,l]}}var p="<ul>";for(c in this.ranges)p+='<li data-range-key="'+c+'">'+c+"</li>";this.showCustomRangeLabel&&(p+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),p+="</ul>",this.container.find(".ranges").prepend(p)}"function"==typeof r&&(this.callback=r),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof i.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===i.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",t.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",t.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",t.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",t.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",t.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",t.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",t.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",t.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",t.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",t.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":t.proxy(this.show,this),"focus.daterangepicker":t.proxy(this.show,this),"keyup.daterangepicker":t.proxy(this.elementChanged,this),"keydown.daterangepicker":t.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",t.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",t.proxy(this.toggle,this))),this.updateElement()};return n.prototype={constructor:n,setStartDate:function(t){"string"==typeof t&&(this.startDate=e(t,this.locale.format)),"object"==typeof t&&(this.startDate=e(t)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(t){"string"==typeof t&&(this.endDate=e(t,this.locale.format)),"object"==typeof t&&(this.endDate=e(t)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var e,t,n,i;if(this.endDate){if(e=parseInt(this.container.find(".left .hourselect").val(),10),t=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(t)&&(t=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),n=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".left .ampmselect").val())&&e<12&&(e+=12),"AM"===i&&12===e&&(e=0)}else if(e=parseInt(this.container.find(".right .hourselect").val(),10),t=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(t)&&(t=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),n=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".right .ampmselect").val())&&e<12&&(e+=12),"AM"===i&&12===e&&(e=0);this.leftCalendar.month.hour(e).minute(t).second(n),this.rightCalendar.month.hour(e).minute(t).second(n)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(n){var i,r=(i="left"==n?this.leftCalendar:this.rightCalendar).month.month(),s=i.month.year(),a=i.month.hour(),o=i.month.minute(),l=i.month.second(),c=e([s,r]).daysInMonth(),u=e([s,r,1]),d=e([s,r,c]),h=e(u).subtract(1,"month").month(),f=e(u).subtract(1,"month").year(),p=e([f,h]).daysInMonth(),m=u.day();(i=[]).firstDay=u,i.lastDay=d;for(var g=0;g<6;g++)i[g]=[];var v=p-m+this.locale.firstDay+1;v>p&&(v-=7),m==this.locale.firstDay&&(v=p-6);for(var y=e([f,h,v,12,o,l]),b=(g=0,0),x=0;g<42;g++,b++,y=e(y).add(24,"hour"))g>0&&b%7==0&&(b=0,x++),i[x][b]=y.clone().hour(a).minute(o).second(l),y.hour(12),this.minDate&&i[x][b].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&i[x][b].isBefore(this.minDate)&&"left"==n&&(i[x][b]=this.minDate.clone()),this.maxDate&&i[x][b].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&i[x][b].isAfter(this.maxDate)&&"right"==n&&(i[x][b]=this.maxDate.clone());"left"==n?this.leftCalendar.calendar=i:this.rightCalendar.calendar=i;var _="left"==n?this.minDate:this.startDate,w=this.maxDate,k=("left"==n?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');k+="<thead>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+="<th></th>"),_&&!_.isBefore(i.firstDay)||this.linkedCalendars&&"left"!=n?k+="<th></th>":k+='<th class="prev available"><span></span></th>';var M=this.locale.monthNames[i[1][1].month()]+i[1][1].format(" YYYY");if(this.showDropdowns){for(var S=i[1][1].month(),A=i[1][1].year(),L=w&&w.year()||this.maxYear,T=_&&_.year()||this.minYear,C=A==T,D=A==L,E='<select class="monthselect">',O=0;O<12;O++)(!C||_&&O>=_.month())&&(!D||w&&O<=w.month())?E+="<option value='"+O+"'"+(O===S?" selected='selected'":"")+">"+this.locale.monthNames[O]+"</option>":E+="<option value='"+O+"'"+(O===S?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[O]+"</option>";E+="</select>";for(var P='<select class="yearselect">',Y=T;Y<=L;Y++)P+='<option value="'+Y+'"'+(Y===A?' selected="selected"':"")+">"+Y+"</option>";M=E+(P+="</select>")}if(k+='<th colspan="5" class="month">'+M+"</th>",w&&!w.isAfter(i.lastDay)||this.linkedCalendars&&"right"!=n&&!this.singleDatePicker?k+="<th></th>":k+='<th class="next available"><span></span></th>',k+="</tr>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+='<th class="week">'+this.locale.weekLabel+"</th>"),t.each(this.locale.daysOfWeek,(function(e,t){k+="<th>"+t+"</th>"})),k+="</tr>",k+="</thead>",k+="<tbody>",null==this.endDate&&this.maxSpan){var I=this.startDate.clone().add(this.maxSpan).endOf("day");w&&!I.isBefore(w)||(w=I)}for(x=0;x<6;x++){k+="<tr>",this.showWeekNumbers?k+='<td class="week">'+i[x][0].week()+"</td>":this.showISOWeekNumbers&&(k+='<td class="week">'+i[x][0].isoWeek()+"</td>");for(b=0;b<7;b++){var N=[];i[x][b].isSame(new Date,"day")&&N.push("today"),i[x][b].isoWeekday()>5&&N.push("weekend"),i[x][b].month()!=i[1][1].month()&&N.push("off","ends"),this.minDate&&i[x][b].isBefore(this.minDate,"day")&&N.push("off","disabled"),w&&i[x][b].isAfter(w,"day")&&N.push("off","disabled"),this.isInvalidDate(i[x][b])&&N.push("off","disabled"),i[x][b].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&N.push("active","start-date"),null!=this.endDate&&i[x][b].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&N.push("active","end-date"),null!=this.endDate&&i[x][b]>this.startDate&&i[x][b]<this.endDate&&N.push("in-range");var H=this.isCustomDate(i[x][b]);!1!==H&&("string"==typeof H?N.push(H):Array.prototype.push.apply(N,H));var j="",F=!1;for(g=0;g<N.length;g++)j+=N[g]+" ","disabled"==N[g]&&(F=!0);F||(j+="available"),k+='<td class="'+j.replace(/^\s+|\s+$/g,"")+'" data-title="r'+x+"c"+b+'">'+i[x][b].date()+"</td>"}k+="</tr>"}k+="</tbody>",k+="</table>",this.container.find(".drp-calendar."+n+" .calendar-table").html(k)},renderTimePicker:function(e){if("right"!=e||this.endDate){var t,n,i,r=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(r=this.startDate.clone().add(this.maxSpan)),"left"==e)n=this.startDate.clone(),i=this.minDate;else if("right"==e){n=this.endDate.clone(),i=this.startDate;var s=this.container.find(".drp-calendar.right .calendar-time");if(""!=s.html()&&(n.hour(isNaN(n.hour())?s.find(".hourselect option:selected").val():n.hour()),n.minute(isNaN(n.minute())?s.find(".minuteselect option:selected").val():n.minute()),n.second(isNaN(n.second())?s.find(".secondselect option:selected").val():n.second()),!this.timePicker24Hour)){var a=s.find(".ampmselect option:selected").val();"PM"===a&&n.hour()<12&&n.hour(n.hour()+12),"AM"===a&&12===n.hour()&&n.hour(0)}n.isBefore(this.startDate)&&(n=this.startDate.clone()),r&&n.isAfter(r)&&(n=r.clone())}t='<select class="hourselect">';for(var o=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,c=o;c<=l;c++){var u=c;this.timePicker24Hour||(u=n.hour()>=12?12==c?12:c+12:12==c?0:c);var d=n.clone().hour(u),h=!1;i&&d.minute(59).isBefore(i)&&(h=!0),r&&d.minute(0).isAfter(r)&&(h=!0),u!=n.hour()||h?t+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+c+"</option>":'<option value="'+c+'">'+c+"</option>":t+='<option value="'+c+'" selected="selected">'+c+"</option>"}t+="</select> ",t+=': <select class="minuteselect">';for(c=0;c<60;c+=this.timePickerIncrement){var f=c<10?"0"+c:c;d=n.clone().minute(c),h=!1;i&&d.second(59).isBefore(i)&&(h=!0),r&&d.second(0).isAfter(r)&&(h=!0),n.minute()!=c||h?t+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+c+'">'+f+"</option>":t+='<option value="'+c+'" selected="selected">'+f+"</option>"}if(t+="</select> ",this.timePickerSeconds){t+=': <select class="secondselect">';for(c=0;c<60;c++){f=c<10?"0"+c:c,d=n.clone().second(c),h=!1;i&&d.isBefore(i)&&(h=!0),r&&d.isAfter(r)&&(h=!0),n.second()!=c||h?t+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+c+'">'+f+"</option>":t+='<option value="'+c+'" selected="selected">'+f+"</option>"}t+="</select> "}if(!this.timePicker24Hour){t+='<select class="ampmselect">';var p="",m="";i&&n.clone().hour(12).minute(0).second(0).isBefore(i)&&(p=' disabled="disabled" class="disabled"'),r&&n.clone().hour(0).minute(0).second(0).isAfter(r)&&(m=' disabled="disabled" class="disabled"'),n.hour()>=12?t+='<option value="AM"'+p+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>":t+='<option value="AM" selected="selected"'+p+'>AM</option><option value="PM"'+m+">PM</option>",t+="</select>"}this.container.find(".drp-calendar."+e+" .calendar-time").html(t)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var e,n={top:0,left:0},i=this.drops,r=t(window).width();switch(this.parentEl.is("body")||(n={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},r=this.parentEl[0].clientWidth+this.parentEl.offset().left),i){case"auto":(e=this.element.offset().top+this.element.outerHeight()-n.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(e=this.element.offset().top-this.container.outerHeight()-n.top,i="up");break;case"up":e=this.element.offset().top-this.container.outerHeight()-n.top;break;default:e=this.element.offset().top+this.element.outerHeight()-n.top}this.container.css({top:0,left:0,right:"auto"});var s=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==i),"left"==this.opens){var a=r-this.element.offset().left-this.element.outerWidth();s+a>t(window).width()?this.container.css({top:e,right:"auto",left:9}):this.container.css({top:e,right:a,left:"auto"})}else if("center"==this.opens){(o=this.element.offset().left-n.left+this.element.outerWidth()/2-s/2)<0?this.container.css({top:e,right:"auto",left:9}):o+s>t(window).width()?this.container.css({top:e,left:"auto",right:0}):this.container.css({top:e,left:o,right:"auto"})}else{var o;(o=this.element.offset().left-n.left)+s>t(window).width()?this.container.css({top:e,left:"auto",right:0}):this.container.css({top:e,left:o,right:"auto"})}},show:function(e){this.isShowing||(this._outsideClickProxy=t.proxy((function(e){this.outsideClick(e)}),this),t(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),t(window).on("resize.daterangepicker",t.proxy((function(e){this.move(e)}),this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(e){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),t(document).off(".daterangepicker"),t(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(e){this.isShowing?this.hide():this.show()},outsideClick:function(e){var n=t(e.target);"focusin"==e.type||n.closest(this.element).length||n.closest(this.container).length||n.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(e){var t=e.target.getAttribute("data-range-key");if(this.chosenLabel=t,t==this.locale.customRangeLabel)this.showCalendars();else{var n=this.ranges[t];this.startDate=n[0],this.endDate=n[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(e){t(e.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(e){t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(e){if(t(e.target).hasClass("available")){var n=t(e.target).attr("data-title"),i=n.substr(1,1),r=n.substr(3,1),s=t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][r]:this.rightCalendar.calendar[i][r],a=this.leftCalendar,o=this.rightCalendar,l=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each((function(e,n){if(!t(n).hasClass("week")){var i=t(n).attr("data-title"),r=i.substr(1,1),c=i.substr(3,1),u=t(n).parents(".drp-calendar").hasClass("left")?a.calendar[r][c]:o.calendar[r][c];u.isAfter(l)&&u.isBefore(s)||u.isSame(s,"day")?t(n).addClass("in-range"):t(n).removeClass("in-range")}}))}},clickDate:function(e){if(t(e.target).hasClass("available")){var n=t(e.target).attr("data-title"),i=n.substr(1,1),r=n.substr(3,1),s=t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][r]:this.rightCalendar.calendar[i][r];if(this.endDate||s.isBefore(this.startDate,"day")){if(this.timePicker){var a=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(c=this.container.find(".left .ampmselect").val())&&a<12&&(a+=12),"AM"===c&&12===a&&(a=0);var o=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var l=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;s=s.clone().hour(a).minute(o).second(l)}this.endDate=null,this.setStartDate(s.clone())}else if(!this.endDate&&s.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var c;a=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(c=this.container.find(".right .ampmselect").val())&&a<12&&(a+=12),"AM"===c&&12===a&&(a=0);o=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10));l=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;s=s.clone().hour(a).minute(o).second(l)}this.setEndDate(s.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),e.stopPropagation()}},calculateChosenLabel:function(){var e=!0,t=0;for(var n in this.ranges){if(this.timePicker){var i=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(i)==this.ranges[n][0].format(i)&&this.endDate.format(i)==this.ranges[n][1].format(i)){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[n][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[n][1].format("YYYY-MM-DD")){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}t++}e&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(e){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(e){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(e){var n=t(e.target).closest(".drp-calendar").hasClass("left"),i=n?"left":"right",r=this.container.find(".drp-calendar."+i),s=parseInt(r.find(".monthselect").val(),10),a=r.find(".yearselect").val();n||(a<this.startDate.year()||a==this.startDate.year()&&s<this.startDate.month())&&(s=this.startDate.month(),a=this.startDate.year()),this.minDate&&(a<this.minDate.year()||a==this.minDate.year()&&s<this.minDate.month())&&(s=this.minDate.month(),a=this.minDate.year()),this.maxDate&&(a>this.maxDate.year()||a==this.maxDate.year()&&s>this.maxDate.month())&&(s=this.maxDate.month(),a=this.maxDate.year()),n?(this.leftCalendar.month.month(s).year(a),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(s).year(a),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(e){var n=t(e.target).closest(".drp-calendar"),i=n.hasClass("left"),r=parseInt(n.find(".hourselect").val(),10),s=parseInt(n.find(".minuteselect").val(),10);isNaN(s)&&(s=parseInt(n.find(".minuteselect option:last").val(),10));var a=this.timePickerSeconds?parseInt(n.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var o=n.find(".ampmselect").val();"PM"===o&&r<12&&(r+=12),"AM"===o&&12===r&&(r=0)}if(i){var l=this.startDate.clone();l.hour(r),l.minute(s),l.second(a),this.setStartDate(l),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==l.format("YYYY-MM-DD")&&this.endDate.isBefore(l)&&this.setEndDate(l.clone())}else if(this.endDate){var c=this.endDate.clone();c.hour(r),c.minute(s),c.second(a),this.setEndDate(c)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var t=this.element.val().split(this.locale.separator),n=null,i=null;2===t.length&&(n=e(t[0],this.locale.format),i=e(t[1],this.locale.format)),(this.singleDatePicker||null===n||null===i)&&(i=n=e(this.element.val(),this.locale.format)),n.isValid()&&i.isValid()&&(this.setStartDate(n),this.setEndDate(i),this.updateView())}},keydown:function(e){9!==e.keyCode&&13!==e.keyCode||this.hide(),27===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var e=this.startDate.format(this.locale.format);this.singleDatePicker||(e+=this.locale.separator+this.endDate.format(this.locale.format)),e!==this.element.val()&&this.element.val(e).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},t.fn.daterangepicker=function(e,i){var r=t.extend(!0,{},t.fn.daterangepicker.defaultOptions,e);return this.each((function(){var e=t(this);e.data("daterangepicker")&&e.data("daterangepicker").remove(),e.data("daterangepicker",new n(e,r,i))})),this},n})),function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={3976:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={9:{validator:"[0-9０-９]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-9０-９A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n}},3776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,t.off=function(e,t){var n,i;return u(this[0])&&e&&(n=this[0].eventRegistry,i=this[0],e.split(" ").forEach((function(e){var r=a(e.split("."),2);(function(e,i){var r,s,a=[];if(e.length>0)if(void 0===t)for(r=0,s=n[e][i].length;r<s;r++)a.push({ev:e,namespace:i&&i.length>0?i:"global",handler:n[e][i][r]});else a.push({ev:e,namespace:i&&i.length>0?i:"global",handler:t});else if(i.length>0)for(var o in n)for(var l in n[o])if(l===i)if(void 0===t)for(r=0,s=n[o][l].length;r<s;r++)a.push({ev:o,namespace:l,handler:n[o][l][r]});else a.push({ev:o,namespace:l,handler:t});return a})(r[0],r[1]).forEach((function(e){var t=e.ev,r=e.handler;!function(e,t,r){if(e in n==1)if(i.removeEventListener?i.removeEventListener(e,r,!1):i.detachEvent&&i.detachEvent("on".concat(e),r),"global"===t)for(var s in n[e])n[e][s].splice(n[e][s].indexOf(r),1);else n[e][t].splice(n[e][t].indexOf(r),1)}(t,e.namespace,r)}))}))),this},t.on=function(e,t){if(u(this[0])){var n=this[0].eventRegistry,i=this[0];e.split(" ").forEach((function(e){var r=a(e.split("."),2),s=r[0],o=r[1];!function(e,r){i.addEventListener?i.addEventListener(e,t,!1):i.attachEvent&&i.attachEvent("on".concat(e),t),n[e]=n[e]||{},n[e][r]=n[e][r]||[],n[e][r].push(t)}(s,void 0===o?"global":o)}))}return this},t.trigger=function(e){var t=arguments;if(u(this[0]))for(var n=this[0].eventRegistry,i=this[0],a="string"==typeof e?e.split(" "):[e.type],o=0;o<a.length;o++){var l=a[o].split("."),d=l[0],h=l[1]||"global";if(void 0!==c&&"global"===h){var f,p={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(c.createEvent){try{"input"===d?(p.inputType="insertText",f=new InputEvent(d,p)):f=new CustomEvent(d,p)}catch(e){(f=c.createEvent("CustomEvent")).initCustomEvent(d,p.bubbles,p.cancelable,p.detail)}e.type&&(0,r.default)(f,e),i.dispatchEvent(f)}else(f=c.createEventObject()).eventType=d,f.detail=arguments[1],e.type&&(0,r.default)(f,e),i.fireEvent("on"+f.eventType,f)}else if(void 0!==n[d]){arguments[0]=arguments[0].type?arguments[0]:s.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var m=n[d];("global"===h?Object.values(m).flat():m[h]).forEach((function(e){return e.apply(i,t)}))}}return this};var i=l(n(9380)),r=l(n(600)),s=l(n(4963));function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e,t)||function(){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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e){return e&&e.__esModule?e:{default:e}}var c=i.default.document;function u(e){return e instanceof Element}var d=t.Event=void 0;"function"==typeof i.default.CustomEvent?t.Event=d=i.default.CustomEvent:i.default.Event&&c&&c.createEvent?(t.Event=d=function(e,t){t=t||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var n=c.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},d.prototype=i.default.Event.prototype):"undefined"!=typeof Event&&(t.Event=d=Event)},600:function(e,t){function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(){var t,i,r,s,a,o,l=arguments[0]||{},c=1,u=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[c]||{},c++),"object"!==n(l)&&"function"!=typeof l&&(l={});c<u;c++)if(null!=(t=arguments[c]))for(i in t)r=l[i],l!==(s=t[i])&&(d&&s&&("[object Object]"===Object.prototype.toString.call(s)||(a=Array.isArray(s)))?(a?(a=!1,o=r&&Array.isArray(r)?r:[]):o=r&&"[object Object]"===Object.prototype.toString.call(r)?r:{},l[i]=e(d,o,s)):void 0!==s&&(l[i]=s));return l}},4963:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(9380)),r=o(n(253)),s=n(3776),a=o(n(600));function o(e){return e&&e.__esModule?e:{default:e}}var l=i.default.document;function c(e){return e instanceof c?e:this instanceof c?void(null!=e&&e!==i.default&&(this[0]=e.nodeName?e:void 0!==e[0]&&e[0].nodeName?e[0]:l.querySelector(e),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new c(e)}c.prototype={on:s.on,off:s.off,trigger:s.trigger},c.extend=a.default,c.data=r.default,c.Event=s.Event,t.default=c},9845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mobile=t.iphone=t.ie=void 0;var i,r=(i=n(9380))&&i.__esModule?i:{default:i},s=r.default.navigator&&r.default.navigator.userAgent||"";t.ie=s.indexOf("MSIE ")>0||s.indexOf("Trident/")>0,t.mobile=r.default.navigator&&r.default.navigator.userAgentData&&r.default.navigator.userAgentData.mobile||r.default.navigator&&r.default.navigator.maxTouchPoints||"ontouchstart"in r.default,t.iphone=/iphone/i.test(s)},7184:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(n,"\\$1")};var n=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(e,t,n){function i(e){return i="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},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var r,s=n(9845),a=(r=n(9380))&&r.__esModule?r:{default:r},o=n(7760),l=n(2839),c=n(8711),u=n(7215),d=n(4713);function h(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var r=t&&t.prototype instanceof b?t:b,a=Object.create(r.prototype),o=new O(i||[]);return s(a,"_invoke",{value:T(e,n,o)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var p="suspendedStart",m="suspendedYield",g="executing",v="completed",y={};function b(){}function x(){}function _(){}var w={};u(w,o,(function(){return this}));var k=Object.getPrototypeOf,M=k&&k(k(P([])));M&&M!==n&&r.call(M,o)&&(w=M);var S=_.prototype=b.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(s,a,o,l){var c=f(e[s],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==i(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var a;s(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return a=a?a.then(r,r):r()}})}function T(t,n,i){var r=p;return function(s,a){if(r===g)throw new Error("Generator is already running");if(r===v){if("throw"===s)throw a;return{value:e,done:!0}}for(i.method=s,i.arg=a;;){var o=i.delegate;if(o){var l=C(o,i);if(l){if(l===y)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var c=f(t,n,i);if("normal"===c.type){if(r=i.done?v:m,c.arg===y)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=v,i.method="throw",i.arg=c.arg)}}}function C(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),y;var s=f(r,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,y;var a=s.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var s=-1,a=function n(){for(;++s<t.length;)if(r.call(t,s))return n.value=t[s],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(i(t)+" is not iterable")}return x.prototype=_,s(S,"constructor",{value:_,configurable:!0}),s(_,"constructor",{value:x,configurable:!0}),x.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(L.prototype),u(L.prototype,l,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,i,r,s){void 0===s&&(s=Promise);var a=new L(d(e,n,i,r),s);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(S),u(S,c,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=P,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(i,r){return o.type="throw",o.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:P(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),y}},t}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function m(e,t,n,i,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(i,r)}var g,v,y=t.EventHandlers={keyEvent:function(e,t,n,i,r){var a=this.inputmask,h=a.opts,f=a.dependencyLib,p=a.maskset,m=this,g=f(m),v=e.key,b=c.caret.call(a,m),x=h.onKeyDown.call(this,e,c.getBuffer.call(a),b,h);if(void 0!==x)return x;if(v===l.keys.Backspace||v===l.keys.Delete||s.iphone&&v===l.keys.BACKSPACE_SAFARI||e.ctrlKey&&v===l.keys.x&&!("oncut"in m))e.preventDefault(),u.handleRemove.call(a,m,v,b),(0,o.writeBuffer)(m,c.getBuffer.call(a,!0),p.p,e,m.inputmask._valueGet()!==c.getBuffer.call(a).join(""));else if(v===l.keys.End||v===l.keys.PageDown){e.preventDefault();var _=c.seekNext.call(a,c.getLastValidPosition.call(a));c.caret.call(a,m,e.shiftKey?b.begin:_,_,!0)}else v===l.keys.Home&&!e.shiftKey||v===l.keys.PageUp?(e.preventDefault(),c.caret.call(a,m,0,e.shiftKey?b.begin:0,!0)):h.undoOnEscape&&v===l.keys.Escape&&!0!==e.altKey?((0,o.checkVal)(m,!0,!1,a.undoValue.split("")),g.trigger("click")):v!==l.keys.Insert||e.shiftKey||e.ctrlKey||void 0!==a.userOptions.insertMode?!0===h.tabThrough&&v===l.keys.Tab?!0===e.shiftKey?(b.end=c.seekPrevious.call(a,b.end,!0),!0===d.getTest.call(a,b.end-1).match.static&&b.end--,b.begin=c.seekPrevious.call(a,b.end,!0),b.begin>=0&&b.end>0&&(e.preventDefault(),c.caret.call(a,m,b.begin,b.end))):(b.begin=c.seekNext.call(a,b.begin,!0),b.end=c.seekNext.call(a,b.begin,!0),b.end<p.maskLength&&b.end--,b.begin<=p.maskLength&&(e.preventDefault(),c.caret.call(a,m,b.begin,b.end))):e.shiftKey||(h.insertModeVisual&&!1===h.insertMode?v===l.keys.ArrowRight?setTimeout((function(){var e=c.caret.call(a,m);c.caret.call(a,m,e.begin)}),0):v===l.keys.ArrowLeft&&setTimeout((function(){var e=c.translatePosition.call(a,m.inputmask.caretPos.begin);c.translatePosition.call(a,m.inputmask.caretPos.end),a.isRTL?c.caret.call(a,m,e+(e===p.maskLength?0:1)):c.caret.call(a,m,e-(0===e?0:1))}),0):void 0===a.keyEventHook||a.keyEventHook(e)):u.isSelection.call(a,b)?h.insertMode=!h.insertMode:(h.insertMode=!h.insertMode,c.caret.call(a,m,b.begin,b.begin));return a.isComposing=v==l.keys.Process||v==l.keys.Unidentified,a.ignorable=v.length>1&&!("textarea"===m.tagName.toLowerCase()&&v==l.keys.Enter),y.keypressEvent.call(this,e,t,n,i,r)},keypressEvent:function(e,t,n,i,r){var s=this.inputmask||this,a=s.opts,d=s.dependencyLib,h=s.maskset,f=s.el,p=d(f),m=e.key;if(!0===t||e.ctrlKey&&e.altKey&&!s.ignorable||!(e.ctrlKey||e.metaKey||s.ignorable)){if(m){var g,v=t?{begin:r,end:r}:c.caret.call(s,f);t||(m=a.substitutes[m]||m),h.writeOutBuffer=!0;var y=u.isValid.call(s,v,m,i,void 0,void 0,void 0,t);if(!1!==y&&(c.resetMaskSet.call(s,!0),g=void 0!==y.caret?y.caret:c.seekNext.call(s,y.pos.begin?y.pos.begin:y.pos),h.p=g),g=a.numericInput&&void 0===y.caret?c.seekPrevious.call(s,g):g,!1!==n&&(setTimeout((function(){a.onKeyValidation.call(f,m,y)}),0),h.writeOutBuffer&&!1!==y)){var b=c.getBuffer.call(s);(0,o.writeBuffer)(f,b,g,e,!0!==t)}if(e.preventDefault(),t)return!1!==y&&(y.forwardPosition=g),y}}else m===l.keys.Enter&&s.undoValue!==s._valueGet(!0)&&(s.undoValue=s._valueGet(!0),setTimeout((function(){p.trigger("change")}),0))},pasteEvent:(g=h().mark((function e(t){var n,i,r,s,l,u;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e,n,i,r,a){var l=c.caret.call(e,n,void 0,void 0,!0),u=i.substr(0,l.begin),d=i.substr(l.end,i.length);if(u==(e.isRTL?c.getBufferTemplate.call(e).slice().reverse():c.getBufferTemplate.call(e)).slice(0,l.begin).join("")&&(u=""),d==(e.isRTL?c.getBufferTemplate.call(e).slice().reverse():c.getBufferTemplate.call(e)).slice(l.end).join("")&&(d=""),r=u+r+d,e.isRTL&&!0!==s.numericInput){r=r.split("");var h,p=f(c.getBufferTemplate.call(e));try{for(p.s();!(h=p.n()).done;){var m=h.value;r[0]===m&&r.shift()}}catch(e){p.e(e)}finally{p.f()}r=r.reverse().join("")}var g=r;if("function"==typeof a){if(!1===(g=a.call(e,g,s)))return!1;g||(g=i)}(0,o.checkVal)(n,!0,!1,g.toString().split(""),t)},i=this,r=this.inputmask,s=r.opts,l=r._valueGet(!0),r.skipInputEvent=!0,t.clipboardData&&t.clipboardData.getData?u=t.clipboardData.getData("text/plain"):a.default.clipboardData&&a.default.clipboardData.getData&&(u=a.default.clipboardData.getData("Text")),n(r,i,l,u,s.onBeforePaste),t.preventDefault();case 7:case"end":return e.stop()}}),e,this)})),v=function(){var e=this,t=arguments;return new Promise((function(n,i){var r=g.apply(e,t);function s(e){m(r,n,i,s,a,"next",e)}function a(e){m(r,n,i,s,a,"throw",e)}s(void 0)}))},function(e){return v.apply(this,arguments)}),inputFallBackEvent:function(e){var t,n=this.inputmask,i=n.opts,r=n.dependencyLib,a=this,u=a.inputmask._valueGet(!0),h=(n.isRTL?c.getBuffer.call(n).slice().reverse():c.getBuffer.call(n)).join(""),f=c.caret.call(n,a,void 0,void 0,!0);if(h!==u){if(t=function(e,t,r){for(var s,a,o,l=e.substr(0,r.begin).split(""),u=e.substr(r.begin).split(""),h=t.substr(0,r.begin).split(""),f=t.substr(r.begin).split(""),p=l.length>=h.length?l.length:h.length,m=u.length>=f.length?u.length:f.length,g="",v=[],y="~";l.length<p;)l.push(y);for(;h.length<p;)h.push(y);for(;u.length<m;)u.unshift(y);for(;f.length<m;)f.unshift(y);var b=l.concat(u),x=h.concat(f);for(a=0,s=b.length;a<s;a++)switch(o=d.getPlaceholder.call(n,c.translatePosition.call(n,a)),g){case"insertText":x[a-1]===b[a]&&r.begin==b.length-1&&v.push(b[a]),a=s;break;case"insertReplacementText":case"deleteContentBackward":b[a]===y?r.end++:a=s;break;default:b[a]!==x[a]&&(b[a+1]!==y&&b[a+1]!==o&&void 0!==b[a+1]||(x[a]!==o||x[a+1]!==y)&&x[a]!==y?x[a+1]===y&&x[a]===b[a+1]?(g="insertText",v.push(b[a]),r.begin--,r.end--):b[a]!==o&&b[a]!==y&&(b[a+1]===y||x[a]!==b[a]&&x[a+1]===b[a+1])?(g="insertReplacementText",v.push(b[a]),r.begin--):b[a]===y?(g="deleteContentBackward",(c.isMask.call(n,c.translatePosition.call(n,a),!0)||x[a]===i.radixPoint)&&r.end++):a=s:(g="insertText",v.push(b[a]),r.begin--,r.end--))}return{action:g,data:v,caret:r}}(u,h,f),(a.inputmask.shadowRoot||a.ownerDocument).activeElement!==a&&a.focus(),(0,o.writeBuffer)(a,c.getBuffer.call(n)),c.caret.call(n,a,f.begin,f.end,!0),!s.mobile&&n.skipNextInsert&&"insertText"===e.inputType&&"insertText"===t.action&&n.isComposing)return!1;switch("insertCompositionText"===e.inputType&&"insertText"===t.action&&n.isComposing?n.skipNextInsert=!0:n.skipNextInsert=!1,t.action){case"insertText":case"insertReplacementText":t.data.forEach((function(e,t){var i=new r.Event("keypress");i.key=e,n.ignorable=!1,y.keypressEvent.call(a,i)})),setTimeout((function(){n.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var p=new r.Event("keydown");p.key=l.keys.Backspace,y.keyEvent.call(a,p);break;default:(0,o.applyInputValue)(a,u),c.caret.call(n,a,f.begin,f.end,!0)}e.preventDefault()}},setValueEvent:function(e){var t=this.inputmask,n=t.dependencyLib,i=this,r=e&&e.detail?e.detail[0]:arguments[1];void 0===r&&(r=i.inputmask._valueGet(!0)),(0,o.applyInputValue)(i,r,new n.Event("input")),(e.detail&&void 0!==e.detail[1]||void 0!==arguments[2])&&c.caret.call(t,i,e.detail?e.detail[1]:arguments[2])},focusEvent:function(e){var t=this.inputmask,n=t.opts,i=t&&t._valueGet();n.showMaskOnFocus&&i!==c.getBuffer.call(t).join("")&&(0,o.writeBuffer)(this,c.getBuffer.call(t),c.seekNext.call(t,c.getLastValidPosition.call(t))),!0!==n.positionCaretOnTab||!1!==t.mouseEnter||u.isComplete.call(t,c.getBuffer.call(t))&&-1!==c.getLastValidPosition.call(t)||y.clickEvent.apply(this,[e,!0]),t.undoValue=t&&t._valueGet(!0)},invalidEvent:function(e){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var e=this.inputmask,t=e.opts,n=this;e.mouseEnter=!1,t.clearMaskOnLostFocus&&(n.inputmask.shadowRoot||n.ownerDocument).activeElement!==n&&(0,o.HandleNativePlaceholder)(n,e.originalPlaceholder)},clickEvent:function(e,t){var n=this.inputmask;n.clicked++;var i=this;if((i.inputmask.shadowRoot||i.ownerDocument).activeElement===i){var r=c.determineNewCaretPosition.call(n,c.caret.call(n,i),t);void 0!==r&&c.caret.call(n,i,r)}},cutEvent:function(e){var t=this.inputmask,n=t.maskset,i=this,r=c.caret.call(t,i),s=t.isRTL?c.getBuffer.call(t).slice(r.end,r.begin):c.getBuffer.call(t).slice(r.begin,r.end),d=t.isRTL?s.reverse().join(""):s.join("");a.default.navigator&&a.default.navigator.clipboard?a.default.navigator.clipboard.writeText(d):a.default.clipboardData&&a.default.clipboardData.getData&&a.default.clipboardData.setData("Text",d),u.handleRemove.call(t,i,l.keys.Delete,r),(0,o.writeBuffer)(i,c.getBuffer.call(t),n.p,e,t.undoValue!==t._valueGet(!0))},blurEvent:function(e){var t=this.inputmask,n=t.opts,i=t.dependencyLib;t.clicked=0;var r=i(this),s=this;if(s.inputmask){(0,o.HandleNativePlaceholder)(s,t.originalPlaceholder);var a=s.inputmask._valueGet(),l=c.getBuffer.call(t).slice();""!==a&&(n.clearMaskOnLostFocus&&(-1===c.getLastValidPosition.call(t)&&a===c.getBufferTemplate.call(t).join("")?l=[]:o.clearOptionalTail.call(t,l)),!1===u.isComplete.call(t,l)&&(setTimeout((function(){r.trigger("incomplete")}),0),n.clearIncomplete&&(c.resetMaskSet.call(t,!1),l=n.clearMaskOnLostFocus?[]:c.getBufferTemplate.call(t).slice())),(0,o.writeBuffer)(s,l,void 0,e)),a=t._valueGet(!0),t.undoValue!==a&&(""!=a||t.undoValue!=c.getBufferTemplate.call(t).join("")||t.undoValue==c.getBufferTemplate.call(t).join("")&&t.maskset.validPositions.length>0)&&(t.undoValue=a,r.trigger("change"))}},mouseenterEvent:function(){var e=this.inputmask,t=e.opts.showMaskOnHover,n=this;if(e.mouseEnter=!0,(n.inputmask.shadowRoot||n.ownerDocument).activeElement!==n){var i=(e.isRTL?c.getBufferTemplate.call(e).slice().reverse():c.getBufferTemplate.call(e)).join("");t&&(0,o.HandleNativePlaceholder)(n,i)}},submitEvent:function(){var e=this.inputmask,t=e.opts;e.undoValue!==e._valueGet(!0)&&e.$el.trigger("change"),-1===c.getLastValidPosition.call(e)&&e._valueGet&&e._valueGet()===c.getBufferTemplate.call(e).join("")&&e._valueSet(""),t.clearIncomplete&&!1===u.isComplete.call(e,c.getBuffer.call(e))&&e._valueSet(""),t.removeMaskOnSubmit&&(e._valueSet(e.unmaskedvalue(),!0),setTimeout((function(){(0,o.writeBuffer)(e.el,c.getBuffer.call(e))}),0))},resetEvent:function(){var e=this.inputmask;e.refreshValue=!0,setTimeout((function(){(0,o.applyInputValue)(e.el,e._valueGet(!0))}),0)}}},9716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventRuler=void 0;var i,r=n(7760),s=(i=n(2394))&&i.__esModule?i:{default:i},a=n(2839),o=n(8711);t.EventRuler={on:function(e,t,n){var i=e.inputmask.dependencyLib,l=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);var l,c=this,u=c.inputmask,d=u?u.opts:void 0;if(void 0===u&&"FORM"!==this.nodeName){var h=i.data(c,"_inputmask_opts");i(c).off(),h&&new s.default(h).mask(c)}else{if(["submit","reset","setvalue"].includes(t.type)||"FORM"===this.nodeName||!(c.disabled||c.readOnly&&!("keydown"===t.type&&t.ctrlKey&&t.key===a.keys.c||!1===d.tabThrough&&t.key===a.keys.Tab))){switch(t.type){case"input":if(!0===u.skipInputEvent)return u.skipInputEvent=!1,t.preventDefault();break;case"click":case"focus":return u.validationEvent?(u.validationEvent=!1,e.blur(),(0,r.HandleNativePlaceholder)(e,(u.isRTL?o.getBufferTemplate.call(u).slice().reverse():o.getBufferTemplate.call(u)).join("")),setTimeout((function(){e.focus()}),d.validationEventTimeOut),!1):(l=arguments,void setTimeout((function(){e.inputmask&&n.apply(c,l)}),0))}var f=n.apply(c,arguments);return!1===f&&(t.preventDefault(),t.stopPropagation()),f}t.preventDefault()}};["submit","reset"].includes(t)?(l=l.bind(e),null!==e.form&&i(e.form).on(t,l)):i(e).on(t,l),e.inputmask.events[t]=e.inputmask.events[t]||[],e.inputmask.events[t].push(l)},off:function(e,t){if(e.inputmask&&e.inputmask.events){var n=e.inputmask.dependencyLib,i=e.inputmask.events;for(var r in t&&((i=[])[t]=e.inputmask.events[t]),i){for(var s=i[r];s.length>0;){var a=s.pop();["submit","reset"].includes(r)?null!==e.form&&n(e.form).off(r,a):n(e).off(r,a)}delete e.inputmask.events[r]}}}}},219:function(e,t,n){var i=d(n(7184)),r=d(n(2394)),s=n(2839),a=n(8711),o=n(4713);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e){return c="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},c(e)}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e){if("object"!==c(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===c(r)?r:String(r)),i)}var r}function d(e){return e&&e.__esModule?e:{default:e}}n(1313);var h=r.default.dependencyLib,f=function(){function e(t,n,i,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mask=t,this.format=n,this.opts=i,this.inputmask=r,this._date=new Date(1,0,1),this.initDateObject(t,this.opts,this.inputmask)}var t,n;return t=e,(n=[{key:"date",get:function(){return void 0===this._date&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(e,t,n){var i;for(w(t).lastIndex=0;i=w(t).exec(this.format);){var r=/\d+$/.exec(i[0]),s=r?i[0][0]+"x":i[0],a=void 0;if(void 0!==e){if(r){var l=w(t).lastIndex,c=T.call(n,i.index,t,n&&n.maskset);w(t).lastIndex=l,a=e.slice(0,e.indexOf(c.nextMatch[0]))}else{for(var u=i[0][0],d=i.index;n&&(t.placeholder[o.getTest.call(n,d).match.placeholder]||o.getTest.call(n,d).match.placeholder)===u;)d++;var h=d-i.index;a=e.slice(0,h||v[s]&&v[s][4]||s.length)}e=e.slice(a.length)}Object.prototype.hasOwnProperty.call(v,s)&&this.setValue(this,a,s,v[s][2],v[s][1])}}},{key:"setValue",value:function(e,t,n,i,r){if(void 0!==t)switch(i){case"ampm":e[i]=t,e["raw"+i]=t.replace(/\s/g,"_");break;case"month":if("mmm"===n||"mmmm"===n){e[i]=S("mmm"===n?m.monthNames.slice(0,12).findIndex((function(e){return t.toLowerCase()===e.toLowerCase()}))+1:m.monthNames.slice(12,24).findIndex((function(e){return t.toLowerCase()===e.toLowerCase()}))+1,2),e[i]="00"===e[i]?"":e[i].toString(),e["raw"+i]=e[i];break}default:e[i]=t.replace(/[^0-9]/g,"0"),e["raw"+i]=t.replace(/\s/g,"_")}if(void 0!==r){var s=e[i];("day"===i&&29===parseInt(s)||"month"===i&&2===parseInt(s))&&(29!==parseInt(e.day)||2!==parseInt(e.month)||""!==e.year&&void 0!==e.year||e._date.setFullYear(2012,1,29)),"day"===i&&(g=!0,0===parseInt(s)&&(s=1)),"month"===i&&(g=!0),"year"===i&&(g=!0,s.length<v[n][4]&&(s=S(s,v[n][4],!0))),(""!==s&&!isNaN(s)||"ampm"===i)&&r.call(e._date,s)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),p=(new Date).getFullYear(),m=r.default.prototype.i18n,g=!1,v={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return S(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return S(Date.prototype.getMonth.call(this)+1,2)}],mmm:[m.monthNames.slice(0,12).join("|"),function(e){var t=m.monthNames.slice(0,12).findIndex((function(t){return e.toLowerCase()===t.toLowerCase()}));return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return m.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[m.monthNames.slice(12,24).join("|"),function(e){var t=m.monthNames.slice(12,24).findIndex((function(t){return e.toLowerCase()===t.toLowerCase()}));return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return m.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(e){var t=(new Date).getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(t).concat(e))},"year",function(){return S(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return S(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return S(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return S(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return S(Date.prototype.getHours.call(this),e)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return S(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return S(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return S(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return S(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",b,"ampm",x,1],tt:["[ap]m",b,"ampm",x,2],T:["[AP]",b,"ampm",x,1],TT:["[AP]M",b,"ampm",x,2],Z:[".*",void 0,"Z",function(){var e=this.toString().match(/\((.+)\)/)[1];return e.includes(" ")&&(e=(e=e.replace("-"," ").toUpperCase()).split(" ").map((function(e){return function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0]})).join("")),e}],o:[""],S:[""]},y={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function b(e){var t=this.getHours();e.toLowerCase().includes("p")?this.setHours(t+12):e.toLowerCase().includes("a")&&t>=12&&this.setHours(t-12)}function x(){var e=this.getHours();return(e=e||12)>=12?"PM":"AM"}function _(e){var t=/\d+$/.exec(e[0]);if(t&&void 0!==t[0]){var n=v[e[0][0]+"x"].slice("");return n[0]=n[0](t[0]),n[3]=n[3](t[0]),n}if(v[e[0]])return v[e[0]]}function w(e){if(!e.tokenizer){var t=[],n=[];for(var i in v)if(/\.*x$/.test(i)){var r=i[0]+"\\d+";-1===n.indexOf(r)&&n.push(r)}else-1===t.indexOf(i[0])&&t.push(i[0]);e.tokenizer="("+(n.length>0?n.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function k(e,t,n){if(!g)return!0;if(void 0===e.rawday||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||"29"==e.day&&(!isFinite(e.rawyear)||void 0===e.rawyear||""===e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if("29"==e.day){var i=T.call(this,t.pos,n,this.maskset);if(i.targetMatch&&"yyyy"===i.targetMatch[0]&&t.pos-i.targetMatchIndex==2)return t.remove=t.pos+1,t}else if(2==e.date.getMonth()&&"30"==e.day&&void 0!==t.c)return e.day="03",e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:"0"},{pos:t.pos+1,c:t.c}],t.caret=a.seekNext.call(this,t.pos+1),t;return!1}function M(e,t,n,r){var s,a,o="",l=0,c={};for(w(n).lastIndex=0;s=w(n).exec(e);){if(void 0===t)if(a=_(s))o+="("+a[0]+")",n.placeholder&&""!==n.placeholder?(c[l]=n.placeholder[s.index%n.placeholder.length],c[n.placeholder[s.index%n.placeholder.length]]=s[0].charAt(0)):c[l]=s[0].charAt(0);else switch(s[0]){case"[":o+="(";break;case"]":o+=")?";break;default:o+=(0,i.default)(s[0]),c[l]=s[0].charAt(0)}else(a=_(s))?!0!==r&&a[3]?o+=a[3].call(t.date):a[2]?o+=t["raw"+a[2]]:o+=s[0]:o+=s[0];l++}return void 0===t&&(n.placeholder=c),o}function S(e,t,n){for(e=String(e),t=t||2;e.length<t;)e=n?e+"0":"0"+e;return e}function A(e,t,n){return"string"==typeof e?new f(e,t,n,this):e&&"object"===c(e)&&Object.prototype.hasOwnProperty.call(e,"date")?e:void 0}function L(e,t){return M(t.inputFormat,{date:e},t)}function T(e,t,n){var i,r,s=this,a=n&&n.tests[e]?t.placeholder[n.tests[e][0].match.placeholder]||n.tests[e][0].match.placeholder:"",l=0,c=0;for(w(t).lastIndex=0;r=w(t).exec(t.inputFormat);){var u=/\d+$/.exec(r[0]);if(u)c=parseInt(u[0]);else{for(var d=r[0][0],h=l;s&&(t.placeholder[o.getTest.call(s,h).match.placeholder]||o.getTest.call(s,h).match.placeholder)===d;)h++;0==(c=h-l)&&(c=r[0].length)}if(l+=c,-1!=r[0].indexOf(a)||l>=e+1){i=r,r=w(t).exec(t.inputFormat);break}}return{targetMatchIndex:l-c,nextMatch:r,targetMatch:i}}r.default.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,v.S=m.ordinalSuffix.join("|"),e.inputFormat=y[e.inputFormat]||e.inputFormat,e.displayFormat=y[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=y[e.outputFormat]||e.outputFormat||e.inputFormat,e.regex=M(e.inputFormat,void 0,e),e.min=A(e.min,e.inputFormat,e),e.max=A(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(e,t,n,i,r,s,a,o){if(o)return!0;if(isNaN(n)&&e[t]!==n){var l=T.call(this,t,r,s);if(l.nextMatch&&l.nextMatch[0]===n&&l.targetMatch[0].length>1){var c=_(l.targetMatch)[0];if(new RegExp(c).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,i,r,s,a,l){var c,u,d=this;if(a)return!0;if(!1===i&&(((c=T.call(d,t+1,r,s)).targetMatch&&c.targetMatchIndex===t&&c.targetMatch[0].length>1&&void 0!==v[c.targetMatch[0]]||(c=T.call(d,t+2,r,s)).targetMatch&&c.targetMatchIndex===t+1&&c.targetMatch[0].length>1&&void 0!==v[c.targetMatch[0]])&&(u=_(c.targetMatch)[0]),void 0!==u&&(void 0!==s.validPositions[t+1]&&new RegExp(u).test(n+"0")?(e[t]=n,e[t+1]="0",i={pos:t+2,caret:t}):new RegExp(u).test("0"+n)&&(e[t]="0",e[t+1]=n,i={pos:t+2})),!1===i))return i;if(i.fuzzy&&(e=i.buffer,t=i.pos),(c=T.call(d,t,r,s)).targetMatch&&c.targetMatch[0]&&void 0!==v[c.targetMatch[0]]){var h=_(c.targetMatch);u=h[0];var f=e.slice(c.targetMatchIndex,c.targetMatchIndex+c.targetMatch[0].length);if(!1===new RegExp(u).test(f.join(""))&&2===c.targetMatch[0].length&&s.validPositions[c.targetMatchIndex]&&s.validPositions[c.targetMatchIndex+1]&&(s.validPositions[c.targetMatchIndex+1].input="0"),"year"==h[2])for(var m=o.getMaskTemplate.call(d,!1,1,void 0,!0),g=t+1;g<e.length;g++)e[g]=m[g],s.validPositions.splice(t+1,1)}var y=i,b=A.call(d,e.join(""),r.inputFormat,r);return y&&!isNaN(b.date.getTime())&&(r.prefillYear&&(y=function(e,t,n){if(e.year!==e.rawyear){var i=p.toString(),r=e.rawyear.replace(/[^0-9]/g,""),s=i.slice(0,r.length),a=i.slice(r.length);if(2===r.length&&r===s){var o=new Date(p,e.month-1,e.day);e.day==o.getDate()&&(!n.max||n.max.date.getTime()>=o.getTime())&&(e.date.setFullYear(p),e.year=i,t.insert=[{pos:t.pos+1,c:a[0]},{pos:t.pos+2,c:a[1]}])}}return t}(b,y,r)),y=function(e,t,n,i){if(!t)return t;if(t&&n.min&&!isNaN(n.min.date.getTime())){var r;for(e.reset(),w(n).lastIndex=0;r=w(n).exec(n.inputFormat);){var s;if((s=_(r))&&s[3]){for(var a=s[1],o=e[s[2]],l=n.min[s[2]],c=n.max?n.max[s[2]]:l+1,u=[],d=!1,h=0;h<l.length;h++)void 0!==i.validPositions[h+r.index]||d?(u[h]=o[h],d=d||o[h]>l[h]):(h+r.index==0&&o[h]<l[h]?(u[h]=o[h],d=!0):u[h]=l[h],"year"===s[2]&&o.length-1==h&&l!=c&&(u=(parseInt(u.join(""))+1).toString().split("")),"ampm"===s[2]&&l!=c&&n.min.date.getTime()>e.date.getTime()&&(u[h]=c[h]));a.call(e._date,u.join(""))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&(isNaN(n.max.date.getTime())||(t=n.max.date.getTime()>=e.date.getTime())),t}(b,y=k.call(d,b,y,r),r,s)),void 0!==t&&y&&i.pos!==t?{buffer:M(r.inputFormat,b,r).split(""),refreshFromBuffer:{start:t,end:i.pos},pos:i.caret||i.pos}:y},onKeyDown:function(e,t,n,i){e.ctrlKey&&e.key===s.keys.ArrowRight&&(this.inputmask._valueSet(L(new Date,i)),h(this).trigger("setvalue"))},onUnMask:function(e,t,n){return t?M(n.outputFormat,A.call(this,e,n.inputFormat,n),n,!0):t},casing:function(e,t,n,i){if(0==t.nativeDef.indexOf("[ap]"))return e.toLowerCase();if(0==t.nativeDef.indexOf("[AP]"))return e.toUpperCase();var r=o.getTest.call(this,[n-1]);return 0==r.match.def.indexOf("[AP]")||0===n||r&&r.input===String.fromCharCode(s.keyCode.Space)||r&&r.match.def===String.fromCharCode(s.keyCode.Space)?e.toUpperCase():e.toLowerCase()},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=L(e,t)),e},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(e,t,n){var i,r=(i=n(2394))&&i.__esModule?i:{default:i};r.default.dependencyLib.extend(!0,r.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(e,t,n){var i,r=(i=n(2394))&&i.__esModule?i:{default:i},s=n(8711),a=n(4713);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}r.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var l=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function c(e,t,n,i,r){if(n-1>-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,e=n-2>-1&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):e="00"+e,r.greedy&&parseInt(e)>255&&l.test("00"+e.charAt(2))){var s=[].concat(function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.buffer.slice(0,n)),[".",e.charAt(2)]);if(s.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:s,caret:n+2}}return l.test(e)}r.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:c},j:{validator:c},k:{validator:c},l:{validator:c}},onUnMask:function(e,t,n){return e},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(e){var t=e.separator,n=e.quantifier,i="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",r=i;if(t)for(var s=0;s<n;s++)r+="[".concat(t).concat(i,"]");return r},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9１-９A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(e,t,n){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(e,t,n,i,r,o,l){var c=a.getMaskTemplate.call(this,!0,s.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join(""))}}})},207:function(e,t,n){var i=o(n(7184)),r=o(n(2394)),s=n(2839),a=n(8711);function o(e){return e&&e.__esModule?e:{default:e}}var l=r.default.dependencyLib;function c(e,t){for(var n="",i=0;i<e.length;i++)r.default.prototype.definitions[e.charAt(i)]||t.definitions[e.charAt(i)]||t.optionalmarker[0]===e.charAt(i)||t.optionalmarker[1]===e.charAt(i)||t.quantifiermarker[0]===e.charAt(i)||t.quantifiermarker[1]===e.charAt(i)||t.groupmarker[0]===e.charAt(i)||t.groupmarker[1]===e.charAt(i)||t.alternatormarker===e.charAt(i)?n+="\\"+e.charAt(i):n+=e.charAt(i);return n}function u(e,t,n,i){if(e.length>0&&t>0&&(!n.digitsOptional||i)){var r=e.indexOf(n.radixPoint),s=!1;n.negationSymbol.back===e[e.length-1]&&(s=!0,e.length--),-1===r&&(e.push(n.radixPoint),r=e.length-1);for(var a=1;a<=t;a++)isFinite(e[r+a])||(e[r+a]="0")}return s&&e.push(n.negationSymbol.back),e}function d(e,t){var n=0;for(var i in"+"===e&&(n=a.seekNext.call(this,t.validPositions.length-1)),t.tests)if((i=parseInt(i))>=n)for(var r=0,s=t.tests[i].length;r<s;r++)if((void 0===t.validPositions[i]||"-"===e)&&t.tests[i][r].match.def===e)return i+(void 0!==t.validPositions[i]&&"-"!==e?1:0);return n}function h(e,t){for(var n=-1,i=0,r=t.validPositions.length;i<r;i++){var s=t.validPositions[i];if(s&&s.match.def===e){n=i;break}}return n}function f(e,t,n,i,r){var s=t.buffer?t.buffer.indexOf(r.radixPoint):-1,a=(-1!==s||i&&r.jitMasking)&&new RegExp(r.definitions[9].validator).test(e);return!i&&r._radixDance&&-1!==s&&a&&null==t.validPositions[s]?{insert:{pos:s===n?s+1:s,c:r.radixPoint},pos:n}:a}r.default.extendAliases({numeric:{mask:function(e){e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=void 0),e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",n=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e._radixDance=!1,n=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[n]&&(e.definitions[n]={},e.definitions[n].validator="["+e.radixPoint+"]",e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var r,s="[+]";if(s+=c(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),s+=e._mask(e)):s+="9{+}",void 0!==e.digits&&0!==e.digits){var a=e.digits.toString().split(",");isFinite(a[0])&&a[1]&&isFinite(a[1])?s+=n+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(r=s+n+t+"{0,"+e.digits+"}",e.keepStatic=!0):s+=n+t+"{"+e.digits+"}")}else e.inputmode="numeric";return s+=c(e.suffix,e),s+="[-]",r&&(s=[r+c(e.suffix,e)+"[-]",s]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,i.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp((0,i.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),""!==e.radixPoint&&e.substituteRadixPoint&&(e.substitutes["."==e.radixPoint?",":"."]=e.radixPoint),s},_mask:function(e){return"("+e.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:f},1:{validator:f,definitionSymbol:"9"},9:{validator:"[0-9０-９٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(e,t,n,i,r){return r.allowMinus&&("-"===e||e===r.negationSymbol.front)}},"-":{validator:function(e,t,n,i,r){return r.allowMinus&&e===r.negationSymbol.back}}},preValidation:function(e,t,n,i,r,s,a,o){var l=this;if(!1!==r.__financeInput&&n===r.radixPoint)return!1;var c=e.indexOf(r.radixPoint),u=t;if(t=function(e,t,n,i,r){return r._radixDance&&r.numericInput&&t!==r.negationSymbol.back&&e<=n&&(n>0||t==r.radixPoint)&&(void 0===i.validPositions[e-1]||i.validPositions[e-1].input!==r.negationSymbol.back)&&(e-=1),e}(t,n,c,s,r),"-"===n||n===r.negationSymbol.front){if(!0!==r.allowMinus)return!1;var f=!1,p=h("+",s),m=h("-",s);return-1!==p&&(f=[p],-1!==m&&f.push(m)),!1!==f?{remove:f,caret:u-r.negationSymbol.back.length}:{insert:[{pos:d.call(l,"+",s),c:r.negationSymbol.front,fromIsValid:!0},{pos:d.call(l,"-",s),c:r.negationSymbol.back,fromIsValid:void 0}],caret:u+r.negationSymbol.back.length}}if(n===r.groupSeparator)return{caret:u};if(o)return!0;if(-1!==c&&!0===r._radixDance&&!1===i&&n===r.radixPoint&&void 0!==r.digits&&(isNaN(r.digits)||parseInt(r.digits)>0)&&c!==t){var g=d.call(l,r.radixPoint,s);return s.validPositions[g]&&(s.validPositions[g].generatedInput=s.validPositions[g].generated||!1),{caret:r._radixDance&&t===c-1?c+1:c}}if(!1===r.__financeInput)if(i){if(r.digitsOptional)return{rewritePosition:a.end};if(!r.digitsOptional){if(a.begin>c&&a.end<=c)return n===r.radixPoint?{insert:{pos:c+1,c:"0",fromIsValid:!0},rewritePosition:c}:{rewritePosition:c+1};if(a.begin<c)return{rewritePosition:a.begin-1}}}else if(!r.showMaskOnHover&&!r.showMaskOnFocus&&!r.digitsOptional&&r.digits>0&&""===this.__valueGet.call(this.el))return{rewritePosition:c};return{rewritePosition:t}},postValidation:function(e,t,n,i,r,s,a){if(!1===i)return i;if(a)return!0;if(null!==r.min||null!==r.max){var o=r.onUnMask(e.slice().reverse().join(""),void 0,l.extend({},r,{unmaskAsNumber:!0}));if(null!==r.min&&o<r.min&&(o.toString().length>r.min.toString().length||o<0))return!1;if(null!==r.max&&o>r.max)return!!r.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:u(r.max.toString().replace(".",r.radixPoint).split(""),r.digits,r).reverse()}}return i},onUnMask:function(e,t,n){if(""===t&&!0===n.nullable)return t;var r=e.replace(n.prefix,"");return r=(r=r.replace(n.suffix,"")).replace(new RegExp((0,i.default)(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(r=r.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==r.indexOf(n.radixPoint)&&(r=r.replace(i.default.call(this,n.radixPoint),".")),r=(r=r.replace(new RegExp("^"+(0,i.default)(n.negationSymbol.front)),"-")).replace(new RegExp((0,i.default)(n.negationSymbol.back)+"$"),""),Number(r)):r},isComplete:function(e,t){var n=(t.numericInput?e.slice().reverse():e).join("");return n=(n=(n=(n=(n=n.replace(new RegExp("^"+(0,i.default)(t.negationSymbol.front)),"-")).replace(new RegExp((0,i.default)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,i.default)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace((0,i.default)(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){var n;e=null!==(n=e)&&void 0!==n?n:"";var r=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===r||(e=e.toString().replace(".",r));var s="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,a=e.split(r),o=a[0].replace(/[^\-0-9]/g,""),l=a.length>1?a[1].replace(/[^0-9]/g,""):"",c=a.length>1;e=o+(""!==l?r+l:l);var d=0;if(""!==r&&(d=t.digitsOptional?t.digits<l.length?t.digits:l.length:t.digits,""!==l||!t.digitsOptional)){var h=Math.pow(10,d||1);e=e.replace((0,i.default)(r),"."),isNaN(parseFloat(e))||(e=(t.roundingFN(parseFloat(e)*h)/h).toFixed(d)),e=e.toString().replace(".",r)}if(0===t.digits&&-1!==e.indexOf(r)&&(e=e.substring(0,e.indexOf(r))),null!==t.min||null!==t.max){var f=e.toString().replace(r,".");null!==t.min&&f<t.min?e=t.min.toString().replace(".",r):null!==t.max&&f>t.max&&(e=t.max.toString().replace(".",r))}return s&&"-"!==e.charAt(0)&&(e="-"+e),u(e.toString().split(""),d,t,c).join("")},onBeforeWrite:function(e,t,n,r){function s(e,t){if(!1!==r.__financeInput||t){var n=e.indexOf(r.radixPoint);-1!==n&&e.splice(n,1)}if(""!==r.groupSeparator)for(;-1!==(n=e.indexOf(r.groupSeparator));)e.splice(n,1);return e}var a,o;if(r.stripLeadingZeroes&&(o=function(e,t){var n=new RegExp("(^"+(""!==t.negationSymbol.front?(0,i.default)(t.negationSymbol.front)+"?":"")+(0,i.default)(t.prefix)+")(.*)("+(0,i.default)(t.suffix)+(""!=t.negationSymbol.back?(0,i.default)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),r=n?n[2]:"",s=!1;return r&&(r=r.split(t.radixPoint.charAt(0))[0],s=new RegExp("^[0"+t.groupSeparator+"]*").exec(r)),!(!s||!(s[0].length>1||s[0].length>0&&s[0].length<r.length))&&s}(t,r)))for(var c=t.join("").lastIndexOf(o[0].split("").reverse().join(""))-(o[0]==o.input?0:1),d=o[0]==o.input?1:0,h=o[0].length-d;h>0;h--)this.maskset.validPositions.splice(c+h,1),delete t[c+h];if(e)switch(e.type){case"blur":case"checkval":if(null!==r.min){var f=r.onUnMask(t.slice().reverse().join(""),void 0,l.extend({},r,{unmaskAsNumber:!0}));if(null!==r.min&&f<r.min)return{refreshFromBuffer:!0,buffer:u(r.min.toString().replace(".",r.radixPoint).split(""),r.digits,r).reverse()}}if(t[t.length-1]===r.negationSymbol.front){var p=new RegExp("(^"+(""!=r.negationSymbol.front?(0,i.default)(r.negationSymbol.front)+"?":"")+(0,i.default)(r.prefix)+")(.*)("+(0,i.default)(r.suffix)+(""!=r.negationSymbol.back?(0,i.default)(r.negationSymbol.back)+"?":"")+"$)").exec(s(t.slice(),!0).reverse().join(""));0==(p?p[2]:"")&&(a={refreshFromBuffer:!0,buffer:[0]})}else""!==r.radixPoint&&t.indexOf(r.radixPoint)===r.suffix.length&&(a&&a.buffer?a.buffer.splice(0,1+r.suffix.length):(t.splice(0,1+r.suffix.length),a={refreshFromBuffer:!0,buffer:s(t)}));if(r.enforceDigitsOnBlur){var m=(a=a||{})&&a.buffer||t.slice().reverse();a.refreshFromBuffer=!0,a.buffer=u(m,r.digits,r,!0).reverse()}}return a},onKeyDown:function(e,t,n,i){var r,a=l(this);if(3!=e.location){var o,c=e.key;if((o=i.shortcuts&&i.shortcuts[c])&&o.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(o)),a.trigger("setvalue"),!1}if(e.ctrlKey)switch(e.key){case s.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(i.step)),a.trigger("setvalue"),!1;case s.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(i.step)),a.trigger("setvalue"),!1}if(!e.shiftKey&&(e.key===s.keys.Delete||e.key===s.keys.Backspace||e.key===s.keys.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.key===s.keys.Delete?n.begin-1:n.end]===i.negationSymbol.front)return r=t.slice().reverse(),""!==i.negationSymbol.front&&r.shift(),""!==i.negationSymbol.back&&r.pop(),a.trigger("setvalue",[r.join(""),n.begin]),!1;if(!0===i._radixDance){var d,h=t.indexOf(i.radixPoint);if(i.digitsOptional){if(0===h)return(r=t.slice().reverse()).pop(),a.trigger("setvalue",[r.join(""),n.begin>=r.length?r.length:n.begin]),!1}else if(-1!==h&&(n.begin<h||n.end<h||e.key===s.keys.Delete&&(n.begin===h||n.begin-1===h)))return n.begin===n.end&&(e.key===s.keys.Backspace||e.key===s.keys.BACKSPACE_SAFARI?n.begin++:e.key===s.keys.Delete&&n.begin-1===h&&(d=l.extend({},n),n.begin--,n.end--)),(r=t.slice().reverse()).splice(r.length-n.begin,n.begin-n.end+1),r=u(r,i.digits,i).join(""),d&&(n=d),a.trigger("setvalue",[r,n.begin>=r.length?h+1:n.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n?window:{}},7760:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=function(e,t){var n=e?e.inputmask:this;if(i.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var r=a.getBuffer.call(n).slice(),s=e.inputmask._valueGet();if(s!==t){var o=a.getLastValidPosition.call(n);-1===o&&s===a.getBufferTemplate.call(n).join("")?r=[]:-1!==o&&u.call(n,r),h(e,r)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.applyInputValue=c,t.checkVal=d,t.clearOptionalTail=u,t.unmaskedvalue=function(e){var t=e?e.inputmask:this,n=t.opts,i=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&c(e,e.inputmask._valueGet(!0))}for(var r=[],s=i.validPositions,o=0,l=s.length;o<l;o++)s[o]&&s[o].match&&(1!=s[o].match.static||Array.isArray(i.metadata)&&!0!==s[o].generatedInput)&&r.push(s[o].input);var u=0===r.length?"":(t.isRTL?r.reverse():r).join("");if("function"==typeof n.onUnMask){var d=(t.isRTL?a.getBuffer.call(t).slice().reverse():a.getBuffer.call(t)).join("");u=n.onUnMask.call(t,d,u,n)}return u},t.writeBuffer=h;var i=n(9845),r=n(6030),s=n(2839),a=n(8711),o=n(7215),l=n(4713);function c(e,t,n){var i=e?e.inputmask:this,r=i.opts;e.inputmask.refreshValue=!1,"function"==typeof r.onBeforeMask&&(t=r.onBeforeMask.call(i,t,r)||t),d(e,!0,!1,t=(t||"").toString().split(""),n),i.undoValue=i._valueGet(!0),(r.clearMaskOnLostFocus||r.clearIncomplete)&&e.inputmask._valueGet()===a.getBufferTemplate.call(i).join("")&&-1===a.getLastValidPosition.call(i)&&e.inputmask._valueSet("")}function u(e){e.length=0;for(var t,n=l.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(t=n.shift());)e.push(t);return e}function d(e,t,n,i,s){var c,u=e?e.inputmask:this,d=u.maskset,f=u.opts,p=u.dependencyLib,m=i.slice(),g="",v=-1,y=f.skipOptionalPartCharacter;f.skipOptionalPartCharacter="",a.resetMaskSet.call(u,!1),u.clicked=0,v=f.radixPoint?a.determineNewCaretPosition.call(u,{begin:0,end:0},!1,!1===f.__financeInput?"radixFocus":void 0).begin:0,d.p=v,u.caretPos={begin:v};var b=[],x=u.caretPos;if(m.forEach((function(e,t){if(void 0!==e){var i=new p.Event("_checkval");i.key=e,g+=e;var s=a.getLastValidPosition.call(u,void 0,!0);!function(e,t){for(var n=l.getMaskTemplate.call(u,!0,0).slice(e,a.seekNext.call(u,e,!1,!1)).join("").replace(/'/g,""),i=n.indexOf(t);i>0&&" "===n[i-1];)i--;var r=0===i&&!a.isMask.call(u,e)&&(l.getTest.call(u,e).match.nativeDef===t.charAt(0)||!0===l.getTest.call(u,e).match.static&&l.getTest.call(u,e).match.nativeDef==="'"+t.charAt(0)||" "===l.getTest.call(u,e).match.nativeDef&&(l.getTest.call(u,e+1).match.nativeDef===t.charAt(0)||!0===l.getTest.call(u,e+1).match.static&&l.getTest.call(u,e+1).match.nativeDef==="'"+t.charAt(0)));if(!r&&i>0&&!a.isMask.call(u,e,!1,!0)){var s=a.seekNext.call(u,e);u.caretPos.begin<s&&(u.caretPos={begin:s})}return r}(v,g)?(c=r.EventHandlers.keypressEvent.call(u,i,!0,!1,n,u.caretPos.begin))&&(v=u.caretPos.begin+1,g=""):c=r.EventHandlers.keypressEvent.call(u,i,!0,!1,n,s+1),c?(void 0!==c.pos&&d.validPositions[c.pos]&&!0===d.validPositions[c.pos].match.static&&void 0===d.validPositions[c.pos].alternation&&(b.push(c.pos),u.isRTL||(c.forwardPosition=c.pos+1)),h.call(u,void 0,a.getBuffer.call(u),c.forwardPosition,i,!1),u.caretPos={begin:c.forwardPosition,end:c.forwardPosition},x=u.caretPos):void 0===d.validPositions[t]&&m[t]===l.getPlaceholder.call(u,t)&&a.isMask.call(u,t,!0)?u.caretPos.begin++:u.caretPos=x}})),b.length>0){var _,w,k=a.seekNext.call(u,-1,void 0,!1);if(!o.isComplete.call(u,a.getBuffer.call(u))&&b.length<=k||o.isComplete.call(u,a.getBuffer.call(u))&&b.length>0&&b.length!==k&&0===b[0])for(var M=k;void 0!==(_=b.shift());)if(_<M){var S=new p.Event("_checkval");if((w=d.validPositions[_]).generatedInput=!0,S.key=w.input,(c=r.EventHandlers.keypressEvent.call(u,S,!0,!1,n,M))&&void 0!==c.pos&&c.pos!==_&&d.validPositions[c.pos]&&!0===d.validPositions[c.pos].match.static)b.push(c.pos);else if(!c)break;M++}}t&&h.call(u,e,a.getBuffer.call(u),c?c.forwardPosition:u.caretPos.begin,s||new p.Event("checkval"),s&&("input"===s.type&&u.undoValue!==a.getBuffer.call(u).join("")||"paste"===s.type)),f.skipOptionalPartCharacter=y}function h(e,t,n,i,r){var l=e?e.inputmask:this,c=l.opts,u=l.dependencyLib;if(i&&"function"==typeof c.onBeforeWrite){var d=c.onBeforeWrite.call(l,i,t,n,c);if(d){if(d.refreshFromBuffer){var h=d.refreshFromBuffer;o.refreshFromBuffer.call(l,!0===h?h:h.start,h.end,d.buffer||t),t=a.getBuffer.call(l,!0)}void 0!==n&&(n=void 0!==d.caret?d.caret:n)}}if(void 0!==e&&(e.inputmask._valueSet(t.join("")),void 0===n||void 0!==i&&"blur"===i.type||a.caret.call(l,e,n,void 0,void 0,void 0!==i&&"keydown"===i.type&&(i.key===s.keys.Delete||i.key===s.keys.Backspace)),void 0===e.inputmask.writeBufferHook||e.inputmask.writeBufferHook(n),!0===r)){var f=u(e),p=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,f.trigger("input"),setTimeout((function(){p===a.getBufferTemplate.call(l).join("")?f.trigger("cleared"):!0===o.isComplete.call(l,t)&&f.trigger("complete")}),0)}}},2394:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=m(n(3976)),r=m(n(7392)),s=m(n(4963)),a=n(9716),o=m(n(9380)),l=n(7760),c=n(157),u=n(2391),d=n(8711),h=n(7215),f=n(4713);function p(e){return p="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},p(e)}function m(e){return e&&e.__esModule?e:{default:e}}var g=o.default.document,v="_inputmask_opts";function y(e,t,n){if(!(this instanceof y))return new y(e,t,n);this.dependencyLib=s.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==n&&("[object Object]"===Object.prototype.toString.call(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=s.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},b(this.opts.alias,t,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function b(e,t,n){var i=y.prototype.aliases[e];return i?(i.alias&&b(i.alias,void 0,n),s.default.extend(!0,n,i),s.default.extend(!0,n,t),!0):(null===n.mask&&(n.mask=e),!1)}y.prototype={dataAttribute:"data-inputmask",defaults:i.default,definitions:r.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){var t=this;return"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:Array.isArray(e)?e:[].slice.call(e)).forEach((function(e,n){var i=s.default.extend(!0,{},t.opts);if(function(e,t,n,i){function r(t,r){var s=""===i?t:i+"-"+t;null!==(r=void 0!==r?r:e.getAttribute(s))&&("string"==typeof r&&(0===t.indexOf("on")?r=o.default[r]:"false"===r?r=!1:"true"===r&&(r=!0)),n[t]=r)}if(!0===t.importDataAttributes){var a,l,c,u,d=e.getAttribute(i);if(d&&""!==d&&(d=d.replace(/'/g,'"'),l=JSON.parse("{"+d+"}")),l)for(u in c=void 0,l)if("alias"===u.toLowerCase()){c=l[u];break}for(a in r("alias",c),n.alias&&b(n.alias,n,t),t){if(l)for(u in c=void 0,l)if(u.toLowerCase()===a.toLowerCase()){c=l[u];break}r(a,c)}}return s.default.extend(!0,t,n),("rtl"===e.dir||t.rightAlign)&&(e.style.textAlign="right"),("rtl"===e.dir||t.numericInput)&&(e.dir="ltr",e.removeAttribute("dir"),t.isRTL=!0),Object.keys(n).length}(e,i,s.default.extend(!0,{},t.userOptions),t.dataAttribute)){var r=(0,u.generateMaskSet)(i,t.noMasksCache);void 0!==r&&(void 0!==e.inputmask&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new y(void 0,void 0,!0),e.inputmask.opts=i,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=s.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,s.default)(e),e.inputmask.maskset=r,s.default.data(e,v,t.userOptions),c.mask.call(e.inputmask))}})),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===p(e)?(s.default.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");l.checkVal.call(this,void 0,!1,!1,t),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,d.getBuffer.call(this),0,this.opts)}return l.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){s.default.data(this.el,v,null);var e=this.opts.autoUnmask?(0,l.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e!==d.getBufferTemplate.call(this).join("")?this._valueSet(e,this.opts.autoUnmask):this._valueSet(""),a.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):g.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?d.getBufferTemplate.call(this).reverse():d.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),h.isComplete.call(this,d.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var e=f.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(t){return t.mask!==e||(e=t,!1)})),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");l.checkVal.call(this,void 0,!0,!1,t)}else e=this.isRTL?d.getBuffer.call(this).slice().reverse().join(""):d.getBuffer.call(this).join("");for(var n=d.getBuffer.call(this),i=d.determineLastRequiredPosition.call(this),r=n.length-1;r>i&&!d.isMask.call(this,r);r--);return n.splice(i,r+1-i),h.isComplete.call(this,n)&&e===(this.isRTL?d.getBuffer.call(this).slice().reverse().join(""):d.getBuffer.call(this).join(""))},format:function(e,t){this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache);var n=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");l.checkVal.call(this,void 0,!0,!1,n);var i=this.isRTL?d.getBuffer.call(this).slice().reverse().join(""):d.getBuffer.call(this).join("");return t?{value:i,metadata:this.getmetadata()}:i},setValue:function(e){this.el&&(0,s.default)(this.el).trigger("setvalue",[e])},analyseMask:u.analyseMask},y.extendDefaults=function(e){s.default.extend(!0,y.prototype.defaults,e)},y.extendDefinitions=function(e){s.default.extend(!0,y.prototype.definitions,e)},y.extendAliases=function(e){s.default.extend(!0,y.prototype.aliases,e)},y.format=function(e,t,n){return y(t).format(e,n)},y.unmask=function(e,t){return y(t).unmaskedvalue(e)},y.isValid=function(e,t){return y(t).isValid(e)},y.remove=function(e){"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask&&e.inputmask.remove()}))},y.setValue=function(e,t){"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask?e.inputmask.setValue(t):(0,s.default)(e).trigger("setvalue",[t])}))},y.dependencyLib=s.default,o.default.Inputmask=y,t.default=y},5296:function(e,t,n){function i(e){return i="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},i(e)}var r=f(n(9380)),s=f(n(2394));function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,s=function(e){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===i(s)?s:String(s)),r)}var s}function o(e){var t=u();return function(){var n,r=h(e);if(t){var s=h(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},l(e)}function c(e,t,n){return c=u()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&d(r,n.prototype),r},c.apply(null,arguments)}function u(){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(e){return!1}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e){return e&&e.__esModule?e:{default:e}}var p=r.default.document;if(p&&p.head&&p.head.attachShadow&&r.default.customElements&&void 0===r.default.customElements.get("input-mask")){var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(r,e);var t,n,i=o(r);function r(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var t=(e=i.call(this)).getAttributeNames(),n=e.attachShadow({mode:"closed"});for(var a in e.input=p.createElement("input"),e.input.type="text",n.appendChild(e.input),t)Object.prototype.hasOwnProperty.call(t,a)&&e.input.setAttribute(t[a],e.getAttribute(t[a]));var o=new s.default;return o.dataAttribute="",o.mask(e.input),e.input.inputmask.shadowRoot=n,e}return t=r,(n=[{key:"attributeChangedCallback",value:function(e,t,n){this.input.setAttribute(e,n)}},{key:"value",get:function(){return this.input.value},set:function(e){this.input.value=e}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),r}(l(HTMLElement));r.default.customElements.define("input-mask",m)}},2839:function(e,t){function n(e){return n="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},n(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e,t,i){return(t=function(e){var t=function(e){if("object"!==n(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.keyCode=void 0,t.toKey=function(e,t){return l[e]||(t?String.fromCharCode(e):String.fromCharCode(e).toLowerCase())},t.toKeyCode=function(e){return o[e]};var o=t.keyCode=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),l=Object.entries(o).reduce((function(e,t){var n=i(t,2),r=n[0],s=n[1];return e[s]=void 0===e[s]?r:e[s],e}),{});t.keys=Object.entries(o).reduce((function(e,t){var n=i(t,2),r=n[0];return n[1],e[r]="Space"===r?" ":r,e}),{})},2391:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.analyseMask=function(e,t,n){var i,r,l,c,u,d,h=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,f=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,p=!1,m=new a.default,g=[],v=[],y=!1;function b(e,i,r){r=void 0!==r?r:e.matches.length;var a=e.matches[r-1];if(t){if(0===i.indexOf("[")||p&&/\\d|\\s|\\w|\\p/i.test(i)||"."===i){var l=n.casing?"i":"";/\\p\{.*}/i.test(i)&&(l+="u"),e.matches.splice(r++,0,{fn:new RegExp(i,l),static:!1,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==i,casing:null,def:i,placeholder:"object"===o(n.placeholder)?n.placeholder[m.matches.length]:void 0,nativeDef:i})}else p&&(i=i[i.length-1]),i.split("").forEach((function(t,i){a=e.matches[r-1],e.matches.splice(r++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||t)?new RegExp("["+(n.staticDefinitionSymbol||t)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==t&&!0!==a.static,casing:null,def:n.staticDefinitionSymbol||t,placeholder:void 0!==n.staticDefinitionSymbol?t:"object"===o(n.placeholder)?n.placeholder[m.matches.length]:void 0,nativeDef:(p?"'":"")+t})}));p=!1}else{var c=n.definitions&&n.definitions[i]||n.usePrototypeDefinitions&&s.default.prototype.definitions[i];c&&!p?e.matches.splice(r++,0,{fn:c.validator?"string"==typeof c.validator?new RegExp(c.validator,n.casing?"i":""):new function(){this.test=c.validator}:/./,static:c.static||!1,optionality:c.optional||!1,defOptionality:c.optional||!1,newBlockMarker:void 0===a||c.optional?"master":a.def!==(c.definitionSymbol||i),casing:c.casing,def:c.definitionSymbol||i,placeholder:c.placeholder,nativeDef:i,generated:c.generated}):(e.matches.splice(r++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||i)?new RegExp("["+(n.staticDefinitionSymbol||i)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==i&&!0!==a.static,casing:null,def:n.staticDefinitionSymbol||i,placeholder:void 0!==n.staticDefinitionSymbol?i:void 0,nativeDef:(p?"'":"")+i}),p=!1)}}function x(){if(g.length>0){if(b(c=g[g.length-1],r),c.isAlternator){u=g.pop();for(var e=0;e<u.matches.length;e++)u.matches[e].isGroup&&(u.matches[e].isGroup=!1);g.length>0?(c=g[g.length-1]).matches.push(u):m.matches.push(u)}}else b(m,r)}function _(e){var t=new a.default(!0);return t.openGroup=!1,t.matches=e,t}function w(){if((l=g.pop()).openGroup=!1,void 0!==l)if(g.length>0){if((c=g[g.length-1]).matches.push(l),c.isAlternator){u=g.pop();for(var e=0;e<u.matches.length;e++)u.matches[e].isGroup=!1,u.matches[e].alternatorGroup=!1;g.length>0?(c=g[g.length-1]).matches.push(u):m.matches.push(u)}}else m.matches.push(l);else x()}function k(e){var t=e.pop();return t.isQuantifier&&(t=_([e.pop(),t])),t}for(t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);i=t?f.exec(e):h.exec(e);){if(r=i[0],t){switch(r.charAt(0)){case"?":r="{0,1}";break;case"+":case"*":r="{"+r+"}";break;case"|":if(0===g.length){var M=_(m.matches);M.openGroup=!0,g.push(M),m.matches=[],y=!0}}switch(r){case"\\d":r="[0-9]";break;case"\\p":r+=f.exec(e)[0],r+=f.exec(e)[0]}}if(p)x();else switch(r.charAt(0)){case"$":case"^":t||x();break;case n.escapeChar:p=!0,t&&x();break;case n.optionalmarker[1]:case n.groupmarker[1]:w();break;case n.optionalmarker[0]:g.push(new a.default(!1,!0));break;case n.groupmarker[0]:g.push(new a.default(!0));break;case n.quantifiermarker[0]:var S=new a.default(!1,!1,!0),A=(r=r.replace(/[{}?]/g,"")).split("|"),L=A[0].split(","),T=isNaN(L[0])?L[0]:parseInt(L[0]),C=1===L.length?T:isNaN(L[1])?L[1]:parseInt(L[1]),D=isNaN(A[1])?A[1]:parseInt(A[1]);"*"!==T&&"+"!==T||(T="*"===C?0:1),S.quantifier={min:T,max:C,jit:D};var E=g.length>0?g[g.length-1].matches:m.matches;(i=E.pop()).isGroup||(i=_([i])),E.push(i),E.push(S);break;case n.alternatormarker:if(g.length>0){var O=(c=g[g.length-1]).matches[c.matches.length-1];d=c.openGroup&&(void 0===O.matches||!1===O.isGroup&&!1===O.isAlternator)?g.pop():k(c.matches)}else d=k(m.matches);if(d.isAlternator)g.push(d);else if(d.alternatorGroup?(u=g.pop(),d.alternatorGroup=!1):u=new a.default(!1,!1,!1,!0),u.matches.push(d),g.push(u),d.openGroup){d.openGroup=!1;var P=new a.default(!0);P.alternatorGroup=!0,g.push(P)}break;default:x()}}for(y&&w();g.length>0;)l=g.pop(),m.matches.push(l);return m.matches.length>0&&(function e(i){i&&i.matches&&i.matches.forEach((function(r,s){var a=i.matches[s+1];(void 0===a||void 0===a.matches||!1===a.isQuantifier)&&r&&r.isGroup&&(r.isGroup=!1,t||(b(r,n.groupmarker[0],0),!0!==r.openGroup&&b(r,n.groupmarker[1]))),e(r)}))}(m),v.push(m)),(n.numericInput||n.isRTL)&&function e(t){for(var i in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,i)){var r=parseInt(i);if(t.matches[i].isQuantifier&&t.matches[r+1]&&t.matches[r+1].isGroup){var s=t.matches[i];t.matches.splice(i,1),t.matches.splice(r+1,0,s)}void 0!==t.matches[i].matches?t.matches[i]=e(t.matches[i]):t.matches[i]=((a=t.matches[i])===n.optionalmarker[0]?a=n.optionalmarker[1]:a===n.optionalmarker[1]?a=n.optionalmarker[0]:a===n.groupmarker[0]?a=n.groupmarker[1]:a===n.groupmarker[1]&&(a=n.groupmarker[0]),a)}var a;return t}(v[0]),v},t.generateMaskSet=function(e,t){var n;function a(e,t){var n=t.repeat,i=t.groupmarker,s=t.quantifiermarker,a=t.keepStatic;if(n>0||"*"===n||"+"===n){var o="*"===n?0:"+"===n?1:n;if(o!=n)e=i[0]+e+i[1]+s[0]+o+","+n+s[1];else for(var c=e,u=1;u<o;u++)e+=c}if(!0===a){var d=e.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));d&&d.forEach((function(t,n){var i=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,r,s,a=[],o=!0,l=!1;try{for(r=(t=t.call(e)).next,!2;!(o=(n=r.call(t)).done)&&(a.push(n.value),2!==a.length);o=!0);}catch(e){l=!0,i=e}finally{try{if(!o&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e)||function(e){if(e){if("string"==typeof e)return l(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split("[")),s=i[0],a=i[1];a=a.replace("]",""),e=e.replace(new RegExp("".concat((0,r.default)(s),"\\[").concat((0,r.default)(a),"\\]")),s.charAt(0)===a.charAt(0)?"(".concat(s,"|").concat(s).concat(a,")"):"".concat(s,"[").concat(a,"]"))}))}return e}function c(e,n,r){var l,c,u=!1;return null!==e&&""!==e||((u=null!==r.regex)?e=(e=r.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(u=!0,e=".*")),1===e.length&&!1===r.greedy&&0!==r.repeat&&(r.placeholder=""),e=a(e,r),c=u?"regex_"+r.regex:r.numericInput?e.split("").reverse().join(""):e,null!==r.keepStatic&&(c="ks_"+r.keepStatic+c),"object"===o(r.placeholder)&&(c="ph_"+JSON.stringify(r.placeholder)+c),void 0===s.default.prototype.masksCache[c]||!0===t?(l={mask:e,maskToken:s.default.prototype.analyseMask(e,u,r),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:n,maskLength:void 0,jitOffset:{}},!0!==t&&(s.default.prototype.masksCache[c]=l,l=i.default.extend(!0,{},s.default.prototype.masksCache[c]))):l=i.default.extend(!0,{},s.default.prototype.masksCache[c]),l}if("function"==typeof e.mask&&(e.mask=e.mask(e)),Array.isArray(e.mask)){if(e.mask.length>1){null===e.keepStatic&&(e.keepStatic=!0);var u=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach((function(t){u.length>1&&(u+=e.alternatormarker),void 0!==t.mask&&"function"!=typeof t.mask?u+=t.mask:u+=t})),c(u+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}return n=e.mask&&void 0!==e.mask.mask&&"function"!=typeof e.mask.mask?c(e.mask.mask,e.mask,e):c(e.mask,e.mask,e),null===e.keepStatic&&(e.keepStatic=!1),n};var i=c(n(4963)),r=c(n(7184)),s=c(n(2394)),a=c(n(9695));function o(e){return o="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},o(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e){return e&&e.__esModule?e:{default:e}}},157:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mask=function(){var e=this,t=this.opts,n=this.el,c=this.dependencyLib;s.EventRuler.off(n);var u=function(t,n){var i=t.getAttribute("type"),r="input"===t.tagName.toLowerCase()&&n.supportsInputType.includes(i)||t.isContentEditable||"textarea"===t.tagName.toLowerCase();if(!r)if("input"===t.tagName.toLowerCase()){var l=document.createElement("input");l.setAttribute("type",i),r="text"===l.type,l=null}else r="partial";return!1!==r?function(t){var i,r;function l(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==o.getLastValidPosition.call(e)||!0!==n.nullable?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&n.clearMaskOnLostFocus?(e.isRTL?a.clearOptionalTail.call(e,o.getBuffer.call(e).slice()).reverse():a.clearOptionalTail.call(e,o.getBuffer.call(e).slice())).join(""):i.call(this):"":i.call(this)}function u(e){r.call(this,e),this.inputmask&&(0,a.applyInputValue)(this,e)}if(!t.inputmask.__valueGet){if(!0!==n.noValuePatching){if(Object.getOwnPropertyDescriptor){var d=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):void 0;d&&d.get&&d.set?(i=d.get,r=d.set,Object.defineProperty(t,"value",{get:l,set:u,configurable:!0})):"input"!==t.tagName.toLowerCase()&&(i=function(){return this.textContent},r=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:l,set:u,configurable:!0}))}else document.__lookupGetter__&&t.__lookupGetter__("value")&&(i=t.__lookupGetter__("value"),r=t.__lookupSetter__("value"),t.__defineGetter__("value",l),t.__defineSetter__("value",u));t.inputmask.__valueGet=i,t.inputmask.__valueSet=r}t.inputmask._valueGet=function(t){return e.isRTL&&!0!==t?i.call(this.el).split("").reverse().join(""):i.call(this.el)},t.inputmask._valueSet=function(t,n){r.call(this.el,null==t?"":!0!==n&&e.isRTL?t.split("").reverse().join(""):t)},void 0===i&&(i=function(){return this.value},r=function(e){this.value=e},function(t){if(c.valHooks&&(void 0===c.valHooks[t]||!0!==c.valHooks[t].inputmaskpatch)){var i=c.valHooks[t]&&c.valHooks[t].get?c.valHooks[t].get:function(e){return e.value},r=c.valHooks[t]&&c.valHooks[t].set?c.valHooks[t].set:function(e,t){return e.value=t,e};c.valHooks[t]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var r=i(t);return-1!==o.getLastValidPosition.call(e,void 0,void 0,t.inputmask.maskset.validPositions)||!0!==n.nullable?r:""}return i(t)},set:function(e,t){var n=r(e,t);return e.inputmask&&(0,a.applyInputValue)(e,t),n},inputmaskpatch:!0}}}(t.type),function(e){s.EventRuler.on(e,"mouseenter",(function(){var e=this,t=e.inputmask._valueGet(!0);t!=(e.inputmask.isRTL?o.getBuffer.call(e.inputmask).slice().reverse():o.getBuffer.call(e.inputmask)).join("")&&(0,a.applyInputValue)(e,t)}))}(t))}}(t):t.inputmask=void 0,r}(n,t);if(!1!==u){e.originalPlaceholder=n.placeholder,e.maxLength=void 0!==n?n.maxLength:void 0,-1===e.maxLength&&(e.maxLength=void 0),"inputMode"in n&&null===n.getAttribute("inputmode")&&(n.inputMode=t.inputmode,n.setAttribute("inputmode",t.inputmode)),!0===u&&(t.showMaskOnFocus=t.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(n.autocomplete),i.iphone&&(t.insertModeVisual=!1,n.setAttribute("autocorrect","off")),s.EventRuler.on(n,"submit",r.EventHandlers.submitEvent),s.EventRuler.on(n,"reset",r.EventHandlers.resetEvent),s.EventRuler.on(n,"blur",r.EventHandlers.blurEvent),s.EventRuler.on(n,"focus",r.EventHandlers.focusEvent),s.EventRuler.on(n,"invalid",r.EventHandlers.invalidEvent),s.EventRuler.on(n,"click",r.EventHandlers.clickEvent),s.EventRuler.on(n,"mouseleave",r.EventHandlers.mouseleaveEvent),s.EventRuler.on(n,"mouseenter",r.EventHandlers.mouseenterEvent),s.EventRuler.on(n,"paste",r.EventHandlers.pasteEvent),s.EventRuler.on(n,"cut",r.EventHandlers.cutEvent),s.EventRuler.on(n,"complete",t.oncomplete),s.EventRuler.on(n,"incomplete",t.onincomplete),s.EventRuler.on(n,"cleared",t.oncleared),!0!==t.inputEventOnly&&s.EventRuler.on(n,"keydown",r.EventHandlers.keyEvent),(i.mobile||t.inputEventOnly)&&n.removeAttribute("maxLength"),s.EventRuler.on(n,"input",r.EventHandlers.inputFallBackEvent)),s.EventRuler.on(n,"setvalue",r.EventHandlers.setValueEvent),void 0===e.applyMaskHook||e.applyMaskHook(),o.getBufferTemplate.call(e).join(""),e.undoValue=e._valueGet(!0);var d=(n.inputmask.shadowRoot||n.ownerDocument).activeElement;if(""!==n.inputmask._valueGet(!0)||!1===t.clearMaskOnLostFocus||d===n){(0,a.applyInputValue)(n,n.inputmask._valueGet(!0),t);var h=o.getBuffer.call(e).slice();!1===l.isComplete.call(e,h)&&t.clearIncomplete&&o.resetMaskSet.call(e,!1),t.clearMaskOnLostFocus&&d!==n&&(-1===o.getLastValidPosition.call(e)?h=[]:a.clearOptionalTail.call(e,h)),(!1===t.clearMaskOnLostFocus||t.showMaskOnFocus&&d===n||""!==n.inputmask._valueGet(!0))&&(0,a.writeBuffer)(n,h),d===n&&o.caret.call(e,n,o.seekNext.call(e,o.getLastValidPosition.call(e)))}}};var i=n(9845),r=n(6030),s=n(9716),a=n(7760),o=n(8711),l=n(7215)},9695:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=i||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0;if(0===i)return!1;for(var r=0|t,s=Math.max(r>=0?r:i-Math.abs(r),0);s<i;){if(n[s]===e)return!0;s++}return!1}})},9302:function(){var e=Function.bind.call(Function.call,Array.prototype.reduce),t=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),n=Function.bind.call(Function.call,Array.prototype.concat),i=Object.keys;Object.entries||(Object.entries=function(r){return e(i(r),(function(e,i){return n(e,"string"==typeof i&&t(r,i)?[[i,r[i]]]:[])}),[])})},7149:function(){function e(t){return(e="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})(t)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===e("test".__proto__)?function(e){return e.__proto__}:function(e){return e.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},8711:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=function(e,t,n,i,s){var a,o=this,l=this.opts;if(void 0===t)return"selectionStart"in e&&"selectionEnd"in e?(t=e.selectionStart,n=e.selectionEnd):r.default.getSelection?(a=r.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&a.commonAncestorContainer!==e||(t=a.startOffset,n=a.endOffset):document.selection&&document.selection.createRange&&(n=(t=0-(a=document.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+a.text.length),{begin:i?t:d.call(o,t),end:i?n:d.call(o,n)};if(Array.isArray(t)&&(n=o.isRTL?t[0]:t[1],t=o.isRTL?t[1]:t[0]),void 0!==t.begin&&(n=o.isRTL?t.begin:t.end,t=o.isRTL?t.end:t.begin),"number"==typeof t){t=i?t:d.call(o,t),n="number"==typeof(n=i?n:d.call(o,n))?n:t;var c=parseInt(((e.ownerDocument.defaultView||r.default).getComputedStyle?(e.ownerDocument.defaultView||r.default).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=c>e.scrollWidth?c:0,e.inputmask.caretPos={begin:t,end:n},l.insertModeVisual&&!1===l.insertMode&&t===n&&(s||n++),e===(e.inputmask.shadowRoot||e.ownerDocument).activeElement){if("setSelectionRange"in e)e.setSelectionRange(t,n);else if(r.default.getSelection){if(a=document.createRange(),void 0===e.firstChild||null===e.firstChild){var u=document.createTextNode("");e.appendChild(u)}a.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),a.setEnd(e.firstChild,n<e.inputmask._valueGet().length?n:e.inputmask._valueGet().length),a.collapse(!0);var h=r.default.getSelection();h.removeAllRanges(),h.addRange(a)}else e.createTextRange&&((a=e.createTextRange()).collapse(!0),a.moveEnd("character",n),a.moveStart("character",t),a.select());void 0===e.inputmask.caretHook||e.inputmask.caretHook.call(o,{begin:t,end:n})}}},t.determineLastRequiredPosition=function(e){var t,n,i=this,r=i.maskset,o=i.dependencyLib,c=l.call(i),u={},d=r.validPositions[c],h=a.getMaskTemplate.call(i,!0,l.call(i),!0,!0),f=h.length,p=void 0!==d?d.locator.slice():void 0;for(t=c+1;t<h.length;t++)p=(n=a.getTestTemplate.call(i,t,p,t-1)).locator.slice(),u[t]=o.extend(!0,{},n);var m=d&&void 0!==d.alternation?d.locator[d.alternation]:void 0;for(t=f-1;t>c&&((n=u[t]).match.optionality||n.match.optionalQuantifier&&n.match.newBlockMarker||m&&(m!==u[t].locator[d.alternation]&&!0!==n.match.static||!0===n.match.static&&n.locator[d.alternation]&&s.checkAlternationMatch.call(i,n.locator[d.alternation].toString().split(","),m.toString().split(","))&&""!==a.getTests.call(i,t)[0].def))&&h[t]===a.getPlaceholder.call(i,t,n.match);t--)f--;return e?{l:f,def:u[f]?u[f].match:void 0}:f},t.determineNewCaretPosition=function(e,t,n){var i,r,s,d=this,h=d.maskset,f=d.opts;if(t&&(d.isRTL?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(n=n||f.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:o.call(d).length};break;case"ignore":e.end=e.begin=u.call(d,l.call(d));break;case"radixFocus":if(d.clicked>1&&0===h.validPositions.length)break;if(function(e){if(""!==f.radixPoint&&0!==f.digits){var t=h.validPositions;if(void 0===t[e]||void 0===t[e].input){if(e<u.call(d,-1))return!0;var n=o.call(d).indexOf(f.radixPoint);if(-1!==n){for(var i=0,r=t.length;i<r;i++)if(t[i]&&n<i&&t[i].input!==a.getPlaceholder.call(d,i))return!1;return!0}}}return!1}(e.begin)){var p=o.call(d).join("").indexOf(f.radixPoint);e.end=e.begin=f.numericInput?u.call(d,p):p;break}default:if(i=e.begin,r=l.call(d,i,!0),i<=(s=u.call(d,-1!==r||c.call(d,0)?r:-1)))e.end=e.begin=c.call(d,i,!1,!0)?i:u.call(d,i);else{var m=h.validPositions[r],g=a.getTestTemplate.call(d,s,m?m.match.locator:void 0,m),v=a.getPlaceholder.call(d,s,g.match);if(""!==v&&o.call(d)[s]!==v&&!0!==g.match.optionalQuantifier&&!0!==g.match.newBlockMarker||!c.call(d,s,f.keepStatic,!0)&&g.match.def===v){var y=u.call(d,s);(i>=y||i===s)&&(s=y)}e.end=e.begin=s}}return e}},t.getBuffer=o,t.getBufferTemplate=function(){var e=this.maskset;return void 0===e._buffer&&(e._buffer=a.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice())),e._buffer},t.getLastValidPosition=l,t.isMask=c,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions=[],t.p=0),!1===e&&(t.tests={},t.jitOffset={})},t.seekNext=u,t.seekPrevious=function(e,t){var n=this,i=e-1;if(e<=0)return 0;for(;i>0&&(!0===t&&(!0!==a.getTest.call(n,i).match.newBlockMarker||!c.call(n,i,void 0,!0))||!0!==t&&!c.call(n,i,void 0,!0));)i--;return i},t.translatePosition=d;var i,r=(i=n(9380))&&i.__esModule?i:{default:i},s=n(7215),a=n(4713);function o(e){var t=this,n=t.maskset;return void 0!==n.buffer&&!0!==e||(n.buffer=a.getMaskTemplate.call(t,!0,l.call(t),!0),void 0===n._buffer&&(n._buffer=n.buffer.slice())),n.buffer}function l(e,t,n){var i=this.maskset,r=-1,s=-1,a=n||i.validPositions;void 0===e&&(e=-1);for(var o=0,l=a.length;o<l;o++)a[o]&&(t||!0!==a[o].generatedInput)&&(o<=e&&(r=o),o>=e&&(s=o));return-1===r||r===e?s:-1===s||e-r<s-e?r:s}function c(e,t,n){var i=this,r=this.maskset,s=a.getTestTemplate.call(i,e).match;if(""===s.def&&(s=a.getTest.call(i,e).match),!0!==s.static)return s.fn;if(!0===n&&void 0!==r.validPositions[e]&&!0!==r.validPositions[e].generatedInput)return!0;if(!0!==t&&e>-1){if(n){var o=a.getTests.call(i,e);return o.length>1+(""===o[o.length-1].match.def?1:0)}var l=a.determineTestTemplate.call(i,e,a.getTests.call(i,e)),c=a.getPlaceholder.call(i,e,l.match);return l.match.def!==c}return!1}function u(e,t,n){var i=this;void 0===n&&(n=!0);for(var r=e+1;""!==a.getTest.call(i,r).match.def&&(!0===t&&(!0!==a.getTest.call(i,r).match.newBlockMarker||!c.call(i,r,void 0,!0))||!0!==t&&!c.call(i,r,void 0,n));)r++;return r}function d(e){var t=this.opts,n=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!n||(e=this._valueGet().length-e)<0&&(e=0),e}},4713:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=d,t.getDecisionTaker=l,t.getMaskTemplate=function(e,t,n,i,r){var s=this,a=this.opts,o=this.maskset,l=a.greedy;r&&a.greedy&&(a.greedy=!1,s.maskset.tests={}),t=t||0;var h,f,m,g,v=[],y=0;do{if(!0===e&&o.validPositions[y])f=(m=r&&o.validPositions[y].match.optionality&&void 0===o.validPositions[y+1]&&(!0===o.validPositions[y].generatedInput||o.validPositions[y].input==a.skipOptionalPartCharacter&&y>0)?d.call(s,y,p.call(s,y,h,y-1)):o.validPositions[y]).match,h=m.locator.slice(),v.push(!0===n?m.input:!1===n?f.nativeDef:c.call(s,y,f));else{f=(m=u.call(s,y,h,y-1)).match,h=m.locator.slice();var b=!0!==i&&(!1!==a.jitMasking?a.jitMasking:f.jit);(g=(g||o.validPositions[y-1])&&f.static&&f.def!==a.groupSeparator&&null===f.fn)||!1===b||void 0===b||"number"==typeof b&&isFinite(b)&&b>y?v.push(!1===n?f.nativeDef:c.call(s,v.length,f)):g=!1}y++}while(!0!==f.static||""!==f.def||t>y);return""===v[v.length-1]&&v.pop(),!1===n&&void 0!==o.maskLength||(o.maskLength=y-1),a.greedy=l,v},t.getPlaceholder=c,t.getTest=h,t.getTestTemplate=u,t.getTests=p,t.isSubsetOf=f;var i,r=(i=n(2394))&&i.__esModule?i:{default:i},s=n(8711);function a(e){return a="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},a(e)}function o(e,t){var n=(null!=e.alternation?e.mloc[l(e)]:e.locator).join("");if(""!==n)for(n=n.split(":")[0];n.length<t;)n+="0";return n}function l(e){var t=e.locator[e.alternation];return"string"==typeof t&&t.length>0&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function c(e,t,n){var i=this,r=this.opts,o=this.maskset;if(void 0!==(t=t||h.call(i,e).match).placeholder||!0===n){if(""!==t.placeholder&&!0===t.static&&!0!==t.generated){var l=s.getLastValidPosition.call(i,e),c=s.seekNext.call(i,l);return(n?e<=c:e<c)?r.staticDefinitionSymbol&&t.static?t.nativeDef:t.def:"function"==typeof t.placeholder?t.placeholder(r):t.placeholder}return"function"==typeof t.placeholder?t.placeholder(r):t.placeholder}if(!0===t.static){if(e>-1&&void 0===o.validPositions[e]){var u,d=p.call(i,e),f=[];if("string"==typeof r.placeholder&&d.length>1+(""===d[d.length-1].match.def?1:0))for(var m=0;m<d.length;m++)if(""!==d[m].match.def&&!0!==d[m].match.optionality&&!0!==d[m].match.optionalQuantifier&&(!0===d[m].match.static||void 0===u||!1!==d[m].match.fn.test(u.match.def,o,e,!0,r))&&(f.push(d[m]),!0===d[m].match.static&&(u=d[m]),f.length>1&&/[0-9a-bA-Z]/.test(f[0].match.def)))return r.placeholder.charAt(e%r.placeholder.length)}return t.def}return"object"===a(r.placeholder)?t.def:r.placeholder.charAt(e%r.placeholder.length)}function u(e,t,n){return this.maskset.validPositions[e]||d.call(this,e,p.call(this,e,t?t.slice():t,n))}function d(e,t){var n=this.opts,i=0,r=function(e,t){var n=0,i=!1;return t.forEach((function(e){e.match.optionality&&(0!==n&&n!==e.match.optionality&&(i=!0),(0===n||n>e.match.optionality)&&(n=e.match.optionality))})),n&&(0==e||1==t.length?n=0:i||(n=0)),n}(e,t);e=e>0?e-1:0;var s,a,l,c=o(h.call(this,e));n.greedy&&t.length>1&&""===t[t.length-1].match.def&&(i=1);for(var u=0;u<t.length-i;u++){var d=t[u];s=o(d,c.length);var f=Math.abs(s-c);(!0!==d.unMatchedAlternationStopped||t.filter((function(e){return!0!==e.unMatchedAlternationStopped})).length<=1)&&(void 0===a||""!==s&&f<a||l&&!n.greedy&&l.match.optionality&&l.match.optionality-r>0&&"master"===l.match.newBlockMarker&&(!d.match.optionality||d.match.optionality-r<1||!d.match.newBlockMarker)||l&&!n.greedy&&l.match.optionalQuantifier&&!d.match.optionalQuantifier)&&(a=f,l=d)}return l}function h(e,t){var n=this.maskset;return n.validPositions[e]?n.validPositions[e]:(t||p.call(this,e))[0]}function f(e,t,n){function i(e){for(var t,n=[],i=-1,r=0,s=e.length;r<s;r++)if("-"===e.charAt(r))for(t=e.charCodeAt(r+1);++i<t;)n.push(String.fromCharCode(i));else i=e.charCodeAt(r),n.push(e.charAt(r));return n.join("")}return e.match.def===t.match.nativeDef||!(!(n.regex||e.match.fn instanceof RegExp&&t.match.fn instanceof RegExp)||!0===e.match.static||!0===t.match.static)&&("."===t.match.fn.source||-1!==i(t.match.fn.source.replace(/[[\]/]/g,"")).indexOf(i(e.match.fn.source.replace(/[[\]/]/g,""))))}function p(e,t,n){var i,s,a=this,o=this.dependencyLib,l=this.maskset,c=this.opts,u=this.el,h=l.maskToken,p=t?n:0,m=t?t.slice():[0],g=[],v=!1,y=t?t.join(""):"",b=!1;function x(t,n,s,o){function d(s,o,h){function m(e,t){var n=0===t.matches.indexOf(e);return n||t.matches.every((function(i,r){return!0===i.isQuantifier?n=m(e,t.matches[r-1]):Object.prototype.hasOwnProperty.call(i,"matches")&&(n=m(e,i)),!n})),n}function w(e,t,n){var i,r;if((l.tests[e]||l.validPositions[e])&&(l.validPositions[e]?[l.validPositions[e]]:l.tests[e]).every((function(e,s){if(e.mloc[t])return i=e,!1;var a=void 0!==n?n:e.alternation,o=void 0!==e.locator[a]?e.locator[a].toString().indexOf(t):-1;return(void 0===r||o<r)&&-1!==o&&(i=e,r=o),!0})),i){var s=i.locator[i.alternation],a=i.mloc[t]||i.mloc[s]||i.locator;return-1!==a[a.length-1].toString().indexOf(":")&&a.pop(),a.slice((void 0!==n?n:i.alternation)+1)}return void 0!==n?w(e,t):void 0}function k(t,n){return!0===t.match.static&&!0!==n.match.static&&n.match.fn.test(t.match.def,l,e,!1,c,!1)}function M(e,t){var n=e.alternation,i=void 0===t||n<=t.alternation&&-1===e.locator[n].toString().indexOf(t.locator[n]);if(!i&&n>t.alternation)for(var r=0;r<n;r++)if(e.locator[r]!==t.locator[r]){n=r,i=!0;break}return!!i&&function(n){e.mloc=e.mloc||{};var i=e.locator[n];if(void 0!==i){if("string"==typeof i&&(i=i.split(",")[0]),void 0===e.mloc[i]&&(e.mloc[i]=e.locator.slice(),e.mloc[i].push(":".concat(e.alternation))),void 0!==t){for(var r in t.mloc)"string"==typeof r&&(r=parseInt(r.split(",")[0])),e.mloc[r+0]=t.mloc[r];e.locator[n]=Object.keys(e.mloc).join(",")}return e.alternation>n&&(e.alternation=n),!0}return e.alternation=void 0,!1}(n)}function S(e,t){if(e.locator.length!==t.locator.length)return!1;for(var n=e.alternation+1;n<e.locator.length;n++)if(e.locator[n]!==t.locator[n])return!1;return!0}if(p>e+c._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(l.mask));if(p===e&&void 0===s.matches){if(g.push({match:s,locator:o.reverse(),cd:y,mloc:{}}),!s.optionality||void 0!==h||!(c.definitions&&c.definitions[s.nativeDef]&&c.definitions[s.nativeDef].optional||r.default.prototype.definitions[s.nativeDef]&&r.default.prototype.definitions[s.nativeDef].optional))return!0;v=!0,p=e}else if(void 0!==s.matches){if(s.isGroup&&h!==s)return function(){if(s=d(t.matches[t.matches.indexOf(s)+1],o,h))return!0}();if(s.isOptional)return function(){var t=s,r=g.length;if(s=x(s,n,o,h),g.length>0){if(g.forEach((function(e,t){t>=r&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)})),i=g[g.length-1].match,void 0!==h||!m(i,t))return s;v=!0,p=e}}();if(s.isAlternator)return function(){function i(e){for(var t,n=e.matches[0].matches?e.matches[0].matches.length:1,i=0;i<e.matches.length&&n===(t=e.matches[i].matches?e.matches[i].matches.length:1);i++);return n!==t}a.hasAlternator=!0;var r,m=s,y=[],x=g.slice(),_=o.length,A=n.length>0?n.shift():-1;if(-1===A||"string"==typeof A){var L,T=p,C=n.slice(),D=[];if("string"==typeof A)D=A.split(",");else for(L=0;L<m.matches.length;L++)D.push(L.toString());if(void 0!==l.excludes[e]){for(var E=D.slice(),O=0,P=l.excludes[e].length;O<P;O++){var Y=l.excludes[e][O].toString().split(":");o.length==Y[1]&&D.splice(D.indexOf(Y[0]),1)}0===D.length&&(delete l.excludes[e],D=E)}(!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&T>=c.keepStatic)&&(D=D.slice(0,1));for(var I=0;I<D.length;I++){L=parseInt(D[I]),g=[],n="string"==typeof A&&w(p,L,_)||C.slice();var N=m.matches[L];if(N&&d(N,[L].concat(o),h))s=!0;else if(0===I&&(b=i(m)),N&&N.matches&&N.matches.length>m.matches[0].matches.length)break;r=g.slice(),p=T,g=[];for(var H=0;H<r.length;H++){var j=r[H],F=!1;j.alternation=j.alternation||_,M(j);for(var R=0;R<y.length;R++){var z=y[R];if("string"!=typeof A||void 0!==j.alternation&&D.includes(j.locator[j.alternation].toString())){if(j.match.nativeDef===z.match.nativeDef){F=!0,M(z,j);break}if(f(j,z,c)){M(j,z)&&(F=!0,y.splice(y.indexOf(z),0,j));break}if(f(z,j,c)){M(z,j);break}if(k(j,z)){S(j,z)||void 0!==u.inputmask.userOptions.keepStatic?M(j,z)&&(F=!0,y.splice(y.indexOf(z),0,j)):c.keepStatic=!0;break}if(k(z,j)){M(z,j);break}}}F||y.push(j)}}g=x.concat(y),p=e,v=g.length>0&&b,s=y.length>0&&!b,b&&v&&!s&&g.forEach((function(e,t){e.unMatchedAlternationStopped=!0})),n=C.slice()}else s=d(m.matches[A]||t.matches[A],[A].concat(o),h);if(s)return!0}();if(s.isQuantifier&&h!==t.matches[t.matches.indexOf(s)-1])return function(){for(var r=s,a=!1,u=n.length>0?n.shift():0;u<(isNaN(r.quantifier.max)?u+1:r.quantifier.max)&&p<=e;u++){var h=t.matches[t.matches.indexOf(r)-1];if(s=d(h,[u].concat(o),h)){if(g.forEach((function(t,n){(i=_(h,t.match)?t.match:g[g.length-1].match).optionalQuantifier=u>=r.quantifier.min,i.jit=(u+1)*(h.matches.indexOf(i)+1)>r.quantifier.jit,i.optionalQuantifier&&m(i,h)&&(v=!0,p=e,c.greedy&&null==l.validPositions[e-1]&&u>r.quantifier.min&&-1!=["*","+"].indexOf(r.quantifier.max)&&(g.pop(),y=void 0),a=!0,s=!1),!a&&i.jit&&(l.jitOffset[e]=h.matches.length-h.matches.indexOf(i))})),a)break;return!0}}}();if(s=x(s,n,o,h))return!0}else p++}for(var h=n.length>0?n.shift():0;h<t.matches.length;h++)if(!0!==t.matches[h].isQuantifier){var m=d(t.matches[h],[h].concat(s),o);if(m&&p===e)return m;if(p>e)break}}function _(e,t){var n=-1!=e.matches.indexOf(t);return n||e.matches.forEach((function(e,i){void 0===e.matches||n||(n=_(e,t))})),n}if(e>-1){if(void 0===t){for(var w,k=e-1;void 0===(w=l.validPositions[k]||l.tests[k])&&k>-1;)k--;void 0!==w&&k>-1&&(m=function(e,t){var n,i=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===c.keepStatic?0===(i=d.call(a,e,t.slice()).locator.slice()).length&&(i=t[0].locator.slice()):t.forEach((function(e){""!==e.def&&(0===i.length?(n=e.alternation,i=e.locator.slice()):e.locator[n]&&-1===i[n].toString().indexOf(e.locator[n])&&(i[n]+=","+e.locator[n]))}))),i}(k,w),y=m.join(""),p=k)}if(l.tests[e]&&l.tests[e][0].cd===y)return l.tests[e];for(var M=m.shift();M<h.length&&!(x(h[M],m,[M])&&p===e||p>e);M++);}return(0===g.length||v)&&g.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:b&&0===g.filter((function(e){return!0!==e.unMatchedAlternationStopped})).length?[0]:[],mloc:{},cd:y}),void 0!==t&&l.tests[e]?s=o.extend(!0,[],g):(l.tests[e]=o.extend(!0,[],g),s=l.tests[e]),g.forEach((function(e){e.match.optionality=e.match.defOptionality||!1})),s}},7215:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=o,t.checkAlternationMatch=function(e,t,n){for(var i,r=this.opts.greedy?t:t.slice(0,1),s=!1,a=void 0!==n?n.split(","):[],o=0;o<a.length;o++)-1!==(i=e.indexOf(a[o]))&&e.splice(i,1);for(var l=0;l<e.length;l++)if(r.includes(e[l])){s=!0;break}return s},t.handleRemove=function(e,t,n,i,l){var c=this,u=this.maskset,d=this.opts;if((d.numericInput||c.isRTL)&&(t===r.keys.Backspace?t=r.keys.Delete:t===r.keys.Delete&&(t=r.keys.Backspace),c.isRTL)){var h=n.end;n.end=n.begin,n.begin=h}var f,p=s.getLastValidPosition.call(c,void 0,!0);n.end>=s.getBuffer.call(c).length&&p>=n.end&&(n.end=p+1),t===r.keys.Backspace?n.end-n.begin<1&&(n.begin=s.seekPrevious.call(c,n.begin)):t===r.keys.Delete&&n.begin===n.end&&(n.end=s.isMask.call(c,n.end,!0,!0)?n.end+1:s.seekNext.call(c,n.end)+1),!1!==(f=m.call(c,n))&&((!0!==i&&!1!==d.keepStatic||null!==d.regex&&-1!==a.getTest.call(c,n.begin).match.def.indexOf("|"))&&o.call(c,!0),!0!==i&&(u.p=t===r.keys.Delete?n.begin+f:n.begin,u.p=s.determineNewCaretPosition.call(c,{begin:u.p,end:u.p},!1,!1===d.insertMode&&t===r.keys.Backspace?"none":void 0).begin))},t.isComplete=c,t.isSelection=u,t.isValid=d,t.refreshFromBuffer=f,t.revalidateMask=m;var i=n(6030),r=n(2839),s=n(8711),a=n(4713);function o(e,t,n,i,r,l){var c=this,u=this.dependencyLib,h=this.opts,f=c.maskset;if(!c.hasAlternator)return!1;var p,m,g,v,y,b,x,_,w,k,M,S=u.extend(!0,[],f.validPositions),A=u.extend(!0,{},f.tests),L=!1,T=!1,C=void 0!==r?r:s.getLastValidPosition.call(c);if(l&&(k=l.begin,M=l.end,l.begin>l.end&&(k=l.end,M=l.begin)),-1===C&&void 0===r)p=0,m=(v=a.getTest.call(c,p)).alternation;else for(;C>=0;C--)if((g=f.validPositions[C])&&void 0!==g.alternation){if(C<=(e||0)&&v&&v.locator[g.alternation]!==g.locator[g.alternation])break;p=C,m=f.validPositions[p].alternation,v=g}if(void 0!==m){x=parseInt(p),f.excludes[x]=f.excludes[x]||[],!0!==e&&f.excludes[x].push((0,a.getDecisionTaker)(v)+":"+v.alternation);var D=[],E=-1;for(y=x;x<s.getLastValidPosition.call(c,void 0,!0)+1;y++)-1===E&&e<=y&&void 0!==t&&(D.push(t),E=D.length-1),(b=f.validPositions[x])&&!0!==b.generatedInput&&(void 0===l||y<k||y>=M)&&D.push(b.input),f.validPositions.splice(x,1);for(-1===E&&void 0!==t&&(D.push(t),E=D.length-1);void 0!==f.excludes[x]&&f.excludes[x].length<10;){for(f.tests={},s.resetMaskSet.call(c,!0),L=!0,y=0;y<D.length&&(_=L.caret||0==h.insertMode&&null!=_?s.seekNext.call(c,_):s.getLastValidPosition.call(c,void 0,!0)+1,w=D[y],L=d.call(c,_,w,!1,i,!0));y++)y===E&&(T=L),1==e&&L&&(T={caretPos:y});if(L)break;if(s.resetMaskSet.call(c),v=a.getTest.call(c,x),f.validPositions=u.extend(!0,[],S),f.tests=u.extend(!0,{},A),!f.excludes[x]){T=o.call(c,e,t,n,i,x-1,l);break}if(null!=v.alternation){var O=(0,a.getDecisionTaker)(v);if(-1!==f.excludes[x].indexOf(O+":"+v.alternation)){T=o.call(c,e,t,n,i,x-1,l);break}for(f.excludes[x].push(O+":"+v.alternation),y=x;y<s.getLastValidPosition.call(c,void 0,!0)+1;y++)f.validPositions.splice(x)}else delete f.excludes[x]}}return T&&!1===h.keepStatic||delete f.excludes[x],T}function l(e,t,n){var i=this.opts,s=this.maskset;switch(i.casing||t.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var a=s.validPositions[n-1];e=0===n||a&&a.input===String.fromCharCode(r.keyCode.Space)?e.toUpperCase():e.toLowerCase();break;default:if("function"==typeof i.casing){var o=Array.prototype.slice.call(arguments);o.push(s.validPositions),e=i.casing.apply(this,o)}}return e}function c(e){var t=this,n=this.opts,i=this.maskset;if("function"==typeof n.isComplete)return n.isComplete(e,n);if("*"!==n.repeat){var r=!1,o=s.determineLastRequiredPosition.call(t,!0),l=o.l;if(void 0===o.def||o.def.newBlockMarker||o.def.optionality||o.def.optionalQuantifier){r=!0;for(var c=0;c<=l;c++){var u=a.getTestTemplate.call(t,c).match;if(!0!==u.static&&void 0===i.validPositions[c]&&(!1===u.optionality||void 0===u.optionality||u.optionality&&0==u.newBlockMarker)&&(!1===u.optionalQuantifier||void 0===u.optionalQuantifier)||!0===u.static&&""!=u.def&&e[c]!==a.getPlaceholder.call(t,c,u)){r=!1;break}}}return r}}function u(e){var t=this.opts.insertMode?0:1;return this.isRTL?e.begin-e.end>t:e.end-e.begin>t}function d(e,t,n,i,r,h,g){var v=this,y=this.dependencyLib,b=this.opts,x=v.maskset;n=!0===n;var _=e;function w(e){if(void 0!==e){if(void 0!==e.remove&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort((function(e,t){return v.isRTL?e.pos-t.pos:t.pos-e.pos})).forEach((function(e){m.call(v,{begin:e,end:e+1})})),e.remove=void 0),void 0!==e.insert&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort((function(e,t){return v.isRTL?t.pos-e.pos:e.pos-t.pos})).forEach((function(e){""!==e.c&&d.call(v,e.pos,e.c,void 0===e.strict||e.strict,void 0!==e.fromIsValid?e.fromIsValid:i)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;f.call(v,!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(_=e.rewritePosition,e=!0)}return e}function k(t,n,r){var o=!1;return a.getTests.call(v,t).every((function(c,d){var h=c.match;if(s.getBuffer.call(v,!0),!1!==(o=(!h.jit||void 0!==x.validPositions[s.seekPrevious.call(v,t)])&&(null!=h.fn?h.fn.test(n,x,t,r,b,u.call(v,e)):(n===h.def||n===b.skipOptionalPartCharacter)&&""!==h.def&&{c:a.getPlaceholder.call(v,t,h,!0)||h.def,pos:t}))){var f=void 0!==o.c?o.c:n,p=t;return f=f===b.skipOptionalPartCharacter&&!0===h.static?a.getPlaceholder.call(v,t,h,!0)||h.def:f,!0!==(o=w(o))&&void 0!==o.pos&&o.pos!==t&&(p=o.pos),!0!==o&&void 0===o.pos&&void 0===o.c||!1===m.call(v,e,y.extend({},c,{input:l.call(v,f,h,p)}),i,p)&&(o=!1),!1}return!0})),o}void 0!==e.begin&&(_=v.isRTL?e.end:e.begin);var M=!0,S=y.extend(!0,[],x.validPositions);if(!1===b.keepStatic&&void 0!==x.excludes[_]&&!0!==r&&!0!==i)for(var A=_;A<(v.isRTL?e.begin:e.end);A++)void 0!==x.excludes[A]&&(x.excludes[A]=void 0,delete x.tests[A]);if("function"==typeof b.preValidation&&!0!==i&&!0!==h&&(M=w(M=b.preValidation.call(v,s.getBuffer.call(v),_,t,u.call(v,e),b,x,e,n||r))),!0===M){if(M=k(_,t,n),(!n||!0===i)&&!1===M&&!0!==h){var L=x.validPositions[_];if(!L||!0!==L.match.static||L.match.def!==t&&t!==b.skipOptionalPartCharacter){if(b.insertMode||void 0===x.validPositions[s.seekNext.call(v,_)]||e.end>_){var T=!1;if(x.jitOffset[_]&&void 0===x.validPositions[s.seekNext.call(v,_)]&&!1!==(M=d.call(v,_+x.jitOffset[_],t,!0,!0))&&(!0!==r&&(M.caret=_),T=!0),e.end>_&&(x.validPositions[_]=void 0),!T&&!s.isMask.call(v,_,b.keepStatic&&0===_))for(var C=_+1,D=s.seekNext.call(v,_,!1,0!==_);C<=D;C++)if(!1!==(M=k(C,t,n))){M=p.call(v,_,void 0!==M.pos?M.pos:C)||M,_=C;break}}}else M={caret:s.seekNext.call(v,_)}}v.hasAlternator&&!0!==r&&!n&&(r=!0,!1===M&&b.keepStatic&&(c.call(v,s.getBuffer.call(v))||0===_)?M=o.call(v,_,t,n,i,void 0,e):(u.call(v,e)&&x.tests[_]&&x.tests[_].length>1&&b.keepStatic||1==M&&!0!==b.numericInput&&x.tests[_]&&x.tests[_].length>1&&s.getLastValidPosition.call(v,void 0,!0)>_)&&(M=o.call(v,!0))),!0===M&&(M={pos:_})}if("function"==typeof b.postValidation&&!0!==i&&!0!==h){var E=b.postValidation.call(v,s.getBuffer.call(v,!0),void 0!==e.begin?v.isRTL?e.end:e.begin:e,t,M,b,x,n,g);void 0!==E&&(M=!0===E?M:E)}M&&void 0===M.pos&&(M.pos=_),!1===M||!0===h?(s.resetMaskSet.call(v,!0),x.validPositions=y.extend(!0,[],S)):p.call(v,void 0,_,!0);var O=w(M);return void 0!==v.maxLength&&s.getBuffer.call(v).length>v.maxLength&&!i&&(s.resetMaskSet.call(v,!0),x.validPositions=y.extend(!0,[],S),O=!1),O}function h(e,t,n){for(var i=this.maskset,r=!1,s=a.getTests.call(this,e),o=0;o<s.length;o++){if(s[o].match&&(s[o].match.nativeDef===t.match[n.shiftPositions?"def":"nativeDef"]&&(!n.shiftPositions||!t.match.static)||s[o].match.nativeDef===t.match.nativeDef||n.regex&&!s[o].match.static&&s[o].match.fn.test(t.input,i,e,!1,n))){r=!0;break}if(s[o].match&&s[o].match.def===t.match.nativeDef){r=void 0;break}}return!1===r&&void 0!==i.jitOffset[e]&&(r=h.call(this,e+i.jitOffset[e],t,n)),r}function f(e,t,n){var r,a,o=this,l=this.maskset,c=this.opts,u=this.dependencyLib,d=c.skipOptionalPartCharacter,h=o.isRTL?n.slice().reverse():n;if(c.skipOptionalPartCharacter="",!0===e)s.resetMaskSet.call(o,!1),e=0,t=n.length,a=s.determineNewCaretPosition.call(o,{begin:0,end:0},!1).begin;else{for(r=e;r<t;r++)l.validPositions.splice(e,0);a=e}var f=new u.Event("keypress");for(r=e;r<t;r++){f.key=h[r].toString(),o.ignorable=!1;var p=i.EventHandlers.keypressEvent.call(o,f,!0,!1,!1,a);!1!==p&&void 0!==p&&(a=p.forwardPosition)}c.skipOptionalPartCharacter=d}function p(e,t,n){var i=this,r=this.maskset,o=this.dependencyLib;if(void 0===e)for(e=t-1;e>0&&!r.validPositions[e];e--);for(var l=e;l<t;l++)if(void 0===r.validPositions[l]&&!s.isMask.call(i,l,!1)&&(0==l?a.getTest.call(i,l):r.validPositions[l-1])){var c=a.getTests.call(i,l).slice();""===c[c.length-1].match.def&&c.pop();var u,h=a.determineTestTemplate.call(i,l,c);if(h&&(!0!==h.match.jit||"master"===h.match.newBlockMarker&&(u=r.validPositions[l+1])&&!0===u.match.optionalQuantifier)&&((h=o.extend({},h,{input:a.getPlaceholder.call(i,l,h.match,!0)||h.match.def})).generatedInput=!0,m.call(i,l,h,!0),!0!==n)){var f=r.validPositions[t].input;return r.validPositions[t]=void 0,d.call(i,t,f,!0,!0)}}}function m(e,t,n,i){var r=this,o=this.maskset,l=this.opts,c=this.dependencyLib;function f(e,t,n){var i=t[e];if(void 0!==i&&!0===i.match.static&&!0!==i.match.optionality&&(void 0===t[0]||void 0===t[0].alternation)){var r=n.begin<=e-1?t[e-1]&&!0===t[e-1].match.static&&t[e-1]:t[e-1],s=n.end>e+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return r&&s}return!1}var p=0,m=void 0!==e.begin?e.begin:e,g=void 0!==e.end?e.end:e,v=!0;if(e.begin>e.end&&(m=e.end,g=e.begin),i=void 0!==i?i:m,void 0===n&&(m!==g||l.insertMode&&void 0!==o.validPositions[i]||void 0===t||t.match.optionalQuantifier||t.match.optionality)){var y,b=c.extend(!0,[],o.validPositions),x=s.getLastValidPosition.call(r,void 0,!0);o.p=m;var _=u.call(r,e)?m:i;for(y=x;y>=_;y--)o.validPositions.splice(y,1),void 0===t&&delete o.tests[y+1];var w,k,M=i,S=M;for(t&&(o.validPositions[i]=c.extend(!0,{},t),S++,M++),null==b[g]&&o.jitOffset[g]&&(g+=o.jitOffset[g]+1),y=t?g:g-1;y<=x;y++){if(void 0!==(w=b[y])&&!0!==w.generatedInput&&(y>=g||y>=m&&f(y,b,{begin:m,end:g}))){for(;""!==a.getTest.call(r,S).match.def;){if(!1!==(k=h.call(r,S,w,l))||"+"===w.match.def){"+"===w.match.def&&s.getBuffer.call(r,!0);var A=d.call(r,S,w.input,"+"!==w.match.def,!0);if(v=!1!==A,M=(A.pos||S)+1,!v&&k)break}else v=!1;if(v){void 0===t&&w.match.static&&y===e.begin&&p++;break}if(!v&&s.getBuffer.call(r),S>o.maskLength)break;S++}""==a.getTest.call(r,S).match.def&&(v=!1),S=M}if(!v)break}if(!v)return o.validPositions=c.extend(!0,[],b),s.resetMaskSet.call(r,!0),!1}else t&&a.getTest.call(r,i).match.cd===t.match.cd&&(o.validPositions[i]=c.extend(!0,{},t));return s.resetMaskSet.call(r,!0),p}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}var i={};return function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(7149),n(3194),n(9302),n(4013),n(3851),n(219),n(207),n(5296);var t,r=(t=n(2394))&&t.__esModule?t:{default:t};e.default=r.default}(),i}()})),function(e,t,n){e(n.document).ajaxComplete((function(n,i,r){-1!==e.inArray("html",r.dataTypes)&&e(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias], [data-inputmask-regex]").each((function(e,n){void 0===n.inputmask&&t().mask(n)}))})).ready((function(){e(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias],[data-inputmask-regex]").each((function(e,n){void 0===n.inputmask&&t().mask(n)}))}))}(jQuery,window.Inputmask,window);var tns=function(){var e=window,t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)},n=window,i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||function(e){clearTimeout(e)};function r(){for(var e,t,n,i=arguments[0]||{},r=1,s=arguments.length;r<s;r++)if(null!==(e=arguments[r]))for(t in e)i!==(n=e[t])&&void 0!==n&&(i[t]=n);return i}function s(e){return 0<=["true","false"].indexOf(e)?JSON.parse(e):e}function a(e,t,n,i){if(i)try{e.setItem(t,n)}catch(e){}return n}function o(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}var l=document.documentElement;function c(e){var t="";return e.fake&&(t=l.style.overflow,e.style.background="",e.style.overflow=l.style.overflow="hidden",l.appendChild(e)),t}function u(e,t){e.fake&&(e.remove(),l.style.overflow=t,l.offsetHeight)}function d(e,t,n,i){"insertRule"in e?e.insertRule(t+"{"+n+"}",i):e.addRule(t,n,i)}function h(e){return("insertRule"in e?e.cssRules:e.rules).length}function f(e,t,n){for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i)}var p="classList"in document.createElement("_"),m=p?function(e,t){return e.classList.contains(t)}:function(e,t){return 0<=e.className.indexOf(t)},g=p?function(e,t){m(e,t)||e.classList.add(t)}:function(e,t){m(e,t)||(e.className+=" "+t)},v=p?function(e,t){m(e,t)&&e.classList.remove(t)}:function(e,t){m(e,t)&&(e.className=e.className.replace(t,""))};function y(e,t){return e.hasAttribute(t)}function b(e,t){return e.getAttribute(t)}function x(e){return void 0!==e.item}function _(e,t){if(e=x(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var n=e.length;n--;)for(var i in t)e[n].setAttribute(i,t[i])}function w(e,t){e=x(e)||e instanceof Array?e:[e];for(var n=(t=t instanceof Array?t:[t]).length,i=e.length;i--;)for(var r=n;r--;)e[i].removeAttribute(t[r])}function k(e){for(var t=[],n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function M(e,t){"none"!==e.style.display&&(e.style.display="none")}function S(e,t){"none"===e.style.display&&(e.style.display="")}function A(e){return"none"!==window.getComputedStyle(e).display}function L(e){if("string"==typeof e){var t=[e],n=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach((function(i){"ms"===i&&"transform"!==e||t.push(i+n)})),e=t}for(var i=document.createElement("fakeelement"),r=(e.length,0);r<e.length;r++){var s=e[r];if(void 0!==i.style[s])return s}return!1}function T(e,t){var n=!1;return/^Webkit/.test(e)?n="webkit"+t+"End":/^O/.test(e)?n="o"+t+"End":e&&(n=t.toLowerCase()+"end"),n}var C=!1;try{var D=Object.defineProperty({},"passive",{get:function(){C=!0}});window.addEventListener("test",null,D)}catch(e){}var E=!!C&&{passive:!0};function O(e,t,n){for(var i in t){var r=0<=["touchstart","touchmove"].indexOf(i)&&!n&&E;e.addEventListener(i,t[i],r)}}function P(e,t){for(var n in t){var i=0<=["touchstart","touchmove"].indexOf(n)&&E;e.removeEventListener(n,t[n],i)}}function Y(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var n=0;n<this.topics[e].length;n++)if(this.topics[e][n]===t){this.topics[e].splice(n,1);break}},emit:function(e,t){t.type=e,this.topics[e]&&this.topics[e].forEach((function(n){n(t,e)}))}}}Object.keys||(Object.keys=function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var I=function(e){e=r({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},e||{});var n=document,l=window,p={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},x={},C=e.useLocalStorage;if(C){var D=navigator.userAgent,E=new Date;try{(x=l.localStorage)?(x.setItem(E,E),C=x.getItem(E)==E,x.removeItem(E)):C=!1,C||(x={})}catch(D){C=!1}C&&(x.tnsApp&&x.tnsApp!==D&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(e){x.removeItem(e)})),localStorage.tnsApp=D)}var N=x.tC?s(x.tC):a(x,"tC",function(){var e=document,t=o(),n=c(t),i=e.createElement("div"),r=!1;t.appendChild(i);try{for(var s,a="(10px * 10)",l=["calc"+a,"-moz-calc"+a,"-webkit-calc"+a],d=0;d<3;d++)if(s=l[d],i.style.width=s,100===i.offsetWidth){r=s.replace(a,"");break}}catch(e){}return t.fake?u(t,n):i.remove(),r}(),C),H=x.tPL?s(x.tPL):a(x,"tPL",function(){var e,t=document,n=o(),i=c(n),r=t.createElement("div"),s=t.createElement("div"),a="";r.className="tns-t-subp2",s.className="tns-t-ct";for(var l=0;l<70;l++)a+="<div></div>";return s.innerHTML=a,r.appendChild(s),n.appendChild(r),e=Math.abs(r.getBoundingClientRect().left-s.children[67].getBoundingClientRect().left)<2,n.fake?u(n,i):r.remove(),e}(),C),j=x.tMQ?s(x.tMQ):a(x,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var e,t=document,n=o(),i=c(n),r=t.createElement("div"),s=t.createElement("style"),a="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return s.type="text/css",r.className="tns-mq-test",n.appendChild(s),n.appendChild(r),s.styleSheet?s.styleSheet.cssText=a:s.appendChild(t.createTextNode(a)),e=window.getComputedStyle?window.getComputedStyle(r).position:r.currentStyle.position,n.fake?u(n,i):r.remove(),"absolute"===e}(),C),F=x.tTf?s(x.tTf):a(x,"tTf",L("transform"),C),R=x.t3D?s(x.t3D):a(x,"t3D",function(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,n=document,i=o(),r=c(i),s=n.createElement("p"),a=9<e.length?"-"+e.slice(0,-9).toLowerCase()+"-":"";return a+="transform",i.insertBefore(s,null),s.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(s).getPropertyValue(a),i.fake?u(i,r):s.remove(),void 0!==t&&0<t.length&&"none"!==t}(F),C),z=x.tTDu?s(x.tTDu):a(x,"tTDu",L("transitionDuration"),C),B=x.tTDe?s(x.tTDe):a(x,"tTDe",L("transitionDelay"),C),V=x.tADu?s(x.tADu):a(x,"tADu",L("animationDuration"),C),W=x.tADe?s(x.tADe):a(x,"tADe",L("animationDelay"),C),q=x.tTE?s(x.tTE):a(x,"tTE",T(z,"Transition"),C),U=x.tAE?s(x.tAE):a(x,"tAE",T(V,"Animation"),C),$=l.console&&"function"==typeof l.console.warn,X=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],G={};if(X.forEach((function(t){if("string"==typeof e[t]){var i=e[t],r=n.querySelector(i);if(G[t]=i,!r||!r.nodeName)return void($&&console.warn("Can't find",e[t]));e[t]=r}})),!(e.container.children.length<1)){var Z=e.responsive,K=e.nested,J="carousel"===e.mode;if(Z){0 in Z&&(e=r(e,Z[0]),delete Z[0]);var Q={};for(var ee in Z){var te=Z[ee];te="number"==typeof te?{items:te}:te,Q[ee]=te}Z=Q,Q=null}if(J||function e(t){for(var n in t)J||("slideBy"===n&&(t[n]="page"),"edgePadding"===n&&(t[n]=!1),"autoHeight"===n&&(t[n]=!1)),"responsive"===n&&e(t[n])}(e),!J){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var ne=e.animateIn,ie=e.animateOut,re=e.animateDelay,se=e.animateNormal}var ae,oe,le="horizontal"===e.axis,ce=n.createElement("div"),ue=n.createElement("div"),de=e.container,he=de.parentNode,fe=de.outerHTML,pe=de.children,me=pe.length,ge=On(),ve=!1;Z&&Jn(),J&&(de.className+=" tns-vpfix");var ye,be,xe,_e,we,ke,Me,Se,Ae=e.autoWidth,Le=Nn("fixedWidth"),Te=Nn("edgePadding"),Ce=Nn("gutter"),De=Yn(),Ee=Nn("center"),Oe=Ae?1:Math.floor(Nn("items")),Pe=Nn("slideBy"),Ye=e.viewportMax||e.fixedWidthViewportWidth,Ie=Nn("arrowKeys"),Ne=Nn("speed"),He=e.rewind,je=!He&&e.loop,Fe=Nn("autoHeight"),Re=Nn("controls"),ze=Nn("controlsText"),Be=Nn("nav"),Ve=Nn("touch"),We=Nn("mouseDrag"),qe=Nn("autoplay"),Ue=Nn("autoplayTimeout"),$e=Nn("autoplayText"),Xe=Nn("autoplayHoverPause"),Ge=Nn("autoplayResetOnVisibility"),Ze=(Me=Nn("nonce"),Se=document.createElement("style"),Me&&Se.setAttribute("nonce",Me),document.querySelector("head").appendChild(Se),Se.sheet?Se.sheet:Se.styleSheet),Ke=e.lazyload,Je=e.lazyloadSelector,Qe=[],et=je?(we=function(){if(Ae||Le&&!Ye)return me-1;var t=Le?"fixedWidth":"items",n=[];if((Le||e[t]<me)&&n.push(e[t]),Z)for(var i in Z){var r=Z[i][t];r&&(Le||r<me)&&n.push(r)}return n.length||n.push(0),Math.ceil(Le?Ye/Math.min.apply(null,n):Math.max.apply(null,n))}(),ke=J?Math.ceil((5*we-me)/2):4*we-me,ke=Math.max(we,ke),In("edgePadding")?ke+1:ke):0,tt=J?me+2*et:me+et,nt=!(!Le&&!Ae||je),it=Le?Mi():null,rt=!J||!je,st=le?"left":"top",at="",ot="",lt=Le?function(){return Ee&&!je?me-1:Math.ceil(-it/(Le+Ce))}:Ae?function(){for(var e=0;e<tt;e++)if(ye[e]>=-it)return e}:function(){return Ee&&J&&!je?me-1:je||J?Math.max(0,tt-Math.ceil(Oe)):tt-1},ct=Cn(Nn("startIndex")),ut=ct,dt=(Tn(),0),ht=Ae?null:lt(),ft=e.preventActionWhenRunning,pt=e.swipeAngle,mt=!pt||"?",gt=!1,vt=e.onInit,yt=new Y,bt=" tns-slider tns-"+e.mode,xt=de.id||(_e=window.tnsId,window.tnsId=_e?_e+1:1,"tns"+window.tnsId),_t=Nn("disable"),wt=!1,kt=e.freezable,Mt=!(!kt||Ae)&&Kn(),St=!1,At={click:Pi,keydown:function(e){e=zi(e);var t=[p.LEFT,p.RIGHT].indexOf(e.keyCode);0<=t&&(0===t?Xt.disabled||Pi(e,-1):Gt.disabled||Pi(e,1))}},Lt={click:function(e){if(gt){if(ft)return;Ei()}for(var t=Bi(e=zi(e));t!==Qt&&!y(t,"data-nav");)t=t.parentNode;if(y(t,"data-nav")){var n=rn=Number(b(t,"data-nav")),i=Le||Ae?n*me/tn:n*Oe;Oi(It?n:Math.min(Math.ceil(i),me-1),e),sn===n&&(dn&&ji(),rn=-1)}},keydown:function(e){e=zi(e);var t=n.activeElement;if(y(t,"data-nav")){var i=[p.LEFT,p.RIGHT,p.ENTER,p.SPACE].indexOf(e.keyCode),r=Number(b(t,"data-nav"));0<=i&&(0===i?0<r&&Ri(Jt[r-1]):1===i?r<tn-1&&Ri(Jt[r+1]):Oi(rn=r,e))}}},Tt={mouseover:function(){dn&&(Ii(),hn=!0)},mouseout:function(){hn&&(Yi(),hn=!1)}},Ct={visibilitychange:function(){n.hidden?dn&&(Ii(),pn=!0):pn&&(Yi(),pn=!1)}},Dt={keydown:function(e){e=zi(e);var t=[p.LEFT,p.RIGHT].indexOf(e.keyCode);0<=t&&Pi(e,0===t?-1:1)}},Et={touchstart:Ui,touchmove:$i,touchend:Xi,touchcancel:Xi},Ot={mousedown:Ui,mousemove:$i,mouseup:Xi,mouseleave:Xi},Pt=In("controls"),Yt=In("nav"),It=!!Ae||e.navAsThumbnails,Nt=In("autoplay"),Ht=In("touch"),jt=In("mouseDrag"),Ft="tns-slide-active",Rt="tns-slide-cloned",zt="tns-complete",Bt={load:function(e){oi(Bi(e))},error:function(e){var t;t=Bi(e),g(t,"failed"),li(t)}},Vt="force"===e.preventScrollOnTouch;if(Pt)var Wt,qt,Ut=e.controlsContainer,$t=e.controlsContainer?e.controlsContainer.outerHTML:"",Xt=e.prevButton,Gt=e.nextButton,Zt=e.prevButton?e.prevButton.outerHTML:"",Kt=e.nextButton?e.nextButton.outerHTML:"";if(Yt)var Jt,Qt=e.navContainer,en=e.navContainer?e.navContainer.outerHTML:"",tn=Ae?me:Zi(),nn=0,rn=-1,sn=En(),an=sn,on="tns-nav-active",ln="Carousel Page ",cn=" (Current Slide)";if(Nt)var un,dn,hn,fn,pn,mn="forward"===e.autoplayDirection?1:-1,gn=e.autoplayButton,vn=e.autoplayButton?e.autoplayButton.outerHTML:"",yn=["<span class='tns-visually-hidden'>"," animation</span>"];if(Ht||jt)var bn,xn,_n={},wn={},kn=!1,Mn=le?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};Ae||Ln(_t||Mt),F&&(st=F,at="translate",R?(at+=le?"3d(":"3d(0px, ",ot=le?", 0px, 0px)":", 0px)"):(at+=le?"X(":"Y(",ot=")")),J&&(de.className=de.className.replace("tns-vpfix","")),function(){(In("gutter"),ce.className="tns-outer",ue.className="tns-inner",ce.id=xt+"-ow",ue.id=xt+"-iw",""===de.id&&(de.id=xt),bt+=H||Ae?" tns-subpixel":" tns-no-subpixel",bt+=N?" tns-calc":" tns-no-calc",Ae&&(bt+=" tns-autowidth"),bt+=" tns-"+e.axis,de.className+=bt,J?((ae=n.createElement("div")).id=xt+"-mw",ae.className="tns-ovh",ce.appendChild(ae),ae.appendChild(ue)):ce.appendChild(ue),Fe)&&((ae||ue).className+=" tns-ah");if(he.insertBefore(ce,de),ue.appendChild(de),f(pe,(function(e,t){g(e,"tns-item"),e.id||(e.id=xt+"-item"+t),!J&&se&&g(e,se),_(e,{"aria-hidden":"true",tabindex:"-1"})})),et){for(var t=n.createDocumentFragment(),i=n.createDocumentFragment(),r=et;r--;){var s=r%me,a=pe[s].cloneNode(!0);if(g(a,Rt),w(a,"id"),i.insertBefore(a,i.firstChild),J){var o=pe[me-1-s].cloneNode(!0);g(o,Rt),w(o,"id"),t.appendChild(o)}}de.insertBefore(t,de.firstChild),de.appendChild(i),pe=de.children}}(),function(){if(!J)for(var t=ct,n=ct+Math.min(me,Oe);t<n;t++){var i=pe[t];i.style.left=100*(t-ct)/Oe+"%",g(i,ne),v(i,se)}if(le&&(H||Ae?(d(Ze,"#"+xt+" > .tns-item","font-size:"+l.getComputedStyle(pe[0]).fontSize+";",h(Ze)),d(Ze,"#"+xt,"font-size:0;",h(Ze))):J&&f(pe,(function(e,t){var n;e.style.marginLeft=(n=t,N?N+"("+100*n+"% / "+tt+")":100*n/tt+"%")}))),j){if(z){var r=ae&&e.autoHeight?Bn(e.speed):"";d(Ze,"#"+xt+"-mw",r,h(Ze))}r=Hn(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),d(Ze,"#"+xt+"-iw",r,h(Ze)),J&&(r=le&&!Ae?"width:"+jn(e.fixedWidth,e.gutter,e.items)+";":"",z&&(r+=Bn(Ne)),d(Ze,"#"+xt,r,h(Ze))),r=le&&!Ae?Fn(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(r+=Rn(e.gutter)),J||(z&&(r+=Bn(Ne)),V&&(r+=Vn(Ne))),r&&d(Ze,"#"+xt+" > .tns-item",r,h(Ze))}else{J&&Fe&&(ae.style[z]=Ne/1e3+"s"),ue.style.cssText=Hn(Te,Ce,Le,Fe),J&&le&&!Ae&&(de.style.width=jn(Le,Ce,Oe));r=le&&!Ae?Fn(Le,Ce,Oe):"";Ce&&(r+=Rn(Ce)),r&&d(Ze,"#"+xt+" > .tns-item",r,h(Ze))}if(Z&&j)for(var s in Z){s=parseInt(s);var a=Z[s],o=(r="",""),c="",u="",p="",m=Ae?null:Nn("items",s),y=Nn("fixedWidth",s),b=Nn("speed",s),x=Nn("edgePadding",s),_=Nn("autoHeight",s),w=Nn("gutter",s);z&&ae&&Nn("autoHeight",s)&&"speed"in a&&(o="#"+xt+"-mw{"+Bn(b)+"}"),("edgePadding"in a||"gutter"in a)&&(c="#"+xt+"-iw{"+Hn(x,w,y,b,_)+"}"),J&&le&&!Ae&&("fixedWidth"in a||"items"in a||Le&&"gutter"in a)&&(u="width:"+jn(y,w,m)+";"),z&&"speed"in a&&(u+=Bn(b)),u&&(u="#"+xt+"{"+u+"}"),("fixedWidth"in a||Le&&"gutter"in a||!J&&"items"in a)&&(p+=Fn(y,w,m)),"gutter"in a&&(p+=Rn(w)),!J&&"speed"in a&&(z&&(p+=Bn(b)),V&&(p+=Vn(b))),p&&(p="#"+xt+" > .tns-item{"+p+"}"),(r=o+c+u+p)&&Ze.insertRule("@media (min-width: "+s/16+"em) {"+r+"}",Ze.cssRules.length)}}(),Wn();var Sn=je?J?function(){var e=dt,t=ht;e+=Pe,t-=Pe,Te?(e+=1,t-=1):Le&&(De+Ce)%(Le+Ce)&&(t-=1),et&&(t<ct?ct-=me:ct<e&&(ct+=me))}:function(){if(ht<ct)for(;dt+me<=ct;)ct-=me;else if(ct<dt)for(;ct<=ht-me;)ct+=me}:function(){ct=Math.max(dt,Math.min(ht,ct))},An=J?function(){var e,t,n,i,r,s,a,o,l,c,u;wi(de,""),z||!Ne?(Li(),Ne&&A(de)||Ei()):(e=de,t=st,n=at,i=ot,r=Si(),s=Ne,a=Ei,o=Math.min(s,10),l=0<=r.indexOf("%")?"%":"px",r=r.replace(l,""),c=Number(e.style[t].replace(n,"").replace(i,"").replace(l,"")),u=(r-c)/s*o,setTimeout((function r(){s-=o,c+=u,e.style[t]=n+c+l+i,0<s?setTimeout(r,o):a()}),o)),le||Gi()}:function(){Qe=[];var e={};e[q]=e[U]=Ei,P(pe[ut],e),O(pe[ct],e),Ti(ut,ne,ie,!0),Ti(ct,se,ne),q&&U&&Ne&&A(de)||Ei()};return{version:"2.9.4",getInfo:Ji,events:yt,goTo:Oi,play:function(){qe&&!dn&&(Hi(),fn=!1)},pause:function(){dn&&(ji(),fn=!0)},isOn:ve,updateSliderHeight:pi,refresh:Wn,destroy:function(){if(Ze.disabled=!0,Ze.ownerNode&&Ze.ownerNode.remove(),P(l,{resize:Gn}),Ie&&P(n,Dt),Ut&&P(Ut,At),Qt&&P(Qt,Lt),P(de,Tt),P(de,Ct),gn&&P(gn,{click:Fi}),qe&&clearInterval(un),J&&q){var t={};t[q]=Ei,P(de,t)}Ve&&P(de,Et),We&&P(de,Ot);var i=[fe,$t,Zt,Kt,en,vn];for(var r in X.forEach((function(t,n){var r="container"===t?ce:e[t];if("object"==typeof r&&r){var s=!!r.previousElementSibling&&r.previousElementSibling,a=r.parentNode;r.outerHTML=i[n],e[t]=s?s.nextElementSibling:a.firstElementChild}})),X=ne=ie=re=se=le=ce=ue=de=he=fe=pe=me=oe=ge=Ae=Le=Te=Ce=De=Oe=Pe=Ye=Ie=Ne=He=je=Fe=Ze=Ke=ye=Qe=et=tt=nt=it=rt=st=at=ot=lt=ct=ut=dt=ht=pt=mt=gt=vt=yt=bt=xt=_t=wt=kt=Mt=St=At=Lt=Tt=Ct=Dt=Et=Ot=Pt=Yt=It=Nt=Ht=jt=Ft=zt=Bt=be=Re=ze=Ut=$t=Xt=Gt=Wt=qt=Be=Qt=en=Jt=tn=nn=rn=sn=an=on=ln=cn=qe=Ue=mn=$e=Xe=gn=vn=Ge=yn=un=dn=hn=fn=pn=_n=wn=bn=kn=xn=Mn=Ve=We=null,this)"rebuild"!==r&&(this[r]=null);ve=!1},rebuild:function(){return I(r(e,G))}}}function Ln(e){e&&(Re=Be=Ve=We=Ie=qe=Xe=Ge=!1)}function Tn(){for(var e=J?ct-et:ct;e<0;)e+=me;return e%me+1}function Cn(e){return e=e?Math.max(0,Math.min(je?me-1:me-Oe,e)):0,J?e+et:e}function Dn(e){for(null==e&&(e=ct),J&&(e-=et);e<0;)e+=me;return Math.floor(e%me)}function En(){var e,t=Dn();return e=It?t:Le||Ae?Math.ceil((t+1)*tn/me-1):Math.floor(t/Oe),!je&&J&&ct===ht&&(e=tn-1),e}function On(){return l.innerWidth||n.documentElement.clientWidth||n.body.clientWidth}function Pn(e){return"top"===e?"afterbegin":"beforeend"}function Yn(){var e=Te?2*Te-Ce:0;return function e(t){if(null!=t){var i,r,s=n.createElement("div");return t.appendChild(s),r=(i=s.getBoundingClientRect()).right-i.left,s.remove(),r||e(t.parentNode)}}(he)-e}function In(t){if(e[t])return!0;if(Z)for(var n in Z)if(Z[n][t])return!0;return!1}function Nn(t,n){if(null==n&&(n=ge),"items"===t&&Le)return Math.floor((De+Ce)/(Le+Ce))||1;var i=e[t];if(Z)for(var r in Z)n>=parseInt(r)&&t in Z[r]&&(i=Z[r][t]);return"slideBy"===t&&"page"===i&&(i=Nn("items")),J||"slideBy"!==t&&"items"!==t||(i=Math.floor(i)),i}function Hn(e,t,n,i,r){var s="";if(void 0!==e){var a=e;t&&(a-=t),s=le?"margin: 0 "+a+"px 0 "+e+"px;":"margin: "+e+"px 0 "+a+"px 0;"}else if(t&&!n){var o="-"+t+"px";s="margin: 0 "+(le?o+" 0 0":"0 "+o+" 0")+";"}return!J&&r&&z&&i&&(s+=Bn(i)),s}function jn(e,t,n){return e?(e+t)*tt+"px":N?N+"("+100*tt+"% / "+n+")":100*tt/n+"%"}function Fn(e,t,n){var i;if(e)i=e+t+"px";else{J||(n=Math.floor(n));var r=J?tt:n;i=N?N+"(100% / "+r+")":100/r+"%"}return i="width:"+i,"inner"!==K?i+";":i+" !important;"}function Rn(e){var t="";return!1!==e&&(t=(le?"padding-":"margin-")+(le?"right":"bottom")+": "+e+"px;"),t}function zn(e,t){var n=e.substring(0,e.length-t).toLowerCase();return n&&(n="-"+n+"-"),n}function Bn(e){return zn(z,18)+"transition-duration:"+e/1e3+"s;"}function Vn(e){return zn(V,17)+"animation-duration:"+e/1e3+"s;"}function Wn(){if(In("autoHeight")||Ae||!le){var e=de.querySelectorAll("img");f(e,(function(e){var t=e.src;Ke||(t&&t.indexOf("data:image")<0?(e.src="",O(e,Bt),g(e,"loading"),e.src=t):oi(e))})),t((function(){di(k(e),(function(){be=!0}))})),In("autoHeight")&&(e=ci(ct,Math.min(ct+Oe-1,tt-1))),Ke?qn():t((function(){di(k(e),qn)}))}else J&&Ai(),$n(),Xn()}function qn(){if(Ae&&1<me){var e=je?ct:me-1;!function t(){var n=pe[e].getBoundingClientRect().left,i=pe[e-1].getBoundingClientRect().right;Math.abs(n-i)<=1?Un():setTimeout((function(){t()}),16)}()}else Un()}function Un(){le&&!Ae||(mi(),Ae?(it=Mi(),kt&&(Mt=Kn()),ht=lt(),Ln(_t||Mt)):Gi()),J&&Ai(),$n(),Xn()}function $n(){if(gi(),ce.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+ri()+"</span>  of "+me+"</div>"),xe=ce.querySelector(".tns-liveregion .current"),Nt){var t=qe?"stop":"start";gn?_(gn,{"data-action":t}):e.autoplayButtonOutput&&(ce.insertAdjacentHTML(Pn(e.autoplayPosition),'<button type="button" data-action="'+t+'">'+yn[0]+t+yn[1]+$e[0]+"</button>"),gn=ce.querySelector("[data-action]")),gn&&O(gn,{click:Fi}),qe&&(Hi(),Xe&&O(de,Tt),Ge&&O(de,Ct))}if(Yt){if(Qt)_(Qt,{"aria-label":"Carousel Pagination"}),f(Jt=Qt.children,(function(e,t){_(e,{"data-nav":t,tabindex:"-1","aria-label":ln+(t+1),"aria-controls":xt})}));else{for(var n="",i=It?"":'style="display:none"',r=0;r<me;r++)n+='<button type="button" data-nav="'+r+'" tabindex="-1" aria-controls="'+xt+'" '+i+' aria-label="'+ln+(r+1)+'"></button>';n='<div class="tns-nav" aria-label="Carousel Pagination">'+n+"</div>",ce.insertAdjacentHTML(Pn(e.navPosition),n),Qt=ce.querySelector(".tns-nav"),Jt=Qt.children}if(Ki(),z){var s=z.substring(0,z.length-18).toLowerCase(),a="transition: all "+Ne/1e3+"s";s&&(a="-"+s+"-"+a),d(Ze,"[aria-controls^="+xt+"-item]",a,h(Ze))}_(Jt[sn],{"aria-label":ln+(sn+1)+cn}),w(Jt[sn],"tabindex"),g(Jt[sn],on),O(Qt,Lt)}Pt&&(Ut||Xt&&Gt||(ce.insertAdjacentHTML(Pn(e.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+xt+'">'+ze[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+xt+'">'+ze[1]+"</button></div>"),Ut=ce.querySelector(".tns-controls")),Xt&&Gt||(Xt=Ut.children[0],Gt=Ut.children[1]),e.controlsContainer&&_(Ut,{"aria-label":"Carousel Navigation",tabindex:"0"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&_([Xt,Gt],{"aria-controls":xt,tabindex:"-1"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(_(Xt,{"data-controls":"prev"}),_(Gt,{"data-controls":"next"})),Wt=yi(Xt),qt=yi(Gt),_i(),Ut?O(Ut,At):(O(Xt,At),O(Gt,At))),Qn()}function Xn(){if(J&&q){var t={};t[q]=Ei,O(de,t)}Ve&&O(de,Et,e.preventScrollOnTouch),We&&O(de,Ot),Ie&&O(n,Dt),"inner"===K?yt.on("outerResized",(function(){Zn(),yt.emit("innerLoaded",Ji())})):(Z||Le||Ae||Fe||!le)&&O(l,{resize:Gn}),Fe&&("outer"===K?yt.on("innerLoaded",ui):_t||ui()),ai(),_t?ni():Mt&&ti(),yt.on("indexChanged",hi),"inner"===K&&yt.emit("innerLoaded",Ji()),"function"==typeof vt&&vt(Ji()),ve=!0}function Gn(e){t((function(){Zn(zi(e))}))}function Zn(t){if(ve){"outer"===K&&yt.emit("outerResized",Ji(t)),ge=On();var i,r=oe,s=!1;Z&&(Jn(),(i=r!==oe)&&yt.emit("newBreakpointStart",Ji(t)));var a,o,l,c,u=Oe,p=_t,m=Mt,y=Ie,b=Re,x=Be,_=Ve,w=We,k=qe,A=Xe,L=Ge,T=ct;if(i){var C=Le,D=Fe,E=ze,Y=Ee,I=$e;if(!j)var N=Ce,H=Te}if(Ie=Nn("arrowKeys"),Re=Nn("controls"),Be=Nn("nav"),Ve=Nn("touch"),Ee=Nn("center"),We=Nn("mouseDrag"),qe=Nn("autoplay"),Xe=Nn("autoplayHoverPause"),Ge=Nn("autoplayResetOnVisibility"),i&&(_t=Nn("disable"),Le=Nn("fixedWidth"),Ne=Nn("speed"),Fe=Nn("autoHeight"),ze=Nn("controlsText"),$e=Nn("autoplayText"),Ue=Nn("autoplayTimeout"),j||(Te=Nn("edgePadding"),Ce=Nn("gutter"))),Ln(_t),De=Yn(),le&&!Ae||_t||(mi(),le||(Gi(),s=!0)),(Le||Ae)&&(it=Mi(),ht=lt()),(i||Le)&&(Oe=Nn("items"),Pe=Nn("slideBy"),(o=Oe!==u)&&(Le||Ae||(ht=lt()),Sn())),i&&_t!==p&&(_t?ni():function(){if(wt){if(Ze.disabled=!1,de.className+=bt,Ai(),je)for(var e=et;e--;)J&&S(pe[e]),S(pe[tt-e-1]);if(!J)for(var t=ct,n=ct+me;t<n;t++){var i=pe[t],r=t<ct+Oe?ne:se;i.style.left=100*(t-ct)/Oe+"%",g(i,r)}ei(),wt=!1}}()),kt&&(i||Le||Ae)&&(Mt=Kn())!==m&&(Mt?(Li(Si(Cn(0))),ti()):(function(){if(St){if(Te&&j&&(ue.style.margin=""),et)for(var e="tns-transparent",t=et;t--;)J&&v(pe[t],e),v(pe[tt-t-1],e);ei(),St=!1}}(),s=!0)),Ln(_t||Mt),qe||(Xe=Ge=!1),Ie!==y&&(Ie?O(n,Dt):P(n,Dt)),Re!==b&&(Re?Ut?S(Ut):(Xt&&S(Xt),Gt&&S(Gt)):Ut?M(Ut):(Xt&&M(Xt),Gt&&M(Gt))),Be!==x&&(Be?(S(Qt),Ki()):M(Qt)),Ve!==_&&(Ve?O(de,Et,e.preventScrollOnTouch):P(de,Et)),We!==w&&(We?O(de,Ot):P(de,Ot)),qe!==k&&(qe?(gn&&S(gn),dn||fn||Hi()):(gn&&M(gn),dn&&ji())),Xe!==A&&(Xe?O(de,Tt):P(de,Tt)),Ge!==L&&(Ge?O(n,Ct):P(n,Ct)),i){if(Le===C&&Ee===Y||(s=!0),Fe!==D&&(Fe||(ue.style.height="")),Re&&ze!==E&&(Xt.innerHTML=ze[0],Gt.innerHTML=ze[1]),gn&&$e!==I){var F=qe?1:0,R=gn.innerHTML,z=R.length-I[F].length;R.substring(z)===I[F]&&(gn.innerHTML=R.substring(0,z)+$e[F])}}else Ee&&(Le||Ae)&&(s=!0);if((o||Le&&!Ae)&&(tn=Zi(),Ki()),(a=ct!==T)?(yt.emit("indexChanged",Ji()),s=!0):o?a||hi():(Le||Ae)&&(ai(),gi(),ii()),o&&!J&&function(){for(var e=ct+Math.min(me,Oe),t=tt;t--;){var n=pe[t];ct<=t&&t<e?(g(n,"tns-moving"),n.style.left=100*(t-ct)/Oe+"%",g(n,ne),v(n,se)):n.style.left&&(n.style.left="",g(n,se),v(n,ne)),v(n,ie)}setTimeout((function(){f(pe,(function(e){v(e,"tns-moving")}))}),300)}(),!_t&&!Mt){if(i&&!j&&(Te===H&&Ce===N||(ue.style.cssText=Hn(Te,Ce,Le,Ne,Fe)),le)){J&&(de.style.width=jn(Le,Ce,Oe));var B=Fn(Le,Ce,Oe)+Rn(Ce);c=h(l=Ze)-1,"deleteRule"in l?l.deleteRule(c):l.removeRule(c),d(Ze,"#"+xt+" > .tns-item",B,h(Ze))}Fe&&ui(),s&&(Ai(),ut=ct)}i&&yt.emit("newBreakpointEnd",Ji(t))}}function Kn(){if(!Le&&!Ae)return me<=(Ee?Oe-(Oe-1)/2:Oe);var e=Le?(Le+Ce)*me:ye[me],t=Te?De+2*Te:De+Ce;return Ee&&(t-=Le?(De-Le)/2:(De-(ye[ct+1]-ye[ct]-Ce))/2),e<=t}function Jn(){for(var e in oe=0,Z)(e=parseInt(e))<=ge&&(oe=e)}function Qn(){!qe&&gn&&M(gn),!Be&&Qt&&M(Qt),Re||(Ut?M(Ut):(Xt&&M(Xt),Gt&&M(Gt)))}function ei(){qe&&gn&&S(gn),Be&&Qt&&S(Qt),Re&&(Ut?S(Ut):(Xt&&S(Xt),Gt&&S(Gt)))}function ti(){if(!St){if(Te&&(ue.style.margin="0px"),et)for(var e="tns-transparent",t=et;t--;)J&&g(pe[t],e),g(pe[tt-t-1],e);Qn(),St=!0}}function ni(){if(!wt){if(Ze.disabled=!0,de.className=de.className.replace(bt.substring(1),""),w(de,["style"]),je)for(var e=et;e--;)J&&M(pe[e]),M(pe[tt-e-1]);if(le&&J||w(ue,["style"]),!J)for(var t=ct,n=ct+me;t<n;t++){var i=pe[t];w(i,["style"]),v(i,ne),v(i,se)}Qn(),wt=!0}}function ii(){var e=ri();xe.innerHTML!==e&&(xe.innerHTML=e)}function ri(){var e=si(),t=e[0]+1,n=e[1]+1;return t===n?t+"":t+" to "+n}function si(e){null==e&&(e=Si());var t,n,i,r=ct;if(Ee||Te?(Ae||Le)&&(n=-(parseFloat(e)+Te),i=n+De+2*Te):Ae&&(n=ye[ct],i=n+De),Ae)ye.forEach((function(e,s){s<tt&&((Ee||Te)&&e<=n+.5&&(r=s),.5<=i-e&&(t=s))}));else{if(Le){var s=Le+Ce;Ee||Te?(r=Math.floor(n/s),t=Math.ceil(i/s-1)):t=r+Math.ceil(De/s)-1}else if(Ee||Te){var a=Oe-1;if(Ee?(r-=a/2,t=ct+a/2):t=ct+a,Te){var o=Te*Oe/De;r-=o,t+=o}r=Math.floor(r),t=Math.ceil(t)}else t=r+Oe-1;r=Math.max(r,0),t=Math.min(t,tt-1)}return[r,t]}function ai(){if(Ke&&!_t){var e=si();e.push(Je),ci.apply(null,e).forEach((function(e){if(!m(e,zt)){var t={};t[q]=function(e){e.stopPropagation()},O(e,t),O(e,Bt),e.src=b(e,"data-src");var n=b(e,"data-srcset");n&&(e.srcset=n),g(e,"loading")}}))}}function oi(e){g(e,"loaded"),li(e)}function li(e){g(e,zt),v(e,"loading"),P(e,Bt)}function ci(e,t,n){var i=[];for(n||(n="img");e<=t;)f(pe[e].querySelectorAll(n),(function(e){i.push(e)})),e++;return i}function ui(){var e=ci.apply(null,si());t((function(){di(e,pi)}))}function di(e,n){return be?n():(e.forEach((function(t,n){!Ke&&t.complete&&li(t),m(t,zt)&&e.splice(n,1)})),e.length?void t((function(){di(e,n)})):n())}function hi(){ai(),gi(),ii(),_i(),function(){if(Be&&(sn=0<=rn?rn:En(),rn=-1,sn!==an)){var e=Jt[an],t=Jt[sn];_(e,{tabindex:"-1","aria-label":ln+(an+1)}),v(e,on),_(t,{"aria-label":ln+(sn+1)+cn}),w(t,"tabindex"),g(t,on),an=sn}}()}function fi(e,t){for(var n=[],i=e,r=Math.min(e+t,tt);i<r;i++)n.push(pe[i].offsetHeight);return Math.max.apply(null,n)}function pi(){var e=Fe?fi(ct,Oe):fi(et,me),t=ae||ue;t.style.height!==e&&(t.style.height=e+"px")}function mi(){ye=[0];var e=le?"left":"top",t=le?"right":"bottom",n=pe[0].getBoundingClientRect()[e];f(pe,(function(i,r){r&&ye.push(i.getBoundingClientRect()[e]-n),r===tt-1&&ye.push(i.getBoundingClientRect()[t]-n)}))}function gi(){var e=si(),t=e[0],n=e[1];f(pe,(function(e,i){t<=i&&i<=n?y(e,"aria-hidden")&&(w(e,["aria-hidden","tabindex"]),g(e,Ft)):y(e,"aria-hidden")||(_(e,{"aria-hidden":"true",tabindex:"-1"}),v(e,Ft))}))}function vi(e){return e.nodeName.toLowerCase()}function yi(e){return"button"===vi(e)}function bi(e){return"true"===e.getAttribute("aria-disabled")}function xi(e,t,n){e?t.disabled=n:t.setAttribute("aria-disabled",n.toString())}function _i(){if(Re&&!He&&!je){var e=Wt?Xt.disabled:bi(Xt),t=qt?Gt.disabled:bi(Gt),n=ct<=dt,i=!He&&ht<=ct;n&&!e&&xi(Wt,Xt,!0),!n&&e&&xi(Wt,Xt,!1),i&&!t&&xi(qt,Gt,!0),!i&&t&&xi(qt,Gt,!1)}}function wi(e,t){z&&(e.style[z]=t)}function ki(e){return null==e&&(e=ct),Ae?(De-(Te?Ce:0)-(ye[e+1]-ye[e]-Ce))/2:Le?(De-Le)/2:(Oe-1)/2}function Mi(){var e=De+(Te?Ce:0)-(Le?(Le+Ce)*tt:ye[tt]);return Ee&&!je&&(e=Le?-(Le+Ce)*(tt-1)-ki():ki(tt-1)-ye[tt-1]),0<e&&(e=0),e}function Si(e){var t;if(null==e&&(e=ct),le&&!Ae)if(Le)t=-(Le+Ce)*e,Ee&&(t+=ki());else{var n=F?tt:Oe;Ee&&(e-=ki()),t=100*-e/n}else t=-ye[e],Ee&&Ae&&(t+=ki());return nt&&(t=Math.max(t,it)),t+(!le||Ae||Le?"px":"%")}function Ai(e){wi(de,"0s"),Li(e)}function Li(e){null==e&&(e=Si()),de.style[st]=at+e+ot}function Ti(e,t,n,i){var r=e+Oe;je||(r=Math.min(r,tt));for(var s=e;s<r;s++){var a=pe[s];i||(a.style.left=100*(s-ct)/Oe+"%"),re&&B&&(a.style[B]=a.style[W]=re*(s-e)/1e3+"s"),v(a,t),g(a,n),i&&Qe.push(a)}}function Ci(e,t){rt&&Sn(),(ct!==ut||t)&&(yt.emit("indexChanged",Ji()),yt.emit("transitionStart",Ji()),Fe&&ui(),dn&&e&&0<=["click","keydown"].indexOf(e.type)&&ji(),gt=!0,An())}function Di(e){return e.toLowerCase().replace(/-/g,"")}function Ei(e){if(J||gt){if(yt.emit("transitionEnd",Ji(e)),!J&&0<Qe.length)for(var t=0;t<Qe.length;t++){var n=Qe[t];n.style.left="",W&&B&&(n.style[W]="",n.style[B]=""),v(n,ie),g(n,se)}if(!e||!J&&e.target.parentNode===de||e.target===de&&Di(e.propertyName)===Di(st)){if(!rt){var i=ct;Sn(),ct!==i&&(yt.emit("indexChanged",Ji()),Ai())}"inner"===K&&yt.emit("innerLoaded",Ji()),gt=!1,ut=ct}}}function Oi(e,t){if(!Mt)if("prev"===e)Pi(t,-1);else if("next"===e)Pi(t,1);else{if(gt){if(ft)return;Ei()}var n=Dn(),i=0;if("first"===e?i=-n:"last"===e?i=J?me-Oe-n:me-1-n:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(me-1,e))),i=e-n)),!J&&i&&Math.abs(i)<Oe){var r=0<i?1:-1;i+=dt<=ct+i-me?me*r:2*me*r*-1}ct+=i,J&&je&&(ct<dt&&(ct+=me),ht<ct&&(ct-=me)),Dn(ct)!==Dn(ut)&&Ci(t)}}function Pi(e,t){if(gt){if(ft)return;Ei()}var n;if(!t){for(var i=Bi(e=zi(e));i!==Ut&&[Xt,Gt].indexOf(i)<0;)i=i.parentNode;var r=[Xt,Gt].indexOf(i);0<=r&&(n=!0,t=0===r?-1:1)}if(He){if(ct===dt&&-1===t)return void Oi("last",e);if(ct===ht&&1===t)return void Oi("first",e)}t&&(ct+=Pe*t,Ae&&(ct=Math.floor(ct)),Ci(n||e&&"keydown"===e.type?e:null))}function Yi(){un=setInterval((function(){Pi(null,mn)}),Ue),dn=!0}function Ii(){clearInterval(un),dn=!1}function Ni(e,t){_(gn,{"data-action":e}),gn.innerHTML=yn[0]+e+yn[1]+t}function Hi(){Yi(),gn&&Ni("stop",$e[1])}function ji(){Ii(),gn&&Ni("start",$e[0])}function Fi(){dn?(ji(),fn=!0):(Hi(),fn=!1)}function Ri(e){e.focus()}function zi(e){return Vi(e=e||l.event)?e.changedTouches[0]:e}function Bi(e){return e.target||l.event.srcElement}function Vi(e){return 0<=e.type.indexOf("touch")}function Wi(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function qi(){return s=wn.y-_n.y,a=wn.x-_n.x,t=Math.atan2(s,a)*(180/Math.PI),i=!1,90-(n=pt)<=(r=Math.abs(90-Math.abs(t)))?i="horizontal":r<=n&&(i="vertical"),i===e.axis;var t,n,i,r,s,a}function Ui(e){if(gt){if(ft)return;Ei()}qe&&dn&&Ii(),kn=!0,xn&&(i(xn),xn=null);var t=zi(e);yt.emit(Vi(e)?"touchStart":"dragStart",Ji(e)),!Vi(e)&&0<=["img","a"].indexOf(vi(Bi(e)))&&Wi(e),wn.x=_n.x=t.clientX,wn.y=_n.y=t.clientY,J&&(bn=parseFloat(de.style[st].replace(at,"")),wi(de,"0s"))}function $i(e){if(kn){var n=zi(e);wn.x=n.clientX,wn.y=n.clientY,J?xn||(xn=t((function(){!function e(n){if(mt){if(i(xn),kn&&(xn=t((function(){e(n)}))),"?"===mt&&(mt=qi()),mt){!Vt&&Vi(n)&&(Vt=!0);try{n.type&&yt.emit(Vi(n)?"touchMove":"dragMove",Ji(n))}catch(e){}var r=bn,s=Mn(wn,_n);if(!le||Le||Ae)r+=s,r+="px";else r+=F?s*Oe*100/((De+Ce)*tt):100*s/(De+Ce),r+="%";de.style[st]=at+r+ot}}else kn=!1}(e)}))):("?"===mt&&(mt=qi()),mt&&(Vt=!0)),("boolean"!=typeof e.cancelable||e.cancelable)&&Vt&&e.preventDefault()}}function Xi(n){if(kn){xn&&(i(xn),xn=null),J&&wi(de,""),kn=!1;var r=zi(n);wn.x=r.clientX,wn.y=r.clientY;var s=Mn(wn,_n);if(Math.abs(s)){if(!Vi(n)){var a=Bi(n);O(a,{click:function e(t){Wi(t),P(a,{click:e})}})}J?xn=t((function(){if(le&&!Ae){var e=-s*Oe/(De+Ce);e=0<s?Math.floor(e):Math.ceil(e),ct+=e}else{var t=-(bn+s);if(t<=0)ct=dt;else if(t>=ye[tt-1])ct=ht;else for(var i=0;i<tt&&t>=ye[i];)t>ye[ct=i]&&s<0&&(ct+=1),i++}Ci(n,s),yt.emit(Vi(n)?"touchEnd":"dragEnd",Ji(n))})):mt&&Pi(n,0<s?-1:1)}}"auto"===e.preventScrollOnTouch&&(Vt=!1),pt&&(mt="?"),qe&&!dn&&Yi()}function Gi(){(ae||ue).style.height=ye[ct+Oe]-ye[ct]+"px"}function Zi(){var e=Le?(Le+Ce)*me/De:me/Oe;return Math.min(Math.ceil(e),me)}function Ki(){if(Be&&!It&&tn!==nn){var e=nn,t=tn,n=S;for(tn<nn&&(e=tn,t=nn,n=M);e<t;)n(Jt[e]),e++;nn=tn}}function Ji(e){return{container:de,slideItems:pe,navContainer:Qt,navItems:Jt,controlsContainer:Ut,hasControls:Pt,prevButton:Xt,nextButton:Gt,items:Oe,slideBy:Pe,cloneCount:et,slideCount:me,slideCountNew:tt,index:ct,indexCached:ut,displayIndex:Tn(),navCurrentIndex:sn,navCurrentIndexCached:an,pages:tn,pagesCached:nn,sheet:Ze,isOn:ve,event:e||{}}}$&&console.warn("No slides found in",e.container)};return I}();!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).noUiSlider={})}(this,(function(e){"use strict";var t,n;function i(e){return"object"==typeof e&&"function"==typeof e.to}function r(e){e.parentElement.removeChild(e)}function s(e){return null!=e}function a(e){e.preventDefault()}function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function l(e,t,n){n>0&&(h(e,t),setTimeout((function(){f(e,t)}),n))}function c(e){return Math.max(Math.min(e,100),0)}function u(e){return Array.isArray(e)?e:[e]}function d(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function h(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function f(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function p(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function m(e,t){return 100/(t-e)}function g(e,t,n){return 100*t/(e[n+1]-e[n])}function v(e,t){for(var n=1;e>=t[n];)n+=1;return n}function y(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=v(n,e),r=e[i-1],s=e[i],a=t[i-1],o=t[i];return a+function(e,t){return g(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([r,s],n)/m(a,o)}function b(e,t,n,i){if(100===i)return i;var r=v(i,e),s=e[r-1],a=e[r];return n?i-s>(a-s)/2?a:s:t[r-1]?e[r-1]+function(e,t){return Math.round(e/t)*t}(i-e[r-1],t[r-1]):i}e.PipsMode=void 0,(t=e.PipsMode||(e.PipsMode={})).Range="range",t.Steps="steps",t.Positions="positions",t.Count="count",t.Values="values",e.PipsType=void 0,(n=e.PipsType||(e.PipsType={}))[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue";var x=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var r=[];for(Object.keys(e).forEach((function(t){r.push([u(e[t]),t])})),r.sort((function(e,t){return e[0][0]-t[0][0]})),i=0;i<r.length;i++)this.handleEntryPoint(r[i][1],r[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=g(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);n||e!==this.xPct[r+1]||r++,null===t&&(t=[]);var s=1,a=t[r],o=0,l=0,c=0,u=0;for(i=n?(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);a>0;)o=this.xPct[r+1+u]-this.xPct[r+u],t[r+u]*s+100-100*i>100?(l=o*i,s=(a-100*i)/t[r+u],i=1):(l=t[r+u]*o/100*s,s=0),n?(c-=l,this.xPct.length+u>=1&&u--):(c+=l,this.xPct.length-u>=1&&u++),a=t[r+u]*s;return e+c},e.prototype.toStepping=function(e){return e=y(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=v(n,t),r=e[i-1],s=e[i],a=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([r,s],(n-a)*m(a,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return e=b(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=v(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=v(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(d);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!o(n="min"===e?0:"max"===e?100:parseFloat(e))||!o(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=g([this.xVal[e],this.xVal[e+1]],t,0)/m(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),r=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=r}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),_={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},w={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},k=".__tooltips",M=".__aria";function S(e,t){if(!o(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function A(e,t){if(!o(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function L(e,t){if(!o(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function T(e,t){if(!o(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function C(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new x(t,e.snap||!1,e.singleStep)}function D(e,t){if(t=u(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function E(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function O(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function P(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Y(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function I(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function N(e,t){if(!o(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function H(e,t){if(!o(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function j(e,t){var n;if(!o(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!o(t[0])&&!o(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],r=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function F(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function R(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,r=t.indexOf("fixed")>=0,s=t.indexOf("snap")>=0,a=t.indexOf("hover")>=0,o=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,u=t.indexOf("smooth-steps")>=0;if(r){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");N(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(o&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||s,drag:i,dragAll:c,smoothSteps:u,fixed:r,snap:s,hover:a,unconstrained:o,invertConnects:l}}function z(e,t){if(!1!==t)if(!0===t||i(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=u(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach((function(e){if("boolean"!=typeof e&&!i(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})),e.tooltips=t}}function B(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function V(e,t){if(!i(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function W(e,t){if(!function(e){return i(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function q(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function U(e,t){e.documentElement=t}function $(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function X(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach((function(n){e.cssClasses[n]=e.cssPrefix+t[n]}))):e.cssClasses=t}function G(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:_,format:_},n={step:{r:!1,t:S},keyboardPageMultiplier:{r:!1,t:A},keyboardMultiplier:{r:!1,t:L},keyboardDefaultStep:{r:!1,t:T},start:{r:!0,t:D},connect:{r:!0,t:Y},direction:{r:!0,t:F},snap:{r:!1,t:E},animate:{r:!1,t:O},animationDuration:{r:!1,t:P},range:{r:!0,t:C},orientation:{r:!1,t:I},margin:{r:!1,t:N},limit:{r:!1,t:H},padding:{r:!1,t:j},behaviour:{r:!0,t:R},ariaFormat:{r:!1,t:V},format:{r:!1,t:W},tooltips:{r:!1,t:z},keyboardSupport:{r:!0,t:q},documentElement:{r:!1,t:U},cssPrefix:{r:!0,t:$},cssClasses:{r:!0,t:X},handleAttributes:{r:!1,t:B}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:w,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach((function(r){if(s(e[r])||void 0!==i[r])n[r].t(t,s(e[r])?e[r]:i[r]);else if(n[r].r)throw new Error("noUiSlider: '"+r+"' is required.")})),t.pips=e.pips;var r=document.createElement("div"),a=void 0!==r.style.msTransform,o=void 0!==r.style.transform;t.transformRule=o?"transform":a?"msTransform":"webkitTransform";return t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function Z(t,n,i){var o,d,m,g,v,y,b,x=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},_=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),w=t,S=n.spectrum,A=[],L=[],T=[],C=0,D={},E=!1,O=t.ownerDocument,P=n.documentElement||O.documentElement,I=O.body,N="rtl"===O.dir||1===n.ort?0:100;function H(e,t){var n=O.createElement("div");return t&&h(n,t),e.appendChild(n),n}function j(e,t){var i=H(e,n.cssClasses.origin),r=H(i,n.cssClasses.handle);if(H(r,n.cssClasses.touchArea),r.setAttribute("data-handle",String(t)),n.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",(function(e){return function(e,t){if(z()||B(t))return!1;var i=["Left","Right"],r=["Down","Up"],s=["PageDown","PageUp"],a=["Home","End"];n.dir&&!n.ort?i.reverse():n.ort&&!n.dir&&(r.reverse(),s.reverse());var o,l=e.key.replace("Arrow",""),c=l===s[0],u=l===s[1],d=l===r[0]||l===i[0]||c,h=l===r[1]||l===i[1]||u,f=l===a[0],p=l===a[1];if(!(d||h||f||p))return!0;if(e.preventDefault(),h||d){var m=d?0:1,g=_e(t)[m];if(null===g)return!1;!1===g&&(g=S.getDefaultStep(L[t],d,n.keyboardDefaultStep)),g*=u||c?n.keyboardPageMultiplier:n.keyboardMultiplier,g=Math.max(g,1e-7),g*=d?-1:1,o=A[t]+g}else o=p?n.spectrum.xVal[n.spectrum.xVal.length-1]:n.spectrum.xVal[0];return ge(t,S.toStepping(o),!0,!0),ce("slide",t),ce("update",t),ce("change",t),ce("set",t),!1}(e,t)}))),void 0!==n.handleAttributes){var s=n.handleAttributes[t];Object.keys(s).forEach((function(e){r.setAttribute(e,s[e])}))}return r.setAttribute("role","slider"),r.setAttribute("aria-orientation",n.ort?"vertical":"horizontal"),0===t?h(r,n.cssClasses.handleLower):t===n.handles-1&&h(r,n.cssClasses.handleUpper),i.handle=r,i}function F(e,t){return!!t&&H(e,n.cssClasses.connect)}function R(e,t){return!(!n.tooltips||!n.tooltips[t])&&H(e.firstChild,n.cssClasses.tooltip)}function z(){return w.hasAttribute("disabled")}function B(e){return m[e].hasAttribute("disabled")}function V(){y&&(le("update"+k),y.forEach((function(e){e&&r(e)})),y=null)}function W(){V(),y=m.map(R),oe("update"+k,(function(e,t,i){if(y&&n.tooltips&&!1!==y[t]){var r=e[t];!0!==n.tooltips[t]&&(r=n.tooltips[t].to(i[t])),y[t].innerHTML=r}}))}function q(e,t){return e.map((function(e){return S.fromStepping(t?S.getStep(e):e)}))}function U(t){var n,i=function(t){if(t.mode===e.PipsMode.Range||t.mode===e.PipsMode.Steps)return S.xVal;if(t.mode===e.PipsMode.Count){if(t.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var n=t.values-1,i=100/n,r=[];n--;)r[n]=n*i;return r.push(100),q(r,t.stepped)}return t.mode===e.PipsMode.Positions?q(t.values,t.stepped):t.mode===e.PipsMode.Values?t.stepped?t.values.map((function(e){return S.fromStepping(S.getStep(S.toStepping(e)))})):t.values:[]}(t),r={},s=S.xVal[0],a=S.xVal[S.xVal.length-1],o=!1,l=!1,c=0;return n=i.slice().sort((function(e,t){return e-t})),(i=n.filter((function(e){return!this[e]&&(this[e]=!0)}),{}))[0]!==s&&(i.unshift(s),o=!0),i[i.length-1]!==a&&(i.push(a),l=!0),i.forEach((function(n,s){var a,u,d,h,f,p,m,g,v,y,b=n,x=i[s+1],_=t.mode===e.PipsMode.Steps;for(_&&(a=S.xNumSteps[s]),a||(a=x-b),void 0===x&&(x=b),a=Math.max(a,1e-7),u=b;u<=x;u=Number((u+a).toFixed(7))){for(g=(f=(h=S.toStepping(u))-c)/(t.density||1),y=f/(v=Math.round(g)),d=1;d<=v;d+=1)r[(p=c+d*y).toFixed(5)]=[S.fromStepping(p),0];m=i.indexOf(u)>-1?e.PipsType.LargeValue:_?e.PipsType.SmallValue:e.PipsType.NoValue,!s&&o&&u!==x&&(m=0),u===x&&l||(r[h.toFixed(5)]=[u,m]),c=h}})),r}function $(t,i,r){var s,a,o=O.createElement("div"),l=((s={})[e.PipsType.None]="",s[e.PipsType.NoValue]=n.cssClasses.valueNormal,s[e.PipsType.LargeValue]=n.cssClasses.valueLarge,s[e.PipsType.SmallValue]=n.cssClasses.valueSub,s),c=((a={})[e.PipsType.None]="",a[e.PipsType.NoValue]=n.cssClasses.markerNormal,a[e.PipsType.LargeValue]=n.cssClasses.markerLarge,a[e.PipsType.SmallValue]=n.cssClasses.markerSub,a),u=[n.cssClasses.valueHorizontal,n.cssClasses.valueVertical],d=[n.cssClasses.markerHorizontal,n.cssClasses.markerVertical];function f(e,t){var i=t===n.cssClasses.value,r=i?l:c;return t+" "+(i?u:d)[n.ort]+" "+r[e]}return h(o,n.cssClasses.pips),h(o,0===n.ort?n.cssClasses.pipsHorizontal:n.cssClasses.pipsVertical),Object.keys(t).forEach((function(s){!function(t,s,a){if((a=i?i(s,a):a)!==e.PipsType.None){var l=H(o,!1);l.className=f(a,n.cssClasses.marker),l.style[n.style]=t+"%",a>e.PipsType.NoValue&&((l=H(o,!1)).className=f(a,n.cssClasses.value),l.setAttribute("data-value",String(s)),l.style[n.style]=t+"%",l.innerHTML=String(r.to(s)))}}(s,t[s][0],t[s][1])})),o}function X(){v&&(r(v),v=null)}function Z(e){X();var t=U(e),n=e.filter,i=e.format||{to:function(e){return String(Math.round(e))}};return v=w.appendChild($(t,n,i))}function K(){var e=o.getBoundingClientRect(),t="offset"+["Width","Height"][n.ort];return 0===n.ort?e.width||o[t]:e.height||o[t]}function J(e,t,i,r){var s=function(s){var a,o,l=function(e,t,n){var i=0===e.type.indexOf("touch"),r=0===e.type.indexOf("mouse"),s=0===e.type.indexOf("pointer"),a=0,o=0;0===e.type.indexOf("MSPointer")&&(s=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;a=c[0].pageX,o=c[0].pageY}else{var u=Array.prototype.find.call(e.changedTouches,l);if(!u)return!1;a=u.pageX,o=u.pageY}}t=t||p(O),(r||s)&&(a=e.clientX+t.x,o=e.clientY+t.y);return e.pageOffset=t,e.points=[a,o],e.cursor=r||s,e}(s,r.pageOffset,r.target||t);return!!l&&(!(z()&&!r.doNotReject)&&(a=w,o=n.cssClasses.tap,!((a.classList?a.classList.contains(o):new RegExp("\\b"+o+"\\b").test(a.className))&&!r.doNotReject)&&(!(e===x.start&&void 0!==l.buttons&&l.buttons>1)&&((!r.hover||!l.buttons)&&(_||l.preventDefault(),l.calcPoint=l.points[n.ort],void i(l,r))))))},a=[];return e.split(" ").forEach((function(e){t.addEventListener(e,s,!!_&&{passive:!0}),a.push([e,s])})),a}function Q(e){var t,i,r,s,a,l,u=100*(e-(t=o,i=n.ort,r=t.getBoundingClientRect(),s=t.ownerDocument,a=s.documentElement,l=p(s),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),i?r.top+l.y-a.clientTop:r.left+l.x-a.clientLeft))/K();return u=c(u),n.dir?100-u:u}function ee(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&ne(e,t)}function te(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return ne(e,t);var i=(n.dir?-1:1)*(e.calcPoint-t.startCalcPoint);he(i>0,100*i/t.baseSize,t.locations,t.handleNumbers,t.connect)}function ne(e,t){t.handle&&(f(t.handle,n.cssClasses.active),C-=1),t.listeners.forEach((function(e){P.removeEventListener(e[0],e[1])})),0===C&&(f(w,n.cssClasses.drag),me(),e.cursor&&(I.style.cursor="",I.removeEventListener("selectstart",a))),n.events.smoothSteps&&(t.handleNumbers.forEach((function(e){ge(e,L[e],!0,!0,!1,!1)})),t.handleNumbers.forEach((function(e){ce("update",e)}))),t.handleNumbers.forEach((function(e){ce("change",e),ce("set",e),ce("end",e)}))}function ie(e,t){if(!t.handleNumbers.some(B)){var i;if(1===t.handleNumbers.length)i=m[t.handleNumbers[0]].children[0],C+=1,h(i,n.cssClasses.active);e.stopPropagation();var r=[],s=J(x.move,P,te,{target:e.target,handle:i,connect:t.connect,listeners:r,startCalcPoint:e.calcPoint,baseSize:K(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:L.slice()}),o=J(x.end,P,ne,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:t.handleNumbers}),l=J("mouseout",P,ee,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:t.handleNumbers});r.push.apply(r,s.concat(o,l)),e.cursor&&(I.style.cursor=getComputedStyle(e.target).cursor,m.length>1&&h(w,n.cssClasses.drag),I.addEventListener("selectstart",a,!1)),t.handleNumbers.forEach((function(e){ce("start",e)}))}}function re(e){e.stopPropagation();var t=Q(e.calcPoint),i=function(e){var t=100,n=!1;return m.forEach((function(i,r){if(!B(r)){var s=L[r],a=Math.abs(s-e);(a<t||a<=t&&e>s||100===a&&100===t)&&(n=r,t=a)}})),n}(t);!1!==i&&(n.events.snap||l(w,n.cssClasses.tap,n.animationDuration),ge(i,t,!0,!0),me(),ce("slide",i,!0),ce("update",i,!0),n.events.snap?ie(e,{handleNumbers:[i]}):(ce("change",i,!0),ce("set",i,!0)))}function se(e){var t=Q(e.calcPoint),n=S.getStep(t),i=S.fromStepping(n);Object.keys(D).forEach((function(e){"hover"===e.split(".")[0]&&D[e].forEach((function(e){e.call(ke,i)}))}))}function ae(e){e.fixed||m.forEach((function(e,t){J(x.start,e.children[0],ie,{handleNumbers:[t]})})),e.tap&&J(x.start,o,re,{}),e.hover&&J(x.move,o,se,{hover:!0}),e.drag&&g.forEach((function(t,i){if(!1!==t&&0!==i&&i!==g.length-1){var r=m[i-1],s=m[i],a=[t],o=[r,s],l=[i-1,i];h(t,n.cssClasses.draggable),e.fixed&&(a.push(r.children[0]),a.push(s.children[0])),e.dragAll&&(o=m,l=T),a.forEach((function(e){J(x.start,e,ie,{handles:o,handleNumbers:l,connect:t})}))}}))}function oe(e,t){D[e]=D[e]||[],D[e].push(t),"update"===e.split(".")[0]&&m.forEach((function(e,t){ce("update",t)}))}function le(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(D).forEach((function(e){var i=e.split(".")[0],r=e.substring(i.length);t&&t!==i||n&&n!==r||function(e){return e===M||e===k}(r)&&n!==r||delete D[e]}))}function ce(e,t,i){Object.keys(D).forEach((function(r){var s=r.split(".")[0];e===s&&D[r].forEach((function(e){e.call(ke,A.map(n.format.to),t,A.slice(),i||!1,L.slice(),ke)}))}))}function ue(e,t,i,r,s,a,o){var l;return m.length>1&&!n.events.unconstrained&&(r&&t>0&&(l=S.getAbsoluteDistance(e[t-1],n.margin,!1),i=Math.max(i,l)),s&&t<m.length-1&&(l=S.getAbsoluteDistance(e[t+1],n.margin,!0),i=Math.min(i,l))),m.length>1&&n.limit&&(r&&t>0&&(l=S.getAbsoluteDistance(e[t-1],n.limit,!1),i=Math.min(i,l)),s&&t<m.length-1&&(l=S.getAbsoluteDistance(e[t+1],n.limit,!0),i=Math.max(i,l))),n.padding&&(0===t&&(l=S.getAbsoluteDistance(0,n.padding[0],!1),i=Math.max(i,l)),t===m.length-1&&(l=S.getAbsoluteDistance(100,n.padding[1],!0),i=Math.min(i,l))),o||(i=S.getStep(i)),!((i=c(i))===e[t]&&!a)&&i}function de(e,t){var i=n.ort;return(i?t:e)+", "+(i?e:t)}function he(e,t,i,r,s){var a=i.slice(),o=r[0],l=n.events.smoothSteps,c=[!e,e],u=[e,!e];r=r.slice(),e&&r.reverse(),r.length>1?r.forEach((function(e,n){var i=ue(a,e,a[e]+t,c[n],u[n],!1,l);!1===i?t=0:(t=i-a[e],a[e]=i)})):c=u=[!0];var d=!1;r.forEach((function(e,n){d=ge(e,i[e]+t,c[n],u[n],!1,l)||d})),d&&(r.forEach((function(e){ce("update",e),ce("slide",e)})),null!=s&&ce("drag",o))}function fe(e,t){return n.dir?100-e-t:e}function pe(e,t){L[e]=t,A[e]=S.fromStepping(t);var i="translate("+de(fe(t,0)-N+"%","0")+")";if(m[e].style[n.transformRule]=i,n.events.invertConnects&&L.length>1){var r=L.every((function(e,t,n){return 0===t||e>=n[t-1]}));if(E!==!r)return E=!E,Y(n,n.connect.map((function(e){return!e}))),void we()}ve(e),ve(e+1),E&&(ve(e-1),ve(e+2))}function me(){T.forEach((function(e){var t=L[e]>50?-1:1,n=3+(m.length+t*e);m[e].style.zIndex=String(n)}))}function ge(e,t,n,i,r,s){return r||(t=ue(L,e,t,n,i,!1,s)),!1!==t&&(pe(e,t),!0)}function ve(e){if(g[e]){var t=L.slice();E&&t.sort((function(e,t){return e-t}));var i=0,r=100;0!==e&&(i=t[e-1]),e!==g.length-1&&(r=t[e]);var s=r-i,a="translate("+de(fe(i,s)+"%","0")+")",o="scale("+de(s/100,"1")+")";g[e].style[n.transformRule]=a+" "+o}}function ye(e,t){return null===e||!1===e||void 0===e?L[t]:("number"==typeof e&&(e=String(e)),!1!==(e=n.format.from(e))&&(e=S.toStepping(e)),!1===e||isNaN(e)?L[t]:e)}function be(e,t,i){var r=u(e),s=void 0===L[0];t=void 0===t||t,n.animate&&!s&&l(w,n.cssClasses.tap,n.animationDuration),T.forEach((function(e){ge(e,ye(r[e],e),!0,!1,i)}));var a=1===T.length?0:1;if(s&&S.hasNoSize()&&(i=!0,L[0]=0,T.length>1)){var o=100/(T.length-1);T.forEach((function(e){L[e]=e*o}))}for(;a<T.length;++a)T.forEach((function(e){ge(e,L[e],!0,!0,i)}));me(),T.forEach((function(e){ce("update",e),null!==r[e]&&t&&ce("set",e)}))}function xe(e){if(void 0===e&&(e=!1),e)return 1===A.length?A[0]:A.slice(0);var t=A.map(n.format.to);return 1===t.length?t[0]:t}function _e(e){var t=L[e],i=S.getNearbySteps(t),r=A[e],s=i.thisStep.step,a=null;if(n.snap)return[r-i.stepBefore.startValue||null,i.stepAfter.startValue-r||null];!1!==s&&r+s>i.stepAfter.startValue&&(s=i.stepAfter.startValue-r),a=r>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&r-i.stepBefore.highestStep,100===t?s=null:0===t&&(a=null);var o=S.countStepDecimals();return null!==s&&!1!==s&&(s=Number(s.toFixed(o))),null!==a&&!1!==a&&(a=Number(a.toFixed(o))),[a,s]}function we(){for(;d.firstChild;)d.removeChild(d.firstChild);for(var e=0;e<=n.handles;e++)g[e]=F(d,n.connect[e]),ve(e);ae({drag:n.events.drag,fixed:!0})}h(b=w,n.cssClasses.target),0===n.dir?h(b,n.cssClasses.ltr):h(b,n.cssClasses.rtl),0===n.ort?h(b,n.cssClasses.horizontal):h(b,n.cssClasses.vertical),h(b,"rtl"===getComputedStyle(b).direction?n.cssClasses.textDirectionRtl:n.cssClasses.textDirectionLtr),o=H(b,n.cssClasses.base),function(e,t){d=H(t,n.cssClasses.connects),m=[],(g=[]).push(F(d,e[0]));for(var i=0;i<n.handles;i++)m.push(j(t,i)),T[i]=i,g.push(F(d,e[i+1]))}(n.connect,o),ae(n.events),be(n.start),n.pips&&Z(n.pips),n.tooltips&&W(),le("update"+M),oe("update"+M,(function(e,t,i,r,s){T.forEach((function(e){var t=m[e],r=ue(L,e,0,!0,!0,!0),a=ue(L,e,100,!0,!0,!0),o=s[e],l=String(n.ariaFormat.to(i[e]));r=S.fromStepping(r).toFixed(1),a=S.fromStepping(a).toFixed(1),o=S.fromStepping(o).toFixed(1),t.children[0].setAttribute("aria-valuemin",r),t.children[0].setAttribute("aria-valuemax",a),t.children[0].setAttribute("aria-valuenow",o),t.children[0].setAttribute("aria-valuetext",l)}))}));var ke={destroy:function(){for(le(M),le(k),Object.keys(n.cssClasses).forEach((function(e){f(w,n.cssClasses[e])}));w.firstChild;)w.removeChild(w.firstChild);delete w.noUiSlider},steps:function(){return T.map(_e)},on:oe,off:le,get:xe,set:be,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<T.length))throw new Error("noUiSlider: invalid handle number, got: "+e);ge(e,ye(t,e),!0,!0,i),ce("update",e),n&&ce("set",e)},reset:function(e){be(n.start,e)},disable:function(e){null!=e?(m[e].setAttribute("disabled",""),m[e].handle.removeAttribute("tabindex")):(w.setAttribute("disabled",""),m.forEach((function(e){e.handle.removeAttribute("tabindex")})))},enable:function(e){null!=e?(m[e].removeAttribute("disabled"),m[e].handle.setAttribute("tabindex","0")):(w.removeAttribute("disabled"),m.forEach((function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")})))},__moveHandles:function(e,t,n){he(e,t,L,n)},options:i,updateOptions:function(e,t){var r=xe(),a=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];a.forEach((function(t){void 0!==e[t]&&(i[t]=e[t])}));var o=G(i);a.forEach((function(t){void 0!==e[t]&&(n[t]=o[t])})),S=o.spectrum,n.margin=o.margin,n.limit=o.limit,n.padding=o.padding,n.pips?Z(n.pips):X(),n.tooltips?W():V(),L=[],be(s(e.start)?e.start:r,t),e.connect&&we()},target:w,removePips:X,removeTooltips:V,getPositions:function(){return L.slice()},getTooltips:function(){return y},getOrigins:function(){return m},pips:Z};return ke}function K(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=Z(e,G(t),t);return e.noUiSlider=n,n}var J={__spectrum:x,cssClasses:w,create:K};e.create=K,e.cssClasses=w,e.default=J,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).autosize=t()}(this,(function(){var e=new Map;function t(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!e.has(t)){var n,i=null,r=window.getComputedStyle(t),s=(n=t.value,function(){o({testForHeightReduction:""===n||!t.value.startsWith(n),restoreTextAlign:null}),n=t.value}),a=function(n){t.removeEventListener("autosize:destroy",a),t.removeEventListener("autosize:update",l),t.removeEventListener("input",s),window.removeEventListener("resize",l),Object.keys(n).forEach((function(e){return t.style[e]=n[e]})),e.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",a),t.addEventListener("autosize:update",l),t.addEventListener("input",s),window.addEventListener("resize",l),t.style.overflowX="hidden",t.style.wordWrap="break-word",e.set(t,{destroy:a,update:l}),l()}function o(e){var n,s,a=e.restoreTextAlign,l=void 0===a?null:a,c=e.testForHeightReduction,u=void 0===c||c,d=r.overflowY;if(0!==t.scrollHeight&&("vertical"===r.resize?t.style.resize="none":"both"===r.resize&&(t.style.resize="horizontal"),u&&(n=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(t),t.style.height=""),s="content-box"===r.boxSizing?t.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):t.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),"none"!==r.maxHeight&&s>parseFloat(r.maxHeight)?("hidden"===r.overflowY&&(t.style.overflow="scroll"),s=parseFloat(r.maxHeight)):"hidden"!==r.overflowY&&(t.style.overflow="hidden"),t.style.height=s+"px",l&&(t.style.textAlign=l),n&&n(),i!==s&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=s),d!==r.overflow&&!l)){var h=r.textAlign;"hidden"===r.overflow&&(t.style.textAlign="start"===h?"end":"start"),o({restoreTextAlign:h,testForHeightReduction:!0})}}function l(){o({testForHeightReduction:!0,restoreTextAlign:null})}}function n(t){var n=e.get(t);n&&n.destroy()}function i(t){var n=e.get(t);n&&n.update()}var r=null;return"undefined"==typeof window?((r=function(e){return e}).destroy=function(e){return e},r.update=function(e){return e}):((r=function(e,n){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return t(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],n),e},r.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e}),r})),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,(function(){return t={686:function(e,t,n){"use strict";n.d(t,{default:function(){return g}});t=n(279);var i=n.n(t),r=(t=n(370),n.n(t)),s=(t=n(817),n.n(t));function a(e){try{return document.execCommand(e)}catch(e){return}}var o=function(e){return e=s()(e),a("cut"),e};function l(e,t){var n,i;n=e,i="rtl"===document.documentElement.getAttribute("dir"),(e=document.createElement("textarea")).style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[i?"right":"left"]="-9999px",i=window.pageYOffset||document.documentElement.scrollTop,e.style.top="".concat(i,"px"),e.setAttribute("readonly",""),e.value=n;return t.container.appendChild(e),t=s()(e),a("copy"),e.remove(),t}var c=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=l(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=l(e.value,t):(n=s()(e),a("copy")),n};function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var g=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(a,i());var e,t,n,s=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);return n=t?(n=p(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),i=this,!n||"object"!==d(n)&&"function"!=typeof n?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(i):n}}(a);function a(e,t){var n;return function(e){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this),(n=s.call(this)).resolveOptions(t),n.listenClick(e),n}return e=a,n=[{key:"copy",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return c(e,t)}},{key:"cut",value:function(e){return o(e)}},{key:"isSupported",value:function(){var e="string"==typeof(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[e]:e,t=!!document.queryCommandSupported;return e.forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],(t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=r()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy";e=function(){var e=void 0===(n=(i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).action)?"copy":n,t=i.container,n=i.target,i=i.text;if("copy"!==e&&"cut"!==e)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==n){if(!n||"object"!==u(n)||1!==n.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===e&&n.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===e&&(n.hasAttribute("readonly")||n.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?c(i,{container:t}):n?"cut"===e?o(n):c(n,{container:t}):void 0}({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(e?"success":"error",{action:n,text:e,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return m("action",e)}},{key:"defaultTarget",value:function(e){if(e=m("target",e))return document.querySelector(e)}},{key:"defaultText",value:function(e){return m("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&h(e.prototype,t),n&&h(e,n),a}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var i=n(828);function r(e,t,n,r,s){var a=function(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,a,s),{destroy:function(){e.removeEventListener(n,a,s)}}}e.exports=function(e,t,n,i,s){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,i,s)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var i=n(879),r=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return c=t,u=n,(l=e).addEventListener(c,u),{destroy:function(){l.removeEventListener(c,u)}};if(i.nodeList(e))return s=e,a=t,o=n,Array.prototype.forEach.call(s,(function(e){e.addEventListener(a,o)})),{destroy:function(){Array.prototype.forEach.call(s,(function(e){e.removeEventListener(a,o)}))}};if(i.string(e))return r(document.body,e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var s,a,o,l,c,u}},817:function(e){e.exports=function(e){var t,n="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t),n.toString());return n}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function r(){i.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var s=0,a=i.length;s<a;s++)i[s].fn!==t&&i[s].fn._!==t&&r.push(i[s]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(686).default;function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{}};return t[i](r,r.exports,e),r.exports}var t,n})),function(e){"use strict";var t=function(e,t){this.init("multiselectsplitter",e,t)};t.DEFAULTS={selectSize:null,maxSelectSize:null,clearOnFirstChange:!1,onlySameGroup:!1,groupCounter:!1,maximumSelected:null,afterInitialize:null,maximumAlert:function(e){alert("Only "+e+" values can be selected")},createFirstSelect:function(e,t){return"<option>"+e+"</option>"},createSecondSelect:function(e,t){return"<option>"+e+"</option>"},template:'<div class="row" data-multiselectsplitter-wrapper-selector><div class="col-xs-6 col-sm-6"><select class="form-control" data-multiselectsplitter-firstselect-selector></select></div> \x3c!-- Add the extra clearfix for only the required viewport --\x3e<div class="col-xs-6 col-sm-6"><select class="form-control" data-multiselectsplitter-secondselect-selector></select></div></div>'},t.prototype.init=function(n,i,r){var s=this;s.type=n,s.last$ElementSelected=[],s.initialized=!1,s.$element=e(i),s.$element.hide(),s.options=e.extend({},t.DEFAULTS,r),s.$element.after(s.options.template),s.$wrapper=s.$element.next("div[data-multiselectsplitter-wrapper-selector]"),s.$firstSelect=e("select[data-multiselectsplitter-firstselect-selector]",s.$wrapper),s.$secondSelect=e("select[data-multiselectsplitter-secondselect-selector]",s.$wrapper);var a=0,o=0;if(0!=s.$element.find("optgroup").length){s.$element.find("optgroup").each((function(){var t=e(this).attr("label"),n=e(s.options.createFirstSelect(t,s.$element));n.val(t),n.attr("data-current-label",n.text()),s.$firstSelect.append(n);var i=e(this).find("option").length;i>o&&(o=i),a++}));var l=Math.max(a,o);l=Math.min(l,10),s.options.selectSize?l=s.options.selectSize:s.options.maxSelectSize&&(l=Math.min(l,s.options.maxSelectSize)),s.$firstSelect.attr("size",l),s.$secondSelect.attr("size",l),s.$element.attr("multiple")&&s.$secondSelect.attr("multiple","multiple"),s.$element.is(":disabled")&&s.disable(),s.$firstSelect.on("change",e.proxy(s.updateParentCategory,s)),s.$secondSelect.on("click change",e.proxy(s.updateChildCategory,s)),s.update=function(){if(!(s.$element.find("option").length<1)){var e,t=s.$element.find("option:selected:first");e=t.length?t.parent().attr("label"):s.$element.find("option:first").parent().attr("label"),s.$firstSelect.find('option[value="'+e+'"]').prop("selected",!0),s.$firstSelect.trigger("change")}},s.update(),s.initialized=!0,s.options.afterInitialize&&s.options.afterInitialize(s.$firstSelect,s.$secondSelect)}},t.prototype.disable=function(){this.$secondSelect.prop("disabled",!0),this.$firstSelect.prop("disabled",!0)},t.prototype.enable=function(){this.$secondSelect.prop("disabled",!1),this.$firstSelect.prop("disabled",!1)},t.prototype.createSecondSelect=function(){var t=this;t.$secondSelect.empty(),e.each(t.$element.find('optgroup[label="'+t.$firstSelect.val()+'"] option'),(function(n,i){var r=e(this).val(),s=e(this).text(),a=e(t.options.createSecondSelect(s,t.$firstSelect));a.val(r),e.each(t.$element.find("option:selected"),(function(t,n){e(n).val()==r&&a.prop("selected",!0)})),t.$secondSelect.append(a)}))},t.prototype.updateParentCategory=function(){var e=this;e.last$ElementSelected=e.$element.find("option:selected"),e.options.clearOnFirstChange&&e.initialized&&e.$element.find("option:selected").prop("selected",!1),e.createSecondSelect(),e.checkSelected(),e.updateCounter()},t.prototype.updateCounter=function(){var t=this;t.$element.attr("multiple")&&t.options.groupCounter&&e.each(t.$firstSelect.find("option"),(function(n,i){var r=e(i).val(),s=e(i).data("currentLabel"),a=t.$element.find('optgroup[label="'+r+'"] option:selected').length;a>0&&(s+=" ("+a+")"),e(i).html(s)}))},t.prototype.checkSelected=function(){var t=this;if(t.$element.attr("multiple")&&t.options.maximumSelected){var n=0;if(!((n="function"==typeof t.options.maximumSelected?t.options.maximumSelected(t.$firstSelect,t.$secondSelect):t.options.maximumSelected)<1))if(t.$element.find("option:selected").length>n){t.$firstSelect.find("option:selected").prop("selected",!1),t.$secondSelect.find("option:selected").prop("selected",!1),t.initialized?(t.$element.find("option:selected").prop("selected",!1),t.last$ElementSelected.prop("selected",!0)):e.each(t.$element.find("option:selected"),(function(t,i){t>n-1&&e(i).prop("selected",!1)}));var i=t.last$ElementSelected.first().parent().attr("label");t.$firstSelect.find('option[value="'+i+'"]').prop("selected",!0),t.createSecondSelect(),t.options.maximumAlert(n)}}},t.prototype.basicUpdateChildCategory=function(t,n){var i=this;i.last$ElementSelected=i.$element.find("option:selected");var r=i.$secondSelect.val();e.isArray(r)||(r=[r]);var s=i.$firstSelect.val(),a=!1;i.$element.attr("multiple")?i.options.onlySameGroup?e.each(i.$element.find("option:selected"),(function(t,n){if(e(n).parent().attr("label")!=s)return a=!0,!1})):n||(a=!0):a=!0,a?i.$element.find("option:selected").prop("selected",!1):e.each(i.$element.find("option:selected"),(function(t,n){s==e(n).parent().attr("label")&&-1==e.inArray(e(n).val(),r)&&e(n).prop("selected",!1)})),e.each(r,(function(e,t){i.$element.find('option[value="'+t+'"]').prop("selected",!0)})),i.checkSelected(),i.updateCounter(),i.$element.trigger("change")},t.prototype.updateChildCategory=function(t){"change"==t.type?this.timeOut=setTimeout(e.proxy((function(){this.basicUpdateChildCategory(t,t.ctrlKey)}),this),10):"click"==t.type&&(clearTimeout(this.timeOut),this.basicUpdateChildCategory(t,t.ctrlKey))},t.prototype.destroy=function(){this.$wrapper.remove(),this.$element.removeData(this.type),this.$element.show()},e.fn.multiselectsplitter=function(n){return this.each((function(){var i=e(this),r=i.data("multiselectsplitter"),s="object"==typeof n&&n;(r||"destroy"!=n)&&(r||i.data("multiselectsplitter",r=new t(this,s)),"string"==typeof n&&r[n]())}))},e.fn.multiselectsplitter.Constructor=t,e.fn.multiselectsplitter.VERSION="1.0.1"}(jQuery),
/*!
 * smooth-scroll v16.1.3
 * Animate scrolling to anchor links
 * (c) 2020 Chris Ferdinandi
 * MIT License
 * http://github.com/cferdinandi/smooth-scroll
 */
function(e,t){"function"==typeof define&&define.amd?define([],(function(){return t(e)})):"object"==typeof exports?module.exports=t(e):e.SmoothScroll=t(e)}("undefined"!=typeof global?global:"undefined"!=typeof window?window:this,(function(e){"use strict";var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){var e={};return Array.prototype.forEach.call(arguments,(function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}})),e},i=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),i=n.length,r=-1,s="",a=n.charCodeAt(0);++r<i;){if(0===(t=n.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");t>=1&&t<=31||127==t||0===r&&t>=48&&t<=57||1===r&&t>=48&&t<=57&&45===a?s+="\\"+t.toString(16)+" ":s+=t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+s},r=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},s=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n},a=function(t,n,i){0===t&&document.body.focus(),i||(t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))},o=function(t,n,i,r){if(n.emitEvents&&"function"==typeof e.CustomEvent){var s=new CustomEvent(t,{bubbles:!0,detail:{anchor:i,toggle:r}});document.dispatchEvent(s)}};return function(l,c){var u,d,h,f,p={};p.cancelScroll=function(e){cancelAnimationFrame(f),f=null,e||o("scrollCancel",u)},p.animateScroll=function(i,l,c){p.cancelScroll();var d=n(u||t,c||{}),m="[object Number]"===Object.prototype.toString.call(i),g=m||!i.tagName?null:i;if(m||g){var v=e.pageYOffset;d.header&&!h&&(h=document.querySelector(d.header));var y,b,x,_=s(h),w=m?i:function(t,n,i,s){var a=0;if(t.offsetParent)do{a+=t.offsetTop,t=t.offsetParent}while(t);return a=Math.max(a-n-i,0),s&&(a=Math.min(a,r()-e.innerHeight)),a}(g,_,parseInt("function"==typeof d.offset?d.offset(i,l):d.offset,10),d.clip),k=w-v,M=r(),S=0,A=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n<t.durationMin?t.durationMin:parseInt(n,10)}(k,d),L=function(t){y||(y=t),S+=t-y,x=v+k*function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(n=e.customEasing(t)),n||t}(d,b=(b=0===A?0:S/A)>1?1:b),e.scrollTo(0,Math.floor(x)),function(t,n){var r=e.pageYOffset;if(t==n||r==n||(v<n&&e.innerHeight+r)>=M)return p.cancelScroll(!0),a(i,n,m),o("scrollStop",d,i,l),y=null,f=null,!0}(x,w)||(f=e.requestAnimationFrame(L),y=t)};0===e.pageYOffset&&e.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(i,m,d),"matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches?a(i,Math.floor(w),!1):(o("scrollStart",d,i,l),p.cancelScroll(!0),e.requestAnimationFrame(L))}};var m=function(t){if(!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(d=t.target.closest(l))&&"a"===d.tagName.toLowerCase()&&!t.target.closest(u.ignore)&&d.hostname===e.location.hostname&&d.pathname===e.location.pathname&&/#/.test(d.href)){var n,r;try{n=i(decodeURIComponent(d.hash))}catch(e){n=i(d.hash)}if("#"===n){if(!u.topOnEmptyHash)return;r=document.documentElement}else r=document.querySelector(n);(r=r||"#top"!==n?r:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(u),p.animateScroll(r,d))}},g=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(u)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(i(history.state.anchor)))||p.animateScroll(t,null,{updateURL:!1})}};p.destroy=function(){u&&(document.removeEventListener("click",m,!1),e.removeEventListener("popstate",g,!1),p.cancelScroll(),u=null,d=null,h=null,f=null)};return function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";p.destroy(),u=n(t,c||{}),h=u.header?document.querySelector(u.header):null,document.addEventListener("click",m,!1),u.updateURL&&u.popstate&&e.addEventListener("popstate",g,!1)}(),p}})),function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,(function(){return function(){var e={3099:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:function(e,t,n){var i=n(111);e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:function(e,t,n){var i=n(5112),r=n(30),s=n(3070),a=i("unscopables"),o=Array.prototype;null==o[a]&&s.f(o,a,{configurable:!0,value:r(null)}),e.exports=function(e){o[a][e]=!0}},1530:function(e,t,n){"use strict";var i=n(8710).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},5787:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},9670:function(e,t,n){var i=n(111);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},4019:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(e,t,n){"use strict";var i,r=n(4019),s=n(9781),a=n(7854),o=n(111),l=n(6656),c=n(648),u=n(8880),d=n(1320),h=n(3070).f,f=n(9518),p=n(7674),m=n(5112),g=n(9711),v=a.Int8Array,y=v&&v.prototype,b=a.Uint8ClampedArray,x=b&&b.prototype,_=v&&f(v),w=y&&f(y),k=Object.prototype,M=k.isPrototypeOf,S=m("toStringTag"),A=g("TYPED_ARRAY_TAG"),L=r&&!!p&&"Opera"!==c(a.opera),T=!1,C={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},E=function(e){if(!o(e))return!1;var t=c(e);return l(C,t)||l(D,t)};for(i in C)a[i]||(L=!1);if((!L||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},L))for(i in C)a[i]&&p(a[i],_);if((!L||!w||w===k)&&(w=_.prototype,L))for(i in C)a[i]&&p(a[i].prototype,w);if(L&&f(x)!==w&&p(x,w),s&&!l(w,S))for(i in T=!0,h(w,S,{get:function(){return o(this)?this[A]:void 0}}),C)a[i]&&u(a[i],A,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:T&&A,aTypedArray:function(e){if(E(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(M.call(_,e))return e}else for(var t in C)if(l(C,i)){var n=a[t];if(n&&(e===n||M.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(s){if(n)for(var i in C){var r=a[i];r&&l(r.prototype,e)&&delete r.prototype[e]}w[e]&&!n||d(w,e,n?t:L&&y[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var i,r;if(s){if(p){if(n)for(i in C)(r=a[i])&&l(r,e)&&delete r[e];if(_[e]&&!n)return;try{return d(_,e,n?t:L&&v[e]||t)}catch(e){}}for(i in C)!(r=a[i])||r[e]&&!n||d(r,e,t)}},isView:function(e){if(!o(e))return!1;var t=c(e);return"DataView"===t||l(C,t)||l(D,t)},isTypedArray:E,TypedArray:_,TypedArrayPrototype:w}},3331:function(e,t,n){"use strict";var i=n(7854),r=n(9781),s=n(4019),a=n(8880),o=n(2248),l=n(7293),c=n(5787),u=n(9958),d=n(7466),h=n(7067),f=n(1179),p=n(9518),m=n(7674),g=n(8006).f,v=n(3070).f,y=n(1285),b=n(8003),x=n(9909),_=x.get,w=x.set,k="ArrayBuffer",M="DataView",S="prototype",A="Wrong index",L=i[k],T=L,C=i[M],D=C&&C[S],E=Object.prototype,O=i.RangeError,P=f.pack,Y=f.unpack,I=function(e){return[255&e]},N=function(e){return[255&e,e>>8&255]},H=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},j=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},F=function(e){return P(e,23,4)},R=function(e){return P(e,52,8)},z=function(e,t){v(e[S],t,{get:function(){return _(this)[t]}})},B=function(e,t,n,i){var r=h(n),s=_(e);if(r+t>s.byteLength)throw O(A);var a=_(s.buffer).bytes,o=r+s.byteOffset,l=a.slice(o,o+t);return i?l:l.reverse()},V=function(e,t,n,i,r,s){var a=h(n),o=_(e);if(a+t>o.byteLength)throw O(A);for(var l=_(o.buffer).bytes,c=a+o.byteOffset,u=i(+r),d=0;d<t;d++)l[c+d]=u[s?d:t-d-1]};if(s){if(!l((function(){L(1)}))||!l((function(){new L(-1)}))||l((function(){return new L,new L(1.5),new L(NaN),L.name!=k}))){for(var W,q=(T=function(e){return c(this,T),new L(h(e))})[S]=L[S],U=g(L),$=0;U.length>$;)(W=U[$++])in T||a(T,W,L[W]);q.constructor=T}m&&p(D)!==E&&m(D,E);var X=new C(new T(2)),G=D.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||o(D,{setInt8:function(e,t){G.call(this,e,t<<24>>24)},setUint8:function(e,t){G.call(this,e,t<<24>>24)}},{unsafe:!0})}else T=function(e){c(this,T,k);var t=h(e);w(this,{bytes:y.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},C=function(e,t,n){c(this,C,M),c(e,T,M);var i=_(e).byteLength,s=u(t);if(s<0||s>i)throw O("Wrong offset");if(s+(n=void 0===n?i-s:d(n))>i)throw O("Wrong length");w(this,{buffer:e,byteLength:n,byteOffset:s}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=s)},r&&(z(T,"byteLength"),z(C,"buffer"),z(C,"byteLength"),z(C,"byteOffset")),o(C[S],{getInt8:function(e){return B(this,1,e)[0]<<24>>24},getUint8:function(e){return B(this,1,e)[0]},getInt16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return j(B(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return j(B(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Y(B(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Y(B(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){V(this,1,e,I,t)},setUint8:function(e,t){V(this,1,e,I,t)},setInt16:function(e,t){V(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){V(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){V(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){V(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){V(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){V(this,8,e,R,t,arguments.length>2?arguments[2]:void 0)}});b(T,k),b(C,M),e.exports={ArrayBuffer:T,DataView:C}},1048:function(e,t,n){"use strict";var i=n(7908),r=n(1400),s=n(7466),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=i(this),o=s(n.length),l=r(e,o),c=r(t,o),u=arguments.length>2?arguments[2]:void 0,d=a((void 0===u?o:r(u,o))-c,o-l),h=1;for(c<l&&l<c+d&&(h=-1,c+=d-1,l+=d-1);d-- >0;)c in n?n[l]=n[c]:delete n[l],l+=h,c+=h;return n}},1285:function(e,t,n){"use strict";var i=n(7908),r=n(1400),s=n(7466);e.exports=function(e){for(var t=i(this),n=s(t.length),a=arguments.length,o=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>o;)t[o++]=e;return t}},8533:function(e,t,n){"use strict";var i=n(2092).forEach,r=n(9341)("forEach");e.exports=r?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},8457:function(e,t,n){"use strict";var i=n(9974),r=n(7908),s=n(3411),a=n(7659),o=n(7466),l=n(6135),c=n(1246);e.exports=function(e){var t,n,u,d,h,f,p=r(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,b=c(p),x=0;if(y&&(v=i(v,g>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=o(p.length));t>x;x++)f=y?v(p[x],x):p[x],l(n,x,f);else for(h=(d=b.call(p)).next,n=new m;!(u=h.call(d)).done;x++)f=y?s(d,v,[u.value,x],!0):u.value,l(n,x,f);return n.length=x,n}},1318:function(e,t,n){var i=n(5656),r=n(7466),s=n(1400),a=function(e){return function(t,n,a){var o,l=i(t),c=r(l.length),u=s(a,c);if(e&&n!=n){for(;c>u;)if((o=l[u++])!=o)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:a(!0),indexOf:a(!1)}},2092:function(e,t,n){var i=n(9974),r=n(8361),s=n(7908),a=n(7466),o=n(5417),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,m,g,v){for(var y,b,x=s(p),_=r(x),w=i(m,g,3),k=a(_.length),M=0,S=v||o,A=t?S(p,k):n||h?S(p,0):void 0;k>M;M++)if((f||M in _)&&(b=w(y=_[M],M,x),e))if(t)A[M]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return M;case 2:l.call(A,y)}else switch(e){case 4:return!1;case 7:l.call(A,y)}return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},6583:function(e,t,n){"use strict";var i=n(5656),r=n(9958),s=n(7466),a=n(9341),o=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),d=c||!u;e.exports=d?function(e){if(c)return l.apply(this,arguments)||0;var t=i(this),n=s(t.length),a=n-1;for(arguments.length>1&&(a=o(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},1194:function(e,t,n){var i=n(7293),r=n(5112),s=n(7392),a=r("species");e.exports=function(e){return s>=51||!i((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var i=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},3671:function(e,t,n){var i=n(3099),r=n(7908),s=n(8361),a=n(7466),o=function(e){return function(t,n,o,l){i(n);var c=r(t),u=s(c),d=a(c.length),h=e?d-1:0,f=e?-1:1;if(o<2)for(;;){if(h in u){l=u[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in u&&(l=n(l,u[h],h,c));return l}};e.exports={left:o(!1),right:o(!0)}},5417:function(e,t,n){var i=n(111),r=n(3157),s=n(5112)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[s])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},3411:function(e,t,n){var i=n(9670),r=n(9212);e.exports=function(e,t,n,s){try{return s?t(i(n)[0],n[1]):t(n)}catch(t){throw r(e),t}}},7072:function(e,t,n){var i=n(5112)("iterator"),r=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var s={};s[i]=function(){return{next:function(){return{done:n=!0}}}},e(s)}catch(e){}return n}},4326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:function(e,t,n){var i=n(1694),r=n(4326),s=n(5112)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?n:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},9920:function(e,t,n){var i=n(6656),r=n(3887),s=n(1236),a=n(3070);e.exports=function(e,t){for(var n=r(t),o=a.f,l=s.f,c=0;c<n.length;c++){var u=n[c];i(e,u)||o(e,u,l(t,u))}}},8544:function(e,t,n){var i=n(7293);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:function(e,t,n){"use strict";var i=n(3383).IteratorPrototype,r=n(30),s=n(9114),a=n(8003),o=n(7497),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=r(i,{next:s(1,n)}),a(e,c,!1,!0),o[c]=l,e}},8880:function(e,t,n){var i=n(9781),r=n(3070),s=n(9114);e.exports=i?function(e,t,n){return r.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,n){"use strict";var i=n(7593),r=n(3070),s=n(9114);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,s(0,n)):e[a]=n}},654:function(e,t,n){"use strict";var i=n(2109),r=n(4994),s=n(9518),a=n(7674),o=n(8003),l=n(8880),c=n(1320),u=n(5112),d=n(1913),h=n(7497),f=n(3383),p=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v="keys",y="values",b="entries",x=function(){return this};e.exports=function(e,t,n,u,f,_,w){r(n,t,u);var k,M,S,A=function(e){if(e===f&&E)return E;if(!m&&e in C)return C[e];switch(e){case v:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},L=t+" Iterator",T=!1,C=e.prototype,D=C[g]||C["@@iterator"]||f&&C[f],E=!m&&D||A(f),O="Array"==t&&C.entries||D;if(O&&(k=s(O.call(new e)),p!==Object.prototype&&k.next&&(d||s(k)===p||(a?a(k,p):"function"!=typeof k[g]&&l(k,g,x)),o(k,L,!0,!0),d&&(h[L]=x))),f==y&&D&&D.name!==y&&(T=!0,E=function(){return D.call(this)}),d&&!w||C[g]===E||l(C,g,E),h[t]=E,f)if(M={values:A(y),keys:_?E:A(v),entries:A(b)},w)for(S in M)(m||T||!(S in C))&&c(C,S,M[S]);else i({target:t,proto:!0,forced:m||T},M);return M}},9781:function(e,t,n){var i=n(7293);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var i=n(7854),r=n(111),s=i.document,a=r(s)&&r(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},8324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(e,t,n){var i=n(5005);e.exports=i("navigator","userAgent")||""},7392:function(e,t,n){var i,r,s=n(7854),a=n(8113),o=s.process,l=o&&o.versions,c=l&&l.v8;c?r=(i=c.split("."))[0]+i[1]:a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+r},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var i=n(7854),r=n(1236).f,s=n(8880),a=n(1320),o=n(3505),l=n(9920),c=n(4705);e.exports=function(e,t){var n,u,d,h,f,p=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[p]||o(p,{}):(i[p]||{}).prototype)for(u in t){if(h=t[u],d=e.noTargetGet?(f=r(n,u))&&f.value:n[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&s(h,"sham",!0),a(n,u,h,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:function(e,t,n){"use strict";n(4916);var i=n(1320),r=n(7293),s=n(5112),a=n(2261),o=n(8880),l=s("species"),c=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),d=s("replace"),h=!!/./[d]&&""===/./[d]("a","$0"),f=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=s(e),m=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),g=m&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!m||!g||"replace"===e&&(!c||!u||h)||"split"===e&&!f){var v=/./[p],y=n(p,""[e],(function(e,t,n,i,r){return t.exec===a?m&&!r?{done:!0,value:v.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=y[0],x=y[1];i(String.prototype,e,b),i(RegExp.prototype,p,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}d&&o(RegExp.prototype[p],"sham",!0)}},9974:function(e,t,n){var i=n(3099);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},5005:function(e,t,n){var i=n(857),r=n(7854),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e])||s(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},1246:function(e,t,n){var i=n(648),r=n(7497),s=n(5112)("iterator");e.exports=function(e){if(null!=e)return e[s]||e["@@iterator"]||r[i(e)]}},8554:function(e,t,n){var i=n(9670),r=n(1246);e.exports=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return i(t.call(e))}},647:function(e,t,n){var i=n(7908),r=Math.floor,s="".replace,a=/\$([$&'`]|\d\d?|<[^>]*>)/g,o=/\$([$&'`]|\d\d?)/g;e.exports=function(e,t,n,l,c,u){var d=n+e.length,h=l.length,f=o;return void 0!==c&&(c=i(c),f=a),s.call(u,f,(function(i,s){var a;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=c[s.slice(1,-1)];break;default:var o=+s;if(0===o)return i;if(o>h){var u=r(o/10);return 0===u?i:u<=h?void 0===l[u-1]?s.charAt(1):l[u-1]+s.charAt(1):i}a=l[o-1]}return void 0===a?"":a}))}},7854:function(e,t,n){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3501:function(e){e.exports={}},490:function(e,t,n){var i=n(5005);e.exports=i("document","documentElement")},4664:function(e,t,n){var i=n(9781),r=n(7293),s=n(317);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},1179:function(e){var t=Math.abs,n=Math.pow,i=Math.floor,r=Math.log,s=Math.LN2;e.exports={pack:function(e,a,o){var l,c,u,d=new Array(o),h=8*o-a-1,f=(1<<h)-1,p=f>>1,m=23===a?n(2,-24)-n(2,-77):0,g=e<0||0===e&&1/e<0?1:0,v=0;for((e=t(e))!=e||e===1/0?(c=e!=e?1:0,l=f):(l=i(r(e)/s),e*(u=n(2,-l))<1&&(l--,u*=2),(e+=l+p>=1?m/u:m*n(2,1-p))*u>=2&&(l++,u/=2),l+p>=f?(c=0,l=f):l+p>=1?(c=(e*u-1)*n(2,a),l+=p):(c=e*n(2,p-1)*n(2,a),l=0));a>=8;d[v++]=255&c,c/=256,a-=8);for(l=l<<a|c,h+=a;h>0;d[v++]=255&l,l/=256,h-=8);return d[--v]|=128*g,d},unpack:function(e,t){var i,r=e.length,s=8*r-t-1,a=(1<<s)-1,o=a>>1,l=s-7,c=r-1,u=e[c--],d=127&u;for(u>>=7;l>0;d=256*d+e[c],c--,l-=8);for(i=d&(1<<-l)-1,d>>=-l,l+=t;l>0;i=256*i+e[c],c--,l-=8);if(0===d)d=1-o;else{if(d===a)return i?NaN:u?-1/0:1/0;i+=n(2,t),d-=o}return(u?-1:1)*i*n(2,d-t)}}},8361:function(e,t,n){var i=n(7293),r=n(4326),s="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s.call(e,""):Object(e)}:Object},9587:function(e,t,n){var i=n(111),r=n(7674);e.exports=function(e,t,n){var s,a;return r&&"function"==typeof(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&r(e,a),e}},2788:function(e,t,n){var i=n(5465),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},9909:function(e,t,n){var i,r,s,a=n(8536),o=n(7854),l=n(111),c=n(8880),u=n(6656),d=n(5465),h=n(6200),f=n(3501),p=o.WeakMap;if(a){var m=d.state||(d.state=new p),g=m.get,v=m.has,y=m.set;i=function(e,t){return t.facade=e,y.call(m,e,t),t},r=function(e){return g.call(m,e)||{}},s=function(e){return v.call(m,e)}}else{var b=h("state");f[b]=!0,i=function(e,t){return t.facade=e,c(e,b,t),t},r=function(e){return u(e,b)?e[b]:{}},s=function(e){return u(e,b)}}e.exports={set:i,get:r,has:s,enforce:function(e){return s(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},7659:function(e,t,n){var i=n(5112),r=n(7497),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[s]===e)}},3157:function(e,t,n){var i=n(4326);e.exports=Array.isArray||function(e){return"Array"==i(e)}},4705:function(e,t,n){var i=n(7293),r=/#|\.prototype\./,s=function(e,t){var n=o[a(e)];return n==c||n!=l&&("function"==typeof t?i(t):!!t)},a=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=s.data={},l=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:function(e){e.exports=!1},7850:function(e,t,n){var i=n(111),r=n(4326),s=n(5112)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==r(e))}},9212:function(e,t,n){var i=n(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return i(t.call(e)).value}},3383:function(e,t,n){"use strict";var i,r,s,a=n(7293),o=n(9518),l=n(8880),c=n(6656),u=n(5112),d=n(1913),h=u("iterator"),f=!1;[].keys&&("next"in(s=[].keys())?(r=o(o(s)))!==Object.prototype&&(i=r):f=!0);var p=null==i||a((function(){var e={};return i[h].call(e)!==e}));p&&(i={}),d&&!p||c(i,h)||l(i,h,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},7497:function(e){e.exports={}},133:function(e,t,n){var i=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},590:function(e,t,n){var i=n(7293),r=n(5112),s=n(1913),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t.delete("b"),n+=i+e})),s&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8536:function(e,t,n){var i=n(7854),r=n(2788),s=i.WeakMap;e.exports="function"==typeof s&&/native code/.test(r(s))},1574:function(e,t,n){"use strict";var i=n(9781),r=n(7293),s=n(1956),a=n(5181),o=n(5296),l=n(7908),c=n(8361),u=Object.assign,d=Object.defineProperty;e.exports=!u||r((function(){if(i&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||s(u({},t)).join("")!=r}))?function(e,t){for(var n=l(e),r=arguments.length,u=1,d=a.f,h=o.f;r>u;)for(var f,p=c(arguments[u++]),m=d?s(p).concat(d(p)):s(p),g=m.length,v=0;g>v;)f=m[v++],i&&!h.call(p,f)||(n[f]=p[f]);return n}:u},30:function(e,t,n){var i,r=n(9670),s=n(6048),a=n(748),o=n(3501),l=n(490),c=n(317),u=n(6200),d="prototype",h="script",f=u("IE_PROTO"),p=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g=i?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(i):(t=c("iframe"),n="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var r=a.length;r--;)delete g[d][a[r]];return g()};o[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=r(e),n=new p,p[d]=null,n[f]=e):n=g(),void 0===t?n:s(n,t)}},6048:function(e,t,n){var i=n(9781),r=n(3070),s=n(9670),a=n(1956);e.exports=i?Object.defineProperties:function(e,t){s(e);for(var n,i=a(t),o=i.length,l=0;o>l;)r.f(e,n=i[l++],t[n]);return e}},3070:function(e,t,n){var i=n(9781),r=n(4664),s=n(9670),a=n(7593),o=Object.defineProperty;t.f=i?o:function(e,t,n){if(s(e),t=a(t,!0),s(n),r)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var i=n(9781),r=n(5296),s=n(9114),a=n(5656),o=n(7593),l=n(6656),c=n(4664),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=o(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return s(!r.f.call(e,t),e[t])}},8006:function(e,t,n){var i=n(6324),r=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var i=n(6656),r=n(7908),s=n(6200),a=n(8544),o=s("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},6324:function(e,t,n){var i=n(6656),r=n(5656),s=n(1318).indexOf,a=n(3501);e.exports=function(e,t){var n,o=r(e),l=0,c=[];for(n in o)!i(a,n)&&i(o,n)&&c.push(n);for(;t.length>l;)i(o,n=t[l++])&&(~s(c,n)||c.push(n));return c}},1956:function(e,t,n){var i=n(6324),r=n(748);e.exports=Object.keys||function(e){return i(e,r)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var i=n(9670),r=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,s){return i(n),r(s),t?e.call(n,s):n.__proto__=s,n}}():void 0)},288:function(e,t,n){"use strict";var i=n(1694),r=n(648);e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},3887:function(e,t,n){var i=n(5005),r=n(8006),s=n(5181),a=n(9670);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=s.f;return n?t.concat(n(e)):t}},857:function(e,t,n){var i=n(7854);e.exports=i},2248:function(e,t,n){var i=n(1320);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},1320:function(e,t,n){var i=n(7854),r=n(8880),s=n(6656),a=n(3505),o=n(2788),l=n(9909),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,o){var l,c=!!o&&!!o.unsafe,h=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||r(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==i?(c?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:r(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||o(this)}))},7651:function(e,t,n){var i=n(4326),r=n(2261);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var s=n.call(e,t);if("object"!=typeof s)throw TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},2261:function(e,t,n){"use strict";var i,r,s=n(7066),a=n(2999),o=RegExp.prototype.exec,l=String.prototype.replace,c=o,u=(i=/a/,r=/b*/g,o.call(i,"a"),o.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),d=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(u||h||d)&&(c=function(e){var t,n,i,r,a=this,c=d&&a.sticky,f=s.call(a),p=a.source,m=0,g=e;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,m++),n=new RegExp("^(?:"+p+")",f)),h&&(n=new RegExp("^"+p+"$(?!\\s)",f)),u&&(t=a.lastIndex),i=o.call(c?n:a,g),c?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=a.lastIndex,a.lastIndex+=i[0].length):a.lastIndex=0:u&&i&&(a.lastIndex=a.global?i.index+i[0].length:t),h&&i&&i.length>1&&l.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),e.exports=c},7066:function(e,t,n){"use strict";var i=n(9670);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2999:function(e,t,n){"use strict";var i=n(7293);function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},4488:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},3505:function(e,t,n){var i=n(7854),r=n(8880);e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},6340:function(e,t,n){"use strict";var i=n(5005),r=n(3070),s=n(5112),a=n(9781),o=s("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[o]&&n(t,o,{configurable:!0,get:function(){return this}})}},8003:function(e,t,n){var i=n(3070).f,r=n(6656),s=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,s)&&i(e,s,{configurable:!0,value:t})}},6200:function(e,t,n){var i=n(2309),r=n(9711),s=i("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},5465:function(e,t,n){var i=n(7854),r=n(3505),s="__core-js_shared__",a=i[s]||r(s,{});e.exports=a},2309:function(e,t,n){var i=n(1913),r=n(5465);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.0",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(e,t,n){var i=n(9670),r=n(3099),s=n(5112)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||null==(n=i(a)[s])?t:r(n)}},8710:function(e,t,n){var i=n(9958),r=n(4488),s=function(e){return function(t,n){var s,a,o=String(r(t)),l=i(n),c=o.length;return l<0||l>=c?e?"":void 0:(s=o.charCodeAt(l))<55296||s>56319||l+1===c||(a=o.charCodeAt(l+1))<56320||a>57343?e?o.charAt(l):s:e?o.slice(l,l+2):a-56320+(s-55296<<10)+65536}};e.exports={codeAt:s(!1),charAt:s(!0)}},3197:function(e){"use strict";var t=2147483647,n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,r="Overflow: input needs wider integers to process",s=Math.floor,a=String.fromCharCode,o=function(e){return e+22+75*(e<26)},l=function(e,t,n){var i=0;for(e=n?s(e/700):e>>1,e+=s(e/t);e>455;i+=36)e=s(e/35);return s(i+36*e/(e+38))},c=function(e){var n=[];e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var s=e.charCodeAt(n++);56320==(64512&s)?t.push(((1023&r)<<10)+(1023&s)+65536):(t.push(r),n--)}else t.push(r)}return t}(e);var i,c,u=e.length,d=128,h=0,f=72;for(i=0;i<e.length;i++)(c=e[i])<128&&n.push(a(c));var p=n.length,m=p;for(p&&n.push("-");m<u;){var g=t;for(i=0;i<e.length;i++)(c=e[i])>=d&&c<g&&(g=c);var v=m+1;if(g-d>s((t-h)/v))throw RangeError(r);for(h+=(g-d)*v,d=g,i=0;i<e.length;i++){if((c=e[i])<d&&++h>t)throw RangeError(r);if(c==d){for(var y=h,b=36;;b+=36){var x=b<=f?1:b>=f+26?26:b-f;if(y<x)break;var _=y-x,w=36-x;n.push(a(o(x+_%w))),y=s(_/w)}n.push(a(o(y))),f=l(h,v,m==p),h=0,++m}}++h,++d}return n.join("")};e.exports=function(e){var t,r,s=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)r=a[t],s.push(n.test(r)?"xn--"+c(r):r);return s.join(".")}},6091:function(e,t,n){var i=n(7293),r=n(1361);e.exports=function(e){return i((function(){return!!r[e]()||"​᠎"!="​᠎"[e]()||r[e].name!==e}))}},3111:function(e,t,n){var i=n(4488),r="["+n(1361)+"]",s=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),o=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(s,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:o(1),end:o(2),trim:o(3)}},1400:function(e,t,n){var i=n(9958),r=Math.max,s=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):s(n,t)}},7067:function(e,t,n){var i=n(9958),r=n(7466);e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw RangeError("Wrong length or index");return n}},5656:function(e,t,n){var i=n(8361),r=n(4488);e.exports=function(e){return i(r(e))}},9958:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7466:function(e,t,n){var i=n(9958),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},7908:function(e,t,n){var i=n(4488);e.exports=function(e){return Object(i(e))}},4590:function(e,t,n){var i=n(3002);e.exports=function(e,t){var n=i(e);if(n%t)throw RangeError("Wrong offset");return n}},3002:function(e,t,n){var i=n(9958);e.exports=function(e){var t=i(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},7593:function(e,t,n){var i=n(111);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},1694:function(e,t,n){var i={};i[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(i)},9843:function(e,t,n){"use strict";var i=n(2109),r=n(7854),s=n(9781),a=n(3832),o=n(260),l=n(3331),c=n(5787),u=n(9114),d=n(8880),h=n(7466),f=n(7067),p=n(4590),m=n(7593),g=n(6656),v=n(648),y=n(111),b=n(30),x=n(7674),_=n(8006).f,w=n(7321),k=n(2092).forEach,M=n(6340),S=n(3070),A=n(1236),L=n(9909),T=n(9587),C=L.get,D=L.set,E=S.f,O=A.f,P=Math.round,Y=r.RangeError,I=l.ArrayBuffer,N=l.DataView,H=o.NATIVE_ARRAY_BUFFER_VIEWS,j=o.TYPED_ARRAY_TAG,F=o.TypedArray,R=o.TypedArrayPrototype,z=o.aTypedArrayConstructor,B=o.isTypedArray,V="BYTES_PER_ELEMENT",W="Wrong length",q=function(e,t){for(var n=0,i=t.length,r=new(z(e))(i);i>n;)r[n]=t[n++];return r},U=function(e,t){E(e,t,{get:function(){return C(this)[t]}})},$=function(e){var t;return e instanceof I||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},X=function(e,t){return B(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},G=function(e,t){return X(e,t=m(t,!0))?u(2,e[t]):O(e,t)},Z=function(e,t,n){return!(X(e,t=m(t,!0))&&y(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?E(e,t,n):(e[t]=n.value,e)};s?(H||(A.f=G,S.f=Z,U(R,"buffer"),U(R,"byteOffset"),U(R,"byteLength"),U(R,"length")),i({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:G,defineProperty:Z}),e.exports=function(e,t,n){var s=e.match(/\d+$/)[0]/8,o=e+(n?"Clamped":"")+"Array",l="get"+e,u="set"+e,m=r[o],g=m,v=g&&g.prototype,S={},A=function(e,t){E(e,t,{get:function(){return function(e,t){var n=C(e);return n.view[l](t*s+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var r=C(e);n&&(i=(i=P(i))<0?0:i>255?255:255&i),r.view[u](t*s+r.byteOffset,i,!0)}(this,t,e)},enumerable:!0})};H?a&&(g=t((function(e,t,n,i){return c(e,g,o),T(y(t)?$(t)?void 0!==i?new m(t,p(n,s),i):void 0!==n?new m(t,p(n,s)):new m(t):B(t)?q(g,t):w.call(g,t):new m(f(t)),e,g)})),x&&x(g,F),k(_(m),(function(e){e in g||d(g,e,m[e])})),g.prototype=v):(g=t((function(e,t,n,i){c(e,g,o);var r,a,l,u=0,d=0;if(y(t)){if(!$(t))return B(t)?q(g,t):w.call(g,t);r=t,d=p(n,s);var m=t.byteLength;if(void 0===i){if(m%s)throw Y(W);if((a=m-d)<0)throw Y(W)}else if((a=h(i)*s)+d>m)throw Y(W);l=a/s}else l=f(t),r=new I(a=l*s);for(D(e,{buffer:r,byteOffset:d,byteLength:a,length:l,view:new N(r)});u<l;)A(e,u++)})),x&&x(g,F),v=g.prototype=b(R)),v.constructor!==g&&d(v,"constructor",g),j&&d(v,j,o),S[o]=g,i({global:!0,forced:g!=m,sham:!H},S),V in g||d(g,V,s),V in v||d(v,V,s),M(o)}):e.exports=function(){}},3832:function(e,t,n){var i=n(7854),r=n(7293),s=n(7072),a=n(260).NATIVE_ARRAY_BUFFER_VIEWS,o=i.ArrayBuffer,l=i.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!s((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new o(2),1,void 0).length}))},3074:function(e,t,n){var i=n(260).aTypedArrayConstructor,r=n(6707);e.exports=function(e,t){for(var n=r(e,e.constructor),s=0,a=t.length,o=new(i(n))(a);a>s;)o[s]=t[s++];return o}},7321:function(e,t,n){var i=n(7908),r=n(7466),s=n(1246),a=n(7659),o=n(9974),l=n(260).aTypedArrayConstructor;e.exports=function(e){var t,n,c,u,d,h,f=i(e),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=s(f);if(null!=v&&!a(v))for(h=(d=v.call(f)).next,f=[];!(u=h.call(d)).done;)f.push(u.value);for(g&&p>2&&(m=o(m,arguments[2],2)),n=r(f.length),c=new(l(this))(n),t=0;n>t;t++)c[t]=g?m(f[t],t):f[t];return c}},9711:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},3307:function(e,t,n){var i=n(133);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(e,t,n){var i=n(7854),r=n(2309),s=n(6656),a=n(9711),o=n(133),l=n(3307),c=r("wks"),u=i.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return s(c,e)||(o&&s(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},1361:function(e){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},8264:function(e,t,n){"use strict";var i=n(2109),r=n(7854),s=n(3331),a=n(6340),o="ArrayBuffer",l=s[o];i({global:!0,forced:r[o]!==l},{ArrayBuffer:l}),a(o)},2222:function(e,t,n){"use strict";var i=n(2109),r=n(7293),s=n(3157),a=n(111),o=n(7908),l=n(7466),c=n(6135),u=n(5417),d=n(1194),h=n(5112),f=n(7392),p=h("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=f>=51||!r((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:s(e)};i({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){var t,n,i,r,s,a=o(this),d=u(a,0),h=0;for(t=-1,i=arguments.length;t<i;t++)if(b(s=-1===t?a:arguments[t])){if(h+(r=l(s.length))>m)throw TypeError(g);for(n=0;n<r;n++,h++)n in s&&c(d,h,s[n])}else{if(h>=m)throw TypeError(g);c(d,h++,s)}return d.length=h,d}})},7327:function(e,t,n){"use strict";var i=n(2109),r=n(2092).filter;i({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},2772:function(e,t,n){"use strict";var i=n(2109),r=n(1318).indexOf,s=n(9341),a=[].indexOf,o=!!a&&1/[1].indexOf(1,-0)<0,l=s("indexOf");i({target:"Array",proto:!0,forced:o||!l},{indexOf:function(e){return o?a.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},6992:function(e,t,n){"use strict";var i=n(5656),r=n(1223),s=n(7497),a=n(9909),o=n(654),l="Array Iterator",c=a.set,u=a.getterFor(l);e.exports=o(Array,"Array",(function(e,t){c(this,{type:l,target:i(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},1249:function(e,t,n){"use strict";var i=n(2109),r=n(2092).map;i({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},7042:function(e,t,n){"use strict";var i=n(2109),r=n(111),s=n(3157),a=n(1400),o=n(7466),l=n(5656),c=n(6135),u=n(5112),d=n(1194)("slice"),h=u("species"),f=[].slice,p=Math.max;i({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,i,u,d=l(this),m=o(d.length),g=a(e,m),v=a(void 0===t?m:t,m);if(s(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!s(n.prototype)?r(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(d,g,v);for(i=new(void 0===n?Array:n)(p(v-g,0)),u=0;g<v;g++,u++)g in d&&c(i,u,d[g]);return i.length=u,i}})},561:function(e,t,n){"use strict";var i=n(2109),r=n(1400),s=n(9958),a=n(7466),o=n(7908),l=n(5417),c=n(6135),u=n(1194)("splice"),d=Math.max,h=Math.min;i({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,i,u,f,p,m,g=o(this),v=a(g.length),y=r(e,v),b=arguments.length;if(0===b?n=i=0:1===b?(n=0,i=v-y):(n=b-2,i=h(d(s(t),0),v-y)),v+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(g,i),f=0;f<i;f++)(p=y+f)in g&&c(u,f,g[p]);if(u.length=i,n<i){for(f=y;f<v-i;f++)m=f+n,(p=f+i)in g?g[m]=g[p]:delete g[m];for(f=v;f>v-i+n;f--)delete g[f-1]}else if(n>i)for(f=v-i;f>y;f--)m=f+n-1,(p=f+i-1)in g?g[m]=g[p]:delete g[m];for(f=0;f<n;f++)g[f+y]=arguments[f+2];return g.length=v-i+n,u}})},8309:function(e,t,n){var i=n(9781),r=n(3070).f,s=Function.prototype,a=s.toString,o=/^\s*function ([^ (]*)/,l="name";i&&!(l in s)&&r(s,l,{configurable:!0,get:function(){try{return a.call(this).match(o)[1]}catch(e){return""}}})},489:function(e,t,n){var i=n(2109),r=n(7293),s=n(7908),a=n(9518),o=n(8544);i({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!o},{getPrototypeOf:function(e){return a(s(e))}})},1539:function(e,t,n){var i=n(1694),r=n(1320),s=n(288);i||r(Object.prototype,"toString",s,{unsafe:!0})},4916:function(e,t,n){"use strict";var i=n(2109),r=n(2261);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},9714:function(e,t,n){"use strict";var i=n(1320),r=n(9670),s=n(7293),a=n(7066),o="toString",l=RegExp.prototype,c=l[o],u=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=o;(u||d)&&i(RegExp.prototype,o,(function(){var e=r(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n)}),{unsafe:!0})},8783:function(e,t,n){"use strict";var i=n(8710).charAt,r=n(9909),s=n(654),a="String Iterator",o=r.set,l=r.getterFor(a);s(String,"String",(function(e){o(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},4723:function(e,t,n){"use strict";var i=n(7007),r=n(9670),s=n(7466),a=n(4488),o=n(1530),l=n(7651);i("match",1,(function(e,t,n){return[function(t){var n=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var a=r(e),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;for(var d,h=[],f=0;null!==(d=l(a,c));){var p=String(d[0]);h[f]=p,""===p&&(a.lastIndex=o(c,s(a.lastIndex),u)),f++}return 0===f?null:h}]}))},5306:function(e,t,n){"use strict";var i=n(7007),r=n(9670),s=n(7466),a=n(9958),o=n(4488),l=n(1530),c=n(647),u=n(7651),d=Math.max,h=Math.min;i("replace",2,(function(e,t,n,i){var f=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=i.REPLACE_KEEPS_$0,m=f?"$":"$0";return[function(n,i){var r=o(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!f&&p||"string"==typeof i&&-1===i.indexOf(m)){var o=n(t,e,this,i);if(o.done)return o.value}var g=r(e),v=String(this),y="function"==typeof i;y||(i=String(i));var b=g.global;if(b){var x=g.unicode;g.lastIndex=0}for(var _=[];;){var w=u(g,v);if(null===w)break;if(_.push(w),!b)break;""===String(w[0])&&(g.lastIndex=l(v,s(g.lastIndex),x))}for(var k,M="",S=0,A=0;A<_.length;A++){w=_[A];for(var L=String(w[0]),T=d(h(a(w.index),v.length),0),C=[],D=1;D<w.length;D++)C.push(void 0===(k=w[D])?k:String(k));var E=w.groups;if(y){var O=[L].concat(C,T,v);void 0!==E&&O.push(E);var P=String(i.apply(void 0,O))}else P=c(L,v,T,C,E,i);T>=S&&(M+=v.slice(S,T)+P,S=T+L.length)}return M+v.slice(S)}]}))},3123:function(e,t,n){"use strict";var i=n(7007),r=n(7850),s=n(9670),a=n(4488),o=n(6707),l=n(1530),c=n(7466),u=n(7651),d=n(2261),h=n(7293),f=[].push,p=Math.min,m=4294967295,g=!h((function(){return!RegExp(m,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),s=void 0===n?m:n>>>0;if(0===s)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,s);for(var o,l,c,u=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,h+"g");(o=d.call(g,i))&&!((l=g.lastIndex)>p&&(u.push(i.slice(p,o.index)),o.length>1&&o.index<i.length&&f.apply(u,o.slice(1)),c=o[0].length,p=l,u.length>=s));)g.lastIndex===o.index&&g.lastIndex++;return p===i.length?!c&&g.test("")||u.push(""):u.push(i.slice(p)),u.length>s?u.slice(0,s):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),s=null==t?void 0:t[e];return void 0!==s?s.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var d=s(e),h=String(this),f=o(d,RegExp),v=d.unicode,y=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(g?"y":"g"),b=new f(g?d:"^(?:"+d.source+")",y),x=void 0===r?m:r>>>0;if(0===x)return[];if(0===h.length)return null===u(b,h)?[h]:[];for(var _=0,w=0,k=[];w<h.length;){b.lastIndex=g?w:0;var M,S=u(b,g?h:h.slice(w));if(null===S||(M=p(c(b.lastIndex+(g?0:w)),h.length))===_)w=l(h,w,v);else{if(k.push(h.slice(_,w)),k.length===x)return k;for(var A=1;A<=S.length-1;A++)if(k.push(S[A]),k.length===x)return k;w=_=M}}return k.push(h.slice(_)),k}]}),!g)},3210:function(e,t,n){"use strict";var i=n(2109),r=n(3111).trim;i({target:"String",proto:!0,forced:n(6091)("trim")},{trim:function(){return r(this)}})},2990:function(e,t,n){"use strict";var i=n(260),r=n(1048),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return r.call(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},8927:function(e,t,n){"use strict";var i=n(260),r=n(2092).every,s=i.aTypedArray;(0,i.exportTypedArrayMethod)("every",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},3105:function(e,t,n){"use strict";var i=n(260),r=n(1285),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("fill",(function(e){return r.apply(s(this),arguments)}))},5035:function(e,t,n){"use strict";var i=n(260),r=n(2092).filter,s=n(3074),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("filter",(function(e){var t=r(a(this),e,arguments.length>1?arguments[1]:void 0);return s(this,t)}))},7174:function(e,t,n){"use strict";var i=n(260),r=n(2092).findIndex,s=i.aTypedArray;(0,i.exportTypedArrayMethod)("findIndex",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},4345:function(e,t,n){"use strict";var i=n(260),r=n(2092).find,s=i.aTypedArray;(0,i.exportTypedArrayMethod)("find",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},2846:function(e,t,n){"use strict";var i=n(260),r=n(2092).forEach,s=i.aTypedArray;(0,i.exportTypedArrayMethod)("forEach",(function(e){r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},4731:function(e,t,n){"use strict";var i=n(260),r=n(1318).includes,s=i.aTypedArray;(0,i.exportTypedArrayMethod)("includes",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},7209:function(e,t,n){"use strict";var i=n(260),r=n(1318).indexOf,s=i.aTypedArray;(0,i.exportTypedArrayMethod)("indexOf",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},6319:function(e,t,n){"use strict";var i=n(7854),r=n(260),s=n(6992),a=n(5112)("iterator"),o=i.Uint8Array,l=s.values,c=s.keys,u=s.entries,d=r.aTypedArray,h=r.exportTypedArrayMethod,f=o&&o.prototype[a],p=!!f&&("values"==f.name||null==f.name),m=function(){return l.call(d(this))};h("entries",(function(){return u.call(d(this))})),h("keys",(function(){return c.call(d(this))})),h("values",m,!p),h(a,m,!p)},8867:function(e,t,n){"use strict";var i=n(260),r=i.aTypedArray,s=i.exportTypedArrayMethod,a=[].join;s("join",(function(e){return a.apply(r(this),arguments)}))},7789:function(e,t,n){"use strict";var i=n(260),r=n(6583),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("lastIndexOf",(function(e){return r.apply(s(this),arguments)}))},3739:function(e,t,n){"use strict";var i=n(260),r=n(2092).map,s=n(6707),a=i.aTypedArray,o=i.aTypedArrayConstructor;(0,i.exportTypedArrayMethod)("map",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(s(e,e.constructor)))(t)}))}))},4483:function(e,t,n){"use strict";var i=n(260),r=n(3671).right,s=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduceRight",(function(e){return r(s(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},9368:function(e,t,n){"use strict";var i=n(260),r=n(3671).left,s=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduce",(function(e){return r(s(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},2056:function(e,t,n){"use strict";var i=n(260),r=i.aTypedArray,s=i.exportTypedArrayMethod,a=Math.floor;s("reverse",(function(){for(var e,t=this,n=r(t).length,i=a(n/2),s=0;s<i;)e=t[s],t[s++]=t[--n],t[n]=e;return t}))},3462:function(e,t,n){"use strict";var i=n(260),r=n(7466),s=n(4590),a=n(7908),o=n(7293),l=i.aTypedArray;(0,i.exportTypedArrayMethod)("set",(function(e){l(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=this.length,i=a(e),o=r(i.length),c=0;if(o+t>n)throw RangeError("Wrong length");for(;c<o;)this[t+c]=i[c++]}),o((function(){new Int8Array(1).set({})})))},678:function(e,t,n){"use strict";var i=n(260),r=n(6707),s=n(7293),a=i.aTypedArray,o=i.aTypedArrayConstructor,l=i.exportTypedArrayMethod,c=[].slice;l("slice",(function(e,t){for(var n=c.call(a(this),e,t),i=r(this,this.constructor),s=0,l=n.length,u=new(o(i))(l);l>s;)u[s]=n[s++];return u}),s((function(){new Int8Array(1).slice()})))},7462:function(e,t,n){"use strict";var i=n(260),r=n(2092).some,s=i.aTypedArray;(0,i.exportTypedArrayMethod)("some",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},3824:function(e,t,n){"use strict";var i=n(260),r=i.aTypedArray,s=i.exportTypedArrayMethod,a=[].sort;s("sort",(function(e){return a.call(r(this),e)}))},5021:function(e,t,n){"use strict";var i=n(260),r=n(7466),s=n(1400),a=n(6707),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("subarray",(function(e,t){var n=o(this),i=n.length,l=s(e,i);return new(a(n,n.constructor))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((void 0===t?i:s(t,i))-l))}))},2974:function(e,t,n){"use strict";var i=n(7854),r=n(260),s=n(7293),a=i.Int8Array,o=r.aTypedArray,l=r.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,d=!!a&&s((function(){c.call(new a(1))}));l("toLocaleString",(function(){return c.apply(d?u.call(o(this)):o(this),arguments)}),s((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!s((function(){a.prototype.toLocaleString.call([1,2])})))},5016:function(e,t,n){"use strict";var i=n(260).exportTypedArrayMethod,r=n(7293),s=n(7854).Uint8Array,a=s&&s.prototype||{},o=[].toString,l=[].join;r((function(){o.call({})}))&&(o=function(){return l.call(this)});var c=a.toString!=o;i("toString",o,c)},2472:function(e,t,n){n(9843)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},4747:function(e,t,n){var i=n(7854),r=n(8324),s=n(8533),a=n(8880);for(var o in r){var l=i[o],c=l&&l.prototype;if(c&&c.forEach!==s)try{a(c,"forEach",s)}catch(e){c.forEach=s}}},3948:function(e,t,n){var i=n(7854),r=n(8324),s=n(6992),a=n(8880),o=n(5112),l=o("iterator"),c=o("toStringTag"),u=s.values;for(var d in r){var h=i[d],f=h&&h.prototype;if(f){if(f[l]!==u)try{a(f,l,u)}catch(e){f[l]=u}if(f[c]||a(f,c,d),r[d])for(var p in s)if(f[p]!==s[p])try{a(f,p,s[p])}catch(e){f[p]=s[p]}}}},1637:function(e,t,n){"use strict";n(6992);var i=n(2109),r=n(5005),s=n(590),a=n(1320),o=n(2248),l=n(8003),c=n(4994),u=n(9909),d=n(5787),h=n(6656),f=n(9974),p=n(648),m=n(9670),g=n(111),v=n(30),y=n(9114),b=n(8554),x=n(1246),_=n(5112),w=r("fetch"),k=r("Headers"),M=_("iterator"),S="URLSearchParams",A=S+"Iterator",L=u.set,T=u.getterFor(S),C=u.getterFor(A),D=/\+/g,E=Array(4),O=function(e){return E[e-1]||(E[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},Y=function(e){var t=e.replace(D," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(O(n--),P);return t}},I=/[!'()~]|%20/g,N={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},H=function(e){return N[e]},j=function(e){return encodeURIComponent(e).replace(I,H)},F=function(e,t){if(t)for(var n,i,r=t.split("&"),s=0;s<r.length;)(n=r[s++]).length&&(i=n.split("="),e.push({key:Y(i.shift()),value:Y(i.join("="))}))},R=function(e){this.entries.length=0,F(this.entries,e)},z=function(e,t){if(e<t)throw TypeError("Not enough arguments")},B=c((function(e,t){L(this,{type:A,iterator:b(T(e).entries),kind:t})}),"Iterator",(function(){var e=C(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n})),V=function(){d(this,V,S);var e,t,n,i,r,s,a,o,l,c=arguments.length>0?arguments[0]:void 0,u=[];if(L(this,{type:S,entries:u,updateURL:function(){},updateSearchParams:R}),void 0!==c)if(g(c))if("function"==typeof(e=x(c)))for(n=(t=e.call(c)).next;!(i=n.call(t)).done;){if((a=(s=(r=b(m(i.value))).next).call(r)).done||(o=s.call(r)).done||!s.call(r).done)throw TypeError("Expected sequence with length 2");u.push({key:a.value+"",value:o.value+""})}else for(l in c)h(c,l)&&u.push({key:l,value:c[l]+""});else F(u,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},W=V.prototype;o(W,{append:function(e,t){z(arguments.length,2);var n=T(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){z(arguments.length,1);for(var t=T(this),n=t.entries,i=e+"",r=0;r<n.length;)n[r].key===i?n.splice(r,1):r++;t.updateURL()},get:function(e){z(arguments.length,1);for(var t=T(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){z(arguments.length,1);for(var t=T(this).entries,n=e+"",i=[],r=0;r<t.length;r++)t[r].key===n&&i.push(t[r].value);return i},has:function(e){z(arguments.length,1);for(var t=T(this).entries,n=e+"",i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(e,t){z(arguments.length,1);for(var n,i=T(this),r=i.entries,s=!1,a=e+"",o=t+"",l=0;l<r.length;l++)(n=r[l]).key===a&&(s?r.splice(l--,1):(s=!0,n.value=o));s||r.push({key:a,value:o}),i.updateURL()},sort:function(){var e,t,n,i=T(this),r=i.entries,s=r.slice();for(r.length=0,n=0;n<s.length;n++){for(e=s[n],t=0;t<n;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===n&&r.push(e)}i.updateURL()},forEach:function(e){for(var t,n=T(this).entries,i=f(e,arguments.length>1?arguments[1]:void 0,3),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),a(W,M,W.entries),a(W,"toString",(function(){for(var e,t=T(this).entries,n=[],i=0;i<t.length;)e=t[i++],n.push(j(e.key)+"="+j(e.value));return n.join("&")}),{enumerable:!0}),l(V,S),i({global:!0,forced:!s},{URLSearchParams:V}),s||"function"!=typeof w||"function"!=typeof k||i({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,r=[e];return arguments.length>1&&(g(t=arguments[1])&&(n=t.body,p(n)===S&&((i=t.headers?new k(t.headers):new k).has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:y(0,String(n)),headers:y(0,i)}))),r.push(t)),w.apply(this,r)}}),e.exports={URLSearchParams:V,getState:T}},285:function(e,t,n){"use strict";n(8783);var i,r=n(2109),s=n(9781),a=n(590),o=n(7854),l=n(6048),c=n(1320),u=n(5787),d=n(6656),h=n(1574),f=n(8457),p=n(8710).codeAt,m=n(3197),g=n(8003),v=n(1637),y=n(9909),b=o.URL,x=v.URLSearchParams,_=v.getState,w=y.set,k=y.getterFor("URL"),M=Math.floor,S=Math.pow,A="Invalid scheme",L="Invalid host",T="Invalid port",C=/[A-Za-z]/,D=/[\d+-.A-Za-z]/,E=/\d/,O=/^(0x|0X)/,P=/^[0-7]+$/,Y=/^\d+$/,I=/^[\dA-Fa-f]+$/,N=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,H=/[\u0000\t\u000A\u000D #/:?@[\\]]/,j=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,F=/[\t\u000A\u000D]/g,R=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return L;if(!(n=B(t.slice(1,-1))))return L;e.host=n}else if(Z(e)){if(t=m(t),N.test(t))return L;if(null===(n=z(t)))return L;e.host=n}else{if(H.test(t))return L;for(n="",i=f(t),r=0;r<i.length;r++)n+=X(i[r],W);e.host=n}},z=function(e){var t,n,i,r,s,a,o,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(n=[],i=0;i<t;i++){if(""==(r=l[i]))return e;if(s=10,r.length>1&&"0"==r.charAt(0)&&(s=O.test(r)?16:8,r=r.slice(8==s?1:2)),""===r)a=0;else{if(!(10==s?Y:8==s?P:I).test(r))return e;a=parseInt(r,s)}n.push(a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=S(256,5-t))return null}else if(a>255)return null;for(o=n.pop(),i=0;i<n.length;i++)o+=n[i]*S(256,3-i);return o},B=function(e){var t,n,i,r,s,a,o,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,u=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=n=0;n<4&&I.test(h());)t=16*t+parseInt(h(),16),d++,n++;if("."==h()){if(0==n)return;if(d-=n,c>6)return;for(i=0;h();){if(r=null,i>0){if(!("."==h()&&i<4))return;d++}if(!E.test(h()))return;for(;E.test(h());){if(s=parseInt(h(),10),null===r)r=s;else{if(0==r)return;r=10*r+s}if(r>255)return;d++}l[c]=256*l[c]+r,2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)o=l[c],l[c--]=l[u+a-1],l[u+--a]=o;else if(8!=c)return;return l},V=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=M(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,s=0;s<8;s++)0!==e[s]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=s),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},W={},q=h({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),U=h({},q,{"#":1,"?":1,"{":1,"}":1}),$=h({},U,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=p(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Z=function(e){return d(G,e.scheme)},K=function(e){return""!=e.username||""!=e.password},J=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Q=function(e,t){var n;return 2==e.length&&C.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&Q(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Q(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},ie={},re={},se={},ae={},oe={},le={},ce={},ue={},de={},he={},fe={},pe={},me={},ge={},ve={},ye={},be={},xe={},_e={},we={},ke={},Me=function(e,t,n,r){var s,a,o,l,c,u=n||ie,h=0,p="",m=!1,g=!1,v=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(j,"")),t=t.replace(F,""),s=f(t);h<=s.length;){switch(a=s[h],u){case ie:if(!a||!C.test(a)){if(n)return A;u=se;continue}p+=a.toLowerCase(),u=re;break;case re:if(a&&(D.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return A;p="",u=se,h=0;continue}if(n&&(Z(e)!=d(G,p)||"file"==p&&(K(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,n)return void(Z(e)&&G[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?u=ge:Z(e)&&r&&r.scheme==e.scheme?u=ae:Z(e)?u=ue:"/"==s[h+1]?(u=oe,h++):(e.cannotBeABaseURL=!0,e.path.push(""),u=_e)}break;case se:if(!r||r.cannotBeABaseURL&&"#"!=a)return A;if(r.cannotBeABaseURL&&"#"==a){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,u=ke;break}u="file"==r.scheme?ge:le;continue;case ae:if("/"!=a||"/"!=s[h+1]){u=le;continue}u=de,h++;break;case oe:if("/"==a){u=he;break}u=xe;continue;case le:if(e.scheme=r.scheme,a==i)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==a||"\\"==a&&Z(e))u=ce;else if("?"==a)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",u=we;else{if("#"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),u=xe;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",u=ke}break;case ce:if(!Z(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,u=xe;continue}u=he}else u=de;break;case ue:if(u=de,"/"!=a||"/"!=p.charAt(h+1))continue;h++;break;case de:if("/"!=a&&"\\"!=a){u=he;continue}break;case he:if("@"==a){m&&(p="%40"+p),m=!0,o=f(p);for(var y=0;y<o.length;y++){var b=o[y];if(":"!=b||v){var x=X(b,$);v?e.password+=x:e.username+=x}else v=!0}p=""}else if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Z(e)){if(m&&""==p)return"Invalid authority";h-=f(p).length+1,p="",u=fe}else p+=a;break;case fe:case pe:if(n&&"file"==e.scheme){u=ye;continue}if(":"!=a||g){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Z(e)){if(Z(e)&&""==p)return L;if(n&&""==p&&(K(e)||null!==e.port))return;if(l=R(e,p))return l;if(p="",u=be,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),p+=a}else{if(""==p)return L;if(l=R(e,p))return l;if(p="",u=me,n==pe)return}break;case me:if(!E.test(a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Z(e)||n){if(""!=p){var _=parseInt(p,10);if(_>65535)return T;e.port=Z(e)&&_===G[e.scheme]?null:_,p=""}if(n)return;u=be;continue}return T}p+=a;break;case ge:if(e.scheme="file","/"==a||"\\"==a)u=ve;else{if(!r||"file"!=r.scheme){u=xe;continue}if(a==i)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==a)e.host=r.host,e.path=r.path.slice(),e.query="",u=we;else{if("#"!=a){ee(s.slice(h).join(""))||(e.host=r.host,e.path=r.path.slice(),te(e)),u=xe;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",u=ke}}break;case ve:if("/"==a||"\\"==a){u=ye;break}r&&"file"==r.scheme&&!ee(s.slice(h).join(""))&&(Q(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),u=xe;continue;case ye:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Q(p))u=xe;else if(""==p){if(e.host="",n)return;u=be}else{if(l=R(e,p))return l;if("localhost"==e.host&&(e.host=""),n)return;p="",u=be}continue}p+=a;break;case be:if(Z(e)){if(u=xe,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=i&&(u=xe,"/"!=a))continue}else e.fragment="",u=ke;else e.query="",u=we;break;case xe:if(a==i||"/"==a||"\\"==a&&Z(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=p).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(te(e),"/"==a||"\\"==a&&Z(e)||e.path.push("")):ne(p)?"/"==a||"\\"==a&&Z(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Q(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(a==i||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",u=we):"#"==a&&(e.fragment="",u=ke)}else p+=X(a,U);break;case _e:"?"==a?(e.query="",u=we):"#"==a?(e.fragment="",u=ke):a!=i&&(e.path[0]+=X(a,W));break;case we:n||"#"!=a?a!=i&&("'"==a&&Z(e)?e.query+="%27":e.query+="#"==a?"%23":X(a,W)):(e.fragment="",u=ke);break;case ke:a!=i&&(e.fragment+=X(a,q))}h++}},Se=function(e){var t,n,i=u(this,Se,"URL"),r=arguments.length>1?arguments[1]:void 0,a=String(e),o=w(i,{type:"URL"});if(void 0!==r)if(r instanceof Se)t=k(r);else if(n=Me(t={},String(r)))throw TypeError(n);if(n=Me(o,a,null,t))throw TypeError(n);var l=o.searchParams=new x,c=_(l);c.updateSearchParams(o.query),c.updateURL=function(){o.query=String(l)||null},s||(i.href=Le.call(i),i.origin=Te.call(i),i.protocol=Ce.call(i),i.username=De.call(i),i.password=Ee.call(i),i.host=Oe.call(i),i.hostname=Pe.call(i),i.port=Ye.call(i),i.pathname=Ie.call(i),i.search=Ne.call(i),i.searchParams=He.call(i),i.hash=je.call(i))},Ae=Se.prototype,Le=function(){var e=k(this),t=e.scheme,n=e.username,i=e.password,r=e.host,s=e.port,a=e.path,o=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",K(e)&&(c+=n+(i?":"+i:"")+"@"),c+=V(r),null!==s&&(c+=":"+s)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==o&&(c+="?"+o),null!==l&&(c+="#"+l),c},Te=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Z(e)?t+"://"+V(e.host)+(null!==n?":"+n:""):"null"},Ce=function(){return k(this).scheme+":"},De=function(){return k(this).username},Ee=function(){return k(this).password},Oe=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?V(t):V(t)+":"+n},Pe=function(){var e=k(this).host;return null===e?"":V(e)},Ye=function(){var e=k(this).port;return null===e?"":String(e)},Ie=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ne=function(){var e=k(this).query;return e?"?"+e:""},He=function(){return k(this).searchParams},je=function(){var e=k(this).fragment;return e?"#"+e:""},Fe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(s&&l(Ae,{href:Fe(Le,(function(e){var t=k(this),n=String(e),i=Me(t,n);if(i)throw TypeError(i);_(t.searchParams).updateSearchParams(t.query)})),origin:Fe(Te),protocol:Fe(Ce,(function(e){var t=k(this);Me(t,String(e)+":",ie)})),username:Fe(De,(function(e){var t=k(this),n=f(String(e));if(!J(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=X(n[i],$)}})),password:Fe(Ee,(function(e){var t=k(this),n=f(String(e));if(!J(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=X(n[i],$)}})),host:Fe(Oe,(function(e){var t=k(this);t.cannotBeABaseURL||Me(t,String(e),fe)})),hostname:Fe(Pe,(function(e){var t=k(this);t.cannotBeABaseURL||Me(t,String(e),pe)})),port:Fe(Ye,(function(e){var t=k(this);J(t)||(""==(e=String(e))?t.port=null:Me(t,e,me))})),pathname:Fe(Ie,(function(e){var t=k(this);t.cannotBeABaseURL||(t.path=[],Me(t,e+"",be))})),search:Fe(Ne,(function(e){var t=k(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Me(t,e,we)),_(t.searchParams).updateSearchParams(t.query)})),searchParams:Fe(He),hash:Fe(je,(function(e){var t=k(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Me(t,e,ke)):t.fragment=null}))}),c(Ae,"toJSON",(function(){return Le.call(this)}),{enumerable:!0}),c(Ae,"toString",(function(){return Le.call(this)}),{enumerable:!0}),b){var Re=b.createObjectURL,ze=b.revokeObjectURL;Re&&c(Se,"createObjectURL",(function(e){return Re.apply(b,arguments)})),ze&&c(Se,"revokeObjectURL",(function(e){return ze.apply(b,arguments)}))}g(Se,"URL"),r({global:!0,forced:!a,sham:!s},{URL:Se})}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";n.r(i),n.d(i,{Dropzone:function(){return x},default:function(){return S}});n(2222),n(7327),n(2772),n(6992),n(1249),n(7042),n(561),n(8264),n(8309),n(489),n(1539),n(4916),n(9714),n(8783),n(4723),n(5306),n(3123),n(3210),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(4747),n(3948),n(285);function e(e,n){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return t(e,n)}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var r=0,s=function(){};return{s:s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(l)throw a}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var n,i,s;return n=t,i=[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(t){this._callbacks=this._callbacks||{};for(var n=this._callbacks[t],i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];if(n){var a,o=e(n,!0);try{for(o.s();!(a=o.n()).done;)a.value.apply(this,r)}catch(e){o.e(e)}finally{o.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+t,{args:r})),this}},{key:"makeEvent",value:function(e,t){var n={bubbles:!0,cancelable:!0,detail:t};if("function"==typeof window.CustomEvent)return new CustomEvent(e,n);var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),i}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var i=0;i<n.length;i++)if(n[i]===t){n.splice(i,1);break}return this}}],i&&r(n.prototype,i),s&&r(n,s),t}();function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var l={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e;this.element.className="".concat(this.element.className," dz-browser-not-supported");var t,n=a(this.element.getElementsByTagName("div"),!0);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(/(^| )dz-message($| )/.test(i.className)){e=i,i.className="dz-message";break}}}catch(e){n.e(e)}finally{n.f()}e||(e=x.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var r=e.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,i){var r={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},s=e.width/e.height;null==t&&null==n?(t=r.srcWidth,n=r.srcHeight):null==t?t=n*s:null==n&&(n=t/s);var a=(t=Math.min(t,r.srcWidth))/(n=Math.min(n,r.srcHeight));if(r.srcWidth>t||r.srcHeight>n)if("crop"===i)s>a?(r.srcHeight=e.height,r.srcWidth=r.srcHeight*a):(r.srcWidth=e.width,r.srcHeight=r.srcWidth/a);else{if("contain"!==i)throw new Error("Unknown resizeMethod '".concat(i,"'"));s>a?n=t/s:t=n*s}return r.srcX=(e.width-r.srcWidth)/2,r.srcY=(e.height-r.srcHeight)/2,r.trgWidth=t,r.trgHeight=n,r},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){e.previewElement=x.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);var n,i=a(e.previewElement.querySelectorAll("[data-dz-name]"),!0);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.textContent=e.name}}catch(e){i.e(e)}finally{i.f()}var s,o=a(e.previewElement.querySelectorAll("[data-dz-size]"),!0);try{for(o.s();!(s=o.n()).done;)(r=s.value).innerHTML=this.filesize(e.size)}catch(e){o.e(e)}finally{o.f()}this.options.addRemoveLinks&&(e._removeLink=x.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),e.previewElement.appendChild(e._removeLink));var l,c=function(n){return n.preventDefault(),n.stopPropagation(),e.status===x.UPLOADING?x.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?x.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},u=a(e.previewElement.querySelectorAll("[data-dz-remove]"),!0);try{for(u.s();!(l=u.n()).done;){l.value.addEventListener("click",c)}}catch(e){u.e(e)}finally{u.f()}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");var n,i=a(e.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.alt=e.name,r.src=t}}catch(e){i.e(e)}finally{i.f()}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"string"!=typeof t&&t.error&&(t=t.error);var n,i=a(e.previewElement.querySelectorAll("[data-dz-errormessage]"),!0);try{for(i.s();!(n=i.n()).done;){n.value.textContent=t}}catch(e){i.e(e)}finally{i.f()}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement){var i,r=a(e.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0);try{for(r.s();!(i=r.n()).done;){var s=i.value;"PROGRESS"===s.nodeName?s.value=t:s.style.width="".concat(t,"%")}}catch(e){r.e(e)}finally{r.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}};function c(e){return c="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},c(e)}function u(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=b(e);if(t){var r=b(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(n,e);var t=g(n);function n(e,i){var r,s,a;if(h(this,n),(r=t.call(this)).element=e,r.version=n.version,r.clickableElements=[],r.listeners=[],r.files=[],"string"==typeof r.element&&(r.element=document.querySelector(r.element)),!r.element||null==r.element.nodeType)throw new Error("Invalid dropzone element.");if(r.element.dropzone)throw new Error("Dropzone already attached.");n.instances.push(y(r)),r.element.dropzone=y(r);var o=null!=(a=n.optionsForElement(r.element))?a:{};if(r.options=n.extend({},l,o,null!=i?i:{}),r.options.previewTemplate=r.options.previewTemplate.replace(/\n*/g,""),r.options.forceFallback||!n.isBrowserSupported())return v(r,r.options.fallback.call(y(r)));if(null==r.options.url&&(r.options.url=r.element.getAttribute("action")),!r.options.url)throw new Error("No URL provided.");if(r.options.acceptedFiles&&r.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(r.options.uploadMultiple&&r.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return r.options.acceptedMimeTypes&&(r.options.acceptedFiles=r.options.acceptedMimeTypes,delete r.options.acceptedMimeTypes),null!=r.options.renameFilename&&(r.options.renameFile=function(e){return r.options.renameFilename.call(y(r),e.name,e)}),"string"==typeof r.options.method&&(r.options.method=r.options.method.toUpperCase()),(s=r.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==r.options.previewsContainer&&(r.options.previewsContainer?r.previewsContainer=n.getElement(r.options.previewsContainer,"previewsContainer"):r.previewsContainer=r.element),r.options.clickable&&(!0===r.options.clickable?r.clickableElements=[r.element]:r.clickableElements=n.getElements(r.options.clickable,"clickable")),r.init(),r}return p(n,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(n.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(n.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(n.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===n.UPLOADING||e.status===n.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(n.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){!function t(){e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.setAttribute("tabindex","-1"),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",n.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length){var i,r=u(n,!0);try{for(r.s();!(i=r.n()).done;){var s=i.value;e.addFile(s)}}catch(e){r.e(e)}finally{r.f()}}e.emit("addedfiles",n),t()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;var t,i=u(this.events,!0);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.on(r,this.options[r])}}catch(e){i.e(e)}finally{i.f()}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var s=function(e){if(function(e){if(e.dataTransfer.types)for(var t=0;t<e.dataTransfer.types.length;t++)if("Files"===e.dataTransfer.types[t])return!0;return!1}(e))return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return s(t),e.emit("dragenter",t)},dragover:function(t){var n;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",s(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return s(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(i){return(t!==e.element||i.target===e.element||n.elementInside(i.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,n.instances.splice(n.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e,t=0,n=0;if(this.getActiveFiles().length){var i,r=u(this.getActiveFiles(),!0);try{for(r.s();!(i=r.n()).done;){var s=i.value;t+=s.upload.bytesSent,n+=s.upload.total}}catch(e){r.e(e)}finally{r.f()}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(e,"]"):"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t;if(e=this.getExistingFallback())return e;var i='<div class="dz-fallback">';this.options.dictFallbackText&&(i+="<p>".concat(this.options.dictFallbackText,"</p>")),i+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var r=n.createElement(i);return"FORM"!==this.element.tagName?(t=n.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(r):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=function(e){var t,n=u(e,!0);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(/(^| )fallback($| )/.test(i.className))return i}}catch(e){n.e(e)}finally{n.f()}},t=0,n=["div","form"];t<n.length;t++){var i,r=n[t];if(i=e(this.element.getElementsByTagName(r)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var i=e.events[n];t.push(e.element.addEventListener(n,i,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var i=e.events[n];t.push(e.element.removeEventListener(n,i,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var i=["tb","gb","mb","kb","b"],r=0;r<i.length;r++){var s=i[r];if(e>=Math.pow(this.options.filesizeBase,4-r)/10){t=e/Math.pow(this.options.filesizeBase,4-r),n=s;break}}t=Math.round(10*t)/10}return"<strong>".concat(t,"</strong> ").concat(this.options.dictFileSizeUnits[n])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(t.length){var i=e.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(t)}this.emit("addedfiles",t)}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var i=e.clipboardData.items;return i.length?this._addFilesFromItems(i):void 0}}},{key:"handleFiles",value:function(e){var t,n=u(e,!0);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.addFile(i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){var n,i=[],r=u(e,!0);try{for(r.s();!(n=r.n()).done;){var s,a=n.value;null!=a.webkitGetAsEntry&&(s=a.webkitGetAsEntry())?s.isFile?i.push(t.addFile(a.getAsFile())):s.isDirectory?i.push(t._addFilesFromDirectory(s,s.name)):i.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?i.push(t.addFile(a.getAsFile())):i.push(void 0)}}catch(e){r.e(e)}finally{r.f()}return i}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,i=e.createReader(),r=function(e){return t=console,n="log",i=function(t){return t.log(e)},null!=t&&"function"==typeof t[n]?i(t,n):void 0;var t,n,i};return function e(){return i.readEntries((function(i){if(i.length>0){var r,s=u(i,!0);try{for(s.s();!(r=s.n()).done;){var a=r.value;a.isFile?a.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath="".concat(t,"/").concat(e.name),n.addFile(e)})):a.isDirectory&&n._addFilesFromDirectory(a,"".concat(t,"/").concat(a.name))}}catch(e){s.e(e)}finally{s.f()}e()}return null}),r)}()}},{key:"accept",value:function(e,t){this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):n.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;e.upload={uuid:n.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e)},this.files.push(e),e.status=n.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){var t,n=u(e,!0);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.enqueueFile(i)}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==n.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=n.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===n.UPLOADING&&this.cancelUpload(e),this.files=_(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);var t,i=u(this.files.slice(),!0);try{for(i.s();!(t=i.n()).done;){var r=t.value;(r.status!==n.UPLOADING||e)&&this.removeFile(r)}}catch(e){i.e(e)}finally{i.f()}return null}},{key:"resizeImage",value:function(e,t,i,r,s){var a=this;return this.createThumbnail(e,t,i,r,!0,(function(t,i){if(null==i)return s(e);var r=a.options.resizeMimeType;null==r&&(r=e.type);var o=i.toDataURL(r,a.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(o=M.restore(e.dataURL,o)),s(n.dataURItoBlob(o))}))}},{key:"createThumbnail",value:function(e,t,n,i,r,s){var a=this,o=new FileReader;o.onload=function(){e.dataURL=o.result,"image/svg+xml"!==e.type?a.createThumbnailFromUrl(e,t,n,i,r,s):null!=s&&s(o.result)},o.readAsDataURL(e)}},{key:"displayExistingFile",value:function(e,t,n,i){var r=this,s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this.emit("addedfile",e),this.emit("complete",e),s){e.dataURL=t,this.createThumbnailFromUrl(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,(function(t){r.emit("thumbnail",e,t),n&&n()}),i)}else this.emit("thumbnail",e,t),n&&n()}},{key:"createThumbnailFromUrl",value:function(e,t,n,i,r,s,a){var o=this,l=document.createElement("img");return a&&(l.crossOrigin=a),r="from-image"!=getComputedStyle(document.body).imageOrientation&&r,l.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&r&&(a=function(e){return EXIF.getData(l,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),a((function(r){e.width=l.width,e.height=l.height;var a=o.options.resize.call(o,e,t,n,i),c=document.createElement("canvas"),u=c.getContext("2d");switch(c.width=a.trgWidth,c.height=a.trgHeight,r>4&&(c.width=a.trgHeight,c.height=a.trgWidth),r){case 2:u.translate(c.width,0),u.scale(-1,1);break;case 3:u.translate(c.width,c.height),u.rotate(Math.PI);break;case 4:u.translate(0,c.height),u.scale(1,-1);break;case 5:u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:u.rotate(.5*Math.PI),u.translate(0,-c.width);break;case 7:u.rotate(.5*Math.PI),u.translate(c.height,-c.width),u.scale(-1,1);break;case 8:u.rotate(-.5*Math.PI),u.translate(-c.height,0)}k(u,l,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var d=c.toDataURL("image/png");if(null!=s)return s(d,c)}))},null!=s&&(l.onerror=s),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var i=this.getQueuedFiles();if(i.length>0){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,e-t));for(;n<e;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){var t,i=u(e,!0);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.processing=!0,r.status=n.UPLOADING,this.emit("processing",r)}}catch(e){i.e(e)}finally{i.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===n.UPLOADING){var t,i=this._getFilesWithXhr(e.xhr),r=u(i,!0);try{for(r.s();!(t=r.n()).done;){t.value.status=n.CANCELED}}catch(e){r.e(e)}finally{r.f()}void 0!==e.xhr&&e.xhr.abort();var s,a=u(i,!0);try{for(a.s();!(s=a.n()).done;){var o=s.value;this.emit("canceled",o)}}catch(e){a.e(e)}finally{a.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",i)}else e.status!==n.ADDED&&e.status!==n.QUEUED||(e.status=n.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(i){if(t.options.chunking){var r=i[0];e[0].upload.chunked=t.options.chunking&&(t.options.forceChunking||r.size>t.options.chunkSize),e[0].upload.totalChunkCount=Math.ceil(r.size/t.options.chunkSize)}if(e[0].upload.chunked){var s=e[0],a=i[0];s.upload.chunks=[];var o=function(){for(var i=0;void 0!==s.upload.chunks[i];)i++;if(!(i>=s.upload.totalChunkCount)){0;var r=i*t.options.chunkSize,o=Math.min(r+t.options.chunkSize,a.size),l={name:t._getParamName(0),data:a.webkitSlice?a.webkitSlice(r,o):a.slice(r,o),filename:s.upload.filename,chunkIndex:i};s.upload.chunks[i]={file:s,index:i,dataBlock:l,status:n.UPLOADING,progress:0,retries:0},t._uploadData(e,[l])}};if(s.upload.finishedChunkUpload=function(i,r){var a=!0;i.status=n.SUCCESS,i.dataBlock=null,i.xhr=null;for(var l=0;l<s.upload.totalChunkCount;l++){if(void 0===s.upload.chunks[l])return o();s.upload.chunks[l].status!==n.SUCCESS&&(a=!1)}a&&t.options.chunksUploaded(s,(function(){t._finished(e,r,null)}))},t.options.parallelChunkUploads)for(var l=0;l<s.upload.totalChunkCount;l++)o();else o()}else{for(var c=[],u=0;u<e.length;u++)c[u]={name:t._getParamName(u),data:i[u],filename:e[u].upload.filename};t._uploadData(e,c)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){var i,r=this,s=new XMLHttpRequest,a=u(e,!0);try{for(a.s();!(i=a.n()).done;){i.value.xhr=s}}catch(e){a.e(e)}finally{a.f()}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=s);var o=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);s.open(o,l,!0),this.resolveOption(this.options.timeout,e)&&(s.timeout=this.resolveOption(this.options.timeout,e)),s.withCredentials=!!this.options.withCredentials,s.onload=function(t){r._finishedUploading(e,s,t)},s.ontimeout=function(){r._handleUploadError(e,s,"Request timedout after ".concat(r.options.timeout/1e3," seconds"))},s.onerror=function(){r._handleUploadError(e,s)},(null!=s.upload?s.upload:s).onprogress=function(t){return r._updateFilesUploadProgress(e,s,t)};var c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var d in this.options.headers&&n.extend(c,this.options.headers),c){var h=c[d];h&&s.setRequestHeader(d,h)}var f=new FormData;if(this.options.params){var p=this.options.params;for(var m in"function"==typeof p&&(p=p.call(this,e,s,e[0].upload.chunked?this._getChunk(e[0],s):null)),p){var g=p[m];if(Array.isArray(g))for(var v=0;v<g.length;v++)f.append(m,g[v]);else f.append(m,g)}}var y,b=u(e,!0);try{for(b.s();!(y=b.n()).done;){var x=y.value;this.emit("sending",x,s,f)}}catch(e){b.e(e)}finally{b.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",e,s,f),this._addFormElementData(f);for(var _=0;_<t.length;_++){var w=t[_];f.append(w.name,w.data,w.filename)}this.submitRequest(s,f,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,i=[],r=0,s=function(s){n.options.transformFile.call(n,e[s],(function(n){i[s]=n,++r===e.length&&t(i)}))},a=0;a<e.length;a++)s(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName){var t,n=u(this.element.querySelectorAll("input, textarea, select, button"),!0);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.getAttribute("name"),s=i.getAttribute("type");if(s&&(s=s.toLowerCase()),null!=r)if("SELECT"===i.tagName&&i.hasAttribute("multiple")){var a,o=u(i.options,!0);try{for(o.s();!(a=o.n()).done;){var l=a.value;l.selected&&e.append(r,l.value)}}catch(e){o.e(e)}finally{o.f()}}else(!s||"checkbox"!==s&&"radio"!==s||i.checked)&&e.append(r,i.value)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){if(e[0].upload.chunked){var i=e[0],r=this._getChunk(i,t);n?(r.progress=100*n.loaded/n.total,r.total=n.total,r.bytesSent=n.loaded):(r.progress=100,r.bytesSent=r.total),i.upload.progress=0,i.upload.total=0,i.upload.bytesSent=0;for(var s=0;s<i.upload.totalChunkCount;s++)i.upload.chunks[s]&&void 0!==i.upload.chunks[s].progress&&(i.upload.progress+=i.upload.chunks[s].progress,i.upload.total+=i.upload.chunks[s].total,i.upload.bytesSent+=i.upload.chunks[s].bytesSent);i.upload.progress=i.upload.progress/i.upload.totalChunkCount,this.emit("uploadprogress",i,i.upload.progress,i.upload.bytesSent)}else{var a,o=u(e,!0);try{for(o.s();!(a=o.n()).done;){var l=a.value;l.upload.total&&l.upload.bytesSent&&l.upload.bytesSent==l.upload.total||(n?(l.upload.progress=100*n.loaded/n.total,l.upload.total=n.total,l.upload.bytesSent=n.loaded):(l.upload.progress=100,l.upload.bytesSent=l.upload.total),this.emit("uploadprogress",l,l.upload.progress,l.upload.bytesSent))}}catch(e){o.e(e)}finally{o.f()}}}},{key:"_finishedUploading",value:function(e,t,i){var r;if(e[0].status!==n.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){i=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e,t),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t),r):this._finished(e,r,i):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,i){if(e[0].status!==n.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(e,i||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}},{key:"submitRequest",value:function(e,t,n){1==e.readyState?e.send(t):console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.")}},{key:"_finished",value:function(e,t,i){var r,s=u(e,!0);try{for(s.s();!(r=s.n()).done;){var a=r.value;a.status=n.SUCCESS,this.emit("success",a,t,i),this.emit("complete",a)}}catch(e){s.e(e)}finally{s.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,i){var r,s=u(e,!0);try{for(s.s();!(r=s.n()).done;){var a=r.value;a.status=n.ERROR,this.emit("error",a,t,i),this.emit("complete",a)}}catch(e){s.e(e)}finally{s.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=s,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,s=n;r<s.length;r++){var a=s[r];for(var o in a){var l=a[o];e[o]=l}}return e}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),n}(s);x.initClass(),x.version="5.9.3",x.options={},x.optionsForElement=function(e){return e.getAttribute("id")?x.options[w(e.getAttribute("id"))]:void 0},x.instances=[],x.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},x.autoDiscover=!0,x.discover=function(){var e;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){var n,i=[],r=u(t,!0);try{for(r.s();!(n=r.n()).done;){var s=n.value;/(^| )dropzone($| )/.test(s.className)?i.push(e.push(s)):i.push(void 0)}}catch(e){r.e(e)}finally{r.f()}return i}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){var t,n=[],i=u(e,!0);try{for(i.s();!(t=i.n()).done;){var r=t.value;!1!==x.optionsForElement(r)?n.push(new x(r)):n.push(void 0)}}catch(e){i.e(e)}finally{i.f()}return n}()},x.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],x.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){void 0!==x.blacklistedBrowsers&&(x.blockedBrowsers=x.blacklistedBrowsers);var t,n=u(x.blockedBrowsers,!0);try{for(n.s();!(t=n.n()).done;){t.value.test(navigator.userAgent)&&(e=!1)}}catch(e){n.e(e)}finally{n.f()}}else e=!1;else e=!1;return e},x.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),r=new Uint8Array(i),s=0,a=t.length,o=0<=a;o?s<=a:s>=a;o?s++:s--)r[s]=t.charCodeAt(s);return new Blob([i],{type:n})};var _=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},w=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};x.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},x.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},x.getElement=function(e,t){var n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector or a plain HTML element."));return n},x.getElements=function(e,t){var n,i;if(e instanceof Array){i=[];try{var r,s=u(e,!0);try{for(s.s();!(r=s.n()).done;)n=r.value,i.push(this.getElement(n,t))}catch(e){s.e(e)}finally{s.f()}}catch(e){i=null}}else if("string"==typeof e){i=[];var a,o=u(document.querySelectorAll(e),!0);try{for(o.s();!(a=o.n()).done;)n=a.value,i.push(n)}catch(e){o.e(e)}finally{o.f()}}else null!=e.nodeType&&(i=[e]);if(null==i||!i.length)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return i},x.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},x.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");var n,i=e.type,r=i.replace(/\/.*$/,""),s=u(t,!0);try{for(s.s();!(n=s.n()).done;){var a=n.value;if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(i===a)return!0}}catch(e){s.e(e)}finally{s.f()}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new x(this,e)}))}),x.ADDED="added",x.QUEUED="queued",x.ACCEPTED=x.QUEUED,x.UPLOADING="uploading",x.PROCESSING=x.UPLOADING,x.CANCELED="canceled",x.ERROR="error",x.SUCCESS="success";var k=function(e,t,n,i,r,s,a,o,l,c){var u=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var i=n.getContext("2d");i.drawImage(e,0,0);for(var r=i.getImageData(1,0,1,t).data,s=0,a=t,o=t;o>s;)0===r[4*(o-1)+3]?a=o:s=o,o=a+s>>1;var l=o/t;return 0===l?1:l}(t);return e.drawImage(t,n,i,r,s,a,o,l,c/u)},M=function(){function e(){h(this,e)}return p(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,i=void 0,r="",s=void 0,a=void 0,o=void 0,l="",c=0;s=(n=e[c++])>>2,a=(3&n)<<4|(i=e[c++])>>4,o=(15&i)<<2|(r=e[c++])>>6,l=63&r,isNaN(i)?o=l=64:isNaN(r)&&(l=64),t=t+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(l),n=i=r="",s=a=o=l="",c<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),i=this.slice2Segments(n),r=this.exifManipulation(t,i);return"data:image/jpeg;base64,".concat(this.encode64(r))}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),i=this.insertExif(e,n);return new Uint8Array(i)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),i=this.decode64(n),r=i.indexOf(255,3),s=i.slice(0,r),a=i.slice(r),o=s;return o=(o=o.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var i=t+(256*e[t+2]+e[t+3])+2,r=e.slice(t,i);n.push(r),t=i}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,i="",r=void 0,s=void 0,a="",o=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(o++))<<2|(r=this.KEY_STR.indexOf(e.charAt(o++)))>>4,n=(15&r)<<4|(s=this.KEY_STR.indexOf(e.charAt(o++)))>>2,i=(3&s)<<6|(a=this.KEY_STR.indexOf(e.charAt(o++))),l.push(t),64!==s&&l.push(n),64!==a&&l.push(i),t=n=i="",r=s=a="",o<e.length;);return l}}]),e}();M.initClass();x._autoDiscoverFunction=function(){if(x.autoDiscover)return x.discover()},function(e,t){var n=!1,i=!0,r=e.document,s=r.documentElement,a=r.addEventListener?"addEventListener":"attachEvent",o=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",c=function i(s){if("readystatechange"!==s.type||"complete"===r.readyState)return("load"===s.type?e:r)[o](l+s.type,i,!1),!n&&(n=!0)?t.call(e,s.type||s):void 0};if("complete"!==r.readyState){if(r.createEventObject&&s.doScroll){try{i=!e.frameElement}catch(e){}i&&function e(){try{s.doScroll("left")}catch(t){return void setTimeout(e,50)}return c("poll")}()}r[a](l+"DOMContentLoaded",c,!1),r[a](l+"readystatechange",c,!1),e[a](l+"load",c,!1)}}(window,x._autoDiscoverFunction),window.Dropzone=x;var S=x}(),i}()})),Dropzone.autoDiscover=!1,Dropzone.prototype.previewTemplate='    <div class="dz-preview dz-file-preview">\n        <div class="dz-image"><img data-dz-thumbnail /></div>\n        \n        <div class="dz-details">\n            <div class="dz-size"><span data-dz-size></span></div>\n            <div class="dz-filename"><span data-dz-name></span></div>\n        </div>\n\n        <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n\n        <div class="dz-error-message"><span data-dz-errormessage></span></div>\n        \n        <div class="dz-success-mark">\n            <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n                <title>Check</title>\n                <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n                    <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path>\n                </g>\n            </svg>\n        </div>\n\n        <div class="dz-error-mark">\n            <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n                <title>Error</title>\n                <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n                    <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n                    <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path>\n                    </g>\n                </g>\n            </svg>\n        </div>\n    </div>',function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Quill=t():e.Quill=t()}(self,(function(){return function(){var e={9698:function(e,t,n){"use strict";n.d(t,{Ay:function(){return c},Ji:function(){return h},mG:function(){return d},zo:function(){return u}});var i=n(6003),r=n(5232),s=n.n(r),a=n(3036),o=n(4850),l=n(5508);class c extends i.BlockBlot{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=d(this)),this.cache.delta}deleteAt(e,t){super.deleteAt(e,t),this.cache={}}formatAt(e,t,n,r){t<=0||(this.scroll.query(n,i.Scope.BLOCK)?e+t===this.length()&&this.format(n,r):super.formatAt(e,Math.min(t,this.length()-e-1),n,r),this.cache={})}insertAt(e,t,n){if(null!=n)return super.insertAt(e,t,n),void(this.cache={});if(0===t.length)return;const i=t.split("\n"),r=i.shift();r.length>0&&(e<this.length()-1||null==this.children.tail?super.insertAt(Math.min(e,this.length()-1),r):this.children.tail.insertAt(this.children.tail.length(),r),this.cache={});let s=this;i.reduce(((e,t)=>(s=s.split(e,!0),s.insertAt(0,t),t.length)),e+r.length)}insertBefore(e,t){const{head:n}=this.children;super.insertBefore(e,t),n instanceof a.A&&n.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(e,t){super.moveChildren(e,t),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&(0===e||e>=this.length()-1)){const t=this.clone();return 0===e?(this.parent.insertBefore(t,this),this):(this.parent.insertBefore(t,this.next),t)}const n=super.split(e,t);return this.cache={},n}}c.blotName="block",c.tagName="P",c.defaultChild=a.A,c.allowedChildren=[a.A,o.A,i.EmbedBlot,l.A];class u extends i.EmbedBlot{attach(){super.attach(),this.attributes=new i.AttributorStore(this.domNode)}delta(){return(new(s())).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,i.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}formatAt(e,t,n,i){this.format(n,i)}insertAt(e,t,n){if(null!=n)return void super.insertAt(e,t,n);const i=t.split("\n"),r=i.pop(),s=i.map((e=>{const t=this.scroll.create(c.blotName);return t.insertAt(0,e),t})),a=this.split(e);s.forEach((e=>{this.parent.insertBefore(e,a)})),r&&this.parent.insertBefore(this.scroll.create("text",r),a)}}function d(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.descendants(i.LeafBlot).reduce(((e,n)=>0===n.length()?e:e.insert(n.value(),h(n,{},t))),new(s())).insert("\n",h(e))}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==e?t:("formats"in e&&"function"==typeof e.formats&&(t={...t,...e.formats()},n&&delete t["code-token"]),null==e.parent||"scroll"===e.parent.statics.blotName||e.parent.statics.scope!==e.statics.scope?t:h(e.parent,t,n))}u.scope=i.Scope.BLOCK_BLOT},3036:function(e,t,n){"use strict";var i=n(6003);class r extends i.EmbedBlot{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}r.blotName="break",r.tagName="BR",t.A=r},580:function(e,t,n){"use strict";var i=n(6003);class r extends i.ContainerBlot{}t.A=r},4541:function(e,t,n){"use strict";var i=n(6003),r=n(5508);class s extends i.EmbedBlot{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(s.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(e,t){if(0!==this.savedLength)return void super.format(e,t);let n=this,r=0;for(;null!=n&&n.statics.scope!==i.Scope.BLOCK_BLOT;)r+=n.offset(n.parent),n=n.parent;null!=n&&(this.savedLength=s.CONTENTS.length,n.optimize(),n.formatAt(r,s.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const e=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof r.A?this.prev:null,n=t?t.length():0,i=this.next instanceof r.A?this.next:null,a=i?i.text:"",{textNode:o}=this,l=o.data.split(s.CONTENTS).join("");let c;if(o.data=s.CONTENTS,t)c=t,(l||i)&&(t.insertAt(t.length(),l+a),i&&i.remove());else if(i)c=i,i.insertAt(0,l);else{const e=document.createTextNode(l);c=this.scroll.create(e),this.parent.insertBefore(c,this)}if(this.remove(),e){const r=(e,r)=>t&&e===t.domNode?r:e===o?n+r-1:i&&e===i.domNode?n+l.length+r:null,s=r(e.start.node,e.start.offset),a=r(e.end.node,e.end.offset);if(null!==s&&null!==a)return{startNode:c.domNode,startOffset:s,endNode:c.domNode,endOffset:a}}return null}update(e,t){if(e.some((e=>"characterData"===e.type&&e.target===this.textNode))){const e=this.restore();e&&(t.range=e)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if("A"===t.domNode.tagName){this.savedLength=s.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}}t.A=s},746:function(e,t,n){"use strict";var i=n(6003),r=n(5508);const s="\ufeff";class a extends i.EmbedBlot{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach((e=>{this.contentNode.appendChild(e)})),this.leftGuard=document.createTextNode(s),this.rightGuard=document.createTextNode(s),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t,n=null;const i=e.data.split(s).join("");if(e===this.leftGuard)if(this.prev instanceof r.A){const e=this.prev.length();this.prev.insertAt(e,i),n={startNode:this.prev.domNode,startOffset:e+i.length}}else t=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(t),this),n={startNode:t,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof r.A?(this.next.insertAt(0,i),n={startNode:this.next.domNode,startOffset:i.length}):(t=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(t),this.next),n={startNode:t,startOffset:i.length}));return e.data=s,n}update(e,t){e.forEach((e=>{if("characterData"===e.type&&(e.target===this.leftGuard||e.target===this.rightGuard)){const n=this.restore(e.target);n&&(t.range=n)}}))}}t.A=a},4850:function(e,t,n){"use strict";var i=n(6003),r=n(3036),s=n(5508);class a extends i.InlineBlot{static allowedChildren=[a,r.A,i.EmbedBlot,s.A];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,t){const n=a.order.indexOf(e),i=a.order.indexOf(t);return n>=0||i>=0?n-i:e===t?0:e<t?-1:1}formatAt(e,t,n,r){if(a.compare(this.statics.blotName,n)<0&&this.scroll.query(n,i.Scope.BLOT)){const i=this.isolate(e,t);r&&i.wrap(n,r)}else super.formatAt(e,t,n,r)}optimize(e){if(super.optimize(e),this.parent instanceof a&&a.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}}t.A=a},5508:function(e,t,n){"use strict";n.d(t,{A:function(){return r},X:function(){return a}});var i=n(6003);class r extends i.TextBlot{}const s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function a(e){return e.replace(/[&<>"']/g,(e=>s[e]))}},3729:function(e,t,n){"use strict";n.d(t,{default:function(){return Y}});var i=n(6142),r=n(9698),s=n(3036),a=n(580),o=n(4541),l=n(746),c=n(4850),u=n(6003),d=n(5232),h=n.n(d),f=n(5374);function p(e){return e instanceof r.Ay||e instanceof r.zo}function m(e){return"function"==typeof e.updateContent}class g extends u.ScrollBlot{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=r.Ay;static allowedChildren=[r.Ay,r.zo,a.A];constructor(e,t,n){let{emitter:i}=n;super(e,t),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",(e=>this.handleDragStart(e)))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(f.A.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(f.A.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(f.A.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[n,i]=this.line(e),[a]=this.line(e+t);if(super.deleteAt(e,t),null!=a&&n!==a&&i>0){if(n instanceof r.zo||a instanceof r.zo)return void this.optimize();const e=a.children.head instanceof s.A?null:a.children.head;n.moveChildren(a,e),n.remove()}this.optimize()}enable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,n,i){super.formatAt(e,t,n,i),this.optimize()}insertAt(e,t,n){if(e>=this.length())if(null==n||null==this.scroll.query(t,u.Scope.BLOCK)){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e),null==n&&t.endsWith("\n")?e.insertAt(0,t.slice(0,-1),n):e.insertAt(0,t,n)}else{const e=this.scroll.create(t,n);this.appendChild(e)}else super.insertAt(e,t,n);this.optimize()}insertBefore(e,t){if(e.statics.scope===u.Scope.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(e),super.insertBefore(n,t)}else super.insertBefore(e,t)}insertContents(e,t){const n=this.deltaToRenderBlocks(t.concat((new(h())).insert("\n"))),i=n.pop();if(null==i)return;this.batchStart();const s=n.shift();if(s){const t="block"===s.type&&(0===s.delta.length()||!this.descendant(r.zo,e)[0]&&e<this.length()),n="block"===s.type?s.delta:(new(h())).insert({[s.key]:s.value});v(this,e,n);const i="block"===s.type?1:0,a=e+n.length()+i;t&&this.insertAt(a-1,"\n");const o=(0,r.Ji)(this.line(e)[0]),l=d.AttributeMap.diff(o,s.attributes)||{};Object.keys(l).forEach((e=>{this.formatAt(a-1,1,e,l[e])})),e=a}let[a,o]=this.children.find(e);n.length&&(a&&(a=a.split(o),o=0),n.forEach((e=>{if("block"===e.type)v(this.createBlock(e.attributes,a||void 0),0,e.delta);else{const t=this.create(e.key,e.value);this.insertBefore(t,a||void 0),Object.keys(e.attributes).forEach((n=>{t.format(n,e.attributes[n])}))}}))),"block"===i.type&&i.delta.length()&&v(this,a?a.offset(a.scroll)+o:this.length(),i.delta),this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[n,i]=t;return n instanceof u.LeafBlot?[n,i]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(p,e)}lines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;const n=(e,t,i)=>{let r=[],s=i;return e.children.forEachAt(t,i,((e,t,i)=>{p(e)?r.push(e):e instanceof u.ContainerBlot&&(r=r.concat(n(e,t,s))),s-=i})),r};return n(this,e,t)}optimize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(f.A.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch)return void(Array.isArray(e)&&(this.batch=this.batch.concat(e)));let t=f.A.sources.USER;"string"==typeof e&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),(e=e.filter((e=>{let{target:t}=e;const n=this.find(t,!0);return n&&!m(n)}))).length>0&&this.emitter.emit(f.A.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(f.A.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,n){const[i]=this.descendant((e=>e instanceof r.zo),e);i&&i.statics.blotName===t&&m(i)&&i.updateContent(n)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let n=new(h());return e.forEach((e=>{const i=e?.insert;if(i)if("string"==typeof i){const r=i.split("\n");r.slice(0,-1).forEach((i=>{n.insert(i,e.attributes),t.push({type:"block",delta:n,attributes:e.attributes??{}}),n=new(h())}));const s=r[r.length-1];s&&n.insert(s,e.attributes)}else{const r=Object.keys(i)[0];if(!r)return;this.query(r,u.Scope.INLINE)?n.push(e):(n.length()&&t.push({type:"block",delta:n,attributes:{}}),n=new(h()),t.push({type:"blockEmbed",key:r,value:i[r],attributes:e.attributes??{}}))}})),n.length()&&t.push({type:"block",delta:n,attributes:{}}),t}createBlock(e,t){let n;const i={};Object.entries(e).forEach((e=>{let[t,r]=e;null!=this.query(t,u.Scope.BLOCK&u.Scope.BLOT)?n=t:i[t]=r}));const r=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(r,t||void 0);const s=r.length();return Object.entries(i).forEach((e=>{let[t,n]=e;r.formatAt(0,s,t,n)})),r}}function v(e,t,n){n.reduce(((t,n)=>{const i=d.Op.length(n);let s=n.attributes||{};if(null!=n.insert)if("string"==typeof n.insert){const i=n.insert;e.insertAt(t,i);const[a]=e.descendant(u.LeafBlot,t),o=(0,r.Ji)(a);s=d.AttributeMap.diff(o,s)||{}}else if("object"==typeof n.insert){const i=Object.keys(n.insert)[0];if(null==i)return t;if(e.insertAt(t,i,n.insert[i]),null!=e.scroll.query(i,u.Scope.INLINE)){const[n]=e.descendant(u.LeafBlot,t),i=(0,r.Ji)(n);s=d.AttributeMap.diff(i,s)||{}}}return Object.keys(s).forEach((n=>{e.formatAt(t,i,n,s[n])})),t+i}),t)}var y=g,b=n(5508),x=n(584),_=n(4266);class w extends _.A{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(e,t){super(e,t),this.quill.on(i.Ay.events.EDITOR_CHANGE,((e,t,n,r)=>{e===i.Ay.events.SELECTION_CHANGE?t&&r!==i.Ay.sources.SILENT&&(this.currentRange=t):e===i.Ay.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&r!==i.Ay.sources.USER?this.transform(t):this.record(t,n)),this.currentRange=M(this.currentRange,t))})),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",(e=>{"historyUndo"===e.inputType?(this.undo(),e.preventDefault()):"historyRedo"===e.inputType&&(this.redo(),e.preventDefault())}))}change(e,t){if(0===this.stack[e].length)return;const n=this.stack[e].pop();if(!n)return;const r=this.quill.getContents(),s=n.delta.invert(r);this.stack[t].push({delta:s,range:M(n.range,s)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,i.Ay.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,t){if(0===e.ops.length)return;this.stack.redo=[];let n=e.invert(t),i=this.currentRange;const r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){const e=this.stack.undo.pop();e&&(n=n.compose(e.delta),i=e.range)}else this.lastRecorded=r;0!==n.length()&&(this.stack.undo.push({delta:n,range:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){k(this.stack.undo,e),k(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,i.Ay.sources.USER);else{const t=function(e,t){const n=t.reduce(((e,t)=>e+(t.delete||0)),0);let i=t.length()-n;return function(e,t){const n=t.ops[t.ops.length-1];return null!=n&&(null!=n.insert?"string"==typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes&&Object.keys(n.attributes).some((t=>null!=e.query(t,u.Scope.BLOCK))))}(e,t)&&(i-=1),i}(this.quill.scroll,e.delta);this.quill.setSelection(t,i.Ay.sources.USER)}}}function k(e,t){let n=t;for(let t=e.length-1;t>=0;t-=1){const i=e[t];e[t]={delta:n.transform(i.delta,!0),range:i.range&&M(i.range,n)},n=i.delta.transform(n),0===e[t].delta.length()&&e.splice(t,1)}}function M(e,t){if(!e)return e;const n=t.transformPosition(e.index);return{index:n,length:t.transformPosition(e.index+e.length)-n}}var S=n(8123);class A extends _.A{constructor(e,t){super(e,t),e.root.addEventListener("drop",(t=>{t.preventDefault();let n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(t.clientX,t.clientY);else if(document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t.clientX,t.clientY);n=document.createRange(),n.setStart(e.offsetNode,e.offset),n.setEnd(e.offsetNode,e.offset)}const i=n&&e.selection.normalizeNative(n);if(i){const n=e.selection.normalizedToRange(i);t.dataTransfer?.files&&this.upload(n,t.dataTransfer.files)}}))}upload(e,t){const n=[];Array.from(t).forEach((e=>{e&&this.options.mimetypes?.includes(e.type)&&n.push(e)})),n.length>0&&this.options.handler.call(this,e,n)}}A.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const n=t.map((e=>new Promise((t=>{const n=new FileReader;n.onload=()=>{t(n.result)},n.readAsDataURL(e)}))));Promise.all(n).then((t=>{const n=t.reduce(((e,t)=>e.insert({image:t})),(new(h())).retain(e.index).delete(e.length));this.quill.updateContents(n,f.A.sources.USER),this.quill.setSelection(e.index+t.length,f.A.sources.SILENT)}))}};var L=A;const T=["insertText","insertReplacementText"];class C extends _.A{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",(e=>{this.handleBeforeInput(e)})),/Android/i.test(navigator.userAgent)||e.on(i.Ay.events.COMPOSITION_BEFORE_START,(()=>{this.handleCompositionStart()}))}deleteRange(e){(0,S.Xo)({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===e.length)return!1;if(t){const n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents((new(h())).retain(e.index).insert(t,n),i.Ay.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,i.Ay.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!T.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||!0===t.collapsed)return;const n=function(e){return"string"==typeof e.data?e.data:e.dataTransfer?.types.includes("text/plain")?e.dataTransfer.getData("text/plain"):null}(e);if(null==n)return;const i=this.quill.selection.normalizeNative(t),r=i?this.quill.selection.normalizedToRange(i):null;r&&this.replaceText(r,n)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}var D=C;const E=/Mac/i.test(navigator.platform);class O extends _.A{isListening=!1;selectionChangeDeadline=0;constructor(e,t){super(e,t),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,t){let{line:n,event:r}=t;if(!(n instanceof u.ParentBlot&&n.uiNode))return!0;const s="rtl"===getComputedStyle(n.domNode).direction;return!!(s&&"ArrowRight"!==r.key||!s&&"ArrowLeft"!==r.key)||(this.quill.setSelection(e.index-1,e.length+(r.shiftKey?1:0),i.Ay.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",(e=>{!e.defaultPrevented&&(e=>"ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key||"Home"===e.key||!(!E||"a"!==e.key||!0!==e.ctrlKey))(e)&&this.ensureListeningToSelectionChange()}))}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",(()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()}),{once:!0}))}handleSelectionChange(){const e=document.getSelection();if(!e)return;const t=e.getRangeAt(0);if(!0!==t.collapsed||0!==t.startOffset)return;const n=this.quill.scroll.find(t.startContainer);if(!(n instanceof u.ParentBlot&&n.uiNode))return;const i=document.createRange();i.setStartAfter(n.uiNode),i.setEndAfter(n.uiNode),e.removeAllRanges(),e.addRange(i)}}var P=O;i.Ay.register({"blots/block":r.Ay,"blots/block/embed":r.zo,"blots/break":s.A,"blots/container":a.A,"blots/cursor":o.A,"blots/embed":l.A,"blots/inline":c.A,"blots/scroll":y,"blots/text":b.A,"modules/clipboard":x.Ay,"modules/history":w,"modules/keyboard":S.Ay,"modules/uploader":L,"modules/input":D,"modules/uiNode":P});var Y=i.Ay},5374:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n(8920),r=n(7356);const s=(0,n(6078).A)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((e=>{document.addEventListener(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach((e=>{const n=r.A.get(e);n&&n.emitter&&n.emitter.handleDOM(...t)}))}))}));var a=class extends i{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",s.error)}emit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.log.call(s,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach((t=>{let{node:i,handler:r}=t;(e.target===i||i.contains(e.target))&&r(e,...n)}))}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}},7356:function(e,t){"use strict";t.A=new WeakMap},6078:function(e,t){"use strict";const n=["error","warn","log","info"];let i="warn";function r(e){if(i&&n.indexOf(e)<=n.indexOf(i)){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];console[e](...r)}}function s(e){return n.reduce(((t,n)=>(t[n]=r.bind(console,n,e),t)),{})}s.level=e=>{i=e},r.level=s.level,t.A=s},4266:function(e,t){"use strict";t.A=class{static DEFAULTS={};constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=e,this.options=t}}},6142:function(e,t,n){"use strict";n.d(t,{Ay:function(){return I}});var i=n(8347),r=n(6003),s=n(5232),a=n.n(s),o=n(3707),l=n(5123),c=n(9698),u=n(3036),d=n(4541),h=n(5508),f=n(8298);const p=/^[ -~]*$/;function m(e,t,n){if(0===e.length){const[e]=y(n.pop());return t<=0?`</li></${e}>`:`</li></${e}>${m([],t-1,n)}`}const[{child:i,offset:r,length:s,indent:a,type:o},...l]=e,[c,u]=y(o);if(a>t)return n.push(o),a===t+1?`<${c}><li${u}>${g(i,r,s)}${m(l,a,n)}`:`<${c}><li>${m(e,t+1,n)}`;const d=n[n.length-1];if(a===t&&o===d)return`</li><li${u}>${g(i,r,s)}${m(l,a,n)}`;const[h]=y(n.pop());return`</li></${h}>${m(e,t-1,n)}`}function g(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in e&&"function"==typeof e.html)return e.html(t,n);if(e instanceof h.A)return(0,h.X)(e.value().slice(t,t+n)).replaceAll(" ","&nbsp;");if(e instanceof r.ParentBlot){if("list-container"===e.statics.blotName){const i=[];return e.children.forEachAt(t,n,((e,t,n)=>{const r="formats"in e&&"function"==typeof e.formats?e.formats():{};i.push({child:e,offset:t,length:n,indent:r.indent||0,type:r.list})})),m(i,-1,[])}const r=[];if(e.children.forEachAt(t,n,((e,t,n)=>{r.push(g(e,t,n))})),i||"list"===e.statics.blotName)return r.join("");const{outerHTML:s,innerHTML:a}=e.domNode,[o,l]=s.split(`>${a}<`);return"<table"===o?`<table style="border: 1px solid #000;">${r.join("")}<${l}`:`${o}>${r.join("")}<${l}`}return e.domNode instanceof Element?e.domNode.outerHTML:""}function v(e,t){return Object.keys(t).reduce(((n,i)=>{if(null==e[i])return n;const r=t[i];return r===e[i]?n[i]=r:Array.isArray(r)?r.indexOf(e[i])<0?n[i]=r.concat([e[i]]):n[i]=r:n[i]=[r,e[i]],n}),{})}function y(e){const t="ordered"===e?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function b(e){return e.reduce(((e,t)=>{if("string"==typeof t.insert){const n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)}),new(a()))}function x(e,t){let{index:n,length:i}=e;return new f.Q(n+t,i)}var _=class{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=b(e),o=new(a());return function(e){const t=[];return e.forEach((e=>{"string"==typeof e.insert?e.insert.split("\n").forEach(((n,i)=>{i&&t.push({insert:"\n",attributes:e.attributes}),n&&t.push({insert:n,attributes:e.attributes})})):t.push(e)})),t}(n.ops.slice()).reduce(((e,n)=>{const a=s.Op.length(n);let l=n.attributes||{},u=!1,d=!1;if(null!=n.insert){if(o.retain(a),"string"==typeof n.insert){const a=n.insert;d=!a.endsWith("\n")&&(t<=e||!!this.scroll.descendant(c.zo,e)[0]),this.scroll.insertAt(e,a);const[o,u]=this.scroll.line(e);let h=(0,i.A)({},(0,c.Ji)(o));if(o instanceof c.Ay){const[e]=o.descendant(r.LeafBlot,u);e&&(h=(0,i.A)(h,(0,c.Ji)(e)))}l=s.AttributeMap.diff(h,l)||{}}else if("object"==typeof n.insert){const a=Object.keys(n.insert)[0];if(null==a)return e;const o=null!=this.scroll.query(a,r.Scope.INLINE);if(o)(t<=e||this.scroll.descendant(c.zo,e)[0])&&(d=!0);else if(e>0){const[t,n]=this.scroll.descendant(r.LeafBlot,e-1);t instanceof h.A?"\n"!==t.value()[n]&&(u=!0):t instanceof r.EmbedBlot&&t.statics.scope===r.Scope.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(e,a,n.insert[a]),o){const[t]=this.scroll.descendant(r.LeafBlot,e);if(t){const e=(0,i.A)({},(0,c.Ji)(t));l=s.AttributeMap.diff(e,l)||{}}}}t+=a}else if(o.push(n),null!==n.retain&&"object"==typeof n.retain){const t=Object.keys(n.retain)[0];if(null==t)return e;this.scroll.updateEmbedAt(e,t,n.retain[t])}Object.keys(l).forEach((t=>{this.scroll.formatAt(e,a,t,l[t])}));const f=u?1:0,p=d?1:0;return t+=f+p,o.retain(f),o.delete(p),e+a+f+p}),0),o.reduce(((e,t)=>"number"==typeof t.delete?(this.scroll.deleteAt(e,t.delete),e):e+s.Op.length(t)),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update((new(a())).retain(e).delete(t))}formatLine(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach((i=>{this.scroll.lines(e,Math.max(t,1)).forEach((e=>{e.format(i,n[i])}))})),this.scroll.optimize();const i=(new(a())).retain(e).retain(t,(0,o.A)(n));return this.update(i)}formatText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach((i=>{this.scroll.formatAt(e,t,i,n[i])}));const i=(new(a())).retain(e).retain(t,(0,o.A)(n));return this.update(i)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce(((e,t)=>e.concat(t.delta())),new(a()))}getFormat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===t?this.scroll.path(e).forEach((e=>{const[t]=e;t instanceof c.Ay?n.push(t):t instanceof r.LeafBlot&&i.push(t)})):(n=this.scroll.lines(e,t),i=this.scroll.descendants(r.LeafBlot,e,t));const[s,a]=[n,i].map((e=>{const t=e.shift();if(null==t)return{};let n=(0,c.Ji)(t);for(;Object.keys(n).length>0;){const t=e.shift();if(null==t)return n;n=v((0,c.Ji)(t),n)}return n}));return{...s,...a}}getHTML(e,t){const[n,i]=this.scroll.line(e);if(n){const r=n.length();return n.length()>=i+t&&(0!==i||t!==r)?g(n,i,t,!0):g(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter((e=>"string"==typeof e.insert)).map((e=>e.insert)).join("")}insertContents(e,t){const n=b(t),i=(new(a())).retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(i)}insertEmbed(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new(a())).retain(e).insert({[t]:n}))}insertText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEach((i=>{this.scroll.formatAt(e,t.length,i,n[i])})),this.update((new(a())).retain(e).insert(t,(0,o.A)(n)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if(e?.statics.blotName!==c.Ay.blotName)return!1;const t=e;return!(t.children.length>1)&&t.children.head instanceof u.A}removeFormat(e,t){const n=this.getText(e,t),[i,r]=this.scroll.line(e+t);let s=0,o=new(a());null!=i&&(s=i.length()-r,o=i.delta().slice(r,r+s-1).insert("\n"));const l=this.getContents(e,t+s).diff((new(a())).insert(n).concat(o)),c=(new(a())).retain(e).concat(l);return this.applyDelta(c)}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(p)&&this.scroll.find(t[0].target)){const r=this.scroll.find(t[0].target),s=(0,c.Ji)(r),o=r.offset(this.scroll),l=t[0].oldValue.replace(d.A.CONTENTS,""),u=(new(a())).insert(l),h=(new(a())).insert(r.value()),f=n&&{oldRange:x(n.oldRange,-o),newRange:x(n.newRange,-o)};e=(new(a())).retain(o).concat(u.diff(h,f)).reduce(((e,t)=>t.insert?e.insert(t.insert,s):e.push(t)),new(a())),this.delta=i.compose(e)}else this.delta=this.getDelta(),e&&(0,l.A)(i.compose(e),this.delta)||(e=i.diff(this.delta,n));return e}},w=n(5374),k=n(7356),M=n(6078),S=n(4266),A=n(746),L=class{isComposing=!1;constructor(e,t){this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",(e=>{this.isComposing||this.handleCompositionStart(e)})),this.scroll.domNode.addEventListener("compositionend",(e=>{this.isComposing&&queueMicrotask((()=>{this.handleCompositionEnd(e)}))}))}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;!t||t instanceof A.A||(this.emitter.emit(w.A.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(w.A.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(w.A.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(w.A.events.COMPOSITION_END,e),this.isComposing=!1}},T=n(9609);const C=e=>{const t=e.getBoundingClientRect(),n="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,i="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*n,bottom:t.top+e.clientHeight*i,left:t.left}},D=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},E=(e,t,n,i,r,s)=>e<n&&t>i?0:e<n?-(n-e+r):t>i?t-e>i-n?e+r-n:t-i+s:0,O=["block","break","cursor","inline","scroll","text"],P=(0,M.A)("quill"),Y=new r.Registry;r.ParentBlot.uiClass="ql-ui";class I{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Y,theme:"default"};static events=w.A.events;static sources=w.A.sources;static version="2.0.3";static imports={delta:a(),parchment:r,"core/module":S.A,"core/theme":T.A};static debug(e){!0===e&&(e="log"),M.A.level(e)}static find(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return k.A.get(e)||Y.find(e,t)}static import(e){return null==this.imports[e]&&P.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const e=arguments.length<=0?void 0:arguments[0],t=!!(arguments.length<=1?void 0:arguments[1]),n="attrName"in e?e.attrName:e.blotName;"string"==typeof n?this.register(`formats/${n}`,e,t):Object.keys(e).forEach((n=>{this.register(n,e[n],t)}))}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[e]||n||P.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&"boolean"!=typeof t&&"abstract"!==t.blotName&&Y.register(t),"function"==typeof t.register&&t.register(Y)}}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=function(e,t){const n=N(e);if(!n)throw new Error("Invalid Quill container");const s=t.theme&&t.theme!==I.DEFAULTS.theme?I.import(`themes/${t.theme}`):T.A;if(!s)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:a,...o}=I.DEFAULTS,{modules:l,...c}=s.DEFAULTS;let u=H(t.modules);null!=u&&u.toolbar&&u.toolbar.constructor!==Object&&(u={...u,toolbar:{container:u.toolbar}});const d=(0,i.A)({},H(a),H(l),u),h={...o,...j(c),...j(t)};let f=t.registry;return f?t.formats&&P.warn('Ignoring "formats" option because "registry" is specified'):f=t.formats?((e,t,n)=>{const i=new r.Registry;return O.forEach((e=>{const n=t.query(e);n&&i.register(n)})),e.forEach((e=>{let r=t.query(e);r||n.error(`Cannot register "${e}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;r;)if(i.register(r),r="blotName"in r?r.requiredContainer??null:null,s+=1,s>100){n.error(`Cycle detected in registering blot requiredContainer: "${e}"`);break}})),i})(t.formats,h.registry,P):h.registry,{...h,registry:f,container:n,theme:s,modules:Object.entries(d).reduce(((e,t)=>{let[n,r]=t;if(!r)return e;const s=I.import(`modules/${n}`);return null==s?(P.error(`Cannot load ${n} module. Are you sure you registered it?`),e):{...e,[n]:(0,i.A)({},s.DEFAULTS||{},r)}}),{}),bounds:N(h.bounds)}}(e,t),this.container=this.options.container,null==this.container)return void P.error("Invalid Quill container",e);this.options.debug&&I.debug(this.options.debug);const n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",k.A.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new w.A;const s=r.ScrollBlot.blotName,o=this.options.registry.query(s);if(!o||!("blotName"in o))throw new Error(`Cannot initialize Quill without "${s}" blot`);if(this.scroll=new o(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new _(this.scroll),this.selection=new f.A(this.scroll,this.emitter),this.composition=new L(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(w.A.events.EDITOR_CHANGE,(e=>{e===w.A.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())})),this.emitter.on(w.A.events.SCROLL_UPDATE,((e,t)=>{const n=this.selection.lastRange,[i]=this.selection.getRange(),r=n&&i?{oldRange:n,newRange:i}:void 0;F.call(this,(()=>this.editor.update(null,t,r)),e)})),this.emitter.on(w.A.events.SCROLL_EMBED_UPDATE,((e,t)=>{const n=this.selection.lastRange,[i]=this.selection.getRange(),r=n&&i?{oldRange:n,newRange:i}:void 0;F.call(this,(()=>{const n=(new(a())).retain(e.offset(this)).retain({[e.statics.blotName]:t});return this.editor.update(n,[],r)}),I.sources.USER)})),n){const e=this.clipboard.convert({html:`${n}<p><br></p>`,text:"\n"});this.setContents(e)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){const t=e;(e=document.createElement("div")).classList.add(t)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=R(e,t,n),F.call(this,(()=>this.editor.deleteText(e,t)),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.A.sources.API;return F.call(this,(()=>{const n=this.getSelection(!0);let i=new(a());if(null==n)return i;if(this.scroll.query(e,r.Scope.BLOCK))i=this.editor.formatLine(n.index,n.length,{[e]:t});else{if(0===n.length)return this.selection.format(e,t),i;i=this.editor.formatText(n.index,n.length,{[e]:t})}return this.setSelection(n,w.A.sources.SILENT),i}),n)}formatLine(e,t,n,i,r){let s;return[e,t,s,r]=R(e,t,n,i,r),F.call(this,(()=>this.editor.formatLine(e,t,s)),r,e,0)}formatText(e,t,n,i,r){let s;return[e,t,s,r]=R(e,t,n,i,r),F.call(this,(()=>this.editor.formatText(e,t,s)),r,e,0)}getBounds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=null;if(n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length),!n)return null;const i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}getContents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;return[e,t]=R(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=R(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=R(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I.sources.API;return F.call(this,(()=>this.editor.insertEmbed(e,t,n)),i,e)}insertText(e,t,n,i,r){let s;return[e,,s,r]=R(e,0,n,i,r),F.call(this,(()=>this.editor.insertText(e,t,s)),r,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=R(e,t,n),F.call(this,(()=>this.editor.removeFormat(e,t)),n,e)}scrollRectIntoView(e){((e,t)=>{const n=e.ownerDocument;let i=t,r=e;for(;r;){const e=r===n.body,t=e?{top:0,right:window.visualViewport?.width??n.documentElement.clientWidth,bottom:window.visualViewport?.height??n.documentElement.clientHeight,left:0}:C(r),a=getComputedStyle(r),o=E(i.left,i.right,t.left,t.right,D(a.scrollPaddingLeft),D(a.scrollPaddingRight)),l=E(i.top,i.bottom,t.top,t.bottom,D(a.scrollPaddingTop),D(a.scrollPaddingBottom));if(o||l)if(e)n.defaultView?.scrollBy(o,l);else{const{scrollLeft:e,scrollTop:t}=r;l&&(r.scrollTop+=l),o&&(r.scrollLeft+=o);const n=r.scrollLeft-e,s=r.scrollTop-t;i={left:i.left-n,top:i.top-s,right:i.right-n,bottom:i.bottom-s}}r=e||"fixed"===a.position?null:(s=r).parentElement||s.getRootNode().host||null}var s})(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.A.sources.API;return F.call(this,(()=>{e=new(a())(e);const t=this.getLength(),n=this.editor.deleteText(0,t),i=this.editor.insertContents(0,e),r=this.editor.deleteText(this.getLength()-1,1);return n.compose(i).compose(r)}),t)}setSelection(e,t,n){null==e?this.selection.setRange(null,t||I.sources.API):([e,t,,n]=R(e,t,n),this.selection.setRange(new f.Q(Math.max(0,e),t),n),n!==w.A.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.A.sources.API;const n=(new(a())).insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.A.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.A.sources.API;return F.call(this,(()=>(e=new(a())(e),this.editor.applyDelta(e))),t,!0)}}function N(e){return"string"==typeof e?document.querySelector(e):e}function H(e){return Object.entries(e??{}).reduce(((e,t)=>{let[n,i]=t;return{...e,[n]:!0===i?{}:i}}),{})}function j(e){return Object.fromEntries(Object.entries(e).filter((e=>void 0!==e[1])))}function F(e,t,n,i){if(!this.isEnabled()&&t===w.A.sources.USER&&!this.allowReadOnlyEdits)return new(a());let r=null==n?null:this.getSelection();const s=this.editor.delta,o=e();if(null!=r&&(!0===n&&(n=r.index),null==i?r=z(r,o,t):0!==i&&(r=z(r,n,i,t)),this.setSelection(r,w.A.sources.SILENT)),o.length()>0){const e=[w.A.events.TEXT_CHANGE,o,s,t];this.emitter.emit(w.A.events.EDITOR_CHANGE,...e),t!==w.A.sources.SILENT&&this.emitter.emit(...e)}return o}function R(e,t,n,i,r){let s={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(r=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(r=i,i=n,n=t,t=0),"object"==typeof n?(s=n,r=i):"string"==typeof n&&(null!=i?s[n]=i:r=n),[e,t,s,r=r||w.A.sources.API]}function z(e,t,n,i){const r="number"==typeof n?n:0;if(null==e)return null;let s,a;return t&&"function"==typeof t.transformPosition?[s,a]=[e.index,e.index+e.length].map((e=>t.transformPosition(e,i!==w.A.sources.USER))):[s,a]=[e.index,e.index+e.length].map((e=>e<t||e===t&&i===w.A.sources.USER?e:r>=0?e+r:Math.max(t,e+r))),new f.Q(s,a-s)}},8298:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});var i=n(6003),r=n(5123),s=n(3707),a=n(5374);const o=(0,n(6078).A)("quill:selection");class l{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=e,this.length=t}}function c(e,t){try{t.parentNode}catch(e){return!1}return e.contains(t)}t.A=class{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new l(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,a.A.sources.USER),1)})),this.emitter.on(a.A.events.SCROLL_BEFORE_UPDATE,(()=>{if(!this.hasFocus())return;const e=this.getNativeRange();null!=e&&e.start.node!==this.cursor.textNode&&this.emitter.once(a.A.events.SCROLL_UPDATE,((t,n)=>{try{this.root.contains(e.start.node)&&this.root.contains(e.end.node)&&this.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset);const i=n.some((e=>"characterData"===e.type||"childList"===e.type||"attributes"===e.type&&e.target===this.root));this.update(i?a.A.sources.SILENT:t)}catch(e){}}))})),this.emitter.on(a.A.events.SCROLL_OPTIMIZE,((e,t)=>{if(t.range){const{startNode:e,startOffset:n,endNode:i,endOffset:r}=t.range;this.setNativeRange(e,n,i,r),this.update(a.A.sources.SILENT)}})),this.update(a.A.sources.SILENT)}handleComposition(){this.emitter.on(a.A.events.COMPOSITION_BEFORE_START,(()=>{this.composing=!0})),this.emitter.on(a.A.events.COMPOSITION_END,(()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout((()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}handleDragging(){this.emitter.listenDOM("mousedown",document.body,(()=>{this.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(()=>{this.mouseDown=!1,this.update(a.A.sources.USER)}))}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!this.scroll.query(e,i.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){const e=this.scroll.find(n.start.node,!1);if(null==e)return;if(e instanceof i.LeafBlot){const t=e.split(n.start.offset);e.parent.insertBefore(this.cursor,t)}else e.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.scroll.length();let i;e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;let[r,s]=this.scroll.leaf(e);if(null==r)return null;if(t>0&&s===r.length()){const[t]=this.scroll.leaf(e+1);if(t){const[n]=this.scroll.line(e),[i]=this.scroll.line(e+1);n===i&&(r=t,s=0)}}[i,s]=r.position(s,!0);const a=document.createRange();if(t>0)return a.setStart(i,s),[r,s]=this.scroll.leaf(e+t),null==r?null:([i,s]=r.position(s,!0),a.setEnd(i,s),a.getBoundingClientRect());let o,l="left";if(i instanceof Text){if(!i.data.length)return null;s<i.data.length?(a.setStart(i,s),a.setEnd(i,s+1)):(a.setStart(i,s-1),a.setEnd(i,s),l="right"),o=a.getBoundingClientRect()}else{if(!(r.domNode instanceof Element))return null;o=r.domNode.getBoundingClientRect(),s>0&&(l="right")}return{bottom:o.top+o.height,height:o.height,left:o[l],right:o[l],top:o.top,width:0}}getNativeRange(){const e=document.getSelection();if(null==e||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(null==t)return null;const n=this.normalizeNative(t);return o.info("getNativeRange",n),n}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&c(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const n=t.map((e=>{const[t,n]=e,r=this.scroll.find(t,!0),s=r.offset(this.scroll);return 0===n?s:r instanceof i.LeafBlot?s+r.index(t,n):s+r.length()})),r=Math.min(Math.max(...n),this.scroll.length()-1),s=Math.min(r,...n);return new l(s,r-s)}normalizeNative(e){if(!c(this.root,e.startContainer)||!e.collapsed&&!c(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((e=>{let{node:t,offset:n}=e;for(;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length>0?t.childNodes.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}rangeToNative(e){const t=this.scroll.length(),n=(e,n)=>{e=Math.min(t-1,e);const[i,r]=this.scroll.leaf(e);return i?i.position(r,n):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o.info("setNativeRange",e,t,n,i),null!=e&&(null==this.root.parentNode||null==e.parentNode||null==n.parentNode))return;const s=document.getSelection();if(null!=s)if(null!=e){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(null==a||r||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||i!==a.endOffset){e instanceof Element&&"BR"===e.tagName&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&"BR"===n.tagName&&(i=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const r=document.createRange();r.setStart(e,t),r.setEnd(n,i),s.removeAllRanges(),s.addRange(r)}}else s.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.A.sources.API;if("string"==typeof t&&(n=t,t=!1),o.info("setRange",e),null!=e){const n=this.rangeToNative(e);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A.sources.USER;const t=this.lastRange,[n,i]=this.getRange();if(this.lastRange=n,this.lastNative=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,r.A)(t,this.lastRange)){if(!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const e=this.cursor.restore();e&&this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}const n=[a.A.events.SELECTION_CHANGE,(0,s.A)(this.lastRange),(0,s.A)(t),e];this.emitter.emit(a.A.events.EDITOR_CHANGE,...n),e!==a.A.sources.SILENT&&this.emitter.emit(...n)}}}},9609:function(e,t){"use strict";class n{static DEFAULTS={modules:{}};static themes={default:n};modules={};constructor(e,t){this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach((e=>{null==this.modules[e]&&this.addModule(e)}))}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}t.A=n},8276:function(e,t,n){"use strict";n.d(t,{Hu:function(){return o},gS:function(){return s},qh:function(){return a}});var i=n(6003);const r={scope:i.Scope.BLOCK,whitelist:["right","center","justify"]},s=new i.Attributor("align","align",r),a=new i.ClassAttributor("align","ql-align",r),o=new i.StyleAttributor("align","text-align",r)},9541:function(e,t,n){"use strict";n.d(t,{l:function(){return s},s:function(){return a}});var i=n(6003),r=n(8638);const s=new i.ClassAttributor("background","ql-bg",{scope:i.Scope.INLINE}),a=new r.a2("background","background-color",{scope:i.Scope.INLINE})},9404:function(e,t,n){"use strict";n.d(t,{Ay:function(){return d},Cy:function(){return h},EJ:function(){return u}});var i=n(9698),r=n(3036),s=n(4541),a=n(4850),o=n(5508),l=n(580),c=n(6142);class u extends l.A{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map((e=>e.length()<=1?"":e.domNode.innerText)).join("\n").slice(e,e+t)}html(e,t){return`<pre>\n${(0,o.X)(this.code(e,t))}\n</pre>`}}class d extends i.Ay{static TAB="  ";static register(){c.Ay.register(u)}}class h extends a.A{}h.blotName="code",h.tagName="CODE",d.blotName="code-block",d.className="ql-code-block",d.tagName="DIV",u.blotName="code-block-container",u.className="ql-code-block-container",u.tagName="DIV",u.allowedChildren=[d],d.allowedChildren=[o.A,r.A,s.A],d.requiredContainer=u},8638:function(e,t,n){"use strict";n.d(t,{JM:function(){return a},a2:function(){return r},g3:function(){return s}});var i=n(6003);class r extends i.StyleAttributor{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map((e=>`00${parseInt(e,10).toString(16)}`.slice(-2))).join("")}`):t}}const s=new i.ClassAttributor("color","ql-color",{scope:i.Scope.INLINE}),a=new r("color","color",{scope:i.Scope.INLINE})},7912:function(e,t,n){"use strict";n.d(t,{Mc:function(){return s},VL:function(){return o},sY:function(){return a}});var i=n(6003);const r={scope:i.Scope.BLOCK,whitelist:["rtl"]},s=new i.Attributor("direction","dir",r),a=new i.ClassAttributor("direction","ql-direction",r),o=new i.StyleAttributor("direction","direction",r)},6772:function(e,t,n){"use strict";n.d(t,{q:function(){return s},z:function(){return o}});var i=n(6003);const r={scope:i.Scope.INLINE,whitelist:["serif","monospace"]},s=new i.ClassAttributor("font","ql-font",r);class a extends i.StyleAttributor{value(e){return super.value(e).replace(/["']/g,"")}}const o=new a("font","font-family",r)},664:function(e,t,n){"use strict";n.d(t,{U:function(){return r},r:function(){return s}});var i=n(6003);const r=new i.ClassAttributor("size","ql-size",{scope:i.Scope.INLINE,whitelist:["small","large","huge"]}),s=new i.StyleAttributor("size","font-size",{scope:i.Scope.INLINE,whitelist:["10px","18px","32px"]})},584:function(e,t,n){"use strict";n.d(t,{Ay:function(){return C},hV:function(){return I}});var i=n(6003),r=n(5232),s=n.n(r),a=n(9698),o=n(6078),l=n(4266),c=n(6142),u=n(8276),d=n(9541),h=n(9404),f=n(8638),p=n(7912),m=n(6772),g=n(664),v=n(8123);const y=/font-weight:\s*normal/,b=["P","OL","UL"],x=e=>e&&b.includes(e.tagName),_=/\bmso-list:[^;]*ignore/i,w=/\bmso-list:[^;]*\bl(\d+)/i,k=/\bmso-list:[^;]*\blevel(\d+)/i,M=[function(e){"urn:schemas-microsoft-com:office:word"===e.documentElement.getAttribute("xmlns:w")&&(e=>{const t=Array.from(e.querySelectorAll("[style*=mso-list]")),n=[],i=[];t.forEach((e=>{(e.getAttribute("style")||"").match(_)?n.push(e):i.push(e)})),n.forEach((e=>e.parentNode?.removeChild(e)));const r=e.documentElement.innerHTML,s=i.map((e=>((e,t)=>{const n=e.getAttribute("style"),i=n?.match(w);if(!i)return null;const r=Number(i[1]),s=n?.match(k),a=s?Number(s[1]):1,o=new RegExp(`@list l${r}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=t.match(o);return{id:r,indent:a,type:l&&"bullet"===l[1]?"bullet":"ordered",element:e}})(e,r))).filter((e=>e));for(;s.length;){const e=[];let t=s.shift();for(;t;)e.push(t),t=s.length&&s[0]?.element===t.element.nextElementSibling&&s[0].id===t.id?s.shift():null;const n=document.createElement("ul");e.forEach((e=>{const t=document.createElement("li");t.setAttribute("data-list",e.type),e.indent>1&&t.setAttribute("class","ql-indent-"+(e.indent-1)),t.innerHTML=e.element.innerHTML,n.appendChild(t)}));const i=e[0]?.element,{parentNode:r}=i??{};i&&r?.replaceChild(n,i),e.slice(1).forEach((e=>{let{element:t}=e;r?.removeChild(t)}))}})(e)},function(e){e.querySelector('[id^="docs-internal-guid-"]')&&((e=>{Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter((e=>e.getAttribute("style")?.match(y))).forEach((t=>{const n=e.createDocumentFragment();n.append(...t.childNodes),t.parentNode?.replaceChild(n,t)}))})(e),(e=>{Array.from(e.querySelectorAll("br")).filter((e=>x(e.previousElementSibling)&&x(e.nextElementSibling))).forEach((e=>{e.parentNode?.removeChild(e)}))})(e))}],S=(0,o.A)("quill:clipboard"),A=[[Node.TEXT_NODE,function(e,t,n){let i=e.data;if("O:P"===e.parentElement?.tagName)return t.insert(i.trim());if(!Y(e)){if(0===i.trim().length&&i.includes("\n")&&!function(e,t){return e.previousElementSibling&&e.nextElementSibling&&!O(e.previousElementSibling,t)&&!O(e.nextElementSibling,t)}(e,n))return t;i=i.replace(/[^\S\u00a0]/g," "),i=i.replace(/ {2,}/g," "),(null==e.previousSibling&&null!=e.parentElement&&O(e.parentElement,n)||e.previousSibling instanceof Element&&O(e.previousSibling,n))&&(i=i.replace(/^ /,"")),(null==e.nextSibling&&null!=e.parentElement&&O(e.parentElement,n)||e.nextSibling instanceof Element&&O(e.nextSibling,n))&&(i=i.replace(/ $/,"")),i=i.replaceAll(" "," ")}return t.insert(i)}],[Node.TEXT_NODE,H],["br",function(e,t){return E(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,function(e,t,n){const r=n.query(e);if(null==r)return t;if(r.prototype instanceof i.EmbedBlot){const t={},i=r.value(e);if(null!=i)return t[r.blotName]=i,(new(s())).insert(t,r.formats(e,n))}else if(r.prototype instanceof i.BlockBlot&&!E(t,"\n")&&t.insert("\n"),"blotName"in r&&"formats"in r&&"function"==typeof r.formats)return D(t,r.blotName,r.formats(e,n),n);return t}],[Node.ELEMENT_NODE,function(e,t,n){const r=i.Attributor.keys(e),s=i.ClassAttributor.keys(e),a=i.StyleAttributor.keys(e),o={};return r.concat(s).concat(a).forEach((t=>{let r=n.query(t,i.Scope.ATTRIBUTE);null!=r&&(o[r.attrName]=r.value(e),o[r.attrName])||(r=L[t],null==r||r.attrName!==t&&r.keyName!==t||(o[r.attrName]=r.value(e)||void 0),r=T[t],null==r||r.attrName!==t&&r.keyName!==t||(r=T[t],o[r.attrName]=r.value(e)||void 0))})),Object.entries(o).reduce(((e,t)=>{let[i,r]=t;return D(e,i,r,n)}),t)}],[Node.ELEMENT_NODE,function(e,t,n){const i={},r=e.style||{};return"italic"===r.fontStyle&&(i.italic=!0),"underline"===r.textDecoration&&(i.underline=!0),"line-through"===r.textDecoration&&(i.strike=!0),(r.fontWeight?.startsWith("bold")||parseInt(r.fontWeight,10)>=700)&&(i.bold=!0),t=Object.entries(i).reduce(((e,t)=>{let[i,r]=t;return D(e,i,r,n)}),t),parseFloat(r.textIndent||0)>0?(new(s())).insert("\t").concat(t):t}],["li",function(e,t,n){const i=n.query(e);if(null==i||"list"!==i.blotName||!E(t,"\n"))return t;let r=-1,a=e.parentNode;for(;null!=a;)["OL","UL"].includes(a.tagName)&&(r+=1),a=a.parentNode;return r<=0?t:t.reduce(((e,t)=>t.insert?t.attributes&&"number"==typeof t.attributes.indent?e.push(t):e.insert(t.insert,{indent:r,...t.attributes||{}}):e),new(s()))}],["ol, ul",function(e,t,n){const i=e;let r="OL"===i.tagName?"ordered":"bullet";const s=i.getAttribute("data-checked");return s&&(r="true"===s?"checked":"unchecked"),D(t,"list",r,n)}],["pre",function(e,t,n){const i=n.query("code-block");return D(t,"code-block",!i||!("formats"in i)||"function"!=typeof i.formats||i.formats(e,n),n)}],["tr",function(e,t,n){const i="TABLE"===e.parentElement?.tagName?e.parentElement:e.parentElement?.parentElement;return null!=i?D(t,"table",Array.from(i.querySelectorAll("tr")).indexOf(e)+1,n):t}],["b",N("bold")],["i",N("italic")],["strike",N("strike")],["style",function(){return new(s())}]],L=[u.gS,p.Mc].reduce(((e,t)=>(e[t.keyName]=t,e)),{}),T=[u.Hu,d.s,f.JM,p.VL,m.z,g.r].reduce(((e,t)=>(e[t.keyName]=t,e)),{});class C extends l.A{static DEFAULTS={matchers:[]};constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",(e=>this.onCaptureCopy(e,!1))),this.quill.root.addEventListener("cut",(e=>this.onCaptureCopy(e,!0))),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],A.concat(this.options.matchers??[]).forEach((e=>{let[t,n]=e;this.addMatcher(t,n)}))}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:n}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i[h.Ay.blotName])return(new(s())).insert(n||"",{[h.Ay.blotName]:i[h.Ay.blotName]});if(!t)return(new(s())).insert(n||"",i);const r=this.convertHTML(t);return E(r,"\n")&&(null==r.ops[r.ops.length-1].attributes||i.table)?r.compose((new(s())).retain(r.length()-1).delete(1)):r}normalizeHTML(e){(e=>{e.documentElement&&M.forEach((t=>{t(e)}))})(e)}convertHTML(e){const t=(new DOMParser).parseFromString(e,"text/html");this.normalizeHTML(t);const n=t.body,i=new WeakMap,[r,s]=this.prepareMatching(n,i);return I(this.quill.scroll,n,r,s,i)}dangerouslyPasteHTML(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.Ay.sources.API;if("string"==typeof e){const n=this.convert({html:e,text:""});this.quill.setContents(n,t),this.quill.setSelection(0,c.Ay.sources.SILENT)}else{const i=this.convert({html:t,text:""});this.quill.updateContents((new(s())).retain(e).concat(i),n),this.quill.setSelection(e+i.length(),c.Ay.sources.SILENT)}}onCaptureCopy(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.defaultPrevented)return;e.preventDefault();const[n]=this.quill.selection.getRange();if(null==n)return;const{html:i,text:r}=this.onCopy(n,t);e.clipboardData?.setData("text/plain",r),e.clipboardData?.setData("text/html",i),t&&(0,v.Xo)({range:n,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter((e=>"#"!==e[0])).join("\n")}onCapturePaste(e){if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(null==t)return;const n=e.clipboardData?.getData("text/html");let i=e.clipboardData?.getData("text/plain");if(!n&&!i){const t=e.clipboardData?.getData("text/uri-list");t&&(i=this.normalizeURIList(t))}const r=Array.from(e.clipboardData?.files||[]);if(!n&&r.length>0)this.quill.uploader.upload(t,r);else{if(n&&r.length>0){const e=(new DOMParser).parseFromString(n,"text/html");if(1===e.body.childElementCount&&"IMG"===e.body.firstElementChild?.tagName)return void this.quill.uploader.upload(t,r)}this.onPaste(t,{html:n,text:i})}}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:n,html:i}=t;const r=this.quill.getFormat(e.index),a=this.convert({text:n,html:i},r);S.log("onPaste",a,{text:n,html:i});const o=(new(s())).retain(e.index).delete(e.length).concat(a);this.quill.updateContents(o,c.Ay.sources.USER),this.quill.setSelection(o.length()-e.length,c.Ay.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const n=[],i=[];return this.matchers.forEach((r=>{const[s,a]=r;switch(s){case Node.TEXT_NODE:i.push(a);break;case Node.ELEMENT_NODE:n.push(a);break;default:Array.from(e.querySelectorAll(s)).forEach((e=>{if(t.has(e)){const n=t.get(e);n?.push(a)}else t.set(e,[a])}))}})),[n,i]}}function D(e,t,n,i){return i.query(t)?e.reduce(((e,i)=>{if(!i.insert)return e;if(i.attributes&&i.attributes[t])return e.push(i);const r=n?{[t]:n}:{};return e.insert(i.insert,{...r,...i.attributes})}),new(s())):e}function E(e,t){let n="";for(let i=e.ops.length-1;i>=0&&n.length<t.length;--i){const t=e.ops[i];if("string"!=typeof t.insert)break;n=t.insert+n}return n.slice(-1*t.length)===t}function O(e,t){if(!(e instanceof Element))return!1;const n=t.query(e);return!(n&&n.prototype instanceof i.EmbedBlot)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}const P=new WeakMap;function Y(e){return null!=e&&(P.has(e)||("PRE"===e.tagName?P.set(e,!0):P.set(e,Y(e.parentNode))),P.get(e))}function I(e,t,n,i,r){return t.nodeType===t.TEXT_NODE?i.reduce(((n,i)=>i(t,n,e)),new(s())):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce(((s,a)=>{let o=I(e,a,n,i,r);return a.nodeType===t.ELEMENT_NODE&&(o=n.reduce(((t,n)=>n(a,t,e)),o),o=(r.get(a)||[]).reduce(((t,n)=>n(a,t,e)),o)),s.concat(o)}),new(s())):new(s())}function N(e){return(t,n,i)=>D(n,e,!0,i)}function H(e,t,n){if(!E(t,"\n")){if(O(e,n)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert("\n");if(t.length()>0&&e.nextSibling){let i=e.nextSibling;for(;null!=i;){if(O(i,n))return t.insert("\n");const e=n.query(i);if(e&&e.prototype instanceof a.zo)return t.insert("\n");i=i.firstChild}}}return t}},8123:function(e,t,n){"use strict";n.d(t,{Ay:function(){return f},Xo:function(){return b}});var i=n(5123),r=n(3707),s=n(5232),a=n.n(s),o=n(6003),l=n(6142),c=n(6078),u=n(4266);const d=(0,c.A)("quill:keyboard"),h=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class f extends u.A{static match(e,t){return!["altKey","ctrlKey","metaKey","shiftKey"].some((n=>!!t[n]!==e[n]&&null!==t[n]))&&(t.key===e.key||t.key===e.which)}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach((e=>{this.options.bindings[e]&&this.addBinding(this.options.bindings[e])})),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},(()=>{})),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=function(e){if("string"==typeof e||"number"==typeof e)e={key:e};else{if("object"!=typeof e)return null;e=(0,r.A)(e)}return e.shortKey&&(e[h]=e.shortKey,delete e.shortKey),e}(e);null!=i?("function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),(Array.isArray(i.key)?i.key:[i.key]).forEach((e=>{const r={...i,key:e,...t,...n};this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}))):d.warn("Attempted to add invalid keyboard binding",i)}listen(){this.quill.root.addEventListener("keydown",(e=>{if(e.defaultPrevented||e.isComposing)return;if(229===e.keyCode&&("Enter"===e.key||"Backspace"===e.key))return;const t=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter((t=>f.match(e,t)));if(0===t.length)return;const n=l.Ay.find(e.target,!0);if(n&&n.scroll!==this.quill.scroll)return;const r=this.quill.getSelection();if(null==r||!this.quill.hasFocus())return;const[s,a]=this.quill.getLine(r.index),[c,u]=this.quill.getLeaf(r.index),[d,h]=0===r.length?[c,u]:this.quill.getLeaf(r.index+r.length),p=c instanceof o.TextBlot?c.value().slice(0,u):"",m=d instanceof o.TextBlot?d.value().slice(h):"",g={collapsed:0===r.length,empty:0===r.length&&s.length()<=1,format:this.quill.getFormat(r),line:s,offset:a,prefix:p,suffix:m,event:e};t.some((e=>{if(null!=e.collapsed&&e.collapsed!==g.collapsed)return!1;if(null!=e.empty&&e.empty!==g.empty)return!1;if(null!=e.offset&&e.offset!==g.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((e=>null==g.format[e])))return!1}else if("object"==typeof e.format&&!Object.keys(e.format).every((t=>!0===e.format[t]?null!=g.format[t]:!1===e.format[t]?null==g.format[t]:(0,i.A)(e.format[t],g.format[t]))))return!1;return!(null!=e.prefix&&!e.prefix.test(g.prefix)||null!=e.suffix&&!e.suffix.test(g.suffix)||!0===e.handler.call(this,r,g,e))}))&&e.preventDefault()}))}handleBackspace(e,t){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(0===e.index||this.quill.getLength()<=1)return;let i={};const[r]=this.quill.getLine(e.index);let o=(new(a())).retain(e.index-n).delete(n);if(0===t.offset){const[t]=this.quill.getLine(e.index-1);if(t&&!("block"===t.statics.blotName&&t.length()<=1)){const t=r.formats(),n=this.quill.getFormat(e.index-1,1);if(i=s.AttributeMap.diff(t,n)||{},Object.keys(i).length>0){const t=(new(a())).retain(e.index+r.length()-2).retain(1,i);o=o.compose(t)}}}this.quill.updateContents(o,l.Ay.sources.USER),this.quill.focus()}handleDelete(e,t){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-n)return;let i={};const[r]=this.quill.getLine(e.index);let o=(new(a())).retain(e.index).delete(n);if(t.offset>=r.length()-1){const[t]=this.quill.getLine(e.index+1);if(t){const n=r.formats(),a=this.quill.getFormat(e.index,1);i=s.AttributeMap.diff(n,a)||{},Object.keys(i).length>0&&(o=o.retain(t.length()-1).retain(1,i))}}this.quill.updateContents(o,l.Ay.sources.USER),this.quill.focus()}handleDeleteRange(e){b({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const n=Object.keys(t.format).reduce(((e,n)=>(this.quill.scroll.query(n,o.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e)),{}),i=(new(a())).retain(e.index).delete(e.length).insert("\n",n);this.quill.updateContents(i,l.Ay.sources.USER),this.quill.setSelection(e.index+1,l.Ay.sources.SILENT),this.quill.focus()}}const p={bindings:{bold:v("bold"),italic:v("italic"),underline:v("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","+1",l.Ay.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","-1",l.Ay.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(e,t){null!=t.format.indent?this.quill.format("indent","-1",l.Ay.sources.USER):null!=t.format.list&&this.quill.format("list",!1,l.Ay.sources.USER)}},"indent code-block":m(!0),"outdent code-block":m(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(e){this.quill.deleteText(e.index-1,1,l.Ay.sources.USER)}},tab:{key:"Tab",handler(e,t){if(t.format.table)return!0;this.quill.history.cutoff();const n=(new(a())).retain(e.index).delete(e.length).insert("\t");return this.quill.updateContents(n,l.Ay.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,l.Ay.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,l.Ay.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(e,t){const n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,l.Ay.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(e){const[t,n]=this.quill.getLine(e.index),i={...t.formats(),list:"checked"},r=(new(a())).retain(e.index).insert("\n",i).retain(t.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(r,l.Ay.sources.USER),this.quill.setSelection(e.index+1,l.Ay.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(e,t){const[n,i]=this.quill.getLine(e.index),r=(new(a())).retain(e.index).insert("\n",t.format).retain(n.length()-i-1).retain(1,{header:null});this.quill.updateContents(r,l.Ay.sources.USER),this.quill.setSelection(e.index+1,l.Ay.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(e){const t=this.quill.getModule("table");if(t){const[n,i,r,s]=t.getTable(e),o=function(e,t,n,i){return null==t.prev&&null==t.next?null==n.prev&&null==n.next?0===i?-1:1:null==n.prev?-1:1:null==t.prev?-1:null==t.next?1:null}(0,i,r,s);if(null==o)return;let c=n.offset();if(o<0){const t=(new(a())).retain(c).insert("\n");this.quill.updateContents(t,l.Ay.sources.USER),this.quill.setSelection(e.index+1,e.length,l.Ay.sources.SILENT)}else if(o>0){c+=n.length();const e=(new(a())).retain(c).insert("\n");this.quill.updateContents(e,l.Ay.sources.USER),this.quill.setSelection(c,l.Ay.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(e,t){const{event:n,line:i}=t,r=i.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(r-1,l.Ay.sources.USER):this.quill.setSelection(r+i.length(),l.Ay.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(e,t){if(null==this.quill.scroll.query("list"))return!0;const{length:n}=t.prefix,[i,r]=this.quill.getLine(e.index);if(r>n)return!0;let s;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",l.Ay.sources.USER),this.quill.history.cutoff();const o=(new(a())).retain(e.index-r).delete(n+1).retain(i.length()-2-r).retain(1,{list:s});return this.quill.updateContents(o,l.Ay.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,l.Ay.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(e){const[t,n]=this.quill.getLine(e.index);let i=2,r=t;for(;null!=r&&r.length()<=1&&r.formats()["code-block"];)if(r=r.prev,i-=1,i<=0){const i=(new(a())).retain(e.index+t.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(i,l.Ay.sources.USER),this.quill.setSelection(e.index-1,l.Ay.sources.SILENT),!1}return!0}},"embed left":g("ArrowLeft",!1),"embed left shift":g("ArrowLeft",!0),"embed right":g("ArrowRight",!1),"embed right shift":g("ArrowRight",!0),"table down":y(!1),"table up":y(!0)}};function m(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler(t,n){let{event:i}=n;const r=this.quill.scroll.query("code-block"),{TAB:s}=r;if(0===t.length&&!i.shiftKey)return this.quill.insertText(t.index,s,l.Ay.sources.USER),void this.quill.setSelection(t.index+s.length,l.Ay.sources.SILENT);const a=0===t.length?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:o,length:c}=t;a.forEach(((t,n)=>{e?(t.insertAt(0,s),0===n?o+=s.length:c+=s.length):t.domNode.textContent.startsWith(s)&&(t.deleteAt(0,s.length),0===n?o-=s.length:c-=s.length)})),this.quill.update(l.Ay.sources.USER),this.quill.setSelection(o,c,l.Ay.sources.SILENT)}}}function g(e,t){return{key:e,shiftKey:t,altKey:null,["ArrowLeft"===e?"prefix":"suffix"]:/^$/,handler(n){let{index:i}=n;"ArrowRight"===e&&(i+=n.length+1);const[r]=this.quill.getLeaf(i);return!(r instanceof o.EmbedBlot&&("ArrowLeft"===e?t?this.quill.setSelection(n.index-1,n.length+1,l.Ay.sources.USER):this.quill.setSelection(n.index-1,l.Ay.sources.USER):t?this.quill.setSelection(n.index,n.length+1,l.Ay.sources.USER):this.quill.setSelection(n.index+n.length+1,l.Ay.sources.USER),1))}}}function v(e){return{key:e[0],shortKey:!0,handler(t,n){this.quill.format(e,!n.format[e],l.Ay.sources.USER)}}}function y(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,n){const i=e?"prev":"next",r=n.line,s=r.parent[i];if(null!=s){if("table-row"===s.statics.blotName){let e=s.children.head,t=r;for(;null!=t.prev;)t=t.prev,e=e.next;const i=e.offset(this.quill.scroll)+Math.min(n.offset,e.length()-1);this.quill.setSelection(i,0,l.Ay.sources.USER)}}else{const t=r.table()[i];null!=t&&(e?this.quill.setSelection(t.offset(this.quill.scroll)+t.length()-1,0,l.Ay.sources.USER):this.quill.setSelection(t.offset(this.quill.scroll),0,l.Ay.sources.USER))}return!1}}}function b(e){let{quill:t,range:n}=e;const i=t.getLines(n);let r={};if(i.length>1){const e=i[0].formats(),t=i[i.length-1].formats();r=s.AttributeMap.diff(t,e)||{}}t.deleteText(n,l.Ay.sources.USER),Object.keys(r).length>0&&t.formatLine(n.index,1,r,l.Ay.sources.USER),t.setSelection(n.index,l.Ay.sources.SILENT)}f.DEFAULTS=p},8920:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,i,s,a){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new r(i,s||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function o(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,s=i.length,a=new Array(s);r<s;r++)a[r]=i[r].fn;return a},o.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},o.prototype.emit=function(e,t,i,r,s,a){var o=n?n+e:e;if(!this._events[o])return!1;var l,c,u=this._events[o],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,i),!0;case 4:return u.fn.call(u.context,t,i,r),!0;case 5:return u.fn.call(u.context,t,i,r,s),!0;case 6:return u.fn.call(u.context,t,i,r,s,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,i);break;case 4:u[c].fn.call(u[c].context,t,i,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},o.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,i,r){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return a(this,s),this;var o=this._events[s];if(o.fn)o.fn!==t||r&&!o.once||i&&o.context!==i||a(this,s);else{for(var l=0,c=[],u=o.length;l<u;l++)(o[l].fn!==t||r&&!o[l].once||i&&o[l].context!==i)&&c.push(o[l]);c.length?this._events[s]=1===c.length?c[0]:c:a(this,s)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o},5090:function(e){var t=-1;function n(e,f,p,m,g){if(e===f)return e?[[0,e]]:[];if(null!=p){var y=function(e,t,n){var i="number"==typeof n?{index:n,length:0}:n.oldRange,r="number"==typeof n?null:n.newRange,s=e.length,a=t.length;if(0===i.length&&(null===r||0===r.length)){var o=i.index,l=e.slice(0,o),c=e.slice(o),u=r?r.index:null,d=o+a-s;if((null===u||u===d)&&!(d<0||d>a)){var h=t.slice(0,d);if((m=t.slice(d))===c){var f=Math.min(o,d);if((y=l.slice(0,f))===(x=h.slice(0,f)))return v(y,l.slice(f),h.slice(f),c)}}if(null===u||u===o){var p=o,m=(h=t.slice(0,p),t.slice(p));if(h===l){var g=Math.min(s-p,a-p);if((b=c.slice(c.length-g))===(_=m.slice(m.length-g)))return v(l,c.slice(0,c.length-g),m.slice(0,m.length-g),b)}}}if(i.length>0&&r&&0===r.length){var y=e.slice(0,i.index),b=e.slice(i.index+i.length);if(!(a<(f=y.length)+(g=b.length))){var x=t.slice(0,f),_=t.slice(a-g);if(y===x&&b===_)return v(y,e.slice(f,s-g),t.slice(f,a-g),b)}}return null}(e,f,p);if(y)return y}var b=r(e,f),x=e.substring(0,b);b=a(e=e.substring(b),f=f.substring(b));var _=e.substring(e.length-b),w=function(e,s){var o;if(!e)return[[1,s]];if(!s)return[[t,e]];var l=e.length>s.length?e:s,c=e.length>s.length?s:e,u=l.indexOf(c);if(-1!==u)return o=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],e.length>s.length&&(o[0][0]=o[2][0]=t),o;if(1===c.length)return[[t,e],[1,s]];var d=function(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;function s(e,t,n){for(var i,s,o,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!==(u=t.indexOf(c,u+1));){var h=r(e.substring(n),t.substring(u)),f=a(e.substring(0,n),t.substring(0,u));d.length<f+h&&(d=t.substring(u-f,u)+t.substring(u,u+h),i=e.substring(0,n-f),s=e.substring(n+h),o=t.substring(0,u-f),l=t.substring(u+h))}return 2*d.length>=e.length?[i,s,o,l,d]:null}var o,l,c,u,d,h=s(n,i,Math.ceil(n.length/4)),f=s(n,i,Math.ceil(n.length/2));return h||f?(o=f?h&&h[4].length>f[4].length?h:f:h,e.length>t.length?(l=o[0],c=o[1],u=o[2],d=o[3]):(u=o[0],d=o[1],l=o[2],c=o[3]),[l,c,u,d,o[4]]):null}(e,s);if(d){var h=d[0],f=d[1],p=d[2],m=d[3],g=d[4],v=n(h,p),y=n(f,m);return v.concat([[0,g]],y)}return function(e,n){for(var r=e.length,s=n.length,a=Math.ceil((r+s)/2),o=a,l=2*a,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[o+1]=0,u[o+1]=0;for(var h=r-s,f=h%2!=0,p=0,m=0,g=0,v=0,y=0;y<a;y++){for(var b=-y+p;b<=y-m;b+=2){for(var x=o+b,_=(A=b===-y||b!==y&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-b;A<r&&_<s&&e.charAt(A)===n.charAt(_);)A++,_++;if(c[x]=A,A>r)m+=2;else if(_>s)p+=2;else if(f&&(M=o+h-b)>=0&&M<l&&-1!==u[M]&&A>=(k=r-u[M]))return i(e,n,A,_)}for(var w=-y+g;w<=y-v;w+=2){for(var k,M=o+w,S=(k=w===-y||w!==y&&u[M-1]<u[M+1]?u[M+1]:u[M-1]+1)-w;k<r&&S<s&&e.charAt(r-k-1)===n.charAt(s-S-1);)k++,S++;if(u[M]=k,k>r)v+=2;else if(S>s)g+=2;else if(!f){var A;if((x=o+h-w)>=0&&x<l&&-1!==c[x]&&(_=o+(A=c[x])-x,A>=(k=r-k)))return i(e,n,A,_)}}}return[[t,e],[1,n]]}(e,s)}(e=e.substring(0,e.length-b),f=f.substring(0,f.length-b));return x&&w.unshift([0,x]),_&&w.push([0,_]),h(w,g),m&&function(e){for(var n=!1,i=[],r=0,f=null,p=0,m=0,g=0,v=0,y=0;p<e.length;)0==e[p][0]?(i[r++]=p,m=v,g=y,v=0,y=0,f=e[p][1]):(1==e[p][0]?v+=e[p][1].length:y+=e[p][1].length,f&&f.length<=Math.max(m,g)&&f.length<=Math.max(v,y)&&(e.splice(i[r-1],0,[t,f]),e[i[r-1]+1][0]=1,r--,p=--r>0?i[r-1]:-1,m=0,g=0,v=0,y=0,f=null,n=!0)),p++;for(n&&h(e),function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),i=t.charAt(0),r=n.match(o),s=i.match(o),a=r&&n.match(l),h=s&&i.match(l),f=a&&n.match(c),p=h&&i.match(c),m=f&&e.match(u),g=p&&t.match(d);return m||g?5:f||p?4:r&&!a&&h?3:a||h?2:r||s?1:0}for(var n=1;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var i=e[n-1][1],r=e[n][1],s=e[n+1][1],h=a(i,r);if(h){var f=r.substring(r.length-h);i=i.substring(0,i.length-h),r=f+r.substring(0,r.length-h),s=f+s}for(var p=i,m=r,g=s,v=t(i,r)+t(r,s);r.charAt(0)===s.charAt(0);){i+=r.charAt(0),r=r.substring(1)+s.charAt(0),s=s.substring(1);var y=t(i,r)+t(r,s);y>=v&&(v=y,p=i,m=r,g=s)}e[n-1][1]!=p&&(p?e[n-1][1]=p:(e.splice(n-1,1),n--),e[n][1]=m,g?e[n+1][1]=g:(e.splice(n+1,1),n--))}n++}}(e),p=1;p<e.length;){if(e[p-1][0]==t&&1==e[p][0]){var b=e[p-1][1],x=e[p][1],_=s(b,x),w=s(x,b);_>=w?(_>=b.length/2||_>=x.length/2)&&(e.splice(p,0,[0,x.substring(0,_)]),e[p-1][1]=b.substring(0,b.length-_),e[p+1][1]=x.substring(_),p++):(w>=b.length/2||w>=x.length/2)&&(e.splice(p,0,[0,b.substring(0,w)]),e[p-1][0]=1,e[p-1][1]=x.substring(0,x.length-w),e[p+1][0]=t,e[p+1][1]=b.substring(w),p++),p++}p++}}(w),w}function i(e,t,i,r){var s=e.substring(0,i),a=t.substring(0,r),o=e.substring(i),l=t.substring(r),c=n(s,a),u=n(o,l);return c.concat(u)}function r(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,s=0;n<r;)e.substring(s,r)==t.substring(s,r)?s=n=r:i=r,r=Math.floor((i-n)/2+n);return f(e.charCodeAt(r-1))&&r--,r}function s(e,t){var n=e.length,i=t.length;if(0==n||0==i)return 0;n>i?e=e.substring(n-i):n<i&&(t=t.substring(0,n));var r=Math.min(n,i);if(e==t)return r;for(var s=0,a=1;;){var o=e.substring(r-a),l=t.indexOf(o);if(-1==l)return s;a+=l,0!=l&&e.substring(r-a)!=t.substring(0,a)||(s=a,a++)}}function a(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,s=0;n<r;)e.substring(e.length-r,e.length-s)==t.substring(t.length-r,t.length-s)?s=n=r:i=r,r=Math.floor((i-n)/2+n);return p(e.charCodeAt(e.length-r))&&r--,r}var o=/[^a-zA-Z0-9]/,l=/\s/,c=/[\r\n]/,u=/\n\r?\n$/,d=/^\r?\n\r?\n/;function h(e,n){e.push([0,""]);for(var i,s=0,o=0,l=0,c="",u="";s<e.length;)if(s<e.length-1&&!e[s][1])e.splice(s,1);else switch(e[s][0]){case 1:l++,u+=e[s][1],s++;break;case t:o++,c+=e[s][1],s++;break;case 0:var d=s-l-o-1;if(n){if(d>=0&&g(e[d][1])){var f=e[d][1].slice(-1);if(e[d][1]=e[d][1].slice(0,-1),c=f+c,u=f+u,!e[d][1]){e.splice(d,1),s--;var p=d-1;e[p]&&1===e[p][0]&&(l++,u=e[p][1]+u,p--),e[p]&&e[p][0]===t&&(o++,c=e[p][1]+c,p--),d=p}}m(e[s][1])&&(f=e[s][1].charAt(0),e[s][1]=e[s][1].slice(1),c+=f,u+=f)}if(s<e.length-1&&!e[s][1]){e.splice(s,1);break}if(c.length>0||u.length>0){c.length>0&&u.length>0&&(0!==(i=r(u,c))&&(d>=0?e[d][1]+=u.substring(0,i):(e.splice(0,0,[0,u.substring(0,i)]),s++),u=u.substring(i),c=c.substring(i)),0!==(i=a(u,c))&&(e[s][1]=u.substring(u.length-i)+e[s][1],u=u.substring(0,u.length-i),c=c.substring(0,c.length-i)));var v=l+o;0===c.length&&0===u.length?(e.splice(s-v,v),s-=v):0===c.length?(e.splice(s-v,v,[1,u]),s=s-v+1):0===u.length?(e.splice(s-v,v,[t,c]),s=s-v+1):(e.splice(s-v,v,[t,c],[1,u]),s=s-v+2)}0!==s&&0===e[s-1][0]?(e[s-1][1]+=e[s][1],e.splice(s,1)):s++,l=0,o=0,c="",u=""}""===e[e.length-1][1]&&e.pop();var y=!1;for(s=1;s<e.length-1;)0===e[s-1][0]&&0===e[s+1][0]&&(e[s][1].substring(e[s][1].length-e[s-1][1].length)===e[s-1][1]?(e[s][1]=e[s-1][1]+e[s][1].substring(0,e[s][1].length-e[s-1][1].length),e[s+1][1]=e[s-1][1]+e[s+1][1],e.splice(s-1,1),y=!0):e[s][1].substring(0,e[s+1][1].length)==e[s+1][1]&&(e[s-1][1]+=e[s+1][1],e[s][1]=e[s][1].substring(e[s+1][1].length)+e[s+1][1],e.splice(s+1,1),y=!0)),s++;y&&h(e,n)}function f(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function m(e){return p(e.charCodeAt(0))}function g(e){return f(e.charCodeAt(e.length-1))}function v(e,n,i,r){return g(e)||m(r)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,e],[t,n],[1,i],[0,r]])}function y(e,t,i,r){return n(e,t,i,r,!0)}y.INSERT=1,y.DELETE=t,y.EQUAL=0,e.exports=y},9629:function(e,t,n){e=n.nmd(e);var i="__lodash_hash_undefined__",r=9007199254740991,s="[object Arguments]",a="[object Boolean]",o="[object Date]",l="[object Function]",c="[object GeneratorFunction]",u="[object Map]",d="[object Number]",h="[object Object]",f="[object Promise]",p="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",M="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",L="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",D=/\w*$/,E=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,P={};P[s]=P["[object Array]"]=P[b]=P[x]=P[a]=P[o]=P[_]=P[w]=P[k]=P[M]=P[S]=P[u]=P[d]=P[h]=P[p]=P[m]=P[g]=P[v]=P[A]=P[L]=P[T]=P[C]=!0,P["[object Error]"]=P[l]=P[y]=!1;var Y="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,I="object"==typeof self&&self&&self.Object===Object&&self,N=Y||I||Function("return this")(),H=t&&!t.nodeType&&t,j=H&&e&&!e.nodeType&&e,F=j&&j.exports===H;function R(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function B(e,t,n,i){var r=-1,s=e?e.length:0;for(i&&s&&(n=e[++r]);++r<s;)n=t(n,e[r],r,e);return n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function q(e,t){return function(n){return e(t(n))}}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var $,X=Array.prototype,G=Function.prototype,Z=Object.prototype,K=N["__core-js_shared__"],J=($=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"",Q=G.toString,ee=Z.hasOwnProperty,te=Z.toString,ne=RegExp("^"+Q.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=F?N.Buffer:void 0,re=N.Symbol,se=N.Uint8Array,ae=q(Object.getPrototypeOf,Object),oe=Object.create,le=Z.propertyIsEnumerable,ce=X.splice,ue=Object.getOwnPropertySymbols,de=ie?ie.isBuffer:void 0,he=q(Object.keys,Object),fe=Ne(N,"DataView"),pe=Ne(N,"Map"),me=Ne(N,"Promise"),ge=Ne(N,"Set"),ve=Ne(N,"WeakMap"),ye=Ne(Object,"create"),be=ze(fe),xe=ze(pe),_e=ze(me),we=ze(ge),ke=ze(ve),Me=re?re.prototype:void 0,Se=Me?Me.valueOf:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ce(e){this.__data__=new Le(e)}function De(e,t,n){var i=e[t];ee.call(e,t)&&Be(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ee(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1}function Oe(e,t,n,i,r,f,y){var E;if(i&&(E=f?i(e,r,f,y):i(e)),void 0!==E)return E;if(!$e(e))return e;var O=Ve(e);if(O){if(E=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}(e,E)}else{var Y=je(e),I=Y==l||Y==c;if(qe(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(Y==h||Y==s||I&&!f){if(V(e))return f?e:{};if(E=function(e){return"function"!=typeof e.constructor||Re(e)?{}:$e(t=ae(e))?oe(t):{};var t}(I?{}:e),!t)return function(e,t){return Ye(e,He(e),t)}(e,function(e,t){return e&&Ye(t,Xe(t),e)}(E,e))}else{if(!P[Y])return f?e:{};E=function(e,t,n,i){var r,s=e.constructor;switch(t){case b:return Pe(e);case a:case o:return new s(+e);case x:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,i);case _:case w:case k:case M:case S:case A:case L:case T:case C:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,i);case u:return function(e,t,n){return B(t?n(W(e),!0):W(e),R,new e.constructor)}(e,i,n);case d:case g:return new s(e);case p:return function(e){var t=new e.constructor(e.source,D.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){return B(t?n(U(e),!0):U(e),z,new e.constructor)}(e,i,n);case v:return r=e,Se?Object(Se.call(r)):{}}}(e,Y,Oe,t)}}y||(y=new Ce);var N=y.get(e);if(N)return N;if(y.set(e,E),!O)var H=n?function(e){return function(e,t,n){var i=t(e);return Ve(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,Xe,He)}(e):Xe(e);return function(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n););}(H||e,(function(r,s){H&&(r=e[s=r]),De(E,s,Oe(r,t,n,i,s,e,y))})),E}function Pe(e){var t=new e.constructor(e.byteLength);return new se(t).set(new se(e)),t}function Ye(e,t,n,i){n||(n={});for(var r=-1,s=t.length;++r<s;){var a=t[r],o=i?i(n[a],e[a],a,n,e):void 0;De(n,a,void 0===o?e[a]:o)}return n}function Ie(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!$e(e)||(t=e,J&&J in t))&&(Ue(e)||V(e)?ne:E).test(ze(e));var t}(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===i?void 0:n}return ee.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:ee.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?i:t,this},Le.prototype.clear=function(){this.__data__=[]},Le.prototype.delete=function(e){var t=this.__data__,n=Ee(t,e);return!(n<0||(n==t.length-1?t.pop():ce.call(t,n,1),0))},Le.prototype.get=function(e){var t=this.__data__,n=Ee(t,e);return n<0?void 0:t[n][1]},Le.prototype.has=function(e){return Ee(this.__data__,e)>-1},Le.prototype.set=function(e,t){var n=this.__data__,i=Ee(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Ae,map:new(pe||Le),string:new Ae}},Te.prototype.delete=function(e){return Ie(this,e).delete(e)},Te.prototype.get=function(e){return Ie(this,e).get(e)},Te.prototype.has=function(e){return Ie(this,e).has(e)},Te.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},Ce.prototype.clear=function(){this.__data__=new Le},Ce.prototype.delete=function(e){return this.__data__.delete(e)},Ce.prototype.get=function(e){return this.__data__.get(e)},Ce.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Le){var i=n.__data__;if(!pe||i.length<199)return i.push([e,t]),this;n=this.__data__=new Te(i)}return n.set(e,t),this};var He=ue?q(ue,Object):function(){return[]},je=function(e){return te.call(e)};function Fe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Re(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Z)}function ze(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Be(e,t){return e===t||e!=e&&t!=t}(fe&&je(new fe(new ArrayBuffer(1)))!=x||pe&&je(new pe)!=u||me&&je(me.resolve())!=f||ge&&je(new ge)!=m||ve&&je(new ve)!=y)&&(je=function(e){var t=te.call(e),n=t==h?e.constructor:void 0,i=n?ze(n):void 0;if(i)switch(i){case be:return x;case xe:return u;case _e:return f;case we:return m;case ke:return y}return t});var Ve=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ue(e)}var qe=de||function(){return!1};function Ue(e){var t=$e(e)?te.call(e):"";return t==l||t==c}function $e(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Xe(e){return We(e)?function(e){var t=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&ee.call(e,"callee")&&(!le.call(e,"callee")||te.call(e)==s)}(e)?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],n=t.length,i=!!n;for(var r in e)!ee.call(e,r)||i&&("length"==r||Fe(r,n))||t.push(r);return t}(e):function(e){if(!Re(e))return he(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Oe(e,!0,!0)}},4162:function(e,t,n){e=n.nmd(e);var i="__lodash_hash_undefined__",r=9007199254740991,s="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",h="[object Number]",f="[object Object]",p="[object Promise]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",_=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[s]=k[a]=k[b]=k[o]=k[x]=k[l]=k[c]=k[u]=k[d]=k[h]=k[f]=k[m]=k[g]=k[v]=k[y]=!1;var M="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,A=M||S||Function("return this")(),L=t&&!t.nodeType&&t,T=L&&e&&!e.nodeType&&e,C=T&&T.exports===L,D=C&&M.process,E=function(){try{return D&&D.binding&&D.binding("util")}catch(e){}}(),O=E&&E.isTypedArray;function P(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function Y(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function I(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var N,H,j,F=Array.prototype,R=Function.prototype,z=Object.prototype,B=A["__core-js_shared__"],V=R.toString,W=z.hasOwnProperty,q=(N=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"",U=z.toString,$=RegExp("^"+V.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=C?A.Buffer:void 0,G=A.Symbol,Z=A.Uint8Array,K=z.propertyIsEnumerable,J=F.splice,Q=G?G.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=X?X.isBuffer:void 0,ne=(H=Object.keys,j=Object,function(e){return H(j(e))}),ie=Te(A,"DataView"),re=Te(A,"Map"),se=Te(A,"Promise"),ae=Te(A,"Set"),oe=Te(A,"WeakMap"),le=Te(Object,"create"),ce=Oe(ie),ue=Oe(re),de=Oe(se),he=Oe(ae),fe=Oe(oe),pe=G?G.prototype:void 0,me=pe?pe.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function xe(e){var t=this.__data__=new ve(e);this.size=t.size}function _e(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Q&&Q in Object(e)?function(e){var t=W.call(e,Q),n=e[Q];try{e[Q]=void 0;var i=!0}catch(e){}var r=U.call(e);return i&&(t?e[Q]=n:delete e[Q]),r}(e):function(e){return U.call(e)}(e)}function ke(e){return Re(e)&&we(e)==s}function Me(e,t,n,i,r){return e===t||(null==e||null==t||!Re(e)&&!Re(t)?e!=e&&t!=t:function(e,t,n,i,r,u){var p=Ie(e),y=Ie(t),_=p?a:De(e),w=y?a:De(t),k=(_=_==s?f:_)==f,M=(w=w==s?f:w)==f,S=_==w;if(S&&Ne(e)){if(!Ne(t))return!1;p=!0,k=!1}if(S&&!k)return u||(u=new xe),p||ze(e)?Se(e,t,n,i,r,u):function(e,t,n,i,r,s,a){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!s(new Z(e),new Z(t)));case o:case l:case h:return Pe(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case v:return e==t+"";case d:var u=Y;case g:var f=1&i;if(u||(u=I),e.size!=t.size&&!f)return!1;var p=a.get(e);if(p)return p==t;i|=2,a.set(e,t);var y=Se(u(e),u(t),i,r,s,a);return a.delete(e),y;case"[object Symbol]":if(me)return me.call(e)==me.call(t)}return!1}(e,t,_,n,i,r,u);if(!(1&n)){var A=k&&W.call(e,"__wrapped__"),L=M&&W.call(t,"__wrapped__");if(A||L){var T=A?e.value():e,C=L?t.value():t;return u||(u=new xe),r(T,C,n,i,u)}}return!!S&&(u||(u=new xe),function(e,t,n,i,r,s){var a=1&n,o=Ae(e),l=o.length;if(l!=Ae(t).length&&!a)return!1;for(var c=l;c--;){var u=o[c];if(!(a?u in t:W.call(t,u)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var h=!0;s.set(e,t),s.set(t,e);for(var f=a;++c<l;){var p=e[u=o[c]],m=t[u];if(i)var g=a?i(m,p,u,t,e,s):i(p,m,u,e,t,s);if(!(void 0===g?p===m||r(p,m,n,i,s):g)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,i,r,u))}(e,t,n,i,Me,r))}function Se(e,t,n,i,r,s){var a=1&n,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var c=s.get(e);if(c&&s.get(t))return c==t;var u=-1,d=!0,h=2&n?new be:void 0;for(s.set(e,t),s.set(t,e);++u<o;){var f=e[u],p=t[u];if(i)var m=a?i(p,f,u,t,e,s):i(f,p,u,e,t,s);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!P(t,(function(e,t){if(a=t,!h.has(a)&&(f===e||r(f,e,n,i,s)))return h.push(t);var a}))){d=!1;break}}else if(f!==p&&!r(f,p,n,i,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Ae(e){return function(e,t,n){var i=t(e);return Ie(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,Be,Ce)}function Le(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Te(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Fe(e)||function(e){return!!q&&q in e}(e))&&(He(e)?$:_).test(Oe(e))}(n)?n:void 0}ge.prototype.clear=function(){this.__data__=le?le(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(le){var n=t[e];return n===i?void 0:n}return W.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:W.call(t,e)},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=le&&void 0===t?i:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=_e(t,e);return!(n<0||(n==t.length-1?t.pop():J.call(t,n,1),--this.size,0))},ve.prototype.get=function(e){var t=this.__data__,n=_e(t,e);return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return _e(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,i=_e(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(re||ve),string:new ge}},ye.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Le(this,e).get(e)},ye.prototype.has=function(e){return Le(this,e).has(e)},ye.prototype.set=function(e,t){var n=Le(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,i),this},be.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ve,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var i=n.__data__;if(!re||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(i)}return n.set(e,t),this.size=n.size,this};var Ce=ee?function(e){return null==e?[]:(e=Object(e),function(t){for(var n=-1,i=null==t?0:t.length,r=0,s=[];++n<i;){var a=t[n];o=a,K.call(e,o)&&(s[r++]=a)}var o;return s}(ee(e)))}:function(){return[]},De=we;function Ee(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||w.test(e))&&e>-1&&e%1==0&&e<t}function Oe(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Pe(e,t){return e===t||e!=e&&t!=t}(ie&&De(new ie(new ArrayBuffer(1)))!=x||re&&De(new re)!=d||se&&De(se.resolve())!=p||ae&&De(new ae)!=g||oe&&De(new oe)!=y)&&(De=function(e){var t=we(e),n=t==f?e.constructor:void 0,i=n?Oe(n):"";if(i)switch(i){case ce:return x;case ue:return d;case de:return p;case he:return g;case fe:return y}return t});var Ye=ke(function(){return arguments}())?ke:function(e){return Re(e)&&W.call(e,"callee")&&!K.call(e,"callee")},Ie=Array.isArray,Ne=te||function(){return!1};function He(e){if(!Fe(e))return!1;var t=we(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var ze=O?function(e){return function(t){return e(t)}}(O):function(e){return Re(e)&&je(e.length)&&!!k[we(e)]};function Be(e){return null!=(t=e)&&je(t.length)&&!He(t)?function(e){var t=Ie(e),n=!t&&Ye(e),i=!t&&!n&&Ne(e),r=!t&&!n&&!i&&ze(e),s=t||n||i||r,a=s?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],o=a.length;for(var l in e)!W.call(e,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||r&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ee(l,o))||a.push(l);return a}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||z))return ne(e);var t,n,i=[];for(var r in Object(e))W.call(e,r)&&"constructor"!=r&&i.push(r);return i}(e);var t}e.exports=function(e,t){return Me(e,t)}},1270:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9629),r=n(4162);var s;!function(e){e.compose=function(e={},t={},n=!1){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});let r=i(t);n||(r=Object.keys(r).reduce(((e,t)=>(null!=r[t]&&(e[t]=r[t]),e)),{}));for(const n in e)void 0!==e[n]&&void 0===t[n]&&(r[n]=e[n]);return Object.keys(r).length>0?r:void 0},e.diff=function(e={},t={}){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});const n=Object.keys(e).concat(Object.keys(t)).reduce(((n,i)=>(r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n)),{});return Object.keys(n).length>0?n:void 0},e.invert=function(e={},t={}){e=e||{};const n=Object.keys(t).reduce(((n,i)=>(t[i]!==e[i]&&void 0!==e[i]&&(n[i]=t[i]),n)),{});return Object.keys(e).reduce(((n,i)=>(e[i]!==t[i]&&void 0===t[i]&&(n[i]=null),n)),n)},e.transform=function(e,t,n=!1){if("object"!=typeof e)return t;if("object"!=typeof t)return;if(!n)return t;const i=Object.keys(t).reduce(((n,i)=>(void 0===e[i]&&(n[i]=t[i]),n)),{});return Object.keys(i).length>0?i:void 0}}(s||(s={})),t.default=s},5232:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const i=n(5090),r=n(9629),s=n(4162),a=n(1270);t.AttributeMap=a.default;const o=n(4123);t.Op=o.default;const l=n(7033);t.OpIterator=l.default;const c=String.fromCharCode(0),u=(e,t)=>{if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);const n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]};class d{constructor(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if("number"==typeof e&&e<=0)return this;const n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}push(e){let t=this.ops.length,n=this.ops[t-1];if(e=r(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!=typeof n))return this.ops.unshift(e),this;if(s(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&"number"==typeof e.retain&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],n=[];return this.forEach((i=>{(e(i)?t:n).push(i)})),[t,n]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce(((e,t)=>t.insert?e+o.default.length(t):t.delete?e-t.delete:e),0)}length(){return this.reduce(((e,t)=>e+o.default.length(t)),0)}slice(e=0,t=1/0){const n=[],i=new l.default(this.ops);let r=0;for(;r<t&&i.hasNext();){let s;r<e?s=i.next(e-r):(s=i.next(t-r),n.push(s)),r+=o.default.length(s)}return new d(n)}compose(e){const t=new l.default(this.ops),n=new l.default(e.ops),i=[],r=n.peek();if(null!=r&&"number"==typeof r.retain&&null==r.attributes){let e=r.retain;for(;"insert"===t.peekType()&&t.peekLength()<=e;)e-=t.peekLength(),i.push(t.next());r.retain-e>0&&n.next(r.retain-e)}const o=new d(i);for(;t.hasNext()||n.hasNext();)if("insert"===n.peekType())o.push(n.next());else if("delete"===t.peekType())o.push(t.next());else{const e=Math.min(t.peekLength(),n.peekLength()),i=t.next(e),r=n.next(e);if(r.retain){const l={};if("number"==typeof i.retain)l.retain="number"==typeof r.retain?e:r.retain;else if("number"==typeof r.retain)null==i.retain?l.insert=i.insert:l.retain=i.retain;else{const e=null==i.retain?"insert":"retain",[t,n,s]=u(i[e],r.retain),a=d.getHandler(t);l[e]={[t]:a.compose(n,s,"retain"===e)}}const c=a.default.compose(i.attributes,r.attributes,"number"==typeof i.retain);if(c&&(l.attributes=c),o.push(l),!n.hasNext()&&s(o.ops[o.ops.length-1],l)){const e=new d(t.rest());return o.concat(e).chop()}}else"number"==typeof r.delete&&("number"==typeof i.retain||"object"==typeof i.retain&&null!==i.retain)&&o.push(r)}return o.chop()}concat(e){const t=new d(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new d;const n=[this,e].map((t=>t.map((n=>{if(null!=n.insert)return"string"==typeof n.insert?n.insert:c;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join(""))),r=new d,o=i(n[0],n[1],t,!0),u=new l.default(this.ops),h=new l.default(e.ops);return o.forEach((e=>{let t=e[1].length;for(;t>0;){let n=0;switch(e[0]){case i.INSERT:n=Math.min(h.peekLength(),t),r.push(h.next(n));break;case i.DELETE:n=Math.min(t,u.peekLength()),u.next(n),r.delete(n);break;case i.EQUAL:n=Math.min(u.peekLength(),h.peekLength(),t);const e=u.next(n),o=h.next(n);s(e.insert,o.insert)?r.retain(n,a.default.diff(e.attributes,o.attributes)):r.push(o).delete(n)}t-=n}})),r.chop()}eachLine(e,t="\n"){const n=new l.default(this.ops);let i=new d,r=0;for(;n.hasNext();){if("insert"!==n.peekType())return;const s=n.peek(),a=o.default.length(s)-n.peekLength(),l="string"==typeof s.insert?s.insert.indexOf(t,a)-a:-1;if(l<0)i.push(n.next());else if(l>0)i.push(n.next(l));else{if(!1===e(i,n.next(1).attributes||{},r))return;r+=1,i=new d}}i.length()>0&&e(i,{},r)}invert(e){const t=new d;return this.reduce(((n,i)=>{if(i.insert)t.delete(o.default.length(i));else{if("number"==typeof i.retain&&null==i.attributes)return t.retain(i.retain),n+i.retain;if(i.delete||"number"==typeof i.retain){const r=i.delete||i.retain;return e.slice(n,n+r).forEach((e=>{i.delete?t.push(e):i.retain&&i.attributes&&t.retain(o.default.length(e),a.default.invert(i.attributes,e.attributes))})),n+r}if("object"==typeof i.retain&&null!==i.retain){const r=e.slice(n,n+1),s=new l.default(r.ops).next(),[o,c,h]=u(i.retain,s.insert),f=d.getHandler(o);return t.retain({[o]:f.invert(c,h)},a.default.invert(i.attributes,s.attributes)),n+1}}return n}),0),t.chop()}transform(e,t=!1){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);const n=e,i=new l.default(this.ops),r=new l.default(n.ops),s=new d;for(;i.hasNext()||r.hasNext();)if("insert"!==i.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())s.push(r.next());else{const e=Math.min(i.peekLength(),r.peekLength()),n=i.next(e),o=r.next(e);if(n.delete)continue;if(o.delete)s.push(o);else{const i=n.retain,r=o.retain;let l="object"==typeof r&&null!==r?r:e;if("object"==typeof i&&null!==i&&"object"==typeof r&&null!==r){const e=Object.keys(i)[0];if(e===Object.keys(r)[0]){const n=d.getHandler(e);n&&(l={[e]:n.transform(i[e],r[e],t)})}}s.retain(l,a.default.transform(n.attributes,o.attributes,t))}}else s.retain(o.default.length(i.next()));return s.chop()}transformPosition(e,t=!1){t=!!t;const n=new l.default(this.ops);let i=0;for(;n.hasNext()&&i<=e;){const r=n.peekLength(),s=n.peekType();n.next(),"delete"!==s?("insert"===s&&(i<e||!t)&&(e+=r),i+=r):e-=Math.min(r,e-i)}return e}}d.Op=o.default,d.OpIterator=l.default,d.AttributeMap=a.default,d.handlers={},t.default=d,e.exports=d,e.exports.default=d},4123:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"object"==typeof e.retain&&null!==e.retain?1:"string"==typeof e.insert?e.insert.length:1}}(n||(n={})),t.default=n},7033:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(4123);t.default=class{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const t=this.ops[this.index];if(t){const n=this.offset,r=i.default.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};{const i={};return t.attributes&&(i.attributes=t.attributes),"number"==typeof t.retain?i.retain=e:"object"==typeof t.retain&&null!==t.retain?i.retain=t.retain:"string"==typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?i.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?"number"==typeof e.delete?"delete":"number"==typeof e.retain||"object"==typeof e.retain&&null!==e.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(i)}}return[]}}},8820:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n(8138),r=function(e,t){for(var n=e.length;n--;)if((0,i.A)(e[n][0],t))return n;return-1},s=Array.prototype.splice;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():s.call(t,n,1),--this.size,0))},a.prototype.get=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]},a.prototype.has=function(e){return r(this.__data__,e)>-1},a.prototype.set=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var o=a},2461:function(e,t,n){"use strict";var i=n(2281),r=n(5507),s=(0,i.A)(r.A,"Map");t.A=s},3558:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=(0,n(2281).A)(Object,"create"),r=Object.prototype.hasOwnProperty,s=Object.prototype.hasOwnProperty;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}a.prototype.clear=function(){this.__data__=i?i(null):{},this.size=0},a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},a.prototype.get=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0},a.prototype.has=function(e){var t=this.__data__;return i?void 0!==t[e]:s.call(t,e)},a.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this};var o=a,l=n(8820),c=n(2461),u=function(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}d.prototype.clear=function(){this.size=0,this.__data__={hash:new o,map:new(c.A||l.A),string:new o}},d.prototype.delete=function(e){var t=u(this,e).delete(e);return this.size-=t?1:0,t},d.prototype.get=function(e){return u(this,e).get(e)},d.prototype.has=function(e){return u(this,e).has(e)},d.prototype.set=function(e,t){var n=u(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};var h=d},2673:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n(8820),r=n(2461),s=n(3558);function a(e){var t=this.__data__=new i.A(e);this.size=t.size}a.prototype.clear=function(){this.__data__=new i.A,this.size=0},a.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},a.prototype.get=function(e){return this.__data__.get(e)},a.prototype.has=function(e){return this.__data__.has(e)},a.prototype.set=function(e,t){var n=this.__data__;if(n instanceof i.A){var a=n.__data__;if(!r.A||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new s.A(a)}return n.set(e,t),this.size=n.size,this};var o=a},439:function(e,t,n){"use strict";var i=n(5507).A.Symbol;t.A=i},7218:function(e,t,n){"use strict";var i=n(5507).A.Uint8Array;t.A=i},6753:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(8412),r=n(723),s=n(776),a=n(3767),o=n(5755),l=Object.prototype.hasOwnProperty,c=function(e,t){var n=(0,r.A)(e),c=!n&&(0,i.A)(e),u=!n&&!c&&(0,s.A)(e),d=!n&&!c&&!u&&(0,o.A)(e),h=n||c||u||d,f=h?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],p=f.length;for(var m in e)!t&&!l.call(e,m)||h&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,a.A)(m,p))||f.push(m);return f}},802:function(e,t){"use strict";t.A=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},6437:function(e,t,n){"use strict";var i=n(6770),r=n(8138),s=Object.prototype.hasOwnProperty;t.A=function(e,t,n){var a=e[t];s.call(e,t)&&(0,r.A)(a,n)&&(void 0!==n||t in e)||(0,i.A)(e,t,n)}},6770:function(e,t,n){"use strict";var i=n(7889);t.A=function(e,t,n){"__proto__"==t&&i.A?(0,i.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},1381:function(e,t,n){"use strict";var i=n(802),r=n(723);t.A=function(e,t,n){var s=t(e);return(0,r.A)(e)?s:(0,i.A)(s,n(e))}},2159:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(439),r=Object.prototype,s=r.hasOwnProperty,a=r.toString,o=i.A?i.A.toStringTag:void 0,l=Object.prototype.toString,c=i.A?i.A.toStringTag:void 0,u=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=s.call(e,o),n=e[o];try{e[o]=void 0;var i=!0}catch(e){}var r=a.call(e);return i&&(t?e[o]=n:delete e[o]),r}(e):function(e){return l.call(e)}(e)}},5771:function(e,t){"use strict";t.A=function(e){return function(t){return e(t)}}},2899:function(e,t,n){"use strict";var i=n(7218);t.A=function(e){var t=new e.constructor(e.byteLength);return new i.A(t).set(new i.A(e)),t}},3812:function(e,t,n){"use strict";var i=n(5507),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===r?i.A.Buffer:void 0,o=a?a.allocUnsafe:void 0;t.A=function(e,t){if(t)return e.slice();var n=e.length,i=o?o(n):new e.constructor(n);return e.copy(i),i}},1827:function(e,t,n){"use strict";var i=n(2899);t.A=function(e,t){var n=t?(0,i.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},4405:function(e,t){"use strict";t.A=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}},9601:function(e,t,n){"use strict";var i=n(6437),r=n(6770);t.A=function(e,t,n,s){var a=!n;n||(n={});for(var o=-1,l=t.length;++o<l;){var c=t[o],u=s?s(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?(0,r.A)(n,c,u):(0,i.A)(n,c,u)}return n}},7889:function(e,t,n){"use strict";var i=n(2281),r=function(){try{var e=(0,i.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.A=r},9646:function(e,t){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;t.A=n},2816:function(e,t,n){"use strict";var i=n(1381),r=n(9844),s=n(3169);t.A=function(e){return(0,i.A)(e,s.A,r.A)}},2281:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var i,r=n(7572),s=n(5507).A["__core-js_shared__"],a=(i=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",o=n(659),l=n(1543),c=/^\[object .+?Constructor\]$/,u=Function.prototype,d=Object.prototype,h=u.toString,f=d.hasOwnProperty,p=RegExp("^"+h.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!(0,o.A)(e)||(t=e,a&&a in t))&&((0,r.A)(e)?p:c).test((0,l.A)(e));var t}(n)?n:void 0}},8769:function(e,t,n){"use strict";var i=(0,n(2217).A)(Object.getPrototypeOf,Object);t.A=i},9844:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n(6935),r=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var a=e[n];t(a)&&(s[r++]=a)}return s}(s(e),(function(t){return r.call(e,t)})))}:i.A},7995:function(e,t,n){"use strict";n.d(t,{A:function(){return k}});var i=n(2281),r=n(5507),s=(0,i.A)(r.A,"DataView"),a=n(2461),o=(0,i.A)(r.A,"Promise"),l=(0,i.A)(r.A,"Set"),c=(0,i.A)(r.A,"WeakMap"),u=n(2159),d=n(1543),h="[object Map]",f="[object Promise]",p="[object Set]",m="[object WeakMap]",g="[object DataView]",v=(0,d.A)(s),y=(0,d.A)(a.A),b=(0,d.A)(o),x=(0,d.A)(l),_=(0,d.A)(c),w=u.A;(s&&w(new s(new ArrayBuffer(1)))!=g||a.A&&w(new a.A)!=h||o&&w(o.resolve())!=f||l&&w(new l)!=p||c&&w(new c)!=m)&&(w=function(e){var t=(0,u.A)(e),n="[object Object]"==t?e.constructor:void 0,i=n?(0,d.A)(n):"";if(i)switch(i){case v:return g;case y:return h;case b:return f;case x:return p;case _:return m}return t});var k=w},1683:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(659),r=Object.create,s=function(){function e(){}return function(t){if(!(0,i.A)(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),a=n(8769),o=n(501),l=function(e){return"function"!=typeof e.constructor||(0,o.A)(e)?{}:s((0,a.A)(e))}},3767:function(e,t){"use strict";var n=/^(?:0|[1-9]\d*)$/;t.A=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}},501:function(e,t){"use strict";var n=Object.prototype;t.A=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},8795:function(e,t,n){"use strict";var i=n(9646),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===r&&i.A.process,o=function(){try{return s&&s.require&&s.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();t.A=o},2217:function(e,t){"use strict";t.A=function(e,t){return function(n){return e(t(n))}}},5507:function(e,t,n){"use strict";var i=n(9646),r="object"==typeof self&&self&&self.Object===Object&&self,s=i.A||r||Function("return this")();t.A=s},1543:function(e,t){"use strict";var n=Function.prototype.toString;t.A=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},3707:function(e,t,n){"use strict";n.d(t,{A:function(){return V}});var i=n(2673),r=n(6437),s=n(9601),a=n(3169),o=n(2624),l=n(3812),c=n(4405),u=n(9844),d=n(802),h=n(8769),f=n(6935),p=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,d.A)(t,(0,u.A)(e)),e=(0,h.A)(e);return t}:f.A,m=n(2816),g=n(1381),v=function(e){return(0,g.A)(e,o.A,p)},y=n(7995),b=Object.prototype.hasOwnProperty,x=n(2899),_=/\w*$/,w=n(439),k=w.A?w.A.prototype:void 0,M=k?k.valueOf:void 0,S=n(1827),A=function(e,t,n){var i,r,s,a=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,x.A)(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var n=t?(0,x.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,S.A)(e,n);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(s=new(r=e).constructor(r.source,_.exec(r))).lastIndex=r.lastIndex,s;case"[object Symbol]":return i=e,M?Object(M.call(i)):{}}},L=n(1683),T=n(723),C=n(776),D=n(7948),E=n(5771),O=n(8795),P=O.A&&O.A.isMap,Y=P?(0,E.A)(P):function(e){return(0,D.A)(e)&&"[object Map]"==(0,y.A)(e)},I=n(659),N=O.A&&O.A.isSet,H=N?(0,E.A)(N):function(e){return(0,D.A)(e)&&"[object Set]"==(0,y.A)(e)},j="[object Arguments]",F="[object Function]",R="[object Object]",z={};z[j]=z["[object Array]"]=z["[object ArrayBuffer]"]=z["[object DataView]"]=z["[object Boolean]"]=z["[object Date]"]=z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Map]"]=z["[object Number]"]=z[R]=z["[object RegExp]"]=z["[object Set]"]=z["[object String]"]=z["[object Symbol]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z["[object Error]"]=z[F]=z["[object WeakMap]"]=!1;var B=function e(t,n,d,h,f,g){var x,_=1&n,w=2&n,k=4&n;if(d&&(x=f?d(t,h,f,g):d(t)),void 0!==x)return x;if(!(0,I.A)(t))return t;var M=(0,T.A)(t);if(M){if(x=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&b.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!_)return(0,c.A)(t,x)}else{var S=(0,y.A)(t),D=S==F||"[object GeneratorFunction]"==S;if((0,C.A)(t))return(0,l.A)(t,_);if(S==R||S==j||D&&!f){if(x=w||D?{}:(0,L.A)(t),!_)return w?function(e,t){return(0,s.A)(e,p(e),t)}(t,function(e,t){return e&&(0,s.A)(t,(0,o.A)(t),e)}(x,t)):function(e,t){return(0,s.A)(e,(0,u.A)(e),t)}(t,function(e,t){return e&&(0,s.A)(t,(0,a.A)(t),e)}(x,t))}else{if(!z[S])return f?t:{};x=A(t,S,_)}}g||(g=new i.A);var E=g.get(t);if(E)return E;g.set(t,x),H(t)?t.forEach((function(i){x.add(e(i,n,d,i,t,g))})):Y(t)&&t.forEach((function(i,r){x.set(r,e(i,n,d,r,t,g))}));var O=k?w?v:m.A:w?o.A:a.A,P=M?void 0:O(t);return function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n););}(P||t,(function(i,s){P&&(i=t[s=i]),(0,r.A)(x,s,e(i,n,d,s,t,g))})),x},V=function(e){return B(e,5)}},8138:function(e,t){"use strict";t.A=function(e,t){return e===t||e!=e&&t!=t}},8412:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(2159),r=n(7948),s=function(e){return(0,r.A)(e)&&"[object Arguments]"==(0,i.A)(e)},a=Object.prototype,o=a.hasOwnProperty,l=a.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return(0,r.A)(e)&&o.call(e,"callee")&&!l.call(e,"callee")},u=c},723:function(e,t){"use strict";var n=Array.isArray;t.A=n},3628:function(e,t,n){"use strict";var i=n(7572),r=n(1628);t.A=function(e){return null!=e&&(0,r.A)(e.length)&&!(0,i.A)(e)}},776:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n(5507),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===r?i.A.Buffer:void 0,o=(a?a.isBuffer:void 0)||function(){return!1}},5123:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var i=n(2673),r=n(3558);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r.A;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},s.prototype.has=function(e){return this.__data__.has(e)};var a=s,o=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},l=function(e,t,n,i,r,s){var l=1&n,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var f=-1,p=!0,m=2&n?new a:void 0;for(s.set(e,t),s.set(t,e);++f<c;){var g=e[f],v=t[f];if(i)var y=l?i(v,g,f,t,e,s):i(g,v,f,e,t,s);if(void 0!==y){if(y)continue;p=!1;break}if(m){if(!o(t,(function(e,t){if(a=t,!m.has(a)&&(g===e||r(g,e,n,i,s)))return m.push(t);var a}))){p=!1;break}}else if(g!==v&&!r(g,v,n,i,s)){p=!1;break}}return s.delete(e),s.delete(t),p},c=n(439),u=n(7218),d=n(8138),h=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n},f=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},p=c.A?c.A.prototype:void 0,m=p?p.valueOf:void 0,g=n(2816),v=Object.prototype.hasOwnProperty,y=n(7995),b=n(723),x=n(776),_=n(5755),w="[object Arguments]",k="[object Array]",M="[object Object]",S=Object.prototype.hasOwnProperty,A=function(e,t,n,r,s,a){var o=(0,b.A)(e),c=(0,b.A)(t),p=o?k:(0,y.A)(e),A=c?k:(0,y.A)(t),L=(p=p==w?M:p)==M,T=(A=A==w?M:A)==M,C=p==A;if(C&&(0,x.A)(e)){if(!(0,x.A)(t))return!1;o=!0,L=!1}if(C&&!L)return a||(a=new i.A),o||(0,_.A)(e)?l(e,t,n,r,s,a):function(e,t,n,i,r,s,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new u.A(e),new u.A(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,d.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=h;case"[object Set]":var c=1&i;if(o||(o=f),e.size!=t.size&&!c)return!1;var p=a.get(e);if(p)return p==t;i|=2,a.set(e,t);var g=l(o(e),o(t),i,r,s,a);return a.delete(e),g;case"[object Symbol]":if(m)return m.call(e)==m.call(t)}return!1}(e,t,p,n,r,s,a);if(!(1&n)){var D=L&&S.call(e,"__wrapped__"),E=T&&S.call(t,"__wrapped__");if(D||E){var O=D?e.value():e,P=E?t.value():t;return a||(a=new i.A),s(O,P,n,r,a)}}return!!C&&(a||(a=new i.A),function(e,t,n,i,r,s){var a=1&n,o=(0,g.A)(e),l=o.length;if(l!=(0,g.A)(t).length&&!a)return!1;for(var c=l;c--;){var u=o[c];if(!(a?u in t:v.call(t,u)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var f=!0;s.set(e,t),s.set(t,e);for(var p=a;++c<l;){var m=e[u=o[c]],y=t[u];if(i)var b=a?i(y,m,u,t,e,s):i(m,y,u,e,t,s);if(!(void 0===b?m===y||r(m,y,n,i,s):b)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,n,r,s,a))},L=n(7948),T=function e(t,n,i,r,s){return t===n||(null==t||null==n||!(0,L.A)(t)&&!(0,L.A)(n)?t!=t&&n!=n:A(t,n,i,r,e,s))},C=function(e,t){return T(e,t)}},7572:function(e,t,n){"use strict";var i=n(2159),r=n(659);t.A=function(e){if(!(0,r.A)(e))return!1;var t=(0,i.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1628:function(e,t){"use strict";t.A=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},659:function(e,t){"use strict";t.A=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7948:function(e,t){"use strict";t.A=function(e){return null!=e&&"object"==typeof e}},5755:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(2159),r=n(1628),s=n(7948),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var o=n(5771),l=n(8795),c=l.A&&l.A.isTypedArray,u=c?(0,o.A)(c):function(e){return(0,s.A)(e)&&(0,r.A)(e.length)&&!!a[(0,i.A)(e)]}},3169:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(6753),r=n(501),s=(0,n(2217).A)(Object.keys,Object),a=Object.prototype.hasOwnProperty,o=n(3628),l=function(e){return(0,o.A)(e)?(0,i.A)(e):function(e){if(!(0,r.A)(e))return s(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}},2624:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(6753),r=n(659),s=n(501),a=Object.prototype.hasOwnProperty,o=n(3628),l=function(e){return(0,o.A)(e)?(0,i.A)(e,!0):function(e){if(!(0,r.A)(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=(0,s.A)(e),n=[];for(var i in e)("constructor"!=i||!t&&a.call(e,i))&&n.push(i);return n}(e)}},8347:function(e,t,n){"use strict";n.d(t,{A:function(){return z}});var i,r,s,a,o=n(2673),l=n(6770),c=n(8138),u=function(e,t,n){(void 0!==n&&!(0,c.A)(e[t],n)||void 0===n&&!(t in e))&&(0,l.A)(e,t,n)},d=n(3812),h=n(1827),f=n(4405),p=n(1683),m=n(8412),g=n(723),v=n(3628),y=n(7948),b=n(776),x=n(7572),_=n(659),w=n(2159),k=n(8769),M=Function.prototype,S=Object.prototype,A=M.toString,L=S.hasOwnProperty,T=A.call(Object),C=n(5755),D=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},E=n(9601),O=n(2624),P=function e(t,n,i,r,s){t!==n&&function(e,t,n){for(var i=-1,r=Object(e),s=n(e),a=s.length;a--;){var o=s[++i];if(!1===t(r[o],o,r))break}}(n,(function(a,l){if(s||(s=new o.A),(0,_.A)(a))!function(e,t,n,i,r,s,a){var o,l=D(e,n),c=D(t,n),M=a.get(c);if(M)u(e,n,M);else{var S=s?s(l,c,n+"",e,t,a):void 0,P=void 0===S;if(P){var Y=(0,g.A)(c),I=!Y&&(0,b.A)(c),N=!Y&&!I&&(0,C.A)(c);S=c,Y||I||N?(0,g.A)(l)?S=l:(o=l,(0,y.A)(o)&&(0,v.A)(o)?S=(0,f.A)(l):I?(P=!1,S=(0,d.A)(c,!0)):N?(P=!1,S=(0,h.A)(c,!0)):S=[]):function(e){if(!(0,y.A)(e)||"[object Object]"!=(0,w.A)(e))return!1;var t=(0,k.A)(e);if(null===t)return!0;var n=L.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&A.call(n)==T}(c)||(0,m.A)(c)?(S=l,(0,m.A)(l)?S=function(e){return(0,E.A)(e,(0,O.A)(e))}(l):(0,_.A)(l)&&!(0,x.A)(l)||(S=(0,p.A)(c))):P=!1}P&&(a.set(c,S),r(S,c,i,s,a),a.delete(c)),u(e,n,S)}}(t,n,l,i,e,r,s);else{var c=r?r(D(t,l),a,l+"",t,n,s):void 0;void 0===c&&(c=a),u(t,l,c)}}),O.A)},Y=function(e){return e},I=Math.max,N=n(7889),H=N.A?function(e,t){return(0,N.A)(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Y,j=Date.now,F=(i=H,r=0,s=0,function(){var e=j(),t=16-(e-s);if(s=e,t>0){if(++r>=800)return arguments[0]}else r=0;return i.apply(void 0,arguments)}),R=n(3767),z=(a=function(e,t,n){P(e,t,n)},function(e,t){return F(function(e,t,n){return t=I(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,s=I(i.length-t,0),a=Array(s);++r<s;)a[r]=i[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=i[r];return o[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,o)}}(e,t,Y),e+"")}((function(e,t){var n=-1,i=t.length,r=i>1?t[i-1]:void 0,s=i>2?t[2]:void 0;for(r=a.length>3&&"function"==typeof r?(i--,r):void 0,s&&function(e,t,n){if(!(0,_.A)(n))return!1;var i=typeof t;return!!("number"==i?(0,v.A)(n)&&(0,R.A)(t,n.length):"string"==i&&t in n)&&(0,c.A)(n[t],e)}(t[0],t[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var o=t[n];o&&a(e,o,n)}return e})))},6935:function(e,t){"use strict";t.A=function(){return[]}},6003:function(e,t,n){"use strict";n.r(t),n.d(t,{Attributor:function(){return r},AttributorStore:function(){return h},BlockBlot:function(){return M},ClassAttributor:function(){return c},ContainerBlot:function(){return A},EmbedBlot:function(){return L},InlineBlot:function(){return w},LeafBlot:function(){return g},ParentBlot:function(){return x},Registry:function(){return o},Scope:function(){return i},ScrollBlot:function(){return D},StyleAttributor:function(){return d},TextBlot:function(){return O}});var i=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(i||{});class r{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const r=i.TYPE&i.ATTRIBUTE;this.scope=null!=n.scope?n.scope&i.LEVEL|r:i.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map((e=>e.name))}add(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)}canAdd(e,t){return null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1)}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class s extends Error{constructor(e){super(e="[Parchment] "+e),this.message=e,this.name=this.constructor.name}}const a=class e{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(null==e)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(t,n,i){const r=this.query(n);if(null==r)throw new s(`Unable to create ${n} blot`);const a=r,o=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:a.create(i),l=new a(t,o,i);return e.blots.set(l.domNode,l),l}find(t,n=!1){return e.find(t,n)}query(e,t=i.ANY){let n;return"string"==typeof e?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:"number"==typeof e?e&i.LEVEL&i.BLOCK?n=this.types.block:e&i.LEVEL&i.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some((e=>(n=this.classes[e],!!n))),n=n||this.tags[e.tagName]),null==n?null:"scope"in n&&t&i.LEVEL&n.scope&&t&i.TYPE&n.scope?n:null}register(...e){return e.map((e=>{const t="blotName"in e,n="attrName"in e;if(!t&&!n)throw new s("Invalid definition");if(t&&"abstract"===e.blotName)throw new s("Cannot register abstract class");const i=t?e.blotName:n?e.attrName:void 0;return this.types[i]=e,n?"string"==typeof e.keyName&&(this.attributes[e.keyName]=e):t&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map((e=>e.toUpperCase())):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach((t=>{(null==this.tags[t]||null==e.className)&&(this.tags[t]=e)})))),e}))}};a.blots=new WeakMap;let o=a;function l(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((e=>0===e.indexOf(`${t}-`)))}const c=class extends r{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map((e=>e.split("-").slice(0,-1).join("-")))}add(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0)}remove(e){l(e,this.keyName).forEach((t=>{e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")}value(e){const t=(l(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}};function u(e){const t=e.split("-"),n=t.slice(1).map((e=>e[0].toUpperCase()+e.slice(1))).join("");return t[0]+n}const d=class extends r{static keys(e){return(e.getAttribute("style")||"").split(";").map((e=>e.split(":")[0].trim()))}add(e,t){return!!this.canAdd(e,t)&&(e.style[u(this.keyName)]=t,!0)}remove(e){e.style[u(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[u(this.keyName)];return this.canAdd(e,t)?t:""}},h=class{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=o.find(this.domNode);if(null==e)return;const t=r.keys(this.domNode),n=c.keys(this.domNode),s=d.keys(this.domNode);t.concat(n).concat(s).forEach((t=>{const n=e.scroll.query(t,i.ATTRIBUTE);n instanceof r&&(this.attributes[n.attrName]=n)}))}copy(e){Object.keys(this.attributes).forEach((t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)}))}move(e){this.copy(e),Object.keys(this.attributes).forEach((e=>{this.attributes[e].remove(this.domNode)})),this.attributes={}}values(){return Object.keys(this.attributes).reduce(((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e)),{})}},f=class{constructor(e,t){this.scroll=e,this.domNode=t,o.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(null==this.tagName)throw new s("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?("string"==typeof e?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):"number"==typeof e&&(n=e),t="number"==typeof n?document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){null!=this.parent&&this.parent.removeChild(this),o.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,r){const s=this.isolate(e,t);if(null!=this.scroll.query(n,i.BLOT)&&r)s.wrap(n,r);else if(null!=this.scroll.query(n,i.ATTRIBUTE)){const e=this.scroll.create(this.statics.scope);s.wrap(e),e.format(n,r)}}insertAt(e,t,n){const i=null==n?this.scroll.create("text",t):this.scroll.create(t,n),r=this.split(e);this.parent.insertBefore(i,r||void 0)}isolate(e,t){const n=this.split(e);if(null==n)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return null==this.parent||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;return null!=this.parent&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return 0===e?this:this.next}update(e,t){}wrap(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;if(null!=this.parent&&this.parent.insertBefore(n,this.next||void 0),"function"!=typeof n.appendChild)throw new s(`Cannot wrap ${e}`);return n.appendChild(this),n}};f.blotName="abstract";let p=f;const m=class extends p{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};m.scope=i.INLINE_BLOT;const g=m;class v{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),i=0;for(;n;){if(n===e)return i;i+=1,n=t()}return-1}insertBefore(e,t){null!=e&&(this.remove(e),e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return null!=e&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let i=n();for(;i;){const r=i.length();if(e<r||t&&e===r&&(null==i.next||0!==i.next.length()))return[i,e];e-=r,i=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[i,r]=this.find(e);let s=e-r;const a=this.iterator(i);let o=a();for(;o&&s<e+t;){const i=o.length();e>s?n(o,e-s,Math.min(t,s+i-e)):n(o,0,Math.min(i,e+t-s)),s+=i,o=a()}}map(e){return this.reduce(((t,n)=>(t.push(e(n)),t)),[])}reduce(e,t){const n=this.iterator();let i=n();for(;i;)t=e(t,i),i=n();return t}}function y(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const n=t.create(i.INLINE);return Array.from(e.childNodes).forEach((e=>{n.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach(),n}}const b=class e extends p{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach((e=>{e.attach()}))}attachUI(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,e.uiClass&&this.uiNode.classList.add(e.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new v,Array.from(this.domNode.childNodes).filter((e=>e!==this.uiNode)).reverse().forEach((e=>{try{const t=y(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(e){if(e instanceof s)return;throw e}}))}deleteAt(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,((e,t,n)=>{e.deleteAt(t,n)}))}descendant(t,n=0){const[i,r]=this.children.find(n);return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,r]:i instanceof e?i.descendant(t,r):[null,-1]}descendants(t,n=0,i=Number.MAX_VALUE){let r=[],s=i;return this.children.forEachAt(n,i,((n,i,a)=>{(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&r.push(n),n instanceof e&&(r=r.concat(n.descendants(t,i,s))),s-=a})),r}detach(){this.children.forEach((e=>{e.detach()})),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach((n=>{t||this.statics.allowedChildren.some((e=>n instanceof e))||(n.statics.scope===i.BLOCK_BLOT?(null!=n.next&&this.splitAfter(n),null!=n.prev&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof e?n.unwrap():n.remove())}))}formatAt(e,t,n,i){this.children.forEachAt(e,t,((e,t,r)=>{e.formatAt(t,r,n,i)}))}insertAt(e,t,n){const[i,r]=this.children.find(e);if(i)i.insertAt(r,t,n);else{const e=null==n?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(e)}}insertBefore(e,t){null!=e.parent&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,null!=t&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce(((e,t)=>e+t.length()),0)}moveChildren(e,t){this.children.forEach((n=>{e.insertBefore(n,t)}))}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,n=!1){const[i,r]=this.children.find(t,n),s=[[this,t]];return i instanceof e?s.concat(i.path(r,n)):(null!=i&&s.push([i,r]),s)}removeChild(e){this.children.remove(e)}replaceWith(t,n){const i="string"==typeof t?this.scroll.create(t,n):t;return i instanceof e&&this.moveChildren(i),super.replaceWith(i)}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),((e,i,r)=>{const s=e.split(i,t);null!=s&&n.appendChild(s)})),n}splitAfter(e){const t=this.clone();for(;null!=e.next;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],i=[];e.forEach((e=>{e.target===this.domNode&&"childList"===e.type&&(n.push(...e.addedNodes),i.push(...e.removedNodes))})),i.forEach((e=>{if(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const t=this.scroll.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===this.domNode)&&t.detach()})),n.filter((e=>e.parentNode===this.domNode&&e!==this.uiNode)).sort(((e,t)=>e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1)).forEach((e=>{let t=null;null!=e.nextSibling&&(t=this.scroll.find(e.nextSibling));const n=y(e,this.scroll);(n.next!==t||null==n.next)&&(null!=n.parent&&n.parent.removeChild(this),this.insertBefore(n,t||void 0))})),this.enforceAllowedChildren()}};b.uiClass="";const x=b,_=class e extends x{static create(e){return super.create(e)}static formats(t,n){const i=n.query(e.blotName);if(null==i||t.tagName!==i.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new h(this.domNode)}format(t,n){if(t!==this.statics.blotName||n){const e=this.scroll.query(t,i.INLINE);if(null==e)return;e instanceof r?this.attributes.attribute(e,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}else this.children.forEach((t=>{t instanceof e||(t=t.wrap(e.blotName,!0)),this.attributes.copy(t)})),this.unwrap()}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.formats()[n]||this.scroll.query(n,i.ATTRIBUTE)?this.isolate(e,t).format(n,r):super.formatAt(e,t,n,r)}optimize(t){super.optimize(t);const n=this.formats();if(0===Object.keys(n).length)return this.unwrap();const i=this.next;i instanceof e&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}(n,i.formats())&&(i.moveChildren(this),i.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some((e=>e.target===this.domNode&&"attributes"===e.type))&&this.attributes.build()}wrap(t,n){const i=super.wrap(t,n);return i instanceof e&&this.attributes.move(i),i}};_.allowedChildren=[_,g],_.blotName="inline",_.scope=i.INLINE_BLOT,_.tagName="SPAN";const w=_,k=class e extends x{static create(e){return super.create(e)}static formats(t,n){const i=n.query(e.blotName);if(null==i||t.tagName!==i.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new h(this.domNode)}format(t,n){const s=this.scroll.query(t,i.BLOCK);null!=s&&(s instanceof r?this.attributes.attribute(s,n):t!==this.statics.blotName||n?n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n):this.replaceWith(e.blotName))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.scroll.query(n,i.BLOCK)?this.format(n,r):super.formatAt(e,t,n,r)}insertAt(e,t,n){if(null==n||null!=this.scroll.query(t,i.INLINE))super.insertAt(e,t,n);else{const i=this.split(e);if(null==i)throw new Error("Attempt to insertAt after block boundaries");{const e=this.scroll.create(t,n);i.parent.insertBefore(e,i)}}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some((e=>e.target===this.domNode&&"attributes"===e.type))&&this.attributes.build()}};k.blotName="block",k.scope=i.BLOCK_BLOT,k.tagName="P",k.allowedChildren=[w,k,g];const M=k,S=class extends x{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,i){super.formatAt(e,t,n,i),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};S.blotName="container",S.scope=i.BLOCK_BLOT;const A=S,L=class extends g{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,i){0===e&&t===this.length()?this.format(n,i):super.formatAt(e,t,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}},T={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},C=class extends x{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver((e=>{this.update(e)})),this.observer.observe(this.domNode,T),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=i.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),0===e&&t===this.length()?this.children.forEach((e=>{e.remove()})):super.deleteAt(e,t)}formatAt(e,t,n,i){this.update(),super.formatAt(e,t,n,i)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const r=(e,t=!0)=>{null==e||e===this||null!=e.domNode.parentNode&&(n.has(e.domNode)||n.set(e.domNode,[]),t&&r(e.parent))},s=e=>{n.has(e.domNode)&&(e instanceof x&&e.children.forEach(s),n.delete(e.domNode),e.optimize(t))};let a=e;for(let t=0;a.length>0;t+=1){if(t>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach((e=>{const t=this.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(r(this.find(e.previousSibling,!1)),Array.from(e.addedNodes).forEach((e=>{const t=this.find(e,!1);r(t,!1),t instanceof x&&t.children.forEach((e=>{r(e,!1)}))}))):"attributes"===e.type&&r(t.prev)),r(t))})),this.children.forEach(s),a=Array.from(this.observer.takeRecords()),i=a.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map((e=>{const t=this.find(e.target,!0);return null==t?null:n.has(t.domNode)?(n.get(t.domNode).push(e),null):(n.set(t.domNode,[e]),t)})).forEach((e=>{null!=e&&e!==this&&n.has(e.domNode)&&e.update(n.get(e.domNode)||[],t)})),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};C.blotName="scroll",C.defaultChild=M,C.allowedChildren=[M,A],C.scope=i.BLOCK_BLOT,C.tagName="DIV";const D=C,E=class e extends g{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some((e=>"characterData"===e.type&&e.target===this.domNode))&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};E.blotName="text",E.scope=i.INLINE_BLOT;const O=E}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={id:i,loaded:!1,exports:{}};return e[i](s,s.exports,n),s.loaded=!0,s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var i={};return function(){"use strict";n.d(i,{default:function(){return Ie}});var e=n(3729),t=n(8276),r=n(7912),s=n(6003);class a extends s.ClassAttributor{add(e,t){let n=0;if("+1"===t||"-1"===t){const i=this.value(e)||0;n="+1"===t?i+1:i-1}else"number"==typeof t&&(n=t);return 0===n?(this.remove(e),!0):super.add(e,n.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}var o=new a("indent","ql-indent",{scope:s.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),l=n(9698);class c extends l.Ay{static blotName="blockquote";static tagName="blockquote"}var u=c;class d extends l.Ay{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(e){return this.tagName.indexOf(e.tagName)+1}}var h=d,f=n(580),p=n(6142);class m extends f.A{}m.blotName="list-container",m.tagName="OL";class g extends l.Ay{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){p.Ay.register(m)}constructor(e,t){super(e,t);const n=t.ownerDocument.createElement("span"),i=n=>{if(!e.isEnabled())return;const i=this.statics.formats(t,e);"checked"===i?(this.format("list","unchecked"),n.preventDefault()):"unchecked"===i&&(this.format("list","checked"),n.preventDefault())};n.addEventListener("mousedown",i),n.addEventListener("touchstart",i),this.attachUI(n)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}g.blotName="list",g.tagName="LI",m.allowedChildren=[g],g.requiredContainer=m;var v=n(9541),y=n(8638),b=n(6772),x=n(664),_=n(4850);class w extends _.A{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}var k=w;class M extends _.A{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return S(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("href",this.constructor.sanitize(t)):super.format(e,t)}}function S(e,t){const n=document.createElement("a");n.href=e;const i=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(i)>-1}class A extends _.A{static blotName="script";static tagName=["SUB","SUP"];static create(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):super.create(e)}static formats(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}var L=A;class T extends _.A{static blotName="underline";static tagName="U"}var C=T,D=n(746);class E extends D.A{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(e){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return"string"==typeof e&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}var O=E;const P=["alt","height","width"];class Y extends s.EmbedBlot{static blotName="image";static tagName="IMG";static create(e){const t=super.create(e);return"string"==typeof e&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return P.reduce(((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t)),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return S(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){P.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}var I=Y;const N=["height","width"];class H extends l.zo{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return N.reduce(((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t)),{})}static sanitize(e){return M.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){N.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}var j=H,F=n(9404),R=n(5232),z=n.n(R),B=n(4266),V=n(3036),W=n(4541),q=n(5508),U=n(584);const $=new s.ClassAttributor("code-token","hljs",{scope:s.Scope.INLINE});class X extends _.A{static formats(e,t){for(;null!=e&&e!==t.domNode;){if(e.classList&&e.classList.contains(F.Ay.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,n){super(e,t,n),$.add(this.domNode,n)}format(e,t){e!==X.blotName?super.format(e,t):t?$.add(this.domNode,t):($.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),$.value(this.domNode)||this.unwrap()}}X.blotName="code-token",X.className="ql-token";class G extends F.Ay{static create(e){const t=super.create(e);return"string"==typeof e&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),X.blotName,!1),super.replaceWith(e,t)}}class Z extends F.EJ{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===G.blotName&&(this.forceNext=!0,this.children.forEach((n=>{n.format(e,t)})))}formatAt(e,t,n,i){n===G.blotName&&(this.forceNext=!0),super.formatAt(e,t,n,i)}highlight(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const n=`${Array.from(this.domNode.childNodes).filter((e=>e!==this.uiNode)).map((e=>e.textContent)).join("\n")}\n`,i=G.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==n){if(n.trim().length>0||null==this.cachedText){const t=this.children.reduce(((e,t)=>e.concat((0,l.mG)(t,!1))),new(z())),r=e(n,i);t.diff(r).reduce(((e,t)=>{let{retain:n,attributes:i}=t;return n?(i&&Object.keys(i).forEach((t=>{[G.blotName,X.blotName].includes(t)&&this.formatAt(e,n,t,i[t])})),e+n):e}),0)}this.cachedText=n,this.forceNext=!1}}html(e,t){const[n]=this.children.find(e);return`<pre data-language="${n?G.formats(n.domNode):"plain"}">\n${(0,q.X)(this.code(e,t))}\n</pre>`}optimize(e){if(super.optimize(e),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const e=G.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}Z.allowedChildren=[G],G.requiredContainer=Z,G.allowedChildren=[X,W.A,q.A,V.A];class K extends B.A{static register(){p.Ay.register(X,!0),p.Ay.register(G,!0),p.Ay.register(Z,!0)}constructor(e,t){if(super(e,t),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce(((e,t)=>{let{key:n}=t;return e[n]=!0,e}),{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(p.Ay.events.SCROLL_BLOT_MOUNT,(e=>{if(!(e instanceof Z))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach((e=>{let{key:n,label:i}=e;const r=t.ownerDocument.createElement("option");r.textContent=i,r.setAttribute("value",n),t.appendChild(r)})),t.addEventListener("change",(()=>{e.format(G.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)})),null==e.uiNode&&(e.attachUI(t),e.children.head&&(t.value=G.formats(e.children.head.domNode)))}))}initTimer(){let e=null;this.quill.on(p.Ay.events.SCROLL_OPTIMIZE,(()=>{e&&clearTimeout(e),e=setTimeout((()=>{this.highlight(),e=null}),this.options.interval)}))}highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(p.Ay.sources.USER);const n=this.quill.getSelection();(null==e?this.quill.scroll.descendants(Z):[e]).forEach((e=>{e.highlight(this.highlightBlot,t)})),this.quill.update(p.Ay.sources.SILENT),null!=n&&this.quill.setSelection(n,p.Ay.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(t=this.languages[t]?t:"plain","plain"===t)return(0,q.X)(e).split("\n").reduce(((e,n,i)=>(0!==i&&e.insert("\n",{[F.Ay.blotName]:t}),e.insert(n))),new(z()));const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(F.Ay.className),n.innerHTML=((e,t,n)=>{if("string"==typeof e.versionString){const i=e.versionString.split(".")[0];if(parseInt(i,10)>=11)return e.highlight(n,{language:t}).value}return e.highlight(t,n).value})(this.options.hljs,t,e),(0,U.hV)(this.quill.scroll,n,[(e,t)=>{const n=$.value(e);return n?t.compose((new(z())).retain(t.length(),{[X.blotName]:n})):t}],[(e,n)=>e.data.split("\n").reduce(((e,n,i)=>(0!==i&&e.insert("\n",{[F.Ay.blotName]:t}),e.insert(n))),n)],new WeakMap)}}K.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class J extends l.Ay{static blotName="table";static tagName="TD";static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",ne()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===J.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class Q extends f.A{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),i=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===i.table}return!1}optimize(e){super.optimize(e),this.children.forEach((e=>{if(null==e.next)return;const t=e.formats(),n=e.next.formats();if(t.table!==n.table){const t=this.splitAfter(e);t&&t.optimize(),this.prev&&this.prev.optimize()}}))}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class ee extends f.A{static blotName="table-body";static tagName="TBODY"}class te extends f.A{static blotName="table-container";static tagName="TABLE";balanceCells(){const e=this.descendants(Q),t=e.reduce(((e,t)=>Math.max(t.children.length,e)),0);e.forEach((e=>{new Array(t-e.children.length).fill(0).forEach((()=>{let t;null!=e.children.head&&(t=J.formats(e.children.head.domNode));const n=this.scroll.create(J.blotName,t);e.appendChild(n),n.optimize()}))}))}cells(e){return this.rows().map((t=>t.children.at(e)))}deleteColumn(e){const[t]=this.descendant(ee);null!=t&&null!=t.children.head&&t.children.forEach((t=>{const n=t.children.at(e);null!=n&&n.remove()}))}insertColumn(e){const[t]=this.descendant(ee);null!=t&&null!=t.children.head&&t.children.forEach((t=>{const n=t.children.at(e),i=J.formats(t.children.head.domNode),r=this.scroll.create(J.blotName,i);t.insertBefore(r,n)}))}insertRow(e){const[t]=this.descendant(ee);if(null==t||null==t.children.head)return;const n=ne(),i=this.scroll.create(Q.blotName);t.children.head.children.forEach((()=>{const e=this.scroll.create(J.blotName,n);i.appendChild(e)}));const r=t.children.at(e);t.insertBefore(i,r)}rows(){const e=this.children.head;return null==e?[]:e.children.map((e=>e))}}function ne(){return`row-${Math.random().toString(36).slice(2,6)}`}te.allowedChildren=[ee],ee.requiredContainer=te,ee.allowedChildren=[Q],Q.requiredContainer=ee,Q.allowedChildren=[J],J.requiredContainer=Q;class ie extends B.A{static register(){p.Ay.register(J),p.Ay.register(Q),p.Ay.register(ee),p.Ay.register(te)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(te).forEach((e=>{e.balanceCells()}))}deleteColumn(){const[e,,t]=this.getTable();null!=t&&(e.deleteColumn(t.cellOffset()),this.quill.update(p.Ay.sources.USER))}deleteRow(){const[,e]=this.getTable();null!=e&&(e.remove(),this.quill.update(p.Ay.sources.USER))}deleteTable(){const[e]=this.getTable();if(null==e)return;const t=e.offset();e.remove(),this.quill.update(p.Ay.sources.USER),this.quill.setSelection(t,p.Ay.sources.SILENT)}getTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(null==t||t.statics.blotName!==J.blotName)return[null,null,null,-1];const i=t.parent;return[i.parent.parent,i,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,i,r]=this.getTable(t);if(null==r)return;const s=r.cellOffset();n.insertColumn(s+e),this.quill.update(p.Ay.sources.USER);let a=i.rowOffset();0===e&&(a+=1),this.quill.setSelection(t.index+a,t.length,p.Ay.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,i,r]=this.getTable(t);if(null==r)return;const s=i.rowOffset();n.insertRow(s+e),this.quill.update(p.Ay.sources.USER),e>0?this.quill.setSelection(t,p.Ay.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,p.Ay.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(null==n)return;const i=new Array(e).fill(0).reduce((e=>{const n=new Array(t).fill("\n").join("");return e.insert(n,{table:ne()})}),(new(z())).retain(n.index));this.quill.updateContents(i,p.Ay.sources.USER),this.quill.setSelection(n.index,p.Ay.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(p.Ay.events.SCROLL_OPTIMIZE,(e=>{e.some((e=>!!["TD","TR","TBODY","TABLE"].includes(e.target.tagName)&&(this.quill.once(p.Ay.events.TEXT_CHANGE,((e,t,n)=>{n===p.Ay.sources.USER&&this.balanceTables()})),!0)))}))}}var re=ie;const se=(0,n(6078).A)("quill:toolbar");class ae extends B.A{constructor(e,t){if(super(e,t),Array.isArray(this.options.container)){const t=document.createElement("div");t.setAttribute("role","toolbar"),function(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((e=>{if("string"==typeof e)oe(n,e);else{const t=Object.keys(e)[0],i=e[t];Array.isArray(i)?function(e,t,n){const i=document.createElement("select");i.classList.add(`ql-${t}`),n.forEach((e=>{const t=document.createElement("option");!1!==e?t.setAttribute("value",String(e)):t.setAttribute("selected","selected"),i.appendChild(t)})),e.appendChild(i)}(n,t,i):oe(n,t,i)}})),e.appendChild(n)}))}(t,this.options.container),e.container?.parentNode?.insertBefore(t,e.container),this.container=t}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach((e=>{const t=this.options.handlers?.[e];t&&this.addHandler(e,t)})),Array.from(this.container.querySelectorAll("button, select")).forEach((e=>{this.attach(e)})),this.quill.on(p.Ay.events.EDITOR_CHANGE,(()=>{const[e]=this.quill.selection.getRange();this.update(e)}))):se.error("Container required for toolbar",this.options)}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find((e=>0===e.indexOf("ql-")));if(!t)return;if(t=t.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[t]&&null==this.quill.scroll.query(t))return void se.warn("ignoring attaching to nonexistent format",t,e);const n="SELECT"===e.tagName?"change":"click";e.addEventListener(n,(n=>{let i;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;const t=e.options[e.selectedIndex];i=!t.hasAttribute("selected")&&(t.value||!1)}else i=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),n.preventDefault();this.quill.focus();const[r]=this.quill.selection.getRange();if(null!=this.handlers[t])this.handlers[t].call(this,i);else if(this.quill.scroll.query(t).prototype instanceof s.EmbedBlot){if(i=prompt(`Enter ${t}`),!i)return;this.quill.updateContents((new(z())).retain(r.index).delete(r.length).insert({[t]:i}),p.Ay.sources.USER)}else this.quill.format(t,i,p.Ay.sources.USER);this.update(r)})),this.controls.push([t,e])}update(e){const t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((n=>{const[i,r]=n;if("SELECT"===r.tagName){let n=null;if(null==e)n=null;else if(null==t[i])n=r.querySelector("option[selected]");else if(!Array.isArray(t[i])){let e=t[i];"string"==typeof e&&(e=e.replace(/"/g,'\\"')),n=r.querySelector(`option[value="${e}"]`)}null==n?(r.value="",r.selectedIndex=-1):n.selected=!0}else if(null==e)r.classList.remove("ql-active"),r.setAttribute("aria-pressed","false");else if(r.hasAttribute("value")){const e=t[i],n=e===r.getAttribute("value")||null!=e&&e.toString()===r.getAttribute("value")||null==e&&!r.getAttribute("value");r.classList.toggle("ql-active",n),r.setAttribute("aria-pressed",n.toString())}else{const e=null!=t[i];r.classList.toggle("ql-active",e),r.setAttribute("aria-pressed",e.toString())}}))}}function oe(e,t,n){const i=document.createElement("button");i.setAttribute("type","button"),i.classList.add(`ql-${t}`),i.setAttribute("aria-pressed","false"),null!=n?(i.value=n,i.setAttribute("aria-label",`${t}: ${n}`)):i.setAttribute("aria-label",t),e.appendChild(i)}ae.DEFAULTS={},ae.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(null!=e)if(0===e.length){const e=this.quill.getFormat();Object.keys(e).forEach((e=>{null!=this.quill.scroll.query(e,s.Scope.INLINE)&&this.quill.format(e,!1,p.Ay.sources.USER)}))}else this.quill.removeFormat(e.index,e.length,p.Ay.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();"rtl"===e&&null==t?this.quill.format("align","right",p.Ay.sources.USER):e||"right"!==t||this.quill.format("align",!1,p.Ay.sources.USER),this.quill.format("direction",e,p.Ay.sources.USER)},indent(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t),i=parseInt(n.indent||0,10);if("+1"===e||"-1"===e){let t="+1"===e?1:-1;"rtl"===n.direction&&(t*=-1),this.quill.format("indent",i+t,p.Ay.sources.USER)}},link(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,p.Ay.sources.USER)},list(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,p.Ay.sources.USER):this.quill.format("list","unchecked",p.Ay.sources.USER):this.quill.format("list",e,p.Ay.sources.USER)}}};const le='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>';var ce={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:le,"code-block":le,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};let ue=0;function de(e,t){e.setAttribute(t,`${!("true"===e.getAttribute(t))}`)}var he=class{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(()=>{this.togglePicker()})),this.label.addEventListener("keydown",(e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),de(this.label,"aria-expanded"),de(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",(()=>{this.selectItem(t,!0)})),t.addEventListener("keydown",(e=>{switch(e.key){case"Enter":this.selectItem(t,!0),e.preventDefault();break;case"Escape":this.escape(),e.preventDefault()}})),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${ue}`,ue+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach((t=>{const n=this.buildItem(t);e.appendChild(n),!0===t.selected&&this.selectItem(n)})),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach((e=>{this.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout((()=>this.label.focus()),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);const t=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}},fe=class extends he{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach((e=>{e.classList.add("ql-primary")}))}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=i:n.style.fill=i)}},pe=class extends he{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach((e=>{e.innerHTML=t[e.getAttribute("data-value")||""]})),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(null!=n){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}},me=class{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(e=>{const{overflowY:t}=getComputedStyle(e,null);return"visible"!==t&&"clip"!==t})(this.quill.root)&&this.quill.root.addEventListener("scroll",(()=>{this.root.style.marginTop=-1*this.quill.root.scrollTop+"px"})),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect();let s=0;if(r.right>i.right&&(s=i.right-r.right,this.root.style.left=`${t+s}px`),r.left<i.left&&(s=i.left-r.left,this.root.style.left=`${t+s}px`),r.bottom>i.bottom){const t=r.bottom-r.top,i=e.bottom-e.top+t;this.root.style.top=n-i+"px",this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}},ge=n(8347),ve=n(5374),ye=n(9609);const be=[!1,"center","right","justify"],xe=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],_e=[!1,"serif","monospace"],we=["1","2","3",!1],ke=["small",!1,"large","huge"];class Me extends ye.A{constructor(e,t){super(e,t);const n=t=>{document.body.contains(e.root)?(null==this.tooltip||this.tooltip.root.contains(t.target)||document.activeElement===this.tooltip.textbox||this.quill.hasFocus()||this.tooltip.hide(),null!=this.pickers&&this.pickers.forEach((e=>{e.container.contains(t.target)||e.close()}))):document.body.removeEventListener("click",n)};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return"toolbar"===e&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach((e=>{(e.getAttribute("class")||"").split(/\s+/).forEach((n=>{if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{const i=e.value||"";null!=i&&t[n][i]&&(e.innerHTML=t[n][i])}}))}))}buildPickers(e,t){this.pickers=Array.from(e).map((e=>{if(e.classList.contains("ql-align")&&(null==e.querySelector("option")&&Ae(e,be),"object"==typeof t.align))return new pe(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){const n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&Ae(e,xe,"background"===n?"#ffffff":"#000000"),new fe(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?Ae(e,_e):e.classList.contains("ql-header")?Ae(e,we):e.classList.contains("ql-size")&&Ae(e,ke)),new he(e)})),this.quill.on(ve.A.events.EDITOR_CHANGE,(()=>{this.pickers.forEach((e=>{e.update()}))}))}}Me.DEFAULTS=(0,ge.A)({},ye.A.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",(()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""})),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Se extends me{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",(e=>{"Enter"===e.key?(this.save(),e.preventDefault()):"Escape"===e.key&&(this.cancel(),e.preventDefault())}))}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);null!=n&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,ve.A.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,ve.A.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=function(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:e}(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(null!=t){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,ve.A.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",ve.A.sources.USER),this.quill.setSelection(n+2,ve.A.sources.USER)}break}}this.textbox.value="",this.hide()}}function Ae(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((t=>{const i=document.createElement("option");t===n?i.setAttribute("selected","selected"):i.setAttribute("value",String(t)),e.appendChild(i)}))}var Le=n(8298);const Te=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Ce extends Se{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(e,t){super(e,t),this.quill.on(ve.A.events.EDITOR_CHANGE,((e,t,n,i)=>{if(e===ve.A.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===ve.A.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const e=this.quill.getLines(t.index,t.length);if(1===e.length){const e=this.quill.getBounds(t);null!=e&&this.position(e)}else{const n=e[e.length-1],i=this.quill.getIndex(n),r=Math.min(n.length()-1,t.index+t.length-i),s=this.quill.getBounds(new Le.Q(i,r));null!=s&&this.position(s)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()}))}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",(()=>{this.root.classList.remove("ql-editing")})),this.quill.on(ve.A.events.SCROLL_OPTIMIZE,(()=>{setTimeout((()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(null!=e){const t=this.quill.getBounds(e);null!=t&&this.position(t)}}),1)}))}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",0!==t&&(n.style.marginLeft=-1*t-n.offsetWidth/2+"px"),t}}class De extends Me{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=Te),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Ce(this.quill,this.options.bounds),null!=e.container&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),ce),this.buildPickers(e.container.querySelectorAll("select"),ce))}}De.DEFAULTS=(0,ge.A)({},Me.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,p.Ay.sources.USER)}}}}});const Ee=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Oe extends Se{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",(e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(e=>{if(null!=this.linkRange){const e=this.linkRange;this.restoreFocus(),this.quill.formatText(e,"link",!1,ve.A.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()})),this.quill.on(ve.A.events.SELECTION_CHANGE,((e,t,n)=>{if(null!=e){if(0===e.length&&n===ve.A.sources.USER){const[t,n]=this.quill.scroll.descendant(M,e.index);if(null!=t){this.linkRange=new Le.Q(e.index-n,t.length());const i=M.formats(t.domNode);this.preview.textContent=i,this.preview.setAttribute("href",i),this.show();const r=this.quill.getBounds(this.linkRange);return void(null!=r&&this.position(r))}}else delete this.linkRange;this.hide()}}))}show(){super.show(),this.root.removeAttribute("data-mode")}}class Pe extends Me{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=Ee),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){null!=e.container&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),ce),this.buildPickers(e.container.querySelectorAll("select"),ce),this.tooltip=new Oe(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},((t,n)=>{e.handlers.link.call(e,!n.format.link)})))}}Pe.DEFAULTS=(0,ge.A)({},Me.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const e=this.quill.getSelection();if(null==e||0===e.length)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&0!==t.indexOf("mailto:")&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,p.Ay.sources.USER)}}}}});var Ye=Pe;e.default.register({"attributors/attribute/direction":r.Mc,"attributors/class/align":t.qh,"attributors/class/background":v.l,"attributors/class/color":y.g3,"attributors/class/direction":r.sY,"attributors/class/font":b.q,"attributors/class/size":x.U,"attributors/style/align":t.Hu,"attributors/style/background":v.s,"attributors/style/color":y.JM,"attributors/style/direction":r.VL,"attributors/style/font":b.z,"attributors/style/size":x.r},!0),e.default.register({"formats/align":t.qh,"formats/direction":r.sY,"formats/indent":o,"formats/background":v.s,"formats/color":y.JM,"formats/font":b.q,"formats/size":x.U,"formats/blockquote":u,"formats/code-block":F.Ay,"formats/header":h,"formats/list":g,"formats/bold":k,"formats/code":F.Cy,"formats/italic":class extends k{static blotName="italic";static tagName=["EM","I"]},"formats/link":M,"formats/script":L,"formats/strike":class extends k{static blotName="strike";static tagName=["S","STRIKE"]},"formats/underline":C,"formats/formula":O,"formats/image":I,"formats/video":j,"modules/syntax":K,"modules/table":re,"modules/toolbar":ae,"themes/bubble":De,"themes/snow":Ye,"ui/icons":ce,"ui/picker":he,"ui/icon-picker":pe,"ui/color-picker":fe,"ui/tooltip":me},!0);var Ie=e.default}(),i.default}()})),function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}function t(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var n;"".trim||(String.prototype.trim=function(){return this.replace(/^[\s﻿]+|[\s﻿]+$/g,"")}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r<n;){var s=t[r];if(e.call(i,s,r,t))return r;r++}return-1},configurable:!0,writable:!0}),Array.prototype.includes||(Array.prototype.includes=function(e){return!!~this.indexOf(e)}),Array.prototype.some||(Array.prototype.some=function(e,t){if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var n=Object(this),i=n.length>>>0,r=0;r<i;r++)if(r in n&&e.call(t,n[r],r,n))return!0;return!1}),String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},writable:!0,configurable:!0}),e.prototype=window.Event.prototype,"function"!=typeof window.CustomEvent&&(window.CustomEvent=e),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),document.execCommand("AutoUrlDetect",!1,!1),/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){if("Element"in e){var t="classList",n="prototype",i=e.Element[n],r=Object,s=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},o=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},l=function(e,t){if(""===t)throw new o("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(t))throw new o("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(e,t)},c=function(e){for(var t=s.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],i=0,r=n.length;i<r;i++)this.push(n[i]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},u=c[n]=[],d=function(){return new c(this)};if(o[n]=Error[n],u.item=function(e){return this[e]||null},u.contains=function(e){return~l(this,e+"")},u.add=function(){var e,t=arguments,n=0,i=t.length,r=!1;do{~l(this,e=t[n]+"")||(this.push(e),r=!0)}while(++n<i);r&&this._updateClassName()},u.remove=function(){var e,t,n=arguments,i=0,r=n.length,s=!1;do{for(t=l(this,e=n[i]+"");~t;)this.splice(t,1),s=!0,t=l(this,e)}while(++i<r);s&&this._updateClassName()},u.toggle=function(e,t){var n=this.contains(e),i=n?!0!==t&&"remove":!1!==t&&"add";return i&&this[i](e),!0===t||!1===t?t:!n},u.replace=function(e,t){var n=l(e+"");~n&&(this.splice(n,1,t),this._updateClassName())},u.toString=function(){return this.join(" ")},r.defineProperty){var h={get:d,enumerable:!0,configurable:!0};try{r.defineProperty(i,t,h)}catch(e){void 0!==e.number&&-2146823252!==e.number||(h.enumerable=!1,r.defineProperty(i,t,h))}}else r[n].__defineGetter__&&i.__defineGetter__(t,d)}}(self),function(){var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,i=arguments.length;for(n=0;n<i;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(e,t){var n=this.toString().split(" "),i=n.indexOf(e+"");~i&&(n=n.slice(i),this.remove.apply(this,n),this.add(t),this.add.apply(this,n.slice(1)))}),e=null}()),globalThis,n=function(){function e(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}function n(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError((void 0===e?"undefined":(i=e)&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i,r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var s=r.length;function a(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var i=n.then;if("function"==typeof i)return void i.call(n,(function(t){a(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--s&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--s&&t(r)}for(var o=0;o<r.length;o++)a(o,r[o])}))}var i=setTimeout;function r(e){return Boolean(e&&void 0!==e.length)}function s(){}function a(e){if(!t(this,a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void c(t.promise,e)}l(t.promise,i)}else(1===e._state?l:c)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var i=n.then;if(t(n,a))return e._state=3,e._value=n,void u(e);if("function"==typeof i)return void h((r=i,s=n,function(){r.apply(s,arguments)}),e)}e._state=1,e._value=n,u(e)}catch(t){c(e,t)}var r,s}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function h(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(e){if(n)return;n=!0,c(t,e)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(s);return o(this,new d(e,t,n)),n},a.prototype.finally=e,a.all=function(e){return new a((function(t,n){if(!r(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var s=i.length;function a(e,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,(function(t){a(e,t)}),n)}i[e]=r,0==--s&&t(i)}catch(e){n(e)}}for(var o=0;o<i.length;o++)a(o,i[o])}))},a.allSettled=n,a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){if(!r(e))return n(new TypeError("Promise.race accepts an array"));for(var i=0,s=e.length;i<s;i++)a.resolve(e[i]).then(t,n)}))},a._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){i(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var f=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"function"!=typeof f.Promise?f.Promise=a:f.Promise.prototype.finally?f.Promise.allSettled||(f.Promise.allSettled=n):f.Promise.prototype.finally=e},"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n()})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Tagify=t()}(this,(function(){"use strict";var e="&#8203;";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i={isEnabled:function(){var e;return null===(e=window.TAGIFY_DEBUG)||void 0===e||e},log:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r;this.isEnabled()&&(r=console).log.apply(r,["[Tagify]:"].concat(n(t)))},warn:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r;this.isEnabled()&&(r=console).warn.apply(r,["[Tagify]:"].concat(n(t)))}},r=function(e,t,n,i){return e=""+e,t=""+t,i&&(e=e.trim(),t=t.trim()),n?e==t:e.toLowerCase()==t.toLowerCase()},s=function(e,t){return e&&Array.isArray(e)&&e.map((function(e){return a(e,t)}))};function a(e,t){var n,i={};for(n in e)t.indexOf(n)<0&&(i[n]=e[n]);return i}function o(e){return(new DOMParser).parseFromString(e.trim(),"text/html").body.firstElementChild}function l(e,t){for(t=t||"previous";e=e[t+"Sibling"];)if(3==e.nodeType)return e}function c(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/`|'/g,"&#039;"):e}function u(e){var t=Object.prototype.toString.call(e).split(" ")[1].slice(0,-1);return e===Object(e)&&"Array"!=t&&"Function"!=t&&"RegExp"!=t&&"HTMLUnknownElement"!=t}function d(e,t,n){var i,r;function s(e,t){for(var n in t)if(t.hasOwnProperty(n)){if(u(t[n])){u(e[n])?s(e[n],t[n]):e[n]=Object.assign({},t[n]);continue}if(Array.isArray(t[n])){e[n]=Object.assign([],t[n]);continue}e[n]=t[n]}}return i=e,(null!=(r=Object)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](i):i instanceof r)||(e={}),s(e,t),n&&s(e,n),e}function h(){var e=[],t={},n=!0,i=!1,r=void 0;try{for(var s,a=arguments[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var o=s.value,l=!0,c=!1,d=void 0;try{for(var h,f=o[Symbol.iterator]();!(l=(h=f.next()).done);l=!0){var p=h.value;u(p)?t[p.value]||(e.push(p),t[p.value]=1):e.includes(p)||e.push(p)}}catch(e){c=!0,d=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw d}}}}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return e}function f(e){return String.prototype.normalize?"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:e}var p=function(){return/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent)};function m(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))}function g(e){var t;return y.call(this,e)&&(null==e||null===(t=e.classList)||void 0===t?void 0:t.contains(this.settings.classNames.tag))}function v(e){return y.call(this,e)&&(null==e?void 0:e.closest(this.settings.classNames.tagSelector))}function y(e){var t;return(null==e||null===(t=e.closest)||void 0===t?void 0:t.call(e,this.settings.classNames.namespaceSelector))===this.DOM.scope}function b(e,t){var n=window.getSelection();return t=t||n.getRangeAt(0),"string"==typeof e&&(e=document.createTextNode(e)),t&&(t.deleteContents(),t.insertNode(e)),e}function x(e,t,n){return e?(t&&(e.__tagifyTagData=n?t:d({},e.__tagifyTagData||{},t)),e.__tagifyTagData):(i.warn("tag element doesn't exist",{tagElm:e,data:t}),t)}function _(e){if(e&&e.parentNode){var t=e,n=window.getSelection(),i=n.getRangeAt(0);n.rangeCount&&(i.setStartAfter(t),i.collapse(!0),n.removeAllRanges(),n.addRange(i))}}function w(e,t){e.forEach((function(e){if(x(e.previousSibling)||!e.previousSibling){var n=document.createTextNode("​");e.before(n),t&&_(n)}}))}var k={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,addTagOn:["blur","tab","enter"],onChangeAfterBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,focusable:!0,focusInputOnRemove:!0,keepInvalidTags:!1,createInvalidTags:!0,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:function(){},trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1,tabKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",scopeLoading:"tagify--loading",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty",inputInvalid:"tagify__input--invalid",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownHeader:"tagify__dropdown__header",dropdownFooter:"tagify__dropdown__footer",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownItemHidden:"tagify__dropdown__item--hidden",dropdownItemSelected:"tagify__dropdown__item--selected",dropdownInital:"tagify__dropdown--initial",tag:"tagify__tag",tagText:"tagify__tag-text",tagX:"tagify__tag__removeBtn",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,includeSelectedTags:!1,escapeHTML:!0,highlightFirst:!0,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:function(){return Promise.resolve()},beforePaste:function(){return Promise.resolve()},suggestionClick:function(){return Promise.resolve()},beforeKeyDown:function(){return Promise.resolve()}}};function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){M(e,t,n[t])}))}return e}function A(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var L={events:{binding:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.dropdown.events.callbacks,n=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this,null),onKeyDown:t.onKeyDown.bind(this),onMouseOver:t.onMouseOver.bind(this),onMouseLeave:t.onMouseLeave.bind(this),onClick:t.onClick.bind(this),onScroll:t.onScroll.bind(this)},i=e?"addEventListener":"removeEventListener";"manual"!=this.settings.dropdown.position&&(document[i]("scroll",n.position,!0),window[i]("resize",n.position),window[i]("keydown",n.onKeyDown)),this.DOM.dropdown[i]("mouseover",n.onMouseOver),this.DOM.dropdown[i]("mouseleave",n.onMouseLeave),this.DOM.dropdown[i]("mousedown",n.onClick),this.DOM.dropdown.content[i]("scroll",n.onScroll)},callbacks:{onKeyDown:function(e){var t=this;if(this.state.hasFocus&&!this.state.composing){var n=this.settings,r=n.dropdown.includeSelectedTags,s=this.DOM.dropdown.querySelector(n.classNames.dropdownItemActiveSelector),a=this.dropdown.getSuggestionDataByNode(s),o="mix"==n.mode,l="select"==n.mode;n.hooks.beforeKeyDown(e,{tagify:this}).then((function(c){switch(e.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":e.preventDefault();var u=t.dropdown.getAllSuggestionsRefs(),d="ArrowUp"==e.key||"Up"==e.key;s&&(s=t.dropdown.getNextOrPrevOption(s,!d)),s&&s.matches(n.classNames.dropdownItemSelector)||(s=u[d?u.length-1:0]),t.dropdown.highlightOption(s,!0);break;case"PageUp":case"PageDown":var h;e.preventDefault();var f=t.dropdown.getAllSuggestionsRefs(),p=Math.floor(t.DOM.dropdown.content.clientHeight/(null===(h=f[0])||void 0===h?void 0:h.offsetHeight))||1,m="PageUp"===e.key;if(s){var g=f.indexOf(s),v=m?Math.max(0,g-p):Math.min(f.length-1,g+p);s=f[v]}else s=f[0];t.dropdown.highlightOption(s,!0);break;case"Home":case"End":e.preventDefault();var y=t.dropdown.getAllSuggestionsRefs();s=y["Home"===e.key?0:y.length-1],t.dropdown.highlightOption(s,!0);break;case"Escape":case"Esc":t.dropdown.hide();break;case"ArrowRight":if(t.state.actions.ArrowLeft||n.autoComplete.rightKey)return;case"Tab":var b=!n.autoComplete.rightKey||!n.autoComplete.tabKey;if(!o&&!l&&s&&b&&!t.state.editing&&a){e.preventDefault();var x=t.dropdown.getMappedValue(a);return t.state.autoCompleteData=a,t.input.autocomplete.set.call(t,x),!1}return!0;case"Enter":e.preventDefault(),t.state.actions.selectOption=!0,setTimeout((function(){return t.state.actions.selectOption=!1}),100),n.hooks.suggestionClick(e,{tagify:t,tagData:a,suggestionElm:s}).then((function(){if(s){var n=r?s:t.dropdown.getNextOrPrevOption(s,!d);t.dropdown.selectOption(s,e,(function(){if(n){var e=n.getAttribute("value");n=t.dropdown.getSuggestionNodeByValue(e),t.dropdown.highlightOption(n)}}))}else t.dropdown.hide(),o||t.addTags(t.state.inputText.trim(),!0)})).catch((function(e){return i.warn(e)}));break;case"Backspace":if(o||t.state.editing.scope)return;var _=t.input.raw.call(t);""!=_&&8203!=_.charCodeAt(0)||(!0===n.backspace?t.removeTags():"edit"==n.backspace&&setTimeout(t.editTag.bind(t),0))}}))}},onMouseOver:function(e){var t=e.target.closest(this.settings.classNames.dropdownItemSelector);this.dropdown.highlightOption(t)},onMouseLeave:function(e){this.dropdown.highlightOption()},onClick:function(e){var t=this;if(0==e.button&&e.target!=this.DOM.dropdown&&e.target!=this.DOM.dropdown.content){var n=e.target.closest(this.settings.classNames.dropdownItemSelector),r=this.dropdown.getSuggestionDataByNode(n);this.state.actions.selectOption=!0,setTimeout((function(){return t.state.actions.selectOption=!1}),100),this.settings.hooks.suggestionClick(e,{tagify:this,tagData:r,suggestionElm:n}).then((function(){n?t.dropdown.selectOption(n,e):t.dropdown.hide()})).catch((function(e){return i.warn(e)}))}},onScroll:function(e){var t=e.target,n=t.scrollTop/(t.scrollHeight-t.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(n)})}}},refilter:function(e){e=e||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems(e),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger("dropdown:updated",this.DOM.dropdown)},getSuggestionDataByNode:function(e){for(var t,n=e&&e.getAttribute("value"),i=this.suggestedListItems.length;i--;){if(u(t=this.suggestedListItems[i])&&t.value==n)return t;if(t==n)return{value:t}}},getSuggestionNodeByValue:function(e){return this.dropdown.getAllSuggestionsRefs().find((function(t){return t.getAttribute("value")===e}))},getNextOrPrevOption:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.dropdown.getAllSuggestionsRefs(),i=n.findIndex((function(t){return t===e}));return t?n[i+1]:n[i-1]},highlightOption:function(e,t){var n,i=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(i),this.state.ddItemElm.removeAttribute("aria-selected")),!e)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);n=this.dropdown.getSuggestionDataByNode(e),this.state.ddItemData=n,this.state.ddItemElm=e,e.classList.add(i),e.setAttribute("aria-selected",!0),t&&(e.parentNode.scrollTop=e.clientHeight+e.offsetTop-e.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,n),this.dropdown.position())},selectOption:function(e,t,n){var i=this,r=this.settings,s=r.dropdown.includeSelectedTags,a=r.dropdown,o=a.clearOnSelect,l=a.closeOnSelect;if(!e)return this.addTags(this.state.inputText,!0),void(l&&this.dropdown.hide());t=t||{};var c=e.getAttribute("value"),u="noMatch"==c,h="mix"==r.mode,f=this.suggestedListItems.find((function(e){var t;return(null!==(t=e.value)&&void 0!==t?t:e)==c}));if(this.trigger("dropdown:select",{data:f,elm:e,event:t}),f||u){if(this.state.editing){var p=this.normalizeTags([f])[0];f=r.transformTag.call(this,p)||p,this.onEditTagDone(null,d({__isValid:!0},f))}else this[h?"addMixTags":"addTags"]([f||this.input.raw.call(this)],o);(h||this.DOM.input.parentNode)&&(setTimeout((function(){i.DOM.input.focus(),i.toggleFocusClass(!0)})),l&&setTimeout(this.dropdown.hide.bind(this)),s?n&&n():(e.addEventListener("transitionend",(function(){i.dropdown.fillHeaderFooter(),setTimeout((function(){e.remove(),i.dropdown.refilter(),n&&n()}),100)}),{once:!0}),e.classList.add(this.settings.classNames.dropdownItemHidden)))}else l&&setTimeout(this.dropdown.hide.bind(this))},selectAll:function(e){this.suggestedListItems.length=0,this.dropdown.hide(),this.dropdown.filterListItems("");var t=this.dropdown.filterListItems("");return e||(t=this.state.dropdown.suggestions),this.addTags(t,!0),this},filterListItems:function(e,t){var n,i,r,s,a,o,l=function(){var e,l,c=void 0,d=void 0;e=g[_],i=(null!=(l=Object)&&"undefined"!=typeof Symbol&&l[Symbol.hasInstance]?l[Symbol.hasInstance](e):e instanceof l)?g[_]:{value:g[_]};var v,y=Object.keys(i).some((function(e){return x.includes(e)}))?x:["value"];h.fuzzySearch&&!t.exact?(s=y.reduce((function(e,t){return e+" "+(i[t]||"")}),"").toLowerCase().trim(),h.accentedSearch&&(s=f(s),o=f(o)),c=0==s.indexOf(o),d=s===o,v=s,r=o.toLowerCase().split(" ").every((function(e){return v.includes(e.toLowerCase())}))):(c=!0,r=y.some((function(e){var n=""+(i[e]||"");return h.accentedSearch&&(n=f(n),o=f(o)),h.caseSensitive||(n=n.toLowerCase()),d=n===o,t.exact?n===o:0==n.indexOf(o)}))),a=!h.includeSelectedTags&&n.isTagDuplicate(u(i)?i.value:i),r&&!a&&(d&&c?m.push(i):"startsWith"==h.sortby&&c?p.unshift(i):p.push(i))},c=this,d=this.settings,h=d.dropdown,p=(t=t||{},[]),m=[],g=d.whitelist,v=h.maxItems>=0?h.maxItems:1/0,y=h.includeSelectedTags,b="function"==typeof h.sortby,x=h.searchKeys,_=0;if(!(e="select"==d.mode&&this.value.length&&this.value[0][d.tagTextProp]==e?"":e)||!x.length){p=y?g:g.filter((function(e){return!c.isTagDuplicate(u(e)?e.value:e)}));var w=b?h.sortby(p,o):p.slice(0,v);return this.state.dropdown.suggestions=w,w}for(o=h.caseSensitive?""+e:(""+e).toLowerCase();_<g.length;_++)n=this,l();return this.state.dropdown.suggestions=m.concat(p),w=b?h.sortby(m.concat(p),o):m.concat(p).slice(0,v),this.state.dropdown.suggestions=w,w},getMappedValue:function(e){var t=this.settings.dropdown.mapValueTo;return t?"function"==typeof t?t(e):e[t]||e.value:e.value},createListHTML:function(e){var t=this;return d([],e).map((function(e,n){"string"!=typeof e&&"number"!=typeof e||(e={value:e});var i=t.dropdown.getMappedValue(e);return i="string"==typeof i&&t.settings.dropdown.escapeHTML?c(i):i,t.settings.templates.dropdownItem.apply(t,[A(S({},e),{mappedValue:i}),t])})).join("")}};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];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}function D(){for(var e in this.dropdown={},this._dropdown)this.dropdown[e]="function"==typeof this._dropdown[e]?this._dropdown[e].bind(this):this._dropdown[e];this.dropdown.refs(),this.DOM.dropdown.__tagify=this}var E,O,P=(E=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){C(e,t,n[t])}))}return e}({},L),O=null!=(O={refs:function(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-wrapper']")},getHeaderRef:function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-header']")},getFooterRef:function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-footer']")},getAllSuggestionsRefs:function(){return function(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return T(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.DOM.dropdown.content.querySelectorAll(this.settings.classNames.dropdownItemSelector))},show:function(e){var t,n,i,s=this,a=this.settings,o="mix"==a.mode&&!a.enforceWhitelist,l=!a.whitelist||!a.whitelist.length,c="manual"==a.dropdown.position;if(e=void 0===e?this.state.inputText:e,!(l&&!o&&!a.templates.dropdownItemNoMatch||!1===a.dropdown.enabled||this.state.isLoading||this.settings.readonly)){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(e),e&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",e),a.templates.dropdownItemNoMatch&&(i=a.templates.dropdownItemNoMatch.call(this,{value:e}))),!i){if(this.suggestedListItems.length)e&&o&&!this.state.editing.scope&&!r(this.suggestedListItems[0].value,e)&&this.suggestedListItems.unshift({value:e});else{if(!e||!o||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:e}]}n=""+(u(t=this.suggestedListItems[0])?t.value:t),a.autoComplete&&n&&0==n.indexOf(e)&&this.input.autocomplete.suggest.call(this,t)}this.dropdown.fill(i),a.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.querySelector(a.classNames.dropdownItemSelector)),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=e||!0,this.state.dropdown.query=e,this.setStateSelection(),c||setTimeout((function(){s.dropdown.position(),s.dropdown.render()})),setTimeout((function(){s.trigger("dropdown:show",s.DOM.dropdown)}))}},hide:function(e){var t=this,n=this.DOM,i=n.scope,r=n.dropdown,s="manual"==this.settings.dropdown.position&&!e;if(r&&document.body.contains(r)&&!s)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),i.setAttribute("aria-expanded",!1),r.parentNode.removeChild(r),setTimeout((function(){t.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",r),this},toggle:function(e){this.dropdown[this.state.dropdown.visible&&!e?"hide":"show"]()},getAppendTarget:function(){var e=this.settings.dropdown;return"function"==typeof e.appendTarget?e.appendTarget():e.appendTarget},render:function(){var e,t,n=this,i=((t=this.DOM.dropdown.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(t),e=t.clientHeight,t.parentNode.removeChild(t),e),r=this.settings,s=this.dropdown.getAppendTarget();return!1===r.dropdown.enabled||(this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(r.classNames.dropdownInital),this.dropdown.position(i),s.appendChild(this.DOM.dropdown),setTimeout((function(){return n.DOM.dropdown.classList.remove(r.classNames.dropdownInital)})))),this},fill:function(e){e="string"==typeof e?e:this.dropdown.createListHTML(e||this.suggestedListItems);var t,n=this.settings.templates.dropdownContent.call(this,e);this.DOM.dropdown.content.innerHTML=(t=n)?t.replace(/\>[\r\n ]+\</g,"><").split(/>\s+</).join("><").trim():""},fillHeaderFooter:function(){var e=this.dropdown.filterListItems(this.state.dropdown.query),t=this.parseTemplate("dropdownHeader",[e]),n=this.parseTemplate("dropdownFooter",[e]),i=this.dropdown.getHeaderRef(),r=this.dropdown.getFooterRef();t&&(null==i||i.parentNode.replaceChild(t,i)),n&&(null==r||r.parentNode.replaceChild(n,r))},position:function(e){var t=this.settings.dropdown,n=this.dropdown.getAppendTarget();if("manual"!=t.position&&n){var i,r,s,a,o,l,c,u,d,h,f=this.DOM.dropdown,p=t.RTL,m=n===document.body,g=n===this.DOM.scope,v=m?window.pageYOffset:n.scrollTop,y=document.fullscreenElement||document.webkitFullscreenElement||document.documentElement,b=y.clientHeight,x=Math.max(y.clientWidth||0,window.innerWidth||0),_=x>480?t.position:"all",w=this.DOM["input"==_?"input":"scope"];if(e=e||f.clientHeight,this.state.dropdown.visible){if("text"==_?(s=(i=function(){var e=document.getSelection();if(e.rangeCount){var t,n,i=e.getRangeAt(0),r=i.startContainer,s=i.startOffset;if(s>0)return(n=document.createRange()).setStart(r,s-1),n.setEnd(r,s),{left:(t=n.getBoundingClientRect()).right,top:t.top,bottom:t.bottom};if(r.getBoundingClientRect)return r.getBoundingClientRect()}return{left:-9999,top:-9999}}()).bottom,r=i.top,a=i.left,o="auto"):(l=function(e){var t=0,n=0;for(e=e.parentNode;e&&e!=y;)t+=e.offsetTop||0,n+=e.offsetLeft||0,e=e.parentNode;return{top:t,left:n}}(n),i=w.getBoundingClientRect(),r=g?-1:i.top-l.top,s=(g?i.height:i.bottom-l.top)-1,a=g?-1:i.left-l.left,o=i.width+"px"),!m){var k=function(){for(var e=0,n=t.appendTarget.parentNode;n;)e+=n.scrollTop||0,n=n.parentNode;return e}();r+=k,s+=k}var M;r=Math.floor(r),s=Math.ceil(s),u=x-a<120,d=((c=null!==(M=t.placeAbove)&&void 0!==M?M:b-i.bottom<e)?r:s)+v,h=a+(p&&i.width||0)+window.pageXOffset,h="text"==_&&u?"right: 0;":"left: ".concat(h,"px;"),f.style.cssText="".concat(h," top: ").concat(d,"px; min-width: ").concat(o,"; max-width: ").concat(o),f.setAttribute("placement",c?"top":"bottom"),f.setAttribute("position",_)}}}})?O:{},Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(O)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(O)).forEach((function(e){Object.defineProperty(E,e,Object.getOwnPropertyDescriptor(O,e))})),E),Y="@yaireo/tagify/",I={empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},N={wrapper:function(t,n){return'<tags class="'.concat(n.classNames.namespace," ").concat(n.mode?"".concat(n.classNames[n.mode+"Mode"]):""," ").concat(t.className,'"\n                    ').concat(n.readonly?"readonly":"","\n                    ").concat(n.disabled?"disabled":"","\n                    ").concat(n.required?"required":"","\n                    ").concat("select"===n.mode?"spellcheck='false'":"",'\n                    tabIndex="-1">\n                    ').concat(this.settings.templates.input.call(this),"\n                ").concat(e,"\n        </tags>")},input:function(){var t=this.settings,n=t.placeholder||e;return"<span ".concat(!t.readonly&&t.userInput?"contenteditable":"",' tabIndex="0" data-placeholder="').concat(n,'" aria-placeholder="').concat(t.placeholder||"",'"\n                    class="').concat(t.classNames.input,'"\n                    role="textbox"\n                    autocapitalize="false"\n                    autocorrect="off"\n                    aria-autocomplete="both"\n                    aria-multiline="').concat("mix"==t.mode,'"></span>')},tag:function(e,t){var n=t.settings;return'<tag title="'.concat(e.title||e.value,"\"\n                    contenteditable='false'\n                    tabIndex=\"").concat(n.a11y.focusableTags?0:-1,'"\n                    class="').concat(n.classNames.tag," ").concat(e.class||"",'"\n                    ').concat(this.getAttributes(e),">\n            <x title='' tabIndex=\"").concat(n.a11y.focusableTags?0:-1,'" class="').concat(n.classNames.tagX,"\" role='button' aria-label='remove tag'></x>\n            <div>\n                <span ").concat("select"===n.mode&&n.userInput?"contenteditable='true'":"",' autocapitalize="false" autocorrect="off" spellcheck=\'false\' class="').concat(n.classNames.tagText,'">').concat(e[n.tagTextProp]||e.value,"</span>\n            </div>\n        </tag>")},dropdown:function(e){var t=e.dropdown,n="manual"==t.position;return'<div class="'.concat(n?"":e.classNames.dropdown," ").concat(t.classname,'" role="listbox" aria-labelledby="dropdown" dir="').concat(t.RTL?"rtl":"","\">\n                    <div data-selector='tagify-suggestions-wrapper' class=\"").concat(e.classNames.dropdownWrapper,'"></div>\n                </div>')},dropdownContent:function(e){var t=this.settings.templates,n=this.state.dropdown.suggestions;return"\n            ".concat(t.dropdownHeader.call(this,n),"\n            ").concat(e,"\n            ").concat(t.dropdownFooter.call(this,n),"\n        ")},dropdownItem:function(e){return"<div ".concat(this.getAttributes(e),"\n                    class='").concat(this.settings.classNames.dropdownItem," ").concat(this.isTagDuplicate(e.value)?this.settings.classNames.dropdownItemSelected:""," ").concat(e.class||"",'\'\n                    tabindex="0"\n                    role="option">').concat(e.mappedValue||e.value,"</div>")},dropdownHeader:function(e){return"<header data-selector='tagify-suggestions-header' class=\"".concat(this.settings.classNames.dropdownHeader,'"></header>')},dropdownFooter:function(e){var t=e.length-this.settings.dropdown.maxItems;return t>0?"<footer data-selector='tagify-suggestions-footer' class=\"".concat(this.settings.classNames.dropdownFooter,'">\n                ').concat(t," more items. Refine your search.\n            </footer>"):""},dropdownItemNoMatch:null};function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function j(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function B(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return F(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var V={customBinding:function(){var e=this;this.customEventsList.forEach((function(t){e.on(t,e.settings.callbacks[t])}))},binding:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.settings,i=this.events.callbacks,r=t?"addEventListener":"removeEventListener";if(!this.state.mainEvents||!t){for(var s in this.state.mainEvents=t,t&&!this.listeners.main&&(this.events.bindGlobal.call(this),this.settings.isJQueryPlugin&&jQuery(this.DOM.originalInput).on("tagify.removeAllTags",this.removeAllTags.bind(this))),e=this.listeners.main=this.listeners.main||{keydown:["input",i.onKeydown.bind(this)],click:["scope",i.onClickScope.bind(this)],dblclick:"select"!=n.mode&&["scope",i.onDoubleClickScope.bind(this)],paste:["input",i.onPaste.bind(this)],drop:["input",i.onDrop.bind(this)],compositionstart:["input",i.onCompositionStart.bind(this)],compositionend:["input",i.onCompositionEnd.bind(this)]})e[s]&&this.DOM[e[s][0]][r](s,e[s][1]);var a=this.listeners.main.inputMutationObserver||new MutationObserver(i.onInputDOMChange.bind(this));a.disconnect(),"mix"==n.mode&&a.observe(this.DOM.input,{childList:!0}),this.events.bindOriginaInputListener.call(this)}},bindOriginaInputListener:function(e){var t=(e||0)+500;this.listeners.main&&(clearInterval(this.listeners.main.originalInputValueObserverInterval),this.listeners.main.originalInputValueObserverInterval=setInterval(this.events.callbacks.observeOriginalInputValue.bind(this),t))},bindGlobal:function(e){var t,n=this.events.callbacks,i=e?"removeEventListener":"addEventListener";if(this.listeners&&(e||!this.listeners.global)){this.listeners.global=this.listeners.global||[{type:this.isIE?"keydown":"input",target:this.DOM.input,cb:n[this.isIE?"onInputIE":"onInput"].bind(this)},{type:"keydown",target:window,cb:n.onWindowKeyDown.bind(this)},{type:"focusin",target:this.DOM.scope,cb:n.onFocusBlur.bind(this)},{type:"focusout",target:this.DOM.scope,cb:n.onFocusBlur.bind(this)},{type:"click",target:document,cb:n.onClickAnywhere.bind(this),useCapture:!0}];var r=!0,s=!1,a=void 0;try{for(var o,l=this.listeners.global[Symbol.iterator]();!(r=(o=l.next()).done);r=!0)(t=o.value).target[i](t.type,t.cb,!!t.useCapture)}catch(e){s=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(s)throw a}}}},unbindGlobal:function(){this.events.bindGlobal.call(this,!0)},callbacks:{onFocusBlur:function(e){var t,n,i=this.settings,r=v.call(this,e.relatedTarget),s=g.call(this,e.relatedTarget),a=e.target.classList.contains(i.classNames.tagX),o="focusin"==e.type,l="focusout"==e.type;a&&"mix"!=i.mode&&i.focusInputOnRemove&&this.DOM.input.focus(),r&&o&&!s&&!a&&this.toggleFocusClass(this.state.hasFocus=+new Date);var c=e.target?this.trim(this.DOM.input.textContent):"",u=null===(n=this.value)||void 0===n||null===(t=n[0])||void 0===t?void 0:t[i.tagTextProp],d=i.dropdown.enabled>=0,h={relatedTarget:e.relatedTarget},f=this.state.actions.selectOption&&(d||!i.dropdown.closeOnSelect),p=this.state.actions.addNew&&d;if(l){if(e.relatedTarget===this.DOM.scope)return this.dropdown.hide(),void this.DOM.input.focus();this.postUpdate(),i.onChangeAfterBlur&&this.triggerChangeEvent()}if(!(f||p||a))if(this.state.hasFocus=!(!o&&!r)&&+new Date,this.toggleFocusClass(this.state.hasFocus),"mix"!=i.mode){if(o){if(!i.focusable)return;"select"!=i.mode&&this.DOM.input.focus();var m=0===i.dropdown.enabled&&!this.state.dropdown.visible,y=this.DOM.scope.querySelector(this.settings.classNames.tagTextSelector);return this.trigger("focus",h),void(m&&!s&&(this.dropdown.show(this.value.length?"":void 0),"select"===i.mode&&this.setRangeAtStartEnd(!1,y)))}if(l){if(this.trigger("blur",h),this.loading(!1),"select"==i.mode){if(this.value.length){var b=this.getTagElms()[0];c=this.trim(b.textContent)}u===c&&(c="")}c&&!this.state.actions.selectOption&&i.addTagOnBlur&&i.addTagOn.includes("blur")&&this.addTags(c,!0)}r||(this.DOM.input.removeAttribute("style"),this.dropdown.hide())}else o?this.trigger("focus",h):l&&(this.trigger("blur",h),this.loading(!1),this.dropdown.hide(),this.state.dropdown.visible=void 0,this.setStateSelection())},onCompositionStart:function(e){this.state.composing=!0},onCompositionEnd:function(e){this.state.composing=!1},onWindowKeyDown:function(e){var t,n=this.settings,i=document.activeElement,r=v.call(this,i)&&this.DOM.scope.contains(i),s=i===this.DOM.input,a=r&&i.hasAttribute("readonly"),o=this.DOM.scope.querySelector(this.settings.classNames.tagTextSelector),l=this.state.dropdown.visible;if(("Tab"===e.key&&l||this.state.hasFocus||r&&!a)&&!s){t=i.nextElementSibling;var c=e.target.classList.contains(n.classNames.tagX);switch(e.key){case"Backspace":n.readonly||this.state.editing||(this.removeTags(i),(t||this.DOM.input).focus());break;case"Enter":if(c)return void this.removeTags(e.target.parentNode);n.a11y.focusableTags&&g.call(this,i)&&setTimeout(this.editTag.bind(this),0,i);break;case"ArrowDown":this.state.dropdown.visible||"mix"==n.mode||this.dropdown.show();break;case"Tab":null==o||o.focus()}}},onKeydown:function(e){var t=this,n=this.settings;if(!this.state.composing&&n.userInput){"select"==n.mode&&n.enforceWhitelist&&this.value.length&&"Tab"!=e.key&&e.preventDefault();var i=this.trim(e.target.textContent);this.trigger("keydown",{event:e}),n.hooks.beforeKeyDown(e,{tagify:this}).then((function(r){if("mix"==n.mode){switch(e.key){case"Left":case"ArrowLeft":t.state.actions.ArrowLeft=!0;break;case"Delete":case"Backspace":if(t.state.editing)return;var s=document.getSelection(),a="Delete"==e.key&&s.anchorOffset==(s.anchorNode.length||0),o=s.anchorNode.previousSibling,c=1==s.anchorNode.nodeType||!s.anchorOffset&&o&&1==o.nodeType&&s.anchorNode.previousSibling;!function(e){var t=document.createElement("div");e.replace(/\&#?[0-9a-z]+;/gi,(function(e){return t.innerHTML=e,t.innerText}))}(t.DOM.input.innerHTML);var u,d,h,f=t.getTagElms(),m=1===s.anchorNode.length&&s.anchorNode.nodeValue==String.fromCharCode(8203);if("edit"==n.backspace&&c)return u=1==s.anchorNode.nodeType?null:s.anchorNode.previousElementSibling,setTimeout(t.editTag.bind(t),0,u),void e.preventDefault();if(p()&&z(c,Element))return h=l(c),c.hasAttribute("readonly")||c.remove(),t.DOM.input.focus(),void setTimeout((function(){_(h),t.DOM.input.click()}));if("BR"==s.anchorNode.nodeName)return;if((a||c)&&1==s.anchorNode.nodeType?d=0==s.anchorOffset?a?f[0]:null:f[Math.min(f.length,s.anchorOffset)-1]:a?d=s.anchorNode.nextElementSibling:z(c,Element)&&(d=c),3==s.anchorNode.nodeType&&!s.anchorNode.nodeValue&&s.anchorNode.previousElementSibling&&e.preventDefault(),(c||a)&&!n.backspace)return void e.preventDefault();if("Range"!=s.type&&!s.anchorOffset&&s.anchorNode==t.DOM.input&&"Delete"!=e.key)return void e.preventDefault();if("Range"!=s.type&&d&&d.hasAttribute("readonly"))return void _(l(d));"Delete"==e.key&&m&&x(s.anchorNode.nextSibling)&&t.removeTags(s.anchorNode.nextSibling)}return!0}var g="manual"==n.dropdown.position;switch(e.key){case"Backspace":"select"==n.mode&&n.enforceWhitelist&&t.value.length?t.removeTags():t.state.dropdown.visible&&"manual"!=n.dropdown.position||""!=e.target.textContent&&8203!=i.charCodeAt(0)||(!0===n.backspace?t.removeTags():"edit"==n.backspace&&setTimeout(t.editTag.bind(t),0));break;case"Esc":case"Escape":if(t.state.dropdown.visible)return;e.target.blur();break;case"Down":case"ArrowDown":t.state.dropdown.visible||t.dropdown.show();break;case"ArrowRight":var v=t.state.inputSuggestion||t.state.ddItemData;if(v&&n.autoComplete.rightKey)return void t.addTags([v],!0);break;case"Tab":return!0;case"Enter":if(t.state.dropdown.visible&&!g)return;e.preventDefault();var y=t.state.autoCompleteData||i;setTimeout((function(){t.state.dropdown.visible&&!g||t.state.actions.selectOption||!n.addTagOn.includes(e.key.toLowerCase())||(t.addTags([y],!0),t.state.autoCompleteData=null)}))}})).catch((function(e){return e}))}},onInput:function(e){this.postUpdate();var t=this.settings;if("mix"==t.mode)return this.events.callbacks.onMixTagsInput.call(this,e);var n=this.input.normalize.call(this,void 0,{trim:!1}),i=n.length>=t.dropdown.enabled,r={value:n,inputElm:this.DOM.input},s=this.validateTag({value:n});"select"==t.mode&&this.toggleScopeValidation(s),r.isValid=s,this.state.inputText!=n&&(this.input.set.call(this,n,!1),-1!=n.search(t.delimiters)?this.addTags(n)&&this.input.set.call(this):t.dropdown.enabled>=0&&this.dropdown[i?"show":"hide"](n),this.trigger("input",r))},onMixTagsInput:function(e){var t,n,i,r,s,a,o,l,c=this,u=this.settings,h=this.value.length,f=this.getTagElms(),m=document.createDocumentFragment(),g=window.getSelection().getRangeAt(0),v=[].map.call(f,(function(e){return x(e).value}));if("deleteContentBackward"==e.inputType&&p()&&this.events.callbacks.onKeydown.call(this,{target:e.target,key:"Backspace"}),w(this.getTagElms()),this.value.slice().forEach((function(e){e.readonly&&!v.includes(e.value)&&m.appendChild(c.createTagElem(e))})),m.childNodes.length&&(g.insertNode(m),this.setRangeAtStartEnd(!1,m.lastChild)),f.length!=h)return this.value=[].map.call(this.getTagElms(),(function(e){return x(e)})),void this.update({withoutChangeEvent:!0});if(this.hasMaxTags())return!0;if(window.getSelection&&(a=window.getSelection()).rangeCount>0&&3==a.anchorNode.nodeType){if((g=a.getRangeAt(0).cloneRange()).collapse(!0),g.setStart(a.focusNode,0),i=(t=g.toString().slice(0,g.endOffset)).split(u.pattern).length-1,(n=t.match(u.pattern))&&(r=t.slice(t.lastIndexOf(n[n.length-1]))),r){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:r.match(u.pattern)[0],value:r.replace(u.pattern,"")},this.state.tag.baseOffset=a.baseOffset-this.state.tag.value.length,l=this.state.tag.value.match(u.delimiters))return this.state.tag.value=this.state.tag.value.replace(u.delimiters,""),this.state.tag.delimiters=l[0],this.addTags(this.state.tag.value,u.dropdown.clearOnSelect),void this.dropdown.hide();s=this.state.tag.value.length>=u.dropdown.enabled;try{o=(o=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&o.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(e){}(o||i<this.state.mixMode.matchedPatternCount)&&(s=!1)}else this.state.flaggedTags={};this.state.mixMode.matchedPatternCount=i}setTimeout((function(){c.update({withoutChangeEvent:!0}),c.trigger("input",d({},c.state.tag,{textContent:c.DOM.input.textContent})),c.state.tag&&c.dropdown[s?"show":"hide"](c.state.tag.value)}),10)},onInputIE:function(e){var t=this;setTimeout((function(){t.events.callbacks.onInput.call(t,e)}))},observeOriginalInputValue:function(){this.DOM.originalInput.parentNode||this.destroy(),this.DOM.originalInput.value!=this.DOM.originalInput.tagifyValue&&this.loadOriginalValues()},onClickAnywhere:function(e){if(e.target!=this.DOM.scope&&!this.DOM.scope.contains(e.target)){this.toggleFocusClass(!1),this.state.hasFocus=!1;var t=e.target.closest(this.settings.classNames.dropdownSelector);(null==t?void 0:t.__tagify)!=this&&this.dropdown.hide()}},onClickScope:function(e){var t=this.settings,n=e.target.closest("."+t.classNames.tag);e.target,this.DOM.scope;var i=+new Date-this.state.hasFocus;if(!e.target.classList.contains(t.classNames.tagX))return n&&!this.state.editing?(this.trigger("click",{tag:n,index:this.getNodeIndex(n),data:x(n),event:e}),void(1!==t.editTags&&1!==t.editTags.clicks&&"select"!=t.mode||this.events.callbacks.onDoubleClickScope.call(this,e))):void(e.target==this.DOM.input&&("mix"==t.mode&&this.fixFirefoxLastTagNoCaret(),i>500||!t.focusable)?this.state.dropdown.visible?this.dropdown.hide():0===t.dropdown.enabled&&"mix"!=t.mode&&this.dropdown.show(this.value.length?"":void 0):"select"!=t.mode||0!==t.dropdown.enabled||this.state.dropdown.visible||(this.events.callbacks.onDoubleClickScope.call(this,function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){R(e,t,n[t])}))}return e}({},e),{target:this.getTagElms()[0]})),!t.userInput&&this.dropdown.show()));this.removeTags(e.target.parentNode)},onPaste:function(e){var t=this;e.preventDefault();var n,i,r,s=this.settings;if(!s.userInput)return!1;s.readonly||(i=e.clipboardData||window.clipboardData,r=i.getData("Text"),s.hooks.beforePaste(e,{tagify:this,pastedText:r,clipboardData:i}).then((function(s){void 0===s&&(s=r),s&&(t.injectAtCaret(s,window.getSelection().getRangeAt(0)),"mix"==t.settings.mode?t.events.callbacks.onMixTagsInput.call(t,e):t.settings.pasteAsTags?n=t.addTags(t.state.inputText+s,!0):(t.state.inputText=s,t.dropdown.show(s))),t.trigger("paste",{event:e,pastedText:r,clipboardData:i,tagsElems:n})})).catch((function(e){return e})))},onDrop:function(e){e.preventDefault()},onEditTagInput:function(e,t){var n,i=e.closest("."+this.settings.classNames.tag),r=this.getNodeIndex(i),s=x(i),a=this.input.normalize.call(this,e),o=(R(n={},this.settings.tagTextProp,a),R(n,"__tagId",s.__tagId),n),l=this.validateTag(o);this.editTagChangeDetected(d(s,o))||!0!==e.originalIsValid||(l=!0),i.classList.toggle(this.settings.classNames.tagInvalid,!0!==l),s.__isValid=l,i.title=!0===l?s.title||s.value:l,a.length>=this.settings.dropdown.enabled&&(this.state.editing&&(this.state.editing.value=a),this.dropdown.show(a)),this.trigger("edit:input",{tag:i,index:r,data:d({},this.value[r],{newValue:a}),event:t})},onEditTagPaste:function(e,t){var n=(t.clipboardData||window.clipboardData).getData("Text");t.preventDefault();var i=b(n);this.setRangeAtStartEnd(!1,i)},onEditTagClick:function(e,t){this.events.callbacks.onClickScope.call(this,t)},onEditTagFocus:function(e){this.state.editing={scope:e,input:e.querySelector("[contenteditable]")}},onEditTagBlur:function(e,t){var n=g.call(this,t.relatedTarget);if("select"==this.settings.mode&&n&&t.relatedTarget.contains(t.target))this.dropdown.hide();else if(this.state.editing&&(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(document.activeElement)||this.trigger("blur",{}),this.DOM.scope.contains(e))){var i,r,s,a=this.settings,o=e.closest("."+a.classNames.tag),l=x(o),c=this.input.normalize.call(this,e),u=(R(i={},a.tagTextProp,c),R(i,"__tagId",l.__tagId),i),h=l.__originalData,f=this.editTagChangeDetected(d(l,u)),p=this.validateTag(u);if(c)if(f){var m;if(r=this.hasMaxTags(),s=d({},h,(R(m={},a.tagTextProp,this.trim(c)),R(m,"__isValid",p),m)),a.transformTag.call(this,s,h),!0!==(p=(!r||!0===h.__isValid)&&this.validateTag(s))){if(this.trigger("invalid",{data:s,tag:o,message:p}),a.editTags.keepInvalid)return;a.keepInvalidTags?s.__isValid=p:s=h}else a.keepInvalidTags&&(delete s.title,delete s["aria-invalid"],delete s.class);this.onEditTagDone(o,s)}else this.onEditTagDone(o,h);else this.onEditTagDone(o)}},onEditTagkeydown:function(e,t){if(!this.state.composing)switch(this.trigger("edit:keydown",{event:e}),e.key){case"Esc":case"Escape":this.state.editing=!1,t.__tagifyTagData.__originalData.value?t.parentNode.replaceChild(t.__tagifyTagData.__originalHTML,t):t.remove();break;case"Enter":case"Tab":e.preventDefault(),setTimeout((function(){return e.target.blur()}),0)}},onDoubleClickScope:function(e){var t=e.target.closest("."+this.settings.classNames.tag);if(t){var n,i,r=x(t),s=this.settings;!1!==(null==r?void 0:r.editable)&&(n=t.classList.contains(this.settings.classNames.tagEditing),i=t.hasAttribute("readonly"),s.readonly||n||i||!this.settings.editTags||!s.userInput||(this.events.callbacks.onEditTagFocus.call(this,t),this.editTag(t)),this.toggleFocusClass(!0),"select"!=s.mode&&this.trigger("dblclick",{tag:t,index:this.getNodeIndex(t),data:x(t)}))}},onInputDOMChange:function(e){var t=this;e.forEach((function(e){e.addedNodes.forEach((function(e){if("<div><br></div>"==e.outerHTML)e.replaceWith(document.createElement("br"));else if(1==e.nodeType&&e.querySelector(t.settings.classNames.tagSelector)){var n,i=document.createTextNode("");3==e.childNodes[0].nodeType&&"BR"!=e.previousSibling.nodeName&&(i=document.createTextNode("\n")),(n=e).replaceWith.apply(n,B([i].concat(B(B(e.childNodes).slice(0,-1))))),_(i)}else if(g.call(t,e)){var r;if(3!=(null===(r=e.previousSibling)||void 0===r?void 0:r.nodeType)||e.previousSibling.textContent||e.previousSibling.remove(),e.previousSibling&&"BR"==e.previousSibling.nodeName){e.previousSibling.replaceWith("\n​");for(var s=e.nextSibling,a="";s;)a+=s.textContent,s=s.nextSibling;a.trim()&&_(e.previousSibling)}else e.previousSibling&&!x(e.previousSibling)||e.before("​")}})),e.removedNodes.forEach((function(e){e&&"BR"==e.nodeName&&g.call(t,n)&&(t.removeTags(n),t.fixFirefoxLastTagNoCaret())}))}));var n=this.DOM.input.lastChild;n&&""==n.nodeValue&&n.remove(),n&&"BR"==n.nodeName||this.DOM.input.appendChild(document.createElement("br"))}}};function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){q(e,t,n[t])}))}return e}function X(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return W(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e)||function(){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 G(e,t){if(!e){i.warn("input element not found",e);var n=new Proxy(this,{get:function(){return function(){return n}}});return n}if(e.__tagify)return i.warn("input element is already Tagified - Same instance is returned.",e),e.__tagify;var r;d(this,function(e){var t=document.createTextNode(""),n={};function r(e,n,i){i&&n.split(/\s+/g).forEach((function(n){return t[e+"EventListener"].call(t,n,i)}))}return{removeAllCustomListeners:function(){Object.entries(n).forEach((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(s.push(i.value),!t||s.length!==t);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),n=t[0];t[1].forEach((function(e){return r("remove",n,e)}))})),n={}},off:function(e,t){return e&&(t?r("remove",e,t):e.split(/\s+/g).forEach((function(e){var t;null===(t=n[e])||void 0===t||t.forEach((function(t){return r("remove",e,t)})),delete n[e]}))),this},on:function(e,t){return t&&"function"==typeof t&&(e.split(/\s+/g).forEach((function(e){Array.isArray(n[e])?n[e].push(t):n[e]=[t]})),r("add",e,t)),this},trigger:function(n,r,s){var a;if(s=s||{cloneData:!0},n)if(e.settings.isJQueryPlugin)"remove"==n&&(n="removeTag"),jQuery(e.DOM.originalInput).triggerHandler(n,[r]);else{try{var o="object"==typeof r?r:{value:r};if((o=s.cloneData?d({},o):o).tagify=this,r.event&&(o.event=this.cloneEvent(r.event)),j(r,Object))for(var l in r)j(r[l],HTMLElement)&&(o[l]=r[l]);a=new CustomEvent(n,{detail:o})}catch(e){i.warn(e)}t.dispatchEvent(a)}}}}(this)),this.isFirefox=/firefox|fxios/i.test(navigator.userAgent)&&!/seamonkey/i.test(navigator.userAgent),this.isIE=window.document.documentMode,t=t||{},this.getPersistedData=(r=t.id,function(e){var t;if(r){var n,i="/"+e;if(1===(null===(t=localStorage)||void 0===t?void 0:t.getItem(Y+r+"/v")))try{n=JSON.parse(localStorage[Y+r+i])}catch(e){}return n}}),this.setPersistedData=function(e){var t;return e?(null===(t=localStorage)||void 0===t||t.setItem(Y+e+"/v",1),function(t,n){var i,r="/"+n,s=JSON.stringify(t);t&&n&&(null===(i=localStorage)||void 0===i||i.setItem(Y+e+r,s),dispatchEvent(new Event("storage")))}):function(){}}(t.id),this.clearPersistedData=function(e){return function(t){var n=Y+"/"+e+"/";if(t)localStorage.removeItem(n+t);else for(var i in localStorage)i.includes(n)&&localStorage.removeItem(i)}}(t.id),this.applySettings(e,t),this.state={inputText:"",editing:!1,composing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(e),D.call(this),this.getCSSVars(),this.loadOriginalValues(),this.events.customBinding.call(this),this.events.binding.call(this),e.autofocus&&this.DOM.input.focus(),e.__tagify=this}return G.prototype={_dropdown:P,placeCaretAfterNode:_,getSetTagData:x,helpers:{sameStr:r,removeCollectionProp:s,omit:a,isObject:u,parseHTML:o,escapeHTML:c,extend:d,concatWithoutDups:h,getUID:m,isNodeTag:g},customEventsList:["change","add","remove","invalid","input","paste","click","keydown","focus","blur","edit:input","edit:beforeUpdate","edit:updated","edit:start","edit:keydown","dropdown:show","dropdown:hide","dropdown:select","dropdown:updated","dropdown:noMatch","dropdown:scroll"],dataProps:["__isValid","__removed","__originalData","__originalHTML","__tagId"],trim:function(e){return this.settings.trim&&e&&"string"==typeof e?e.trim():e},parseHTML:o,templates:N,parseTemplate:function(e,t){return o((e=this.settings.templates[e]||e).apply(this,t))},set whitelist(e){var t=e&&Array.isArray(e);this.settings.whitelist=t?e:[],this.setPersistedData(t?e:[],"whitelist")},get whitelist(){return this.settings.whitelist},set userInput(e){this.settings.userInput=!!e,this.setContentEditable(!!e)},get userInput(){return this.settings.userInput},generateClassSelectors:function(e){var t=function(t){var n=t;Object.defineProperty(e,n+"Selector",{get:function(){return"."+this[n].split(" ")[0]}})};for(var n in e)t(n)},applySettings:function(e,t){var n,i;k.templates=this.templates;var r=d({},k,"mix"==t.mode?{dropdown:{position:"text"}}:{}),s=this.settings=d({},r,t);if(s.disabled=e.hasAttribute("disabled"),s.readonly=s.readonly||e.hasAttribute("readonly"),s.placeholder=c(e.getAttribute("placeholder")||s.placeholder||""),s.required=e.hasAttribute("required"),this.generateClassSelectors(s.classNames),this.isIE&&(s.autoComplete=!1),["whitelist","blacklist"].forEach((function(t){var n=e.getAttribute("data-"+t);n&&U(n=n.split(s.delimiters),Array)&&(s[t]=n)})),"autoComplete"in t&&!u(t.autoComplete)&&(s.autoComplete=k.autoComplete,s.autoComplete.enabled=t.autoComplete),"mix"==s.mode&&(s.pattern=s.pattern||/@/,s.autoComplete.rightKey=!0,s.delimiters=t.delimiters||null,s.tagTextProp&&!s.dropdown.searchKeys.includes(s.tagTextProp)&&s.dropdown.searchKeys.push(s.tagTextProp)),e.pattern)try{s.pattern=new RegExp(e.pattern)}catch(e){}if(s.delimiters){s._delimiters=s.delimiters;try{s.delimiters=new RegExp(this.settings.delimiters,"g")}catch(e){}}s.disabled&&(s.userInput=!1),this.TEXTS=$({},I,s.texts||{}),"select"==s.mode&&(s.dropdown.includeSelectedTags=!0),("select"!=s.mode||(null===(n=t.dropdown)||void 0===n?void 0:n.enabled))&&s.userInput||(s.dropdown.enabled=0),s.dropdown.appendTarget=(null===(i=t.dropdown)||void 0===i?void 0:i.appendTarget)||document.body,void 0===s.dropdown.includeSelectedTags&&(s.dropdown.includeSelectedTags=s.duplicates);var a=this.getPersistedData("whitelist");Array.isArray(a)&&(this.whitelist=Array.isArray(s.whitelist)?h(s.whitelist,a):a)},getAttributes:function(e){var t,n=this.getCustomAttributes(e),i="";for(t in n)i+=" "+t+(void 0!==e[t]?'="'.concat(n[t],'"'):"");return i},getCustomAttributes:function(e){if(!u(e))return"";var t,n={};for(t in e)"__"!=t.slice(0,2)&&"class"!=t&&e.hasOwnProperty(t)&&void 0!==e[t]&&(n[t]=c(e[t]));return n},setStateSelection:function(){var e=window.getSelection(),t={anchorOffset:e.anchorOffset,anchorNode:e.anchorNode,range:e.getRangeAt&&e.rangeCount&&e.getRangeAt(0)};return this.state.selection=t,t},getCSSVars:function(){var e,t,n=getComputedStyle(this.DOM.scope,null);this.CSSVars={tagHideTransition:(e=function(e){if(!e)return{};var t=(e=e.trim().split(" ")[0]).split(/\d+/g).filter((function(e){return e})).pop().trim();return{value:+e.split(t).filter((function(e){return e}))[0].trim(),unit:t}}(n.getPropertyValue("--tag-hide-transition")),t=e.value,"s"==e.unit?1e3*t:t)}},build:function(e){var t=this.DOM,n=e.closest("label");this.settings.mixMode.integrated?(t.originalInput=null,t.scope=e,t.input=e):(t.originalInput=e,t.originalInput_tabIndex=e.tabIndex,t.scope=this.parseTemplate("wrapper",[e,this.settings]),t.input=t.scope.querySelector(this.settings.classNames.inputSelector),e.parentNode.insertBefore(t.scope,e),e.tabIndex=-1),n&&n.setAttribute("for","")},destroy:function(){var e;this.events.unbindGlobal.call(this),null===(e=this.DOM.scope.parentNode)||void 0===e||e.removeChild(this.DOM.scope),this.DOM.originalInput.tabIndex=this.DOM.originalInput_tabIndex,delete this.DOM.originalInput.__tagify,this.dropdown.hide(!0),this.removeAllCustomListeners(),clearTimeout(this.dropdownHide__bindEventsTimeout),clearInterval(this.listeners.main.originalInputValueObserverInterval)},loadOriginalValues:function(e){var t,n=this.settings;if(this.state.blockChangeEvent=!0,void 0===e){var i=this.getPersistedData("value");e=i&&!this.DOM.originalInput.value?i:n.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value}if(this.removeAllTags(),e)if("mix"==n.mode)this.parseMixTags(e),(t=this.DOM.input.lastChild)&&"BR"==t.tagName||this.DOM.input.insertAdjacentHTML("beforeend","<br>");else{try{U(JSON.parse(e),Array)&&(e=JSON.parse(e))}catch(e){}this.addTags(e,!0).forEach((function(e){return e&&e.classList.add(n.classNames.tagNoAnimation)}))}else this.postUpdate();this.state.lastOriginalValueReported=n.mixMode.integrated?"":this.DOM.originalInput.value},cloneEvent:function(e){var t={};for(var n in e)"path"!=n&&(t[n]=e[n]);return t},loading:function(e){return this.state.isLoading=e,this.DOM.scope.classList[e?"add":"remove"](this.settings.classNames.scopeLoading),this},tagLoading:function(e,t){return e&&e.classList[t?"add":"remove"](this.settings.classNames.tagLoading),this},toggleClass:function(e,t){"string"==typeof e&&this.DOM.scope.classList.toggle(e,t)},toggleScopeValidation:function(e){var t=!0===e||void 0===e;!this.settings.required&&e&&e===this.TEXTS.empty&&(t=!0),this.toggleClass(this.settings.classNames.tagInvalid,!t),this.DOM.scope.title=t?"":e},toggleFocusClass:function(e){this.toggleClass(this.settings.classNames.focus,!!e)},setPlaceholder:function(e){var t=this;["data","aria"].forEach((function(n){return t.DOM.input.setAttribute("".concat(n,"-placeholder"),e)}))},triggerChangeEvent:function(){if(!this.settings.mixMode.integrated){var e=this.DOM.originalInput,t=this.state.lastOriginalValueReported!==e.value,n=new CustomEvent("change",{bubbles:!0});t&&(this.state.lastOriginalValueReported=e.value,n.simulated=!0,e._valueTracker&&e._valueTracker.setValue(Math.random()),e.dispatchEvent(n),this.trigger("change",this.state.lastOriginalValueReported),e.value=this.state.lastOriginalValueReported)}},events:V,fixFirefoxLastTagNoCaret:function(){},setRangeAtStartEnd:function(e,t){if(t){e="number"==typeof e?e:!!e,t=t.lastChild||t;var n=document.getSelection();if(U(n.focusNode,Element)&&!this.DOM.input.contains(n.focusNode))return!0;try{n.rangeCount>=1&&["Start","End"].forEach((function(i){return n.getRangeAt(0)["set"+i](t,e||t.length)}))}catch(e){console.warn(e)}}},insertAfterTag:function(e,t){if(t=t||this.settings.mixMode.insertAfterTag,e&&e.parentNode&&t)return t="string"==typeof t?document.createTextNode(t):t,e.parentNode.insertBefore(t,e.nextSibling),t},editTagChangeDetected:function(e){var t=e.__originalData;for(var n in t)if(!this.dataProps.includes(n)&&e[n]!=t[n])return!0;return!1},getTagTextNode:function(e){return e.querySelector(this.settings.classNames.tagTextSelector)},setTagTextNode:function(e,t){this.getTagTextNode(e).innerHTML=c(t)},editTag:function(e,t){var n=this;e=e||this.getLastTag(),t=t||{};var r=this.settings,s=this.getTagTextNode(e),a=this.getNodeIndex(e),o=x(e),l=this.events.callbacks,c=!0,u="select"==r.mode;if(!u&&this.dropdown.hide(),s){if(!U(o,Object)||!("editable"in o)||o.editable)return o=x(e,{__originalData:d({},o),__originalHTML:e.cloneNode(!0)}),x(o.__originalHTML,o.__originalData),s.setAttribute("contenteditable",!0),e.classList.add(r.classNames.tagEditing),this.events.callbacks.onEditTagFocus.call(this,e),s.addEventListener("click",l.onEditTagClick.bind(this,e)),s.addEventListener("blur",l.onEditTagBlur.bind(this,this.getTagTextNode(e))),s.addEventListener("input",l.onEditTagInput.bind(this,s)),s.addEventListener("paste",l.onEditTagPaste.bind(this,s)),s.addEventListener("keydown",(function(t){return l.onEditTagkeydown.call(n,t,e)})),s.addEventListener("compositionstart",l.onCompositionStart.bind(this)),s.addEventListener("compositionend",l.onCompositionEnd.bind(this)),t.skipValidation||(c=this.editTagToggleValidity(e)),s.originalIsValid=c,this.trigger("edit:start",{tag:e,index:a,data:o,isValid:c}),s.focus(),!u&&this.setRangeAtStartEnd(!1,s),0===r.dropdown.enabled&&!u&&this.dropdown.show(),this.state.hasFocus=!0,this}else i.warn("Cannot find element in Tag template: .",r.classNames.tagTextSelector)},editTagToggleValidity:function(e,t){var n;if(t=t||x(e))return(n=!("__isValid"in t)||!0===t.__isValid)||this.removeTagsFromValue(e),this.update(),e.classList.toggle(this.settings.classNames.tagNotAllowed,!n),t.__isValid=n,t.__isValid;i.warn("tag has no data: ",e,t)},onEditTagDone:function(e,t){e=e||this.state.editing.scope,t=t||{};var n,i,r=this.settings,s={tag:e,index:this.getNodeIndex(e),previousData:x(e),data:t};this.trigger("edit:beforeUpdate",s,{cloneData:!1}),this.state.editing=!1,delete t.__originalData,delete t.__originalHTML,e&&e.parentNode&&((void 0!==(i=t[r.tagTextProp])?null===(n=(i+="").trim)||void 0===n?void 0:n.call(i):r.tagTextProp in t?void 0:t.value)?(e=this.replaceTag(e,t),this.editTagToggleValidity(e,t),r.a11y.focusableTags?e.focus():"select"!=r.mode&&_(e)):this.removeTags(e)),this.trigger("edit:updated",s),r.dropdown.closeOnSelect&&this.dropdown.hide(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag:function(e,t){t&&""!==t.value&&void 0!==t.value||(t=e.__tagifyTagData),t.__isValid&&1!=t.__isValid&&d(t,this.getInvalidTagAttrs(t,t.__isValid));var n=this.createTagElem(t);return e.parentNode.replaceChild(n,e),this.updateValueByDOMTags(),n},updateValueByDOMTags:function(){var e=this;this.value.length=0;var t=this.settings.classNames,n=[t.tagNotAllowed.split(" ")[0],t.tagHide];[].forEach.call(this.getTagElms(),(function(t){X(t.classList).some((function(e){return n.includes(e)}))||e.value.push(x(t))})),this.update(),this.dropdown.refilter()},injectAtCaret:function(e,t){var n;if(t=t||(null===(n=this.state.selection)||void 0===n?void 0:n.range),"string"==typeof e&&(e=document.createTextNode(e)),!t&&e)return this.appendMixTags(e),this;var i=b(e,t);return this.setRangeAtStartEnd(!1,i),this.updateValueByDOMTags(),this.update(),this},input:{set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.settings,i=n.dropdown.closeOnSelect;this.state.inputText=e,t&&(this.DOM.input.innerHTML=c(""+e),e&&this.toggleClass(n.classNames.empty,!this.DOM.input.innerHTML)),!e&&i&&this.dropdown.hide.bind(this),this.input.autocomplete.suggest.call(this),this.input.validate.call(this)},raw:function(){return this.DOM.input.textContent},validate:function(){var e=!this.state.inputText||!0===this.validateTag({value:this.state.inputText});return this.DOM.input.classList.toggle(this.settings.classNames.inputInvalid,!e),e},normalize:function(e,t){var n=e||this.DOM.input,i=[];n.childNodes.forEach((function(e){return 3==e.nodeType&&i.push(e.nodeValue)})),i=i.join("\n");try{i=i.replace(/(?:\r\n|\r|\n)/g,this.settings.delimiters.source.charAt(0))}catch(e){}return i=i.replace(/\s/g," "),(null==t?void 0:t.trim)?this.trim(i):i},autocomplete:{suggest:function(e){if(this.settings.autoComplete.enabled){"object"!=typeof(e=e||{value:""})&&(e={value:e});var t=this.dropdown.getMappedValue(e);if("number"!=typeof t){var n=this.state.inputText.toLowerCase(),i=t.substr(0,this.state.inputText.length).toLowerCase(),r=t.substring(this.state.inputText.length);t&&this.state.inputText&&i==n?(this.DOM.input.setAttribute("data-suggest",r),this.state.inputSuggestion=e):(this.DOM.input.removeAttribute("data-suggest"),delete this.state.inputSuggestion)}}},set:function(e){var t=this.DOM.input.getAttribute("data-suggest"),n=e||(t?this.state.inputText+t:null);return!!n&&("mix"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+n)):(this.input.set.call(this,n),this.setRangeAtStartEnd(!1,this.DOM.input)),this.input.autocomplete.suggest.call(this),this.dropdown.hide(),!0)}}},getTagIdx:function(e){return this.value.findIndex((function(t){return t.__tagId==(e||{}).__tagId}))},getNodeIndex:function(e){var t=0;if(e)for(;e=e.previousElementSibling;)t++;return t},getTagElms:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i="."+X(this.settings.classNames.tag.split(" ")).concat(X(t)).join(".");return[].slice.call(this.DOM.scope.querySelectorAll(i))},getLastTag:function(){var e=this.settings.classNames,t=this.DOM.scope.querySelectorAll("".concat(e.tagSelector,":not(.").concat(e.tagHide,"):not([readonly])"));return t[t.length-1]},isTagDuplicate:function(e,t,n){var i=0,s=!0,a=!1,o=void 0;try{for(var l,c=this.value[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var u=l.value;r(this.trim(""+e),u.value,t)&&n!=u.__tagId&&i++}}catch(e){a=!0,o=e}finally{try{s||null==c.return||c.return()}finally{if(a)throw o}}return i},getTagIndexByValue:function(e){var t=this,n=[],i=this.settings.dropdown.caseSensitive;return this.getTagElms().forEach((function(s,a){s.__tagifyTagData&&r(t.trim(s.__tagifyTagData.value),e,i)&&n.push(a)})),n},getTagElmByValue:function(e){var t=this.getTagIndexByValue(e)[0];return this.getTagElms()[t]},flashTag:function(e){var t=this;e&&(e.classList.add(this.settings.classNames.tagFlash),setTimeout((function(){e.classList.remove(t.settings.classNames.tagFlash)}),100))},isTagBlacklisted:function(e){return e=this.trim(e.toLowerCase()),this.settings.blacklist.filter((function(t){return(""+t).toLowerCase()==e})).length},isTagWhitelisted:function(e){return!!this.getWhitelistItem(e)},getWhitelistItem:function(e,t,n){t=t||"value";var i,s=this.settings;return(n=n||s.whitelist).some((function(n){var a="object"==typeof n?n[t]||n.value:n;if(r(a,e,s.dropdown.caseSensitive,s.trim))return i="object"==typeof n?n:{value:n},!0})),i||"value"!=t||"value"==s.tagTextProp||(i=this.getWhitelistItem(e,s.tagTextProp,n)),i},validateTag:function(e){var t=this.settings,n="value"in e?"value":t.tagTextProp,i=this.trim(e[n]+"");return(e[n]+"").trim()?"mix"!=t.mode&&t.pattern&&U(t.pattern,RegExp)&&!t.pattern.test(i)?this.TEXTS.pattern:!t.duplicates&&this.isTagDuplicate(i,t.dropdown.caseSensitive,e.__tagId)?this.TEXTS.duplicate:this.isTagBlacklisted(i)||t.enforceWhitelist&&!this.isTagWhitelisted(i)?this.TEXTS.notAllowed:!t.validate||t.validate(e):this.TEXTS.empty},getInvalidTagAttrs:function(e,t){return{"aria-invalid":!0,class:"".concat(e.class||""," ").concat(this.settings.classNames.tagNotAllowed).trim(),title:t}},hasMaxTags:function(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly:function(e,t){var n=this.settings;this.DOM.scope.contains(document.activeElement)&&document.activeElement.blur(),n[t||"readonly"]=e,this.DOM.scope[(e?"set":"remove")+"Attribute"](t||"readonly",!0),this.settings.userInput=!0,this.setContentEditable(!e)},setContentEditable:function(e){this.DOM.scope.querySelectorAll("[contenteditable]").forEach((function(t){t.contentEditable=e,t.tabIndex=e?0:-1}))},setDisabled:function(e){this.setReadonly(e,"disabled")},normalizeTags:function(e){var t=this,n=this.settings,i=n.whitelist,r=n.delimiters,s=n.mode,a=n.tagTextProp,o=[],l=!!i&&U(i[0],Object),c=Array.isArray(e),h=c&&e[0].value,f=function(e){return(e+"").split(r).reduce((function(e,n){var i,r=t.trim(n);return r&&e.push((q(i={},a,r),q(i,"value",r),i)),e}),[])};if("number"==typeof e&&(e=e.toString()),"string"==typeof e){if(!e.trim())return[];e=f(e)}else c&&(e=e.reduce((function(e,n){if(u(n)){var i=d({},n);a in i||(a="value"),i[a]=t.trim(i[a]),(i[a]||0===i[a])&&e.push(i)}else if(null!=n&&""!==n&&void 0!==n){var r;(r=e).push.apply(r,X(f(n)))}return e}),[]));return l&&!h&&(e.forEach((function(e){var n=o.map((function(e){return e.value})),i=t.dropdown.filterListItems.call(t,e[a],{exact:!0});t.settings.duplicates||(i=i.filter((function(e){return!n.includes(e.value)})));var r=i.length>1?t.getWhitelistItem(e[a],a,i):i[0];r&&U(r,Object)?o.push(r):"mix"!=s&&(null==e.value&&(e.value=e[a]),o.push(e))})),o.length&&(e=o)),e},parseMixTags:function(e){var t=this,n=this.settings,i=n.mixTagsInterpolator,r=n.duplicates,s=n.transformTag,a=n.enforceWhitelist,o=n.maxTags,l=n.tagTextProp,c=[];e=e.split(i[0]).map((function(e,n){var u,d,h,f=e.split(i[1]),p=f[0],m=c.length==o;try{if(p==+p)throw Error;d=JSON.parse(p)}catch(e){d=t.normalizeTags(p)[0]||{value:p}}if(s.call(t,d),m||!(f.length>1)||a&&!t.isTagWhitelisted(d.value)||!r&&t.isTagDuplicate(d.value)){if(e)return n?i[0]+e:e}else d[u=d[l]?l:"value"]=t.trim(d[u]),h=t.createTagElem(d),c.push(d),h.classList.add(t.settings.classNames.tagNoAnimation),f[0]=h.outerHTML,t.value.push(d);return f.join("")})).join(""),this.DOM.input.innerHTML=e,this.DOM.input.appendChild(document.createTextNode("")),this.DOM.input.normalize();var u=this.getTagElms();return u.forEach((function(e,t){return x(e,c[t])})),this.update({withoutChangeEvent:!0}),w(u,this.state.hasFocus),e},replaceTextWithNode:function(e,t){if(this.state.tag||t){t=t||this.state.tag.prefix+this.state.tag.value;var n,i,r=this.state.selection||window.getSelection(),s=r.anchorNode,a=this.state.tag.delimiters?this.state.tag.delimiters.length:0;return s.splitText(r.anchorOffset-a),-1==(n=s.nodeValue.lastIndexOf(t))||(i=s.splitText(n),e&&s.parentNode.replaceChild(e,i)),!0}},prepareNewTagNode:function(e,t){t=t||{};var n=this.settings,i=[],r={},s=Object.assign({},e,{value:e.value+""});if(e=Object.assign({},s),n.transformTag.call(this,e),e.__isValid=this.hasMaxTags()||this.validateTag(e),!0!==e.__isValid){if(t.skipInvalid)return;if(d(r,this.getInvalidTagAttrs(e,e.__isValid),{__preInvalidData:s}),e.__isValid==this.TEXTS.duplicate&&this.flashTag(this.getTagElmByValue(e.value)),!n.createInvalidTags)return void i.push(e.value)}return"readonly"in e&&(e.readonly?r["aria-readonly"]=!0:delete e.readonly),{tagElm:this.createTagElem(e,r),tagData:e,aggregatedInvalidInput:i}},postProcessNewTagNode:function(e,t){var n=this,i=this.settings,r=t.__isValid;r&&!0===r?this.value.push(t):(this.trigger("invalid",{data:t,index:this.value.length,tag:e,message:r}),i.keepInvalidTags||setTimeout((function(){return n.removeTags(e,!0)}),1e3)),this.dropdown.position()},selectTag:function(e,t){var n=this;if(!this.settings.enforceWhitelist||this.isTagWhitelisted(t.value)){this.state.actions.selectOption&&setTimeout((function(){return n.setRangeAtStartEnd(!1,n.DOM.input)}));var i=this.getLastTag();return i?this.replaceTag(i,t):this.appendTag(e),this.value[0]=t,this.update(),this.trigger("add",{tag:e,data:t}),[e]}},addEmptyTag:function(e){var t=d({value:""},e||{}),n=this.createTagElem(t);x(n,t),this.appendTag(n),this.editTag(n,{skipValidation:!0}),this.toggleFocusClass(!0)},addTags:function(e,t,n){var i=this,r=[],s=this.settings,a=[],o=document.createDocumentFragment(),l=[];if(!e||0==e.length)return r;switch(e=this.normalizeTags(e),s.mode){case"mix":return this.addMixTags(e);case"select":t=!1,this.removeAllTags()}return this.DOM.input.removeAttribute("style"),e.forEach((function(e){var t=i.prepareNewTagNode(e,{skipInvalid:n||s.skipInvalid});if(t){var c=t.tagElm;if(e=t.tagData,a=t.aggregatedInvalidInput,r.push(c),"select"==s.mode)return i.selectTag(c,e);o.appendChild(c),i.postProcessNewTagNode(c,e),l.push({tagElm:c,tagData:e})}})),this.appendTag(o),l.forEach((function(e){var t=e.tagElm,n=e.tagData;return i.trigger("add",{tag:t,index:i.getTagIdx(n),data:n})})),this.update(),e.length&&t&&(this.input.set.call(this,s.createInvalidTags?"":a.join(s._delimiters)),this.setRangeAtStartEnd(!1,this.DOM.input)),this.dropdown.refilter(),r},addMixTags:function(e){var t=this;if((e=this.normalizeTags(e))[0].prefix||this.state.tag)return this.prefixedTextToTag(e[0]);var n=document.createDocumentFragment();return e.forEach((function(e){var i=t.prepareNewTagNode(e);n.appendChild(i.tagElm),t.insertAfterTag(i.tagElm),t.postProcessNewTagNode(i.tagElm,i.tagData)})),this.appendMixTags(n),n.children},appendMixTags:function(e){var t=!!this.state.selection;t?this.injectAtCaret(e):(this.DOM.input.focus(),(t=this.setStateSelection()).range.setStart(this.DOM.input,t.range.endOffset),t.range.setEnd(this.DOM.input,t.range.endOffset),this.DOM.input.appendChild(e),this.updateValueByDOMTags(),this.update())},prefixedTextToTag:function(e){var t,n,i,r=this,s=this.settings,a=null===(t=this.state.tag)||void 0===t?void 0:t.delimiters;if(e.prefix=e.prefix||this.state.tag?this.state.tag.prefix:(s.pattern.source||s.pattern)[0],i=this.prepareNewTagNode(e),n=i.tagElm,this.replaceTextWithNode(n)||this.DOM.input.appendChild(n),setTimeout((function(){return n.classList.add(r.settings.classNames.tagNoAnimation)}),300),this.update(),!a){var o=this.insertAfterTag(n)||n;setTimeout(_,0,o)}return this.state.tag=null,this.postProcessNewTagNode(n,i.tagData),n},appendTag:function(e){var t=this.DOM,n=t.input;t.scope.insertBefore(e,n)},createTagElem:function(e,t){e.__tagId=m();var n,i=d({},e,$({value:c(e.value+"")},t));return function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1);t=n.nextNode();)t.textContent.trim()||t.parentNode.removeChild(t)}(n=this.parseTemplate("tag",[i,this])),x(n,e),n},reCheckInvalidTags:function(){var e=this,t=this.settings;this.getTagElms(t.classNames.tagNotAllowed).forEach((function(n,i){var r=x(n),s=e.hasMaxTags(),a=e.validateTag(r),o=!0===a&&!s;if("select"==t.mode&&e.toggleScopeValidation(a),o)return r=r.__preInvalidData?r.__preInvalidData:{value:r.value},e.replaceTag(n,r);n.title=s||a}))},removeTags:function(e,t,n){var i,r=this,s=this.settings;if(e=e&&U(e,HTMLElement)?[e]:U(e,Array)?e:e?[e]:[this.getLastTag()].filter((function(e){return e})),i=e.reduce((function(e,t){t&&"string"==typeof t&&(t=r.getTagElmByValue(t));var n=x(t);return t&&n&&!n.readonly&&e.push({node:t,idx:r.getTagIdx(n),data:x(t,{__removed:!0})}),e}),[]),n="number"==typeof n?n:this.CSSVars.tagHideTransition,"select"==s.mode&&(n=0,this.input.set.call(this)),1==i.length&&"select"!=s.mode&&i[0].node.classList.contains(s.classNames.tagNotAllowed)&&(t=!0),i.length)return s.hooks.beforeRemoveTag(i,{tagify:this}).then((function(){var e=function(e){e.node.parentNode&&(e.node.parentNode.removeChild(e.node),t?s.keepInvalidTags&&this.trigger("remove",{tag:e.node,index:e.idx}):(this.trigger("remove",{tag:e.node,index:e.idx,data:e.data}),this.dropdown.refilter(),this.dropdown.position(),this.DOM.input.normalize(),s.keepInvalidTags&&this.reCheckInvalidTags()))};n&&n>10&&1==i.length?function(t){t.node.style.width=parseFloat(window.getComputedStyle(t.node).width)+"px",document.body.clientTop,t.node.classList.add(s.classNames.tagHide),setTimeout(e.bind(this),n,t)}.call(r,i[0]):i.forEach(e.bind(r)),t||(r.removeTagsFromValue(i.map((function(e){return e.node}))),r.update(),"select"==s.mode&&s.userInput&&r.setContentEditable(!0))})).catch((function(e){}))},removeTagsFromDOM:function(){this.getTagElms().forEach((function(e){return e.remove()}))},removeTagsFromValue:function(e){var t=this;(e=Array.isArray(e)?e:[e]).forEach((function(e){var n=x(e),i=t.getTagIdx(n);i>-1&&t.value.splice(i,1)}))},removeAllTags:function(e){var t=this;e=e||{},this.value=[],"mix"==this.settings.mode?this.DOM.input.innerHTML="":this.removeTagsFromDOM(),this.dropdown.refilter(),this.dropdown.position(),this.state.dropdown.visible&&setTimeout((function(){t.DOM.input.focus()})),"select"==this.settings.mode&&(this.input.set.call(this),this.settings.userInput&&this.setContentEditable(!0)),this.update(e)},postUpdate:function(){this.state.blockChangeEvent=!1;var e,t,n=this.settings,i=n.classNames,r="mix"==n.mode?n.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value.trim():this.value.length+this.input.raw.call(this).length;this.toggleClass(i.hasMaxTags,this.value.length>=n.maxTags),this.toggleClass(i.hasNoTags,!this.value.length),this.toggleClass(i.empty,!r),"select"==n.mode&&this.toggleScopeValidation(null===(t=this.value)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.__isValid)},setOriginalInputValue:function(e){var t=this.DOM.originalInput;this.settings.mixMode.integrated||(t.value=e,t.tagifyValue=t.value,this.setPersistedData(e,"value"))},update:function(e){clearTimeout(this.debouncedUpdateTimeout),this.debouncedUpdateTimeout=setTimeout(function(){var t=this.getInputValue();this.setOriginalInputValue(t),this.settings.onChangeAfterBlur&&(e||{}).withoutChangeEvent||this.state.blockChangeEvent||this.triggerChangeEvent(),this.postUpdate()}.bind(this),100),this.events.bindOriginaInputListener.call(this,100)},getInputValue:function(){var e=this.getCleanValue();return"mix"==this.settings.mode?this.getMixedTagsAsString(e):e.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(e):JSON.stringify(e):""},getCleanValue:function(e){return s(e||this.value,this.dataProps)},getMixedTagsAsString:function(){var e="",t=this,n=this.settings,i=n.originalInputValueFormat||JSON.stringify,r=n.mixTagsInterpolator;return function n(s){s.childNodes.forEach((function(s){if(1==s.nodeType){var o=x(s);if("BR"==s.tagName&&(e+="\r\n"),o&&g.call(t,s)){if(o.__removed)return;e+=r[0]+i(a(o,t.dataProps))+r[1]}else s.getAttribute("style")||["B","I","U"].includes(s.tagName)?e+=s.textContent:"DIV"!=s.tagName&&"P"!=s.tagName||(e+="\r\n",n(s))}else e+=s.textContent}))}(this.DOM.input),e}},G.prototype.removeTag=G.prototype.removeTags,G})),function(e){e(["jquery"],(function(e){return function(){function t(t,n){return t||(t=a()),(l=e("#"+t.containerId)).length||n&&(l=function(t){return l=e("<div/>").attr("id",t.containerId).addClass(t.positionClass),l.appendTo(e(t.target)),l}(t)),l}function n(t){for(var n=l.children(),r=n.length-1;r>=0;r--)i(e(n[r]),t)}function i(t,n,i){var r=!(!i||!i.force)&&i.force;return!(!t||!r&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){o(t)}}),0))}function r(e){c&&c(e)}function s(n){function i(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(t){var n=t&&!1!==p.closeMethod?p.closeMethod:p.hideMethod,i=t&&!1!==p.closeDuration?p.closeDuration:p.hideDuration,s=t&&!1!==p.closeEasing?p.closeEasing:p.hideEasing;if(!e(":focus",v).length||t)return clearTimeout(w.intervalId),v[n]({duration:i,easing:s,complete:function(){o(v),clearTimeout(g),p.onHidden&&"hidden"!==k.state&&p.onHidden(),k.state="hidden",k.endTime=new Date,r(k)}})}function c(){(p.timeOut>0||p.extendedTimeOut>0)&&(g=setTimeout(s,p.extendedTimeOut),w.maxHideTime=parseFloat(p.extendedTimeOut),w.hideEta=(new Date).getTime()+w.maxHideTime)}function h(){clearTimeout(g),w.hideEta=0,v.stop(!0,!0)[p.showMethod]({duration:p.showDuration,easing:p.showEasing})}function f(){var e=(w.hideEta-(new Date).getTime())/w.maxHideTime*100;x.width(e+"%")}var p=a(),m=n.iconClass||p.iconClass;if(void 0!==n.optionsOverride&&(p=e.extend(p,n.optionsOverride),m=n.optionsOverride.iconClass||m),!function(e,t){if(e.preventDuplicates){if(t.message===u)return!0;u=t.message}return!1}(p,n)){d++,l=t(p,!0);var g=null,v=e("<div/>"),y=e("<div/>"),b=e("<div/>"),x=e("<div/>"),_=e(p.closeHtml),w={intervalId:null,hideEta:null,maxHideTime:null},k={toastId:d,state:"visible",startTime:new Date,options:p,map:n};return n.iconClass&&v.addClass(p.toastClass).addClass(m),function(){if(n.title){var e=n.title;p.escapeHtml&&(e=i(n.title)),y.append(e).addClass(p.titleClass),v.append(y)}}(),function(){if(n.message){var e=n.message;p.escapeHtml&&(e=i(n.message)),b.append(e).addClass(p.messageClass),v.append(b)}}(),p.closeButton&&(_.addClass(p.closeClass).attr("role","button"),v.prepend(_)),p.progressBar&&(x.addClass(p.progressClass),v.prepend(x)),p.rtl&&v.addClass("rtl"),p.newestOnTop?l.prepend(v):l.append(v),function(){var e="";switch(n.iconClass){case"toastr-success":case"toastr-info":e="polite";break;default:e="assertive"}v.attr("aria-live",e)}(),v.hide(),v[p.showMethod]({duration:p.showDuration,easing:p.showEasing,complete:p.onShown}),p.timeOut>0&&(g=setTimeout(s,p.timeOut),w.maxHideTime=parseFloat(p.timeOut),w.hideEta=(new Date).getTime()+w.maxHideTime,p.progressBar&&(w.intervalId=setInterval(f,10))),p.closeOnHover&&v.hover(h,c),!p.onclick&&p.tapToDismiss&&v.click(s),p.closeButton&&_&&_.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),p.onCloseClick&&p.onCloseClick(e),s(!0)})),p.onclick&&v.click((function(e){p.onclick(e),s()})),r(k),p.debug&&console&&console.log(k),v}}function a(){return e.extend({},{tapToDismiss:!0,toastClass:"toastr",containerId:"toastr-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toastr-error",info:"toastr-info",success:"toastr-success",warning:"toastr-warning"},iconClass:"toastr-info",positionClass:"toastr-top-right",timeOut:5e3,titleClass:"toastr-title",messageClass:"toastr-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toastr-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toastr-progress",rtl:!1},f.options)}function o(e){l||(l=t()),e.is(":visible")||(e.remove(),e=null,0===l.children().length&&(l.remove(),u=void 0))}var l,c,u,d=0,h={error:"error",info:"info",success:"success",warning:"warning"},f={clear:function(e,r){var s=a();l||t(s),i(e,s,r)||n(s)},remove:function(n){var i=a();return l||t(i),n&&0===e(":focus",n).length?void o(n):void(l.children().length&&l.remove())},error:function(e,t,n){return s({type:h.error,iconClass:a().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:t,info:function(e,t,n){return s({type:h.info,iconClass:a().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){c=e},success:function(e,t,n){return s({type:h.success,iconClass:a().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return s({type:h.warning,iconClass:a().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return f}()}))}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).ApexCharts=t()}(this,(function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,g(i.key),i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=y(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function a(e){var n=u();return function(){var i,r=l(e);if(n){var s=l(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return t(e)}(this,i)}}function o(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return o}}(e,t)||y(e,t)||function(){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 m(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||y(t)||function(){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 g(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function v(e){return v="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},v(e)}function y(t,n){if(t){if("string"==typeof t)return e(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}var b=function(){function e(){n(this,e)}return r(e,[{key:"shadeRGBColor",value:function(e,t){var n=t.split(","),i=e<0?0:255,r=e<0?-1*e:e,s=parseInt(n[0].slice(4),10),a=parseInt(n[1],10),o=parseInt(n[2],10);return"rgb("+(Math.round((i-s)*r)+s)+","+(Math.round((i-a)*r)+a)+","+(Math.round((i-o)*r)+o)+")"}},{key:"shadeHexColor",value:function(e,t){var n=parseInt(t.slice(1),16),i=e<0?0:255,r=e<0?-1*e:e,s=n>>16,a=n>>8&255,o=255&n;return"#"+(16777216+65536*(Math.round((i-s)*r)+s)+256*(Math.round((i-a)*r)+a)+(Math.round((i-o)*r)+o)).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"===v(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;t<e.length;t++)n[t]=e[t];return n}},{key:"extend",value:function(e,t){var n=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t});var i=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(r){n.isObject(t[r])&&r in e?i[r]=n.extend(e[r],t[r]):Object.assign(i,o({},r,t[r]))})),i}},{key:"extendArray",value:function(t,n){var i=[];return t.map((function(t){i.push(e.extend(n,t))})),i}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===e||"object"!==v(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){t=[],n.set(e,t);for(var i=0;i<e.length;i++)t[i]=this.clone(e[i],n)}else if(e instanceof Date)t=new Date(e.getTime());else for(var r in t={},n.set(e,t),e)e.hasOwnProperty(r)&&(t[r]=this.clone(e[r],n));return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&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){return e.toString().includes("e")?Math.round(e):e}},{key:"elementExists",value:function(e){return!(!e||!e.isConnected)}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),n=e.clientHeight,i=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[i-=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 i=0;i<n.length;i++)n[i]=parseInt(1===n[i].length?n[i]+n[i]:n[i],16);return void 0!==t&&n.push(t),"rgba("+n.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var n=[],i=2*Math.PI/t,r=0;r<t;r++){var s={};s.x=e*Math.sin(r*i),s.y=-e*Math.cos(r*i),n.push(s)}return n}},{key:"polarToCartesian",value:function(e,t,n,i){var r=(i-90)*Math.PI/180;return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&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 i=n-e.length+1;i--;)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:"preciseAddition",value:function(e,t){var n=(String(e).split(".")[1]||"").length,i=(String(t).split(".")[1]||"").length,r=Math.pow(10,Math.max(n,i));return(Math.round(e*r)+Math.round(t*r))/r}},{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:"isMsEdge",value:function(){var e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}},{key:"getGCD",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,i=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*i),t=Math.round(Math.abs(t)*i);t;){var r=t;t=e%t,e=r}return e/i}},{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,i=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*i))%(t=Math.round(Math.abs(t)*i))/i}}]),e}(),x=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"animateLine",value:function(e,t,n,i){e.attr(t).animate(i).attr(n)}},{key:"animateMarker",value:function(e,t,n,i){e.attr({opacity:0}).animate(t).attr({opacity:1}).after((function(){i()}))}},{key:"animateRect",value:function(e,t,n,i,r){e.attr(t).animate(i).attr(n).after((function(){return r()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,n=e.realIndex,i=e.j,r=e.fill,s=e.pathFrom,a=e.pathTo,o=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,i,"line"!==c.config.chart.type||c.globals.comboCharts?r:"stroke",s,a,o,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,i,r,s,a,o){var l=this,c=this.w;r||(r=e.attr("pathFrom")),s||(s=e.attr("pathTo"));var u=function(e){return"radar"===c.config.chart.type&&(a=1),"M 0 ".concat(c.globals.gridHeight)};(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=u()),(!s.trim()||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=u()),c.globals.shouldAnimate||(a=1),e.plot(r).animate(1,o).plot(r).animate(a,o).plot(s).after((function(){b.isNumber(n)?n===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==i&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}();const _={},w=[];function k(e,t){if(Array.isArray(e))for(const n of e)k(n,t);else if("object"!=typeof e)S(Object.getOwnPropertyNames(t)),_[e]=Object.assign(_[e]||{},t);else for(const t in e)k(t,e[t])}function M(e){return _[e]||{}}function S(e){w.push(...e)}function A(e,t){let n;const i=e.length,r=[];for(n=0;n<i;n++)r.push(t(e[n]));return r}function L(e){return e%360*Math.PI/180}function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}function C(e,t,n,i){return null!=t&&null!=n||(i=i||e.bbox(),null==t?t=i.width/i.height*n:null==n&&(n=i.height/i.width*t)),{width:t,height:n}}function D(e,t){const n=e.origin;let i=null!=e.ox?e.ox:null!=e.originX?e.originX:"center",r=null!=e.oy?e.oy:null!=e.originY?e.originY:"center";null!=n&&([i,r]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof i,a="string"==typeof r;if(s||a){const{height:e,width:n,x:o,y:l}=t.bbox();s&&(i=i.includes("left")?o:i.includes("right")?o+n:o+n/2),a&&(r=r.includes("top")?l:r.includes("bottom")?l+e:l+e/2)}return[i,r]}const E=new Set(["desc","metadata","title"]),O=e=>E.has(e.nodeName),P=(e,t,n={})=>{const i={...t};for(const e in i)i[e].valueOf()===n[e]&&delete i[e];Object.keys(i).length?e.node.setAttribute("data-svgjs",JSON.stringify(i)):(e.node.removeAttribute("data-svgjs"),e.node.removeAttribute("svgjs:data"))},Y="http://www.w3.org/2000/svg",I="http://www.w3.org/2000/xmlns/",N="http://www.w3.org/1999/xlink",H={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};function F(){return H.window}let R=class{};const z={},B="___SYMBOL___ROOT___";function V(e,t=Y){return H.document.createElementNS(t,e)}function W(e,t=!1){if(e instanceof R)return e;if("object"==typeof e)return $(e);if(null==e)return new z[B];if("string"==typeof e&&"<"!==e.charAt(0))return $(H.document.querySelector(e));const n=t?H.document.createElement("div"):V("svg");return n.innerHTML=e,e=$(n.firstChild),n.removeChild(n.firstChild),e}function q(e,t){return t&&(t instanceof H.window.Node||t.ownerDocument&&t instanceof t.ownerDocument.defaultView.Node)?t:V(e)}function U(e){if(!e)return null;if(e.instance instanceof R)return e.instance;if("#document-fragment"===e.nodeName)return new z.Fragment(e);let t=T(e.nodeName||"Dom");return"LinearGradient"===t||"RadialGradient"===t?t="Gradient":z[t]||(t="Dom"),new z[t](e)}let $=U;function X(e,t=e.name,n=!1){return z[t]=e,n&&(z[B]=e),S(Object.getOwnPropertyNames(e.prototype)),e}let G=1e3;function Z(e){return"Svgjs"+T(e)+G++}function K(e){for(let t=e.children.length-1;t>=0;t--)K(e.children[t]);return e.id?(e.id=Z(e.nodeName),e):e}function J(e,t){let n,i;for(i=(e=Array.isArray(e)?e:[e]).length-1;i>=0;i--)for(n in t)e[i].prototype[n]=t[n]}function Q(e){return function(...t){const n=t[t.length-1];return!n||n.constructor!==Object||n instanceof Array?e.apply(this,t):e.apply(this,t.slice(0,-1)).attr(n)}}k("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const e=this.position();return this.parent().add(this.remove(),e+1),this},backward:function(){const e=this.position();return this.parent().add(this.remove(),e?e-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(e){(e=W(e)).remove();const t=this.position();return this.parent().add(e,t),this},after:function(e){(e=W(e)).remove();const t=this.position();return this.parent().add(e,t+1),this},insertBefore:function(e){return(e=W(e)).before(this),this},insertAfter:function(e){return(e=W(e)).after(this),this}});const ee=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,te=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ne=/rgb\((\d+),(\d+),(\d+)\)/,ie=/(#[a-z_][a-z0-9\-_]*)/i,re=/\)\s*,?\s*/,se=/\s/g,ae=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,oe=/^rgb\(/,le=/^(\s+)?$/,ce=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ue=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,de=/[\s,]+/,he=/[MLHVCSQTAZ]/i;function fe(e){const t=Math.round(e),n=Math.max(0,Math.min(255,t)).toString(16);return 1===n.length?"0"+n:n}function pe(e,t){for(let n=t.length;n--;)if(null==e[t[n]])return!1;return!0}function me(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}k("Dom",{classes:function(){const e=this.attr("class");return null==e?[]:e.trim().split(de)},hasClass:function(e){return-1!==this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){const 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)}}),k("Dom",{css:function(e,t){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(e){return!!e.length})).forEach((function(e){const t=e.split(/\s*:\s*/);n[t[0]]=t[1]})),n;if(arguments.length<2){if(Array.isArray(e)){for(const t of e){const e=t;n[t]=this.node.style.getPropertyValue(e)}return n}if("string"==typeof e)return this.node.style.getPropertyValue(e);if("object"==typeof e)for(const t in e)this.node.style.setProperty(t,null==e[t]||le.test(e[t])?"":e[t])}return 2===arguments.length&&this.node.style.setProperty(e,null==t||le.test(t)?"":t),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),k("Dom",{data:function(e,t,n){if(null==e)return this.data(A(function(e,t){let n;const i=e.length,r=[];for(n=0;n<i;n++)t(e[n])&&r.push(e[n]);return r}(this.node.attributes,(e=>0===e.nodeName.indexOf("data-"))),(e=>e.nodeName.slice(5))));if(e instanceof Array){const t={};for(const n of e)t[n]=this.data(n);return t}if("object"==typeof e)for(t in e)this.data(t,e[t]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+e))}catch(t){return this.attr("data-"+e)}else this.attr("data-"+e,null===t?null:!0===n||"string"==typeof t||"number"==typeof t?t:JSON.stringify(t));return this}}),k("Dom",{remember:function(e,t){if("object"==typeof arguments[0])for(const t in e)this.remember(t,e[t]);else{if(1===arguments.length)return this.memory()[e];this.memory()[e]=t}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory=this._memory||{}}});class ge{constructor(...e){this.init(...e)}static isColor(e){return e&&(e instanceof ge||this.isRgb(e)||this.test(e))}static isRgb(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b}static random(e="vibrant",t){const{random:n,round:i,sin:r,PI:s}=Math;if("vibrant"===e){const e=24*n()+57,t=38*n()+45,i=360*n();return new ge(e,t,i,"lch")}if("sine"===e){const e=i(80*r(2*s*(t=null==t?n():t)/.5+.01)+150),a=i(50*r(2*s*t/.5+4.6)+200),o=i(100*r(2*s*t/.5+2.3)+150);return new ge(e,a,o)}if("pastel"===e){const e=8*n()+86,t=17*n()+9,i=360*n();return new ge(e,t,i,"lch")}if("dark"===e){const e=10+10*n(),t=50*n()+86,i=360*n();return new ge(e,t,i,"lch")}if("rgb"===e){const e=255*n(),t=255*n(),i=255*n();return new ge(e,t,i)}if("lab"===e){const e=100*n(),t=256*n()-128,i=256*n()-128;return new ge(e,t,i,"lab")}if("grey"===e){const e=255*n();return new ge(e,e,e)}throw new Error("Unsupported random color mode")}static test(e){return"string"==typeof e&&(ae.test(e)||oe.test(e))}cmyk(){const{_a:e,_b:t,_c:n}=this.rgb(),[i,r,s]=[e,t,n].map((e=>e/255)),a=Math.min(1-i,1-r,1-s);return 1===a?new ge(0,0,0,1,"cmyk"):new ge((1-i-a)/(1-a),(1-r-a)/(1-a),(1-s-a)/(1-a),a,"cmyk")}hsl(){const{_a:e,_b:t,_c:n}=this.rgb(),[i,r,s]=[e,t,n].map((e=>e/255)),a=Math.max(i,r,s),o=Math.min(i,r,s),l=(a+o)/2,c=a===o,u=a-o;return new ge(360*(c?0:a===i?((r-s)/u+(r<s?6:0))/6:a===r?((s-i)/u+2)/6:a===s?((i-r)/u+4)/6:0),100*(c?0:l>.5?u/(2-a-o):u/(a+o)),100*l,"hsl")}init(e=0,t=0,n=0,i=0,r="rgb"){if(e=e||0,this.space)for(const e in this.space)delete this[this.space[e]];if("number"==typeof e)r="string"==typeof i?i:r,i="string"==typeof i?0:i,Object.assign(this,{_a:e,_b:t,_c:n,_d:i,space:r});else if(e instanceof Array)this.space=t||("string"==typeof e[3]?e[3]:e[4])||"rgb",Object.assign(this,{_a:e[0],_b:e[1],_c:e[2],_d:e[3]||0});else if(e instanceof Object){const n=function(e,t){const n=pe(e,"rgb")?{_a:e.r,_b:e.g,_c:e.b,_d:0,space:"rgb"}:pe(e,"xyz")?{_a:e.x,_b:e.y,_c:e.z,_d:0,space:"xyz"}:pe(e,"hsl")?{_a:e.h,_b:e.s,_c:e.l,_d:0,space:"hsl"}:pe(e,"lab")?{_a:e.l,_b:e.a,_c:e.b,_d:0,space:"lab"}:pe(e,"lch")?{_a:e.l,_b:e.c,_c:e.h,_d:0,space:"lch"}:pe(e,"cmyk")?{_a:e.c,_b:e.m,_c:e.y,_d:e.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=t||n.space,n}(e,t);Object.assign(this,n)}else if("string"==typeof e)if(oe.test(e)){const t=e.replace(se,""),[n,i,r]=ne.exec(t).slice(1,4).map((e=>parseInt(e)));Object.assign(this,{_a:n,_b:i,_c:r,_d:0,space:"rgb"})}else{if(!ae.test(e))throw Error("Unsupported string format, can't construct Color");{const t=e=>parseInt(e,16),[,n,i,r]=te.exec(function(e){return 4===e.length?["#",e.substring(1,2),e.substring(1,2),e.substring(2,3),e.substring(2,3),e.substring(3,4),e.substring(3,4)].join(""):e}(e)).map(t);Object.assign(this,{_a:n,_b:i,_c:r,_d:0,space:"rgb"})}}const{_a:s,_b:a,_c:o,_d:l}=this,c="rgb"===this.space?{r:s,g:a,b:o}:"xyz"===this.space?{x:s,y:a,z:o}:"hsl"===this.space?{h:s,s:a,l:o}:"lab"===this.space?{l:s,a:a,b:o}:"lch"===this.space?{l:s,c:a,h:o}:"cmyk"===this.space?{c:s,m:a,y:o,k:l}:{};Object.assign(this,c)}lab(){const{x:e,y:t,z:n}=this.xyz();return new ge(116*t-16,500*(e-t),200*(t-n),"lab")}lch(){const{l:e,a:t,b:n}=this.lab(),i=Math.sqrt(t**2+n**2);let r=180*Math.atan2(n,t)/Math.PI;return r<0&&(r*=-1,r=360-r),new ge(e,i,r,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(e=this.space)||"xyz"===e||"lch"===e){let{x:e,y:t,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:i,a:r,b:s}=this;if("lch"===this.space){const{c:e,h:t}=this,n=Math.PI/180;r=e*Math.cos(n*t),s=e*Math.sin(n*t)}const a=(i+16)/116,o=r/500+a,l=a-s/200,c=16/116,u=.008856,d=7.787;e=.95047*(o**3>u?o**3:(o-c)/d),t=1*(a**3>u?a**3:(a-c)/d),n=1.08883*(l**3>u?l**3:(l-c)/d)}const i=3.2406*e+-1.5372*t+-.4986*n,r=-.9689*e+1.8758*t+.0415*n,s=.0557*e+-.204*t+1.057*n,a=Math.pow,o=.0031308,l=i>o?1.055*a(i,1/2.4)-.055:12.92*i,c=r>o?1.055*a(r,1/2.4)-.055:12.92*r,u=s>o?1.055*a(s,1/2.4)-.055:12.92*s;return new ge(255*l,255*c,255*u)}if("hsl"===this.space){let{h:e,s:t,l:n}=this;if(e/=360,t/=100,n/=100,0===t)return n*=255,new ge(n,n,n);const i=n<.5?n*(1+t):n+t-n*t,r=2*n-i,s=255*me(r,i,e+1/3),a=255*me(r,i,e),o=255*me(r,i,e-1/3);return new ge(s,a,o)}if("cmyk"===this.space){const{c:e,m:t,y:n,k:i}=this,r=255*(1-Math.min(1,e*(1-i)+i)),s=255*(1-Math.min(1,t*(1-i)+i)),a=255*(1-Math.min(1,n*(1-i)+i));return new ge(r,s,a)}return this;var e}toArray(){const{_a:e,_b:t,_c:n,_d:i,space:r}=this;return[e,t,n,i,r]}toHex(){const[e,t,n]=this._clamped().map(fe);return`#${e}${t}${n}`}toRgb(){const[e,t,n]=this._clamped();return`rgb(${e},${t},${n})`}toString(){return this.toHex()}xyz(){const{_a:e,_b:t,_c:n}=this.rgb(),[i,r,s]=[e,t,n].map((e=>e/255)),a=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,o=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,l=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,c=(.4124*a+.3576*o+.1805*l)/.95047,u=(.2126*a+.7152*o+.0722*l)/1,d=(.0193*a+.1192*o+.9505*l)/1.08883,h=c>.008856?Math.pow(c,1/3):7.787*c+16/116,f=u>.008856?Math.pow(u,1/3):7.787*u+16/116,p=d>.008856?Math.pow(d,1/3):7.787*d+16/116;return new ge(h,f,p,"xyz")}_clamped(){const{_a:e,_b:t,_c:n}=this.rgb(),{max:i,min:r,round:s}=Math;return[e,t,n].map((e=>i(0,r(s(e),255))))}}class ve{constructor(...e){this.init(...e)}clone(){return new ve(this)}init(e,t){const n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"==typeof e?{x:e.x,y:e.y}:{x:e,y:t};return this.x=null==n.x?0:n.x,this.y=null==n.y?0:n.y,this}toArray(){return[this.x,this.y]}transform(e){return this.clone().transformO(e)}transformO(e){be.isMatrixLike(e)||(e=new be(e));const{x:t,y:n}=this;return this.x=e.a*t+e.c*n+e.e,this.y=e.b*t+e.d*n+e.f,this}}function ye(e,t,n){return Math.abs(t-e)<(n||1e-6)}class be{constructor(...e){this.init(...e)}static formatTransforms(e){const t="both"===e.flip||!0===e.flip,n=e.flip&&(t||"x"===e.flip)?-1:1,i=e.flip&&(t||"y"===e.flip)?-1:1,r=e.skew&&e.skew.length?e.skew[0]:isFinite(e.skew)?e.skew:isFinite(e.skewX)?e.skewX:0,s=e.skew&&e.skew.length?e.skew[1]:isFinite(e.skew)?e.skew:isFinite(e.skewY)?e.skewY:0,a=e.scale&&e.scale.length?e.scale[0]*n:isFinite(e.scale)?e.scale*n:isFinite(e.scaleX)?e.scaleX*n:n,o=e.scale&&e.scale.length?e.scale[1]*i:isFinite(e.scale)?e.scale*i:isFinite(e.scaleY)?e.scaleY*i:i,l=e.shear||0,c=e.rotate||e.theta||0,u=new ve(e.origin||e.around||e.ox||e.originX,e.oy||e.originY),d=u.x,h=u.y,f=new ve(e.position||e.px||e.positionX||NaN,e.py||e.positionY||NaN),p=f.x,m=f.y,g=new ve(e.translate||e.tx||e.translateX,e.ty||e.translateY),v=g.x,y=g.y,b=new ve(e.relative||e.rx||e.relativeX,e.ry||e.relativeY);return{scaleX:a,scaleY:o,skewX:r,skewY:s,shear:l,theta:c,rx:b.x,ry:b.y,tx:v,ty:y,ox:d,oy:h,px:p,py:m}}static fromArray(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}static isMatrixLike(e){return null!=e.a||null!=e.b||null!=e.c||null!=e.d||null!=e.e||null!=e.f}static matrixMultiply(e,t,n){const i=e.a*t.a+e.c*t.b,r=e.b*t.a+e.d*t.b,s=e.a*t.c+e.c*t.d,a=e.b*t.c+e.d*t.d,o=e.e+e.a*t.e+e.c*t.f,l=e.f+e.b*t.e+e.d*t.f;return n.a=i,n.b=r,n.c=s,n.d=a,n.e=o,n.f=l,n}around(e,t,n){return this.clone().aroundO(e,t,n)}aroundO(e,t,n){const i=e||0,r=t||0;return this.translateO(-i,-r).lmultiplyO(n).translateO(i,r)}clone(){return new be(this)}decompose(e=0,t=0){const n=this.a,i=this.b,r=this.c,s=this.d,a=this.e,o=this.f,l=n*s-i*r,c=l>0?1:-1,u=c*Math.sqrt(n*n+i*i),d=Math.atan2(c*i,c*n),h=180/Math.PI*d,f=Math.cos(d),p=Math.sin(d),m=(n*r+i*s)/l,g=r*u/(m*n-i)||s*u/(m*i+n);return{scaleX:u,scaleY:g,shear:m,rotate:h,translateX:a-e+e*f*u+t*(m*f*u-p*g),translateY:o-t+e*p*u+t*(m*p*u+f*g),originX:e,originY:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(e){if(e===this)return!0;const t=new be(e);return ye(this.a,t.a)&&ye(this.b,t.b)&&ye(this.c,t.c)&&ye(this.d,t.d)&&ye(this.e,t.e)&&ye(this.f,t.f)}flip(e,t){return this.clone().flipO(e,t)}flipO(e,t){return"x"===e?this.scaleO(-1,1,t,0):"y"===e?this.scaleO(1,-1,0,t):this.scaleO(-1,-1,e,t||e)}init(e){const t=be.fromArray([1,0,0,1,0,0]);return e=e instanceof ze?e.matrixify():"string"==typeof e?be.fromArray(e.split(de).map(parseFloat)):Array.isArray(e)?be.fromArray(e):"object"==typeof e&&be.isMatrixLike(e)?e:"object"==typeof e?(new be).transform(e):6===arguments.length?be.fromArray([].slice.call(arguments)):t,this.a=null!=e.a?e.a:t.a,this.b=null!=e.b?e.b:t.b,this.c=null!=e.c?e.c:t.c,this.d=null!=e.d?e.d:t.d,this.e=null!=e.e?e.e:t.e,this.f=null!=e.f?e.f:t.f,this}inverse(){return this.clone().inverseO()}inverseO(){const e=this.a,t=this.b,n=this.c,i=this.d,r=this.e,s=this.f,a=e*i-t*n;if(!a)throw new Error("Cannot invert "+this);const o=i/a,l=-t/a,c=-n/a,u=e/a,d=-(o*r+c*s),h=-(l*r+u*s);return this.a=o,this.b=l,this.c=c,this.d=u,this.e=d,this.f=h,this}lmultiply(e){return this.clone().lmultiplyO(e)}lmultiplyO(e){const t=e instanceof be?e:new be(e);return be.matrixMultiply(t,this,this)}multiply(e){return this.clone().multiplyO(e)}multiplyO(e){const t=e instanceof be?e:new be(e);return be.matrixMultiply(this,t,this)}rotate(e,t,n){return this.clone().rotateO(e,t,n)}rotateO(e,t=0,n=0){e=L(e);const i=Math.cos(e),r=Math.sin(e),{a:s,b:a,c:o,d:l,e:c,f:u}=this;return this.a=s*i-a*r,this.b=a*i+s*r,this.c=o*i-l*r,this.d=l*i+o*r,this.e=c*i-u*r+n*r-t*i+t,this.f=u*i+c*r-t*r-n*i+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(e,t=e,n=0,i=0){3===arguments.length&&(i=n,n=t,t=e);const{a:r,b:s,c:a,d:o,e:l,f:c}=this;return this.a=r*e,this.b=s*t,this.c=a*e,this.d=o*t,this.e=l*e-n*e+n,this.f=c*t-i*t+i,this}shear(e,t,n){return this.clone().shearO(e,t,n)}shearO(e,t=0,n=0){const{a:i,b:r,c:s,d:a,e:o,f:l}=this;return this.a=i+r*e,this.c=s+a*e,this.e=o+l*e-n*e,this}skew(){return this.clone().skewO(...arguments)}skewO(e,t=e,n=0,i=0){3===arguments.length&&(i=n,n=t,t=e),e=L(e),t=L(t);const r=Math.tan(e),s=Math.tan(t),{a:a,b:o,c:l,d:c,e:u,f:d}=this;return this.a=a+o*r,this.b=o+a*s,this.c=l+c*r,this.d=c+l*s,this.e=u+d*r-i*r,this.f=d+u*s-n*s,this}skewX(e,t,n){return this.skew(e,0,t,n)}skewY(e,t,n){return this.skew(0,e,t,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(e){if(be.isMatrixLike(e))return new be(e).multiplyO(this);const t=be.formatTransforms(e),{x:n,y:i}=new ve(t.ox,t.oy).transform(this),r=(new be).translateO(t.rx,t.ry).lmultiplyO(this).translateO(-n,-i).scaleO(t.scaleX,t.scaleY).skewO(t.skewX,t.skewY).shearO(t.shear).rotateO(t.theta).translateO(n,i);if(isFinite(t.px)||isFinite(t.py)){const e=new ve(n,i).transform(r),s=isFinite(t.px)?t.px-e.x:0,a=isFinite(t.py)?t.py-e.y:0;r.translateO(s,a)}return r.translateO(t.tx,t.ty),r}translate(e,t){return this.clone().translateO(e,t)}translateO(e,t){return this.e+=e||0,this.f+=t||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function xe(){if(!xe.nodes){const e=W().size(2,0);e.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),e.attr("focusable","false"),e.attr("aria-hidden","true");const t=e.path().node;xe.nodes={svg:e,path:t}}if(!xe.nodes.svg.node.parentNode){const e=H.document.body||H.document.documentElement;xe.nodes.svg.addTo(e)}return xe.nodes}function _e(e){return!(e.width||e.height||e.x||e.y)}X(be,"Matrix");class we{constructor(...e){this.init(...e)}addOffset(){return this.x+=H.window.pageXOffset,this.y+=H.window.pageYOffset,new we(this)}init(e){return e="string"==typeof e?e.split(de).map(parseFloat):Array.isArray(e)?e:"object"==typeof e?[null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=e[0]||0,this.y=e[1]||0,this.width=this.w=e[2]||0,this.height=this.h=e[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return _e(this)}merge(e){const t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),i=Math.max(this.x+this.width,e.x+e.width)-t,r=Math.max(this.y+this.height,e.y+e.height)-n;return new we(t,n,i,r)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(e){e instanceof be||(e=new be(e));let t=1/0,n=-1/0,i=1/0,r=-1/0;return[new ve(this.x,this.y),new ve(this.x2,this.y),new ve(this.x,this.y2),new ve(this.x2,this.y2)].forEach((function(s){s=s.transform(e),t=Math.min(t,s.x),n=Math.max(n,s.x),i=Math.min(i,s.y),r=Math.max(r,s.y)})),new we(t,i,n-t,r-i)}}function ke(e,t,n){let i;try{if(i=t(e.node),_e(i)&&(r=e.node)!==H.document&&!(H.document.documentElement.contains||function(e){for(;e.parentNode;)e=e.parentNode;return e===H.document}).call(H.document.documentElement,r))throw new Error("Element not in the dom")}catch(t){i=n(e)}var r;return i}k({viewbox:{viewbox(e,t,n,i){return null==e?new we(this.attr("viewBox")):this.attr("viewBox",new we(e,t,n,i))},zoom(e,t){let{width:n,height:i}=this.attr(["width","height"]);if((n||i)&&"string"!=typeof n&&"string"!=typeof i||(n=this.node.clientWidth,i=this.node.clientHeight),!n||!i)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const r=this.viewbox(),s=n/r.width,a=i/r.height,o=Math.min(s,a);if(null==e)return o;let l=o/e;l===1/0&&(l=Number.MAX_SAFE_INTEGER/100),t=t||new ve(n/2/s+r.x,i/2/a+r.y);const c=new we(r).transform(new be({scale:l,origin:t}));return this.viewbox(c)}}}),X(we,"Box");class Me extends Array{constructor(e=[],...t){if(super(e,...t),"number"==typeof e)return this;this.length=0,this.push(...e)}}J([Me],{each(e,...t){return"function"==typeof e?this.map(((t,n,i)=>e.call(t,t,n,i))):this.map((n=>n[e](...t)))},toArray(){return Array.prototype.concat.apply([],this)}});const Se=["toArray","constructor","each"];function Ae(e,t){return new Me(A((t||H.document).querySelectorAll(e),(function(e){return U(e)})))}Me.extend=function(e){e=e.reduce(((e,t)=>(Se.includes(t)||"_"===t[0]||(t in Array.prototype&&(e["$"+t]=Array.prototype[t]),e[t]=function(...e){return this.each(t,...e)}),e)),{}),J([Me],e)};let Le=0;const Te={};function Ce(e){let t=e.getEventHolder();return t===H.window&&(t=Te),t.events||(t.events={}),t.events}function De(e){return e.getEventTarget()}function Ee(e,t,n,i,r){const s=n.bind(i||e),a=W(e),o=Ce(a),l=De(a);t=Array.isArray(t)?t:t.split(de),n._svgjsListenerId||(n._svgjsListenerId=++Le),t.forEach((function(e){const t=e.split(".")[0],i=e.split(".")[1]||"*";o[t]=o[t]||{},o[t][i]=o[t][i]||{},o[t][i][n._svgjsListenerId]=s,l.addEventListener(t,s,r||!1)}))}function Oe(e,t,n,i){const r=W(e),s=Ce(r),a=De(r);("function"!=typeof n||(n=n._svgjsListenerId))&&(t=Array.isArray(t)?t:(t||"").split(de)).forEach((function(e){const t=e&&e.split(".")[0],o=e&&e.split(".")[1];let l,c;if(n)s[t]&&s[t][o||"*"]&&(a.removeEventListener(t,s[t][o||"*"][n],i||!1),delete s[t][o||"*"][n]);else if(t&&o){if(s[t]&&s[t][o]){for(c in s[t][o])Oe(a,[t,o].join("."),c);delete s[t][o]}}else if(o)for(e in s)for(l in s[e])o===l&&Oe(a,[e,o].join("."));else if(t){if(s[t]){for(l in s[t])Oe(a,[t,l].join("."));delete s[t]}}else{for(e in s)Oe(a,e);!function(e){let t=e.getEventHolder();t===H.window&&(t=Te),t.events&&(t.events={})}(r)}}))}class Pe extends R{addEventListener(){}dispatch(e,t,n){return function(e,t,n,i){const r=De(e);return t instanceof H.window.Event||(t=new H.window.CustomEvent(t,{detail:n,cancelable:!0,...i})),r.dispatchEvent(t),t}(this,e,t,n)}dispatchEvent(e){const t=this.getEventHolder().events;if(!t)return!0;const n=t[e.type];for(const t in n)for(const i in n[t])n[t][i](e);return!e.defaultPrevented}fire(e,t,n){return this.dispatch(e,t,n),this}getEventHolder(){return this}getEventTarget(){return this}off(e,t,n){return Oe(this,e,t,n),this}on(e,t,n,i){return Ee(this,e,t,n,i),this}removeEventListener(){}}function Ye(){}X(Pe,"EventTarget");const Ie={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class Ne extends Array{constructor(...e){super(...e),this.init(...e)}clone(){return new this.constructor(this)}init(e){return"number"==typeof e||(this.length=0,this.push(...this.parse(e))),this}parse(e=[]){return e instanceof Array?e:e.trim().split(de).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const e=[];return e.push(...this),e}}class He{constructor(...e){this.init(...e)}convert(e){return new He(this.value,e)}divide(e){return e=new He(e),new He(this/e,this.unit||e.unit)}init(e,t){return t=Array.isArray(e)?e[1]:t,e=Array.isArray(e)?e[0]:e,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(ee))&&(this.value=parseFloat(t[1]),"%"===t[5]?this.value/=100:"s"===t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof He&&(this.value=e.valueOf(),this.unit=e.unit),this}minus(e){return e=new He(e),new He(this-e,this.unit||e.unit)}plus(e){return e=new He(e),new He(this+e,this.unit||e.unit)}times(e){return e=new He(e),new He(this*e,this.unit||e.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const je=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Fe=[];class Re extends Pe{constructor(e,t){super(),this.node=e,this.type=e.nodeName,t&&e!==t&&this.attr(t)}add(e,t){return(e=W(e)).removeNamespace&&this.node instanceof H.window.SVGElement&&e.removeNamespace(),null==t?this.node.appendChild(e.node):e.node!==this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this}addTo(e,t){return W(e).put(this,t)}children(){return new Me(A(this.node.children,(function(e){return U(e)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(e=!0,t=!0){this.writeDataToDom();let n=this.node.cloneNode(e);return t&&(n=K(n)),new this.constructor(n)}each(e,t){const n=this.children();let i,r;for(i=0,r=n.length;i<r;i++)e.apply(n[i],[i,n]),t&&n[i].each(e,t);return this}element(e,t){return this.put(new Re(V(e),t))}first(){return U(this.node.firstChild)}get(e){return U(this.node.childNodes[e])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(e){return this.index(e)>=0}html(e,t){return this.xml(e,t,"http://www.w3.org/1999/xhtml")}id(e){return void 0!==e||this.node.id||(this.node.id=Z(this.type)),this.attr("id",e)}index(e){return[].slice.call(this.node.childNodes).indexOf(e.node)}last(){return U(this.node.lastChild)}matches(e){const t=this.node,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null;return n&&n.call(t,e)}parent(e){let t=this;if(!t.node.parentNode)return null;if(t=U(t.node.parentNode),!e)return t;do{if("string"==typeof e?t.matches(e):t instanceof e)return t}while(t=U(t.node.parentNode));return t}put(e,t){return e=W(e),this.add(e,t),e}putIn(e,t){return W(e).add(this,t)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(e){return this.node.removeChild(e.node),this}replace(e){return e=W(e),this.node.parentNode&&this.node.parentNode.replaceChild(e.node,this.node),e}round(e=2,t=null){const n=10**e,i=this.attr(t);for(const e in i)"number"==typeof i[e]&&(i[e]=Math.round(i[e]*n)/n);return this.attr(i),this}svg(e,t){return this.xml(e,t,Y)}toString(){return this.id()}words(e){return this.node.textContent=e,this}wrap(e){const t=this.parent();if(!t)return this.addTo(e);const n=t.index(this);return t.put(e,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(e,t,n){if("boolean"==typeof e&&(n=t,t=e,e=null),null==e||"function"==typeof e){t=null==t||t,this.writeDataToDom();let n=this;if(null!=e){if(n=U(n.node.cloneNode(!0)),t){const t=e(n);if(n=t||n,!1===t)return""}n.each((function(){const t=e(this),n=t||this;!1===t?this.remove():t&&this!==n&&this.replace(n)}),!0)}return t?n.node.outerHTML:n.node.innerHTML}t=null!=t&&t;const i=V("wrapper",n),r=H.document.createDocumentFragment();i.innerHTML=e;for(let e=i.children.length;e--;)r.appendChild(i.firstElementChild);const s=this.parent();return t?this.replace(r)&&s:this.add(r)}}J(Re,{attr:function(e,t,n){if(null==e){e={},t=this.node.attributes;for(const n of t)e[n.nodeName]=ce.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return e}if(e instanceof Array)return e.reduce(((e,t)=>(e[t]=this.attr(t),e)),{});if("object"==typeof e&&e.constructor===Object)for(t in e)this.attr(t,e[t]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?Ie[e]:ce.test(t)?parseFloat(t):t;"number"==typeof(t=Fe.reduce(((t,n)=>n(e,t,this)),t))?t=new He(t):je.has(e)&&ge.isColor(t)?t=new ge(t):t.constructor===Array&&(t=new Ne(t)),"leading"===e?this.leading&&this.leading(t):"string"==typeof n?this.node.setAttributeNS(n,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!==e&&"x"!==e||this.rebuild()}return this},find:function(e){return Ae(e,this.node)},findOne:function(e){return U(this.node.querySelector(e))}}),X(Re,"Dom");let ze=class extends Re{constructor(e,t){super(e,t),this.dom={},this.node.instance=this,(e.hasAttribute("data-svgjs")||e.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(e.getAttribute("data-svgjs"))??JSON.parse(e.getAttribute("svgjs:data"))??{})}center(e,t){return this.cx(e).cy(t)}cx(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)}cy(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)}defs(){const e=this.root();return e&&e.defs()}dmove(e,t){return this.dx(e).dy(t)}dx(e=0){return this.x(new He(e).plus(this.x()))}dy(e=0){return this.y(new He(e).plus(this.y()))}getEventHolder(){return this}height(e){return this.attr("height",e)}move(e,t){return this.x(e).y(t)}parents(e=this.root()){const t="string"==typeof e;t||(e=W(e));const n=new Me;let i=this;for(;(i=i.parent())&&i.node!==H.document&&"#document-fragment"!==i.nodeName&&(n.push(i),t||i.node!==e.node)&&(!t||!i.matches(e));)if(i.node===this.root().node)return null;return n}reference(e){if(!(e=this.attr(e)))return null;const t=(e+"").match(ie);return t?W(t[1]):null}root(){const e=this.parent(function(e){return z[e]}(B));return e&&e.root()}setData(e){return this.dom=e,this}size(e,t){const n=C(this,e,t);return this.width(new He(n.width)).height(new He(n.height))}width(e){return this.attr("width",e)}writeDataToDom(){return P(this,this.dom),super.writeDataToDom()}x(e){return this.attr("x",e)}y(e){return this.attr("y",e)}};J(ze,{bbox:function(){const e=ke(this,(e=>e.getBBox()),(e=>{try{const t=e.clone().addTo(xe().svg).show(),n=t.node.getBBox();return t.remove(),n}catch(t){throw new Error(`Getting bbox of element "${e.node.nodeName}" is not possible: ${t.toString()}`)}}));return new we(e)},rbox:function(e){const t=ke(this,(e=>e.getBoundingClientRect()),(e=>{throw new Error(`Getting rbox of element "${e.node.nodeName}" is not possible`)})),n=new we(t);return e?n.transform(e.screenCTM().inverseO()):n.addOffset()},inside:function(e,t){const n=this.bbox();return e>n.x&&t>n.y&&e<n.x+n.width&&t<n.y+n.height},point:function(e,t){return new ve(e,t).transformO(this.screenCTM().inverseO())},ctm:function(){return new be(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new be(t)}return new be(this.node.getScreenCTM())}catch(e){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new be}}}),X(ze,"Element");const Be={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"===t?e:e+"-"+t}};["fill","stroke"].forEach((function(e){const t={};let n;t[e]=function(t){if(void 0===t)return this.attr(e);if("string"==typeof t||t instanceof ge||ge.isRgb(t)||t instanceof ze)this.attr(e,t);else for(n=Be[e].length-1;n>=0;n--)null!=t[Be[e][n]]&&this.attr(Be.prefix(e,Be[e][n]),t[Be[e][n]]);return this},k(["Element","Runner"],t)})),k(["Element","Runner"],{matrix:function(e,t,n,i,r,s){return null==e?new be(this):this.attr("transform",new be(e,t,n,i,r,s))},rotate:function(e,t,n){return this.transform({rotate:e,ox:t,oy:n},!0)},skew:function(e,t,n,i){return 1===arguments.length||3===arguments.length?this.transform({skew:e,ox:t,oy:n},!0):this.transform({skew:[e,t],ox:n,oy:i},!0)},shear:function(e,t,n){return this.transform({shear:e,ox:t,oy:n},!0)},scale:function(e,t,n,i){return 1===arguments.length||3===arguments.length?this.transform({scale:e,ox:t,oy:n},!0):this.transform({scale:[e,t],ox:n,oy:i},!0)},translate:function(e,t){return this.transform({translate:[e,t]},!0)},relative:function(e,t){return this.transform({relative:[e,t]},!0)},flip:function(e="both",t="center"){return-1==="xybothtrue".indexOf(e)&&(t=e,e="both"),this.transform({flip:e,origin:t},!0)},opacity:function(e){return this.attr("opacity",e)}}),k("radius",{radius:function(e,t=e){return"radialGradient"===(this._element||this).type?this.attr("r",new He(e)):this.rx(e).ry(t)}}),k("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(e){return new ve(this.node.getPointAtLength(e))}}),k(["Element","Runner"],{font:function(e,t){if("object"==typeof e){for(t in e)this.font(t,e[t]);return this}return"leading"===e?this.leading(t):"anchor"===e?this.attr("text-anchor",t):"size"===e||"family"===e||"weight"===e||"stretch"===e||"variant"===e||"style"===e?this.attr("font-"+e,t):this.attr(e,t)}}),k("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(e,t){return e[t]=function(e){return null===e?this.off(t):this.on(t,e),this},e}),{})),k("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){const e=(this.attr("transform")||"").split(re).slice(0,-1).map((function(e){const t=e.trim().split("(");return[t[0],t[1].split(de).map((function(e){return parseFloat(e)}))]})).reverse().reduce((function(e,t){return"matrix"===t[0]?e.lmultiply(be.fromArray(t[1])):e[t[0]].apply(e,t[1])}),new be);return e},toParent:function(e,t){if(this===e)return this;if(O(this.node))return this.addTo(e,t);const n=this.screenCTM(),i=e.screenCTM().inverse();return this.addTo(e,t).untransform().transform(i.multiply(n)),this},toRoot:function(e){return this.toParent(this.root(),e)},transform:function(e,t){if(null==e||"string"==typeof e){const t=new be(this).decompose();return null==e?t:t[e]}be.isMatrixLike(e)||(e={...e,origin:D(e,this)});const n=new be(!0===t?this:t||!1).transform(e);return this.attr("transform",n)}});class Ve extends ze{flatten(){return this.each((function(){if(this instanceof Ve)return this.flatten().ungroup()})),this}ungroup(e=this.parent(),t=e.index(this)){return t=-1===t?e.children().length:t,this.each((function(n,i){return i[i.length-n-1].toParent(e,t)})),this.remove()}}X(Ve,"Container");class We extends Ve{constructor(e,t=e){super(q("defs",e),t)}flatten(){return this}ungroup(){return this}}X(We,"Defs");class qe extends ze{}function Ue(e){return this.attr("rx",e)}function $e(e){return this.attr("ry",e)}function Xe(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())}function Ge(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())}function Ze(e){return this.attr("cx",e)}function Ke(e){return this.attr("cy",e)}function Je(e){return null==e?2*this.rx():this.rx(new He(e).divide(2))}function Qe(e){return null==e?2*this.ry():this.ry(new He(e).divide(2))}X(qe,"Shape");var et=Object.freeze({__proto__:null,cx:Ze,cy:Ke,height:Qe,rx:Ue,ry:$e,width:Je,x:Xe,y:Ge});class tt extends qe{constructor(e,t=e){super(q("ellipse",e),t)}size(e,t){const n=C(this,e,t);return this.rx(new He(n.width).divide(2)).ry(new He(n.height).divide(2))}}J(tt,et),k("Container",{ellipse:Q((function(e=0,t=e){return this.put(new tt).size(e,t).move(0,0)}))}),X(tt,"Ellipse");class nt extends Re{constructor(e=H.document.createDocumentFragment()){super(e)}xml(e,t,n){if("boolean"==typeof e&&(n=t,t=e,e=null),null==e||"function"==typeof e){const e=new Re(V("wrapper",n));return e.add(this.node.cloneNode(!0)),e.xml(!1,n)}return super.xml(e,!1,n)}}function it(e,t){return"radialGradient"===(this._element||this).type?this.attr({fx:new He(e),fy:new He(t)}):this.attr({x1:new He(e),y1:new He(t)})}function rt(e,t){return"radialGradient"===(this._element||this).type?this.attr({cx:new He(e),cy:new He(t)}):this.attr({x2:new He(e),y2:new He(t)})}X(nt,"Fragment");var st=Object.freeze({__proto__:null,from:it,to:rt});class at extends Ve{constructor(e,t){super(q(e+"Gradient","string"==typeof e?null:e),t)}attr(e,t,n){return"transform"===e&&(e="gradientTransform"),super.attr(e,t,n)}bbox(){return new we}targets(){return Ae("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),"function"==typeof e&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}}J(at,st),k({Container:{gradient(...e){return this.defs().gradient(...e)}},Defs:{gradient:Q((function(e,t){return this.put(new at(e)).update(t)}))}}),X(at,"Gradient");class ot extends Ve{constructor(e,t=e){super(q("pattern",e),t)}attr(e,t,n){return"transform"===e&&(e="patternTransform"),super.attr(e,t,n)}bbox(){return new we}targets(){return Ae("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),"function"==typeof e&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}}k({Container:{pattern(...e){return this.defs().pattern(...e)}},Defs:{pattern:Q((function(e,t,n){return this.put(new ot).update(n).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}))}}),X(ot,"Pattern");let lt=class extends qe{constructor(e,t=e){super(q("image",e),t)}load(e,t){if(!e)return this;const n=new H.window.Image;return Ee(n,"load",(function(e){const i=this.parent(ot);0===this.width()&&0===this.height()&&this.size(n.width,n.height),i instanceof ot&&0===i.width()&&0===i.height()&&i.size(this.width(),this.height()),"function"==typeof t&&t.call(this,e)}),this),Ee(n,"load error",(function(){Oe(n)})),this.attr("href",n.src=e,N)}};var ct;ct=function(e,t,n){return"fill"!==e&&"stroke"!==e||ue.test(t)&&(t=n.root().defs().image(t)),t instanceof lt&&(t=n.root().defs().pattern(0,0,(e=>{e.add(t)}))),t},Fe.push(ct),k({Container:{image:Q((function(e,t){return this.put(new lt).size(0,0).load(e,t)}))}}),X(lt,"Image");class ut extends Ne{bbox(){let e=-1/0,t=-1/0,n=1/0,i=1/0;return this.forEach((function(r){e=Math.max(r[0],e),t=Math.max(r[1],t),n=Math.min(r[0],n),i=Math.min(r[1],i)})),new we(n,i,e-n,t-i)}move(e,t){const n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+e,this[n][1]+t];return this}parse(e=[0,0]){const t=[];(e=e instanceof Array?Array.prototype.concat.apply([],e):e.trim().split(de).map(parseFloat)).length%2!=0&&e.pop();for(let n=0,i=e.length;n<i;n+=2)t.push([e[n],e[n+1]]);return t}size(e,t){let n;const i=this.bbox();for(n=this.length-1;n>=0;n--)i.width&&(this[n][0]=(this[n][0]-i.x)*e/i.width+i.x),i.height&&(this[n][1]=(this[n][1]-i.y)*t/i.height+i.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const e=[];for(let t=0,n=this.length;t<n;t++)e.push(this[t].join(","));return e.join(" ")}transform(e){return this.clone().transformO(e)}transformO(e){be.isMatrixLike(e)||(e=new be(e));for(let t=this.length;t--;){const[n,i]=this[t];this[t][0]=e.a*n+e.c*i+e.e,this[t][1]=e.b*n+e.d*i+e.f}return this}}const dt=ut;var ht=Object.freeze({__proto__:null,MorphArray:dt,height:function(e){const t=this.bbox();return null==e?t.height:this.size(t.width,e)},width:function(e){const t=this.bbox();return null==e?t.width:this.size(e,t.height)},x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)}});let ft=class extends qe{constructor(e,t=e){super(q("line",e),t)}array(){return new ut([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(e,t){return this.attr(this.array().move(e,t).toLine())}plot(e,t,n,i){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:n,y2:i}:new ut(e).toLine(),this.attr(e))}size(e,t){const n=C(this,e,t);return this.attr(this.array().size(n.width,n.height).toLine())}};J(ft,ht),k({Container:{line:Q((function(...e){return ft.prototype.plot.apply(this.put(new ft),null!=e[0]?e:[0,0,0,0])}))}}),X(ft,"Line");let pt=class extends Ve{constructor(e,t=e){super(q("marker",e),t)}height(e){return this.attr("markerHeight",e)}orient(e){return this.attr("orient",e)}ref(e,t){return this.attr("refX",e).attr("refY",t)}toString(){return"url(#"+this.id()+")"}update(e){return this.clear(),"function"==typeof e&&e.call(this,this),this}width(e){return this.attr("markerWidth",e)}};function mt(e,t){return function(n){return null==n?this[e]:(this[e]=n,t&&t.call(this),this)}}k({Container:{marker(...e){return this.defs().marker(...e)}},Defs:{marker:Q((function(e,t,n){return this.put(new pt).size(e,t).ref(e/2,t/2).viewbox(0,0,e,t).attr("orient","auto").update(n)}))},marker:{marker(e,t,n,i){let r=["marker"];return"all"!==e&&r.push(e),r=r.join("-"),e=arguments[1]instanceof pt?arguments[1]:this.defs().marker(t,n,i),this.attr(r,e)}}}),X(pt,"Marker");const gt={"-":function(e){return e},"<>":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)},bezier:function(e,t,n,i){return function(r){return r<0?e>0?t/e*r:n>0?i/n*r:0:r>1?n<1?(1-i)/(1-n)*r+(i-n)/(1-n):e<1?(1-t)/(1-e)*r+(t-e)/(1-e):1:3*r*(1-r)**2*t+3*r**2*(1-r)*i+r**3}},steps:function(e,t="end"){t=t.split("-").reverse()[0];let n=e;return"none"===t?--n:"both"===t&&++n,(i,r=!1)=>{let s=Math.floor(i*e);const a=i*s%1==0;return"start"!==t&&"both"!==t||++s,r&&a&&--s,i>=0&&s<0&&(s=0),i<=1&&s>n&&(s=n),s/n}}};class vt{done(){return!1}}class yt extends vt{constructor(e=">"){super(),this.ease=gt[e]||e}step(e,t,n){return"number"!=typeof e?n<1?e:t:e+(t-e)*this.ease(n)}}class bt extends vt{constructor(e){super(),this.stepper=e}done(e){return e.done}step(e,t,n,i){return this.stepper(e,t,n,i)}}function xt(){const e=(this._duration||500)/1e3,t=this._overshoot||0,n=Math.PI,i=Math.log(t/100+1e-10),r=-i/Math.sqrt(n*n+i*i),s=3.9/(r*e);this.d=2*r*s,this.k=s*s}J(class extends bt{constructor(e=500,t=0){super(),this.duration(e).overshoot(t)}step(e,t,n,i){if("string"==typeof e)return e;if(i.done=n===1/0,n===1/0)return t;if(0===n)return e;n>100&&(n=16),n/=1e3;const r=i.velocity||0,s=-this.d*r-this.k*(e-t),a=e+r*n+s*n*n/2;return i.velocity=r+s*n,i.done=Math.abs(t-a)+Math.abs(r)<.002,i.done?t:a}},{duration:mt("_duration",xt),overshoot:mt("_overshoot",xt)}),J(class extends bt{constructor(e=.1,t=.01,n=0,i=1e3){super(),this.p(e).i(t).d(n).windup(i)}step(e,t,n,i){if("string"==typeof e)return e;if(i.done=n===1/0,n===1/0)return t;if(0===n)return e;const r=t-e;let s=(i.integral||0)+r*n;const a=(r-(i.error||0))/n,o=this._windup;return!1!==o&&(s=Math.max(-o,Math.min(s,o))),i.error=r,i.integral=s,i.done=Math.abs(r)<.001,i.done?t:e+(this.P*r+this.I*s+this.D*a)}},{windup:mt("_windup"),p:mt("P"),i:mt("I"),d:mt("D")});const _t={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},wt={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]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},T:function(e,t){return t.x=e[0],t.y=e[1],["T",e[0],e[1]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]},A:function(e,t){return t.x=e[5],t.y=e[6],["A",e[0],e[1],e[2],e[3],e[4],e[5],e[6]]}},kt="mlhvqtcsaz".split("");for(let e=0,t=kt.length;e<t;++e)wt[kt[e]]=function(e){return function(t,n,i){if("H"===e)t[0]=t[0]+n.x;else if("V"===e)t[0]=t[0]+n.y;else if("A"===e)t[5]=t[5]+n.x,t[6]=t[6]+n.y;else for(let e=0,i=t.length;e<i;++e)t[e]=t[e]+(e%2?n.y:n.x);return wt[e](t,n,i)}}(kt[e].toUpperCase());function Mt(e){return e.segment.length&&e.segment.length-1===_t[e.segment[0].toUpperCase()]}function St(e,t){e.inNumber&&At(e,!1);const n=he.test(t);if(n)e.segment=[t];else{const t=e.lastCommand,n=t.toLowerCase(),i=t===n;e.segment=["m"===n?i?"l":"L":t]}return e.inSegment=!0,e.lastCommand=e.segment[0],n}function At(e,t){if(!e.inNumber)throw new Error("Parser Error");e.number&&e.segment.push(parseFloat(e.number)),e.inNumber=t,e.number="",e.pointSeen=!1,e.hasExponent=!1,Mt(e)&&Lt(e)}function Lt(e){e.inSegment=!1,e.absolute&&(e.segment=function(e){const t=e.segment[0];return wt[t](e.segment.slice(1),e.p,e.p0)}(e)),e.segments.push(e.segment)}function Tt(e){if(!e.segment.length)return!1;const t="A"===e.segment[0].toUpperCase(),n=e.segment.length;return t&&(4===n||5===n)}function Ct(e){return"E"===e.lastToken.toUpperCase()}const Dt=new Set([" ",",","\t","\n","\r","\f"]);class Et extends Ne{bbox(){return xe().path.setAttribute("d",this.toString()),new we(xe.nodes.path.getBBox())}move(e,t){const n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(let n,i=this.length-1;i>=0;i--)n=this[i][0],"M"===n||"L"===n||"T"===n?(this[i][1]+=e,this[i][2]+=t):"H"===n?this[i][1]+=e:"V"===n?this[i][1]+=t:"C"===n||"S"===n||"Q"===n?(this[i][1]+=e,this[i][2]+=t,this[i][3]+=e,this[i][4]+=t,"C"===n&&(this[i][5]+=e,this[i][6]+=t)):"A"===n&&(this[i][6]+=e,this[i][7]+=t);return this}parse(e="M0 0"){return Array.isArray(e)&&(e=Array.prototype.concat.apply([],e).toString()),function(e,t=!0){let n=0,i="";const r={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:t,p0:new ve,p:new ve};for(;r.lastToken=i,i=e.charAt(n++);)if(r.inSegment||!St(r,i))if("."!==i)if(isNaN(parseInt(i)))if(Dt.has(i))r.inNumber&&At(r,!1);else if("-"!==i&&"+"!==i)if("E"!==i.toUpperCase()){if(he.test(i)){if(r.inNumber)At(r,!1);else{if(!Mt(r))throw new Error("parser Error");Lt(r)}--n}}else r.number+=i,r.hasExponent=!0;else{if(r.inNumber&&!Ct(r)){At(r,!1),--n;continue}r.number+=i,r.inNumber=!0}else{if("0"===r.number||Tt(r)){r.inNumber=!0,r.number=i,At(r,!0);continue}r.inNumber=!0,r.number+=i}else{if(r.pointSeen||r.hasExponent){At(r,!1),--n;continue}r.inNumber=!0,r.pointSeen=!0,r.number+=i}return r.inNumber&&At(r,!1),r.inSegment&&Mt(r)&&Lt(r),r.segments}(e)}size(e,t){const n=this.bbox();let i,r;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,i=this.length-1;i>=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]=(this[i][1]-n.x)*e/n.width+n.x,this[i][2]=(this[i][2]-n.y)*t/n.height+n.y):"H"===r?this[i][1]=(this[i][1]-n.x)*e/n.width+n.x:"V"===r?this[i][1]=(this[i][1]-n.y)*t/n.height+n.y:"C"===r||"S"===r||"Q"===r?(this[i][1]=(this[i][1]-n.x)*e/n.width+n.x,this[i][2]=(this[i][2]-n.y)*t/n.height+n.y,this[i][3]=(this[i][3]-n.x)*e/n.width+n.x,this[i][4]=(this[i][4]-n.y)*t/n.height+n.y,"C"===r&&(this[i][5]=(this[i][5]-n.x)*e/n.width+n.x,this[i][6]=(this[i][6]-n.y)*t/n.height+n.y)):"A"===r&&(this[i][1]=this[i][1]*e/n.width,this[i][2]=this[i][2]*t/n.height,this[i][6]=(this[i][6]-n.x)*e/n.width+n.x,this[i][7]=(this[i][7]-n.y)*t/n.height+n.y);return this}toString(){return function(e){let t="";for(let n=0,i=e.length;n<i;n++)t+=e[n][0],null!=e[n][1]&&(t+=e[n][1],null!=e[n][2]&&(t+=" ",t+=e[n][2],null!=e[n][3]&&(t+=" ",t+=e[n][3],t+=" ",t+=e[n][4],null!=e[n][5]&&(t+=" ",t+=e[n][5],t+=" ",t+=e[n][6],null!=e[n][7]&&(t+=" ",t+=e[n][7])))));return t+" "}(this)}}const Ot=e=>{const t=typeof e;return"number"===t?He:"string"===t?ge.isColor(e)?ge:de.test(e)?he.test(e)?Et:Ne:ee.test(e)?He:Yt:jt.indexOf(e.constructor)>-1?e.constructor:Array.isArray(e)?Ne:"object"===t?Ht:Yt};class Pt{constructor(e){this._stepper=e||new yt("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(e){return this._morphObj.morph(this._from,this._to,e,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(e,t){return e&&t}),!0)}from(e){return null==e?this._from:(this._from=this._set(e),this)}stepper(e){return null==e?this._stepper:(this._stepper=e,this)}to(e){return null==e?this._to:(this._to=this._set(e),this)}type(e){return null==e?this._type:(this._type=e,this)}_set(e){this._type||this.type(Ot(e));let t=new this._type(e);return this._type===ge&&(t=this._to?t[this._to[4]]():this._from?t[this._from[4]]():t),this._type===Ht&&(t=this._to?t.align(this._to):this._from?t.align(this._from):t),t=t.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(t.length)).map(Object).map((function(e){return e.done=!0,e})),t}}class Yt{constructor(...e){this.init(...e)}init(e){return e=Array.isArray(e)?e[0]:e,this.value=e,this}toArray(){return[this.value]}valueOf(){return this.value}}class It{constructor(...e){this.init(...e)}init(e){return Array.isArray(e)&&(e={scaleX:e[0],scaleY:e[1],shear:e[2],rotate:e[3],translateX:e[4],translateY:e[5],originX:e[6],originY:e[7]}),Object.assign(this,It.defaults,e),this}toArray(){const e=this;return[e.scaleX,e.scaleY,e.shear,e.rotate,e.translateX,e.translateY,e.originX,e.originY]}}It.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Nt=(e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0;class Ht{constructor(...e){this.init(...e)}align(e){const t=this.values;for(let n=0,i=t.length;n<i;++n){if(t[n+1]===e[n+1]){if(t[n+1]===ge&&e[n+7]!==t[n+7]){const t=e[n+7],i=new ge(this.values.splice(n+3,5))[t]().toArray();this.values.splice(n+3,0,...i)}n+=t[n+2]+2;continue}if(!e[n+1])return this;const i=(new e[n+1]).toArray(),r=t[n+2]+3;t.splice(n,r,e[n],e[n+1],e[n+2],...i),n+=t[n+2]+2}return this}init(e){if(this.values=[],Array.isArray(e))return void(this.values=e.slice());e=e||{};const t=[];for(const n in e){const i=Ot(e[n]),r=new i(e[n]).toArray();t.push([n,i,r.length,...r])}return t.sort(Nt),this.values=t.reduce(((e,t)=>e.concat(t)),[]),this}toArray(){return this.values}valueOf(){const e={},t=this.values;for(;t.length;){const n=t.shift(),i=t.shift(),r=t.shift(),s=t.splice(0,r);e[n]=new i(s)}return e}}const jt=[Yt,It,Ht];class Ft extends qe{constructor(e,t=e){super(q("path",e),t)}array(){return this._array||(this._array=new Et(this.attr("d")))}clear(){return delete this._array,this}height(e){return null==e?this.bbox().height:this.size(this.bbox().width,e)}move(e,t){return this.attr("d",this.array().move(e,t))}plot(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new Et(e))}size(e,t){const n=C(this,e,t);return this.attr("d",this.array().size(n.width,n.height))}width(e){return null==e?this.bbox().width:this.size(e,this.bbox().height)}x(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)}y(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)}}Ft.prototype.MorphArray=Et,k({Container:{path:Q((function(e){return this.put(new Ft).plot(e||new Et)}))}}),X(Ft,"Path");var Rt=Object.freeze({__proto__:null,array:function(){return this._array||(this._array=new ut(this.attr("points")))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new ut(e))},size:function(e,t){const n=C(this,e,t);return this.attr("points",this.array().size(n.width,n.height))}});class zt extends qe{constructor(e,t=e){super(q("polygon",e),t)}}k({Container:{polygon:Q((function(e){return this.put(new zt).plot(e||new ut)}))}}),J(zt,ht),J(zt,Rt),X(zt,"Polygon");class Bt extends qe{constructor(e,t=e){super(q("polyline",e),t)}}k({Container:{polyline:Q((function(e){return this.put(new Bt).plot(e||new ut)}))}}),J(Bt,ht),J(Bt,Rt),X(Bt,"Polyline");class Vt extends qe{constructor(e,t=e){super(q("rect",e),t)}}J(Vt,{rx:Ue,ry:$e}),k({Container:{rect:Q((function(e,t){return this.put(new Vt).size(e,t)}))}}),X(Vt,"Rect");class Wt{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(e){const t=void 0!==e.next?e:{value:e,next:null,prev:null};return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._last=t,this._first=t),t}remove(e){e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this._last&&(this._last=e.prev),e===this._first&&(this._first=e.next),e.prev=null,e.next=null}shift(){const e=this._first;return e?(this._first=e.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,e.value):null}}const qt={nextDraw:null,frames:new Wt,timeouts:new Wt,immediates:new Wt,timer:()=>H.window.performance||H.window.Date,transforms:[],frame(e){const t=qt.frames.push({run:e});return null===qt.nextDraw&&(qt.nextDraw=H.window.requestAnimationFrame(qt._draw)),t},timeout(e,t){t=t||0;const n=qt.timer().now()+t,i=qt.timeouts.push({run:e,time:n});return null===qt.nextDraw&&(qt.nextDraw=H.window.requestAnimationFrame(qt._draw)),i},immediate(e){const t=qt.immediates.push(e);return null===qt.nextDraw&&(qt.nextDraw=H.window.requestAnimationFrame(qt._draw)),t},cancelFrame(e){null!=e&&qt.frames.remove(e)},clearTimeout(e){null!=e&&qt.timeouts.remove(e)},cancelImmediate(e){null!=e&&qt.immediates.remove(e)},_draw(e){let t=null;const n=qt.timeouts.last();for(;(t=qt.timeouts.shift())&&(e>=t.time?t.run():qt.timeouts.push(t),t!==n););let i=null;const r=qt.frames.last();for(;i!==r&&(i=qt.frames.shift());)i.run(e);let s=null;for(;s=qt.immediates.shift();)s();qt.nextDraw=qt.timeouts.first()||qt.frames.first()?H.window.requestAnimationFrame(qt._draw):null}},Ut=function(e){const t=e.start,n=e.runner.duration();return{start:t,duration:n,end:t+n,runner:e.runner}},$t=function(){const e=H.window;return(e.performance||e.Date).now()};class Xt extends Pe{constructor(e=$t){super(),this._timeSource=e,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const e=this.getLastRunnerInfo(),t=e?e.runner.duration():0;return(e?e.start:this._time)+t}getEndTimeOfTimeline(){const e=this._runners.map((e=>e.start+e.runner.duration()));return Math.max(0,...e)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(e){return this._runners[this._runnerIds.indexOf(e)]||null}pause(){return this._paused=!0,this._continue()}persist(e){return null==e?this._persist:(this._persist=e,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(e){const t=this.speed();if(null==e)return this.speed(-t);const n=Math.abs(t);return this.speed(e?-n:n)}schedule(e,t,n){if(null==e)return this._runners.map(Ut);let i=0;const r=this.getEndTime();if(t=t||0,null==n||"last"===n||"after"===n)i=r;else if("absolute"===n||"start"===n)i=t,t=0;else if("now"===n)i=this._time;else if("relative"===n){const n=this.getRunnerInfoById(e.id);n&&(i=n.start+t,t=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const e=this.getLastRunnerInfo();i=e?e.start:this._time}}e.unschedule(),e.timeline(this);const s=e.persist(),a={persist:null===s?this._persist:s,start:i+t,runner:e};return this._lastRunnerId=e.id,this._runners.push(a),this._runners.sort(((e,t)=>e.start-t.start)),this._runnerIds=this._runners.map((e=>e.runner.id)),this.updateTime()._continue(),this}seek(e){return this.time(this._time+e)}source(e){return null==e?this._timeSource:(this._timeSource=e,this)}speed(e){return null==e?this._speed:(this._speed=e,this)}stop(){return this.time(0),this.pause()}time(e){return null==e?this._time:(this._time=e,this._continue(!0))}unschedule(e){const t=this._runnerIds.indexOf(e.id);return t<0||(this._runners.splice(t,1),this._runnerIds.splice(t,1),e.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(e=!1){return qt.cancelFrame(this._nextFrame),this._nextFrame=null,e?this._stepImmediate():(this._paused||(this._nextFrame=qt.frame(this._step)),this)}_stepFn(e=!1){const t=this._timeSource();let n=t-this._lastSourceTime;e&&(n=0);const i=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=t,e||(this._time+=i,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let e=this._runners.length;e--;){const t=this._runners[e],n=t.runner;this._time-t.start<=0&&n.reset()}let r=!1;for(let e=0,t=this._runners.length;e<t;e++){const n=this._runners[e],s=n.runner;let a=i;const o=this._time-n.start;o<=0?r=!0:(o<a&&(a=o),s.active()&&(s.step(a).done?!0!==n.persist&&s.duration()-s.time()+this._time+n.persist<this._time&&(s.unschedule(),--e,--t):r=!0))}return r&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}k({Element:{timeline:function(e){return null==e?(this._timeline=this._timeline||new Xt,this._timeline):(this._timeline=e,this)}}});class Gt extends Pe{constructor(e){super(),this.id=Gt.id++,e="function"==typeof(e=null==e?400:e)?new bt(e):e,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof e&&e,this._isDeclarative=e instanceof bt,this._stepper=this._isDeclarative?e:new yt,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new be,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(e,t,n){let i=1,r=!1,s=0;return t=t??0,n=n||"last","object"!=typeof(e=e??400)||e instanceof vt||(t=e.delay??t,n=e.when??n,r=e.swing||r,i=e.times??i,s=e.wait??s,e=e.duration??400),{duration:e,delay:t,swing:r,times:i,wait:s,when:n}}active(e){return null==e?this.enabled:(this.enabled=e,this)}addTransform(e){return this.transforms.lmultiplyO(e),this}after(e){return this.on("finished",e)}animate(e,t,n){const i=Gt.sanitise(e,t,n),r=new Gt(i.duration);return this._timeline&&r.timeline(this._timeline),this._element&&r.element(this._element),r.loop(i).schedule(i.delay,i.when)}clearTransform(){return this.transforms=new be,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((e=>!e.isTransform)))}delay(e){return this.animate(0,e)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(e){return this.queue(null,e)}ease(e){return this._stepper=new yt(e),this}element(e){return null==e?this._element:(this._element=e,e._prepareRunner(),this)}finish(){return this.step(1/0)}loop(e,t,n){return"object"==typeof e&&(t=e.swing,n=e.wait,e=e.times),this._times=e||1/0,this._swing=t||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(e){const t=this._duration+this._wait;if(null==e){const e=Math.floor(this._time/t),n=(this._time-e*t)/this._duration;return Math.min(e+n,this._times)}const n=e%1,i=t*Math.floor(e)+this._duration*n;return this.time(i)}persist(e){return null==e?this._persist:(this._persist=e,this)}position(e){const t=this._time,n=this._duration,i=this._wait,r=this._times,s=this._swing,a=this._reverse;let o;if(null==e){const e=function(e){const t=s*Math.floor(e%(2*(i+n))/(i+n)),r=t&&!a||!t&&a,o=Math.pow(-1,r)*(e%(i+n))/n+r;return Math.max(Math.min(o,1),0)},l=r*(i+n)-i;return o=t<=0?Math.round(e(1e-5)):t<l?e(t):Math.round(e(l-1e-5)),o}const l=Math.floor(this.loops()),c=s&&l%2==0;return o=l+(c&&!a||a&&c?e:1-e),this.loops(o)}progress(e){return null==e?Math.min(1,this._time/this.duration()):this.time(e*this.duration())}queue(e,t,n,i){return this._queue.push({initialiser:e||Ye,runner:t||Ye,retarget:n,isTransform:i,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(e){return this._reverse=null==e?!this._reverse:e,this}schedule(e,t,n){if(e instanceof Xt||(n=t,t=e,e=this.timeline()),!e)throw Error("Runner cannot be scheduled without timeline");return e.schedule(this,t,n),this}step(e){if(!this.enabled)return this;e=null==e?16:e,this._time+=e;const t=this.position(),n=this._lastPosition!==t&&this._time>=0;this._lastPosition=t;const i=this.duration(),r=this._lastTime<=0&&this._time>0,s=this._lastTime<i&&this._time>=i;this._lastTime=this._time,r&&this.fire("start",this);const a=this._isDeclarative;this.done=!a&&!s&&this._time>=i,this._reseted=!1;let o=!1;return(n||a)&&(this._initialise(n),this.transforms=new be,o=this._run(a?e:t),this.fire("step",this)),this.done=this.done||o&&a,s&&this.fire("finished",this),this}time(e){if(null==e)return this._time;const t=e-this._time;return this.step(t),this}timeline(e){return void 0===e?this._timeline:(this._timeline=e,this)}unschedule(){const e=this.timeline();return e&&e.unschedule(this),this}_initialise(e){if(e||this._isDeclarative)for(let t=0,n=this._queue.length;t<n;++t){const n=this._queue[t],i=this._isDeclarative||!n.initialised&&e;e=!n.finished,i&&e&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(e,t){if(this._history[e]={morpher:t,caller:this._queue[this._queue.length-1]},this._isDeclarative){const e=this.timeline();e&&e.play()}}_run(e){let t=!0;for(let n=0,i=this._queue.length;n<i;++n){const i=this._queue[n],r=i.runner.call(this,e);i.finished=i.finished||!0===r,t=t&&i.finished}return t}_tryRetarget(e,t,n){if(this._history[e]){if(!this._history[e].caller.initialised){const t=this._queue.indexOf(this._history[e].caller);return this._queue.splice(t,1),!1}this._history[e].caller.retarget?this._history[e].caller.retarget.call(this,t,n):this._history[e].morpher.to(t),this._history[e].caller.finished=!1;const i=this.timeline();return i&&i.play(),!0}return!1}}Gt.id=0;class Zt{constructor(e=new be,t=-1,n=!0){this.transforms=e,this.id=t,this.done=n}clearTransformsFromQueue(){}}J([Gt,Zt],{mergeWith(e){return new Zt(e.transforms.lmultiply(this.transforms),e.id)}});const Kt=(e,t)=>e.lmultiplyO(t),Jt=e=>e.transforms;function Qt(){const e=this._transformationRunners.runners.map(Jt).reduce(Kt,new be);this.transform(e),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class en{constructor(){this.runners=[],this.ids=[]}add(e){if(this.runners.includes(e))return;const t=e.id+1;return this.runners.push(e),this.ids.push(t),this}clearBefore(e){const t=this.ids.indexOf(e+1)||1;return this.ids.splice(0,t,0),this.runners.splice(0,t,new Zt).forEach((e=>e.clearTransformsFromQueue())),this}edit(e,t){const n=this.ids.indexOf(e+1);return this.ids.splice(n,1,e+1),this.runners.splice(n,1,t),this}getByID(e){return this.runners[this.ids.indexOf(e+1)]}length(){return this.ids.length}merge(){let e=null;for(let t=0;t<this.runners.length;++t){const n=this.runners[t];if(!(e&&n.done&&e.done)||n._timeline&&n._timeline._runnerIds.includes(n.id)||e._timeline&&e._timeline._runnerIds.includes(e.id))e=n;else{this.remove(n.id);const i=n.mergeWith(e);this.edit(e.id,i),e=i,--t}}return this}remove(e){const t=this.ids.indexOf(e+1);return this.ids.splice(t,1),this.runners.splice(t,1),this}}k({Element:{animate(e,t,n){const i=Gt.sanitise(e,t,n),r=this.timeline();return new Gt(i.duration).loop(i).element(this).timeline(r.play()).schedule(i.delay,i.when)},delay(e,t){return this.animate(0,e,t)},_clearTransformRunnersBefore(e){this._transformationRunners.clearBefore(e.id)},_currentTransform(e){return this._transformationRunners.runners.filter((t=>t.id<=e.id)).map(Jt).reduce(Kt,new be)},_addRunner(e){this._transformationRunners.add(e),qt.cancelImmediate(this._frameId),this._frameId=qt.immediate(Qt.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new en).add(new Zt(new be(this))))}}}),J(Gt,{attr(e,t){return this.styleAttr("attr",e,t)},css(e,t){return this.styleAttr("css",e,t)},styleAttr(e,t,n){if("string"==typeof t)return this.styleAttr(e,{[t]:n});let i=t;if(this._tryRetarget(e,i))return this;let r=new Pt(this._stepper).to(i),s=Object.keys(i);return this.queue((function(){r=r.from(this.element()[e](s))}),(function(t){return this.element()[e](r.at(t).valueOf()),r.done()}),(function(t){const n=Object.keys(t),a=(o=s,n.filter((e=>!o.includes(e))));var o;if(a.length){const t=this.element()[e](a),n=new Ht(r.from()).valueOf();Object.assign(n,t),r.from(n)}const l=new Ht(r.to()).valueOf();Object.assign(l,t),r.to(l),s=n,i=t})),this._rememberMorpher(e,r),this},zoom(e,t){if(this._tryRetarget("zoom",e,t))return this;let n=new Pt(this._stepper).to(new He(e));return this.queue((function(){n=n.from(this.element().zoom())}),(function(e){return this.element().zoom(n.at(e),t),n.done()}),(function(e,i){t=i,n.to(e)})),this._rememberMorpher("zoom",n),this},transform(e,t,n){if(t=e.relative||t,this._isDeclarative&&!t&&this._tryRetarget("transform",e))return this;const i=be.isMatrixLike(e);n=null!=e.affine?e.affine:null!=n?n:!i;const r=new Pt(this._stepper).type(n?It:be);let s,a,o,l,c;return this.queue((function(){a=a||this.element(),s=s||D(e,a),c=new be(t?void 0:a),a._addRunner(this),t||a._clearTransformRunnersBefore(this)}),(function(u){t||this.clearTransform();const{x:d,y:h}=new ve(s).transform(a._currentTransform(this));let f=new be({...e,origin:[d,h]}),p=this._isDeclarative&&o?o:c;if(n){f=f.decompose(d,h),p=p.decompose(d,h);const e=f.rotate,t=p.rotate,n=[e-360,e,e+360],i=n.map((e=>Math.abs(e-t))),r=Math.min(...i),s=i.indexOf(r);f.rotate=n[s]}t&&(i||(f.rotate=e.rotate||0),this._isDeclarative&&l&&(p.rotate=l)),r.from(p),r.to(f);const m=r.at(u);return l=m.rotate,o=new be(m),this.addTransform(o),a._addRunner(this),r.done()}),(function(t){(t.origin||"center").toString()!==(e.origin||"center").toString()&&(s=D(t,a)),e={...t,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",r),this},x(e){return this._queueNumber("x",e)},y(e){return this._queueNumber("y",e)},ax(e){return this._queueNumber("ax",e)},ay(e){return this._queueNumber("ay",e)},dx(e=0){return this._queueNumberDelta("x",e)},dy(e=0){return this._queueNumberDelta("y",e)},dmove(e,t){return this.dx(e).dy(t)},_queueNumberDelta(e,t){if(t=new He(t),this._tryRetarget(e,t))return this;const n=new Pt(this._stepper).to(t);let i=null;return this.queue((function(){i=this.element()[e](),n.from(i),n.to(i+t)}),(function(t){return this.element()[e](n.at(t)),n.done()}),(function(e){n.to(i+new He(e))})),this._rememberMorpher(e,n),this},_queueObject(e,t){if(this._tryRetarget(e,t))return this;const n=new Pt(this._stepper).to(t);return this.queue((function(){n.from(this.element()[e]())}),(function(t){return this.element()[e](n.at(t)),n.done()})),this._rememberMorpher(e,n),this},_queueNumber(e,t){return this._queueObject(e,new He(t))},cx(e){return this._queueNumber("cx",e)},cy(e){return this._queueNumber("cy",e)},move(e,t){return this.x(e).y(t)},amove(e,t){return this.ax(e).ay(t)},center(e,t){return this.cx(e).cy(t)},size(e,t){let n;return e&&t||(n=this._element.bbox()),e||(e=n.width/n.height*t),t||(t=n.height/n.width*e),this.width(e).height(t)},width(e){return this._queueNumber("width",e)},height(e){return this._queueNumber("height",e)},plot(e,t,n,i){if(4===arguments.length)return this.plot([e,t,n,i]);if(this._tryRetarget("plot",e))return this;const r=new Pt(this._stepper).type(this._element.MorphArray).to(e);return this.queue((function(){r.from(this._element.array())}),(function(e){return this._element.plot(r.at(e)),r.done()})),this._rememberMorpher("plot",r),this},leading(e){return this._queueNumber("leading",e)},viewbox(e,t,n,i){return this._queueObject("viewbox",new we(e,t,n,i))},update(e){return"object"!=typeof e?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",e.offset),this)}}),J(Gt,{rx:Ue,ry:$e,from:it,to:rt}),X(Gt,"Runner");class tn extends Ve{constructor(e,t=e){super(q("svg",e),t),this.namespace()}defs(){return this.isRoot()?U(this.node.querySelector("defs"))||this.put(new We):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof H.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Y,version:"1.1"}).attr("xmlns:xlink",N,I):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,I).attr("xmlns:svgjs",null,I)}root(){return this.isRoot()?this:super.root()}}k({Container:{nested:Q((function(){return this.put(new tn)}))}}),X(tn,"Svg",!0);let nn=class extends Ve{constructor(e,t=e){super(q("symbol",e),t)}};k({Container:{symbol:Q((function(){return this.put(new nn)}))}}),X(nn,"Symbol");var rn=Object.freeze({__proto__:null,amove:function(e,t){return this.ax(e).ay(t)},ax:function(e){return this.attr("x",e)},ay:function(e){return this.attr("y",e)},build:function(e){return this._build=!!e,this},center:function(e,t,n=this.bbox()){return this.cx(e,n).cy(t,n)},cx:function(e,t=this.bbox()){return null==e?t.cx:this.attr("x",this.attr("x")+e-t.cx)},cy:function(e,t=this.bbox()){return null==e?t.cy:this.attr("y",this.attr("y")+e-t.cy)},length:function(){return this.node.getComputedTextLength()},move:function(e,t,n=this.bbox()){return this.x(e,n).y(t,n)},plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(H.document.createTextNode(e)),this},x:function(e,t=this.bbox()){return null==e?t.x:this.attr("x",this.attr("x")+e-t.x)},y:function(e,t=this.bbox()){return null==e?t.y:this.attr("y",this.attr("y")+e-t.y)}});class sn extends qe{constructor(e,t=e){super(q("text",e),t),this.dom.leading=this.dom.leading??new He(1.3),this._rebuild=!0,this._build=!1}leading(e){return null==e?this.dom.leading:(this.dom.leading=new He(e),this.rebuild())}rebuild(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){const e=this;let t=0;const n=this.dom.leading;this.each((function(i){if(O(this.node))return;const r=H.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new He(r);this.dom.newLined&&(this.attr("x",e.attr("x")),"\n"===this.text()?t+=s:(this.attr("dy",i?s+t:0),t=0))})),this.fire("rebuild")}return this}setData(e){return this.dom=e,this.dom.leading=new He(e.leading||1.3),this}writeDataToDom(){return P(this,this.dom,{leading:1.3}),this}text(e){if(void 0===e){const t=this.node.childNodes;let n=0;e="";for(let i=0,r=t.length;i<r;++i)"textPath"===t[i].nodeName||O(t[i])?0===i&&(n=i+1):(i!==n&&3!==t[i].nodeType&&!0===U(t[i]).dom.newLined&&(e+="\n"),e+=t[i].textContent);return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else for(let t=0,n=(e=(e+"").split("\n")).length;t<n;t++)this.newLine(e[t]);return this.build(!1).rebuild()}}J(sn,rn),k({Container:{text:Q((function(e=""){return this.put(new sn).text(e)})),plain:Q((function(e=""){return this.put(new sn).plain(e)}))}}),X(sn,"Text");class an extends qe{constructor(e,t=e){super(q("tspan",e),t),this._build=!1}dx(e){return this.attr("dx",e)}dy(e){return this.attr("dy",e)}newLine(){this.dom.newLined=!0;const e=this.parent();if(!(e instanceof sn))return this;const t=e.index(this),n=H.window.getComputedStyle(this.node).getPropertyValue("font-size"),i=e.dom.leading*new He(n);return this.dy(t?i:0).attr("x",e.x())}text(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?(this.clear().build(!0),e.call(this,this),this.build(!1)):this.plain(e),this)}}J(an,rn),k({Tspan:{tspan:Q((function(e=""){const t=new an;return this._build||this.clear(),this.put(t).text(e)}))},Text:{newLine:function(e=""){return this.tspan(e).newLine()}}}),X(an,"Tspan");class on extends qe{constructor(e,t=e){super(q("circle",e),t)}radius(e){return this.attr("r",e)}rx(e){return this.attr("r",e)}ry(e){return this.rx(e)}size(e){return this.radius(new He(e).divide(2))}}J(on,{x:Xe,y:Ge,cx:Ze,cy:Ke,width:Je,height:Qe}),k({Container:{circle:Q((function(e=0){return this.put(new on).size(e).move(0,0)}))}}),X(on,"Circle");class ln extends Ve{constructor(e,t=e){super(q("clipPath",e),t)}remove(){return this.targets().forEach((function(e){e.unclip()})),super.remove()}targets(){return Ae("svg [clip-path*="+this.id()+"]")}}k({Container:{clip:Q((function(){return this.defs().put(new ln)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(e){const t=e instanceof ln?e:this.parent().clip().add(e);return this.attr("clip-path","url(#"+t.id()+")")},unclip(){return this.attr("clip-path",null)}}}),X(ln,"ClipPath");class cn extends ze{constructor(e,t=e){super(q("foreignObject",e),t)}}k({Container:{foreignObject:Q((function(e,t){return this.put(new cn).size(e,t)}))}}),X(cn,"ForeignObject");var un=Object.freeze({__proto__:null,dmove:function(e,t){return this.children().forEach((n=>{let i;try{i=n.node instanceof F().SVGSVGElement?new we(n.attr(["x","y","width","height"])):n.bbox()}catch(e){return}const r=new be(n),s=r.translate(e,t).transform(r.inverse()),a=new ve(i.x,i.y).transform(s);n.move(a.x,a.y)})),this},dx:function(e){return this.dmove(e,0)},dy:function(e){return this.dmove(0,e)},height:function(e,t=this.bbox()){return null==e?t.height:this.size(t.width,e,t)},move:function(e=0,t=0,n=this.bbox()){const i=e-n.x,r=t-n.y;return this.dmove(i,r)},size:function(e,t,n=this.bbox()){const i=C(this,e,t,n),r=i.width/n.width,s=i.height/n.height;return this.children().forEach((e=>{const t=new ve(n).transform(new be(e).inverse());e.scale(r,s,t.x,t.y)})),this},width:function(e,t=this.bbox()){return null==e?t.width:this.size(e,t.height,t)},x:function(e,t=this.bbox()){return null==e?t.x:this.move(e,t.y,t)},y:function(e,t=this.bbox()){return null==e?t.y:this.move(t.x,e,t)}});class dn extends Ve{constructor(e,t=e){super(q("g",e),t)}}J(dn,un),k({Container:{group:Q((function(){return this.put(new dn)}))}}),X(dn,"G");class hn extends Ve{constructor(e,t=e){super(q("a",e),t)}target(e){return this.attr("target",e)}to(e){return this.attr("href",e,N)}}J(hn,un),k({Container:{link:Q((function(e){return this.put(new hn).to(e)}))},Element:{unlink(){const e=this.linker();if(!e)return this;const t=e.parent();if(!t)return this.remove();const n=t.index(e);return t.add(this,n),e.remove(),this},linkTo(e){let t=this.linker();return t||(t=new hn,this.wrap(t)),"function"==typeof e?e.call(t,t):t.to(e),this},linker(){const e=this.parent();return e&&"a"===e.node.nodeName.toLowerCase()?e:null}}}),X(hn,"A");class fn extends Ve{constructor(e,t=e){super(q("mask",e),t)}remove(){return this.targets().forEach((function(e){e.unmask()})),super.remove()}targets(){return Ae("svg [mask*="+this.id()+"]")}}k({Container:{mask:Q((function(){return this.defs().put(new fn)}))},Element:{masker(){return this.reference("mask")},maskWith(e){const t=e instanceof fn?e:this.parent().mask().add(e);return this.attr("mask","url(#"+t.id()+")")},unmask(){return this.attr("mask",null)}}}),X(fn,"Mask");class pn extends ze{constructor(e,t=e){super(q("stop",e),t)}update(e){return("number"==typeof e||e instanceof He)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new He(e.offset)),this}}k({Gradient:{stop:function(e,t,n){return this.put(new pn).update(e,t,n)}}}),X(pn,"Stop");class mn extends ze{constructor(e,t=e){super(q("style",e),t)}addText(e=""){return this.node.textContent+=e,this}font(e,t,n={}){return this.rule("@font-face",{fontFamily:e,src:t,...n})}rule(e,t){return this.addText(function(e,t){if(!e)return"";if(!t)return e;let n=e+"{";for(const e in t)n+=e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()}))+":"+t[e]+";";return n+="}",n}(e,t))}}k("Dom",{style(e,t){return this.put(new mn).rule(e,t)},fontface(e,t,n){return this.put(new mn).font(e,t,n)}}),X(mn,"Style");class gn extends sn{constructor(e,t=e){super(q("textPath",e),t)}array(){const e=this.track();return e?e.array():null}plot(e){const t=this.track();let n=null;return t&&(n=t.plot(e)),null==e?n:this}track(){return this.reference("href")}}k({Container:{textPath:Q((function(e,t){return e instanceof sn||(e=this.text(e)),e.path(t)}))},Text:{path:Q((function(e,t=!0){const n=new gn;let i;if(e instanceof Ft||(e=this.defs().path(e)),n.attr("href","#"+e,N),t)for(;i=this.node.firstChild;)n.node.appendChild(i);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Q((function(e){return e instanceof sn||(e=(new sn).addTo(this.parent()).text(e)),e.path(this)})),targets(){return Ae("svg textPath").filter((e=>(e.attr("href")||"").includes(this.id())))}}}),gn.prototype.MorphArray=Et,X(gn,"TextPath");class vn extends qe{constructor(e,t=e){super(q("use",e),t)}use(e,t){return this.attr("href",(t||"")+"#"+e,N)}}k({Container:{use:Q((function(e,t){return this.put(new vn).use(e,t)}))}}),X(vn,"Use");const yn=W;J([tn,nn,lt,ot,pt],M("viewbox")),J([ft,Bt,zt,Ft],M("marker")),J(sn,M("Text")),J(Ft,M("Path")),J(We,M("Defs")),J([sn,an],M("Tspan")),J([Vt,tt,at,Gt],M("radius")),J(Pe,M("EventTarget")),J(Re,M("Dom")),J(ze,M("Element")),J(qe,M("Shape")),J([Ve,nt],M("Container")),J(at,M("Gradient")),J(Gt,M("Runner")),Me.extend([...new Set(w)]),function(e=[]){jt.push(...[].concat(e))}([He,ge,we,be,Ne,ut,Et,ve]),J(jt,{to(e){return(new Pt).type(this.constructor).from(this.toArray()).to(e)},fromArray(e){return this.init(e),this},toConsumable(){return this.toArray()},morph(e,t,n,i,r){return this.fromArray(e.map((function(e,s){return i.step(e,t[s],n,r[s],r)})))}});class bn extends ze{constructor(e){super(q("filter",e),e),this.$source="SourceGraphic",this.$sourceAlpha="SourceAlpha",this.$background="BackgroundImage",this.$backgroundAlpha="BackgroundAlpha",this.$fill="FillPaint",this.$stroke="StrokePaint",this.$autoSetIn=!0}put(e,t){return!(e=super.put(e,t)).attr("in")&&this.$autoSetIn&&e.attr("in",this.$source),e.attr("result")||e.attr("result",e.id()),e}remove(){return this.targets().each("unfilter"),super.remove()}targets(){return Ae('svg [filter*="'+this.id()+'"]')}toString(){return"url(#"+this.id()+")"}}class xn extends ze{constructor(e,t){super(e,t),this.result(this.id())}in(e){if(null==e){const e=this.attr("in");return this.parent()&&this.parent().find(`[result="${e}"]`)[0]||e}return this.attr("in",e)}result(e){return this.attr("result",e)}toString(){return this.result()}}const _n=e=>function(...t){for(let n=e.length;n--;)null!=t[n]&&this.attr(e[n],t[n])},wn={blend:_n(["in","in2","mode"]),colorMatrix:_n(["type","values"]),composite:_n(["in","in2","operator"]),convolveMatrix:function(e){e=new Ne(e).toString(),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},diffuseLighting:_n(["surfaceScale","lightingColor","diffuseConstant","kernelUnitLength"]),displacementMap:_n(["in","in2","scale","xChannelSelector","yChannelSelector"]),dropShadow:_n(["in","dx","dy","stdDeviation"]),flood:_n(["flood-color","flood-opacity"]),gaussianBlur:function(e=0,t=e){this.attr("stdDeviation",e+" "+t)},image:function(e){this.attr("href",e,N)},morphology:_n(["operator","radius"]),offset:_n(["dx","dy"]),specularLighting:_n(["surfaceScale","lightingColor","diffuseConstant","specularExponent","kernelUnitLength"]),tile:_n([]),turbulence:_n(["baseFrequency","numOctaves","seed","stitchTiles","type"])};["blend","colorMatrix","componentTransfer","composite","convolveMatrix","diffuseLighting","displacementMap","dropShadow","flood","gaussianBlur","image","merge","morphology","offset","specularLighting","tile","turbulence"].forEach((e=>{const t=T(e),n=wn[e];bn[t+"Effect"]=class extends xn{constructor(e){super(q("fe"+t,e),e)}update(e){return n.apply(this,e),this}},bn.prototype[e]=Q((function(e,...n){const i=new bn[t+"Effect"];return null==e?this.put(i):("function"==typeof e?e.call(i,i):n.unshift(e),this.put(i).update(n))}))})),J(bn,{merge(e){const t=this.put(new bn.MergeEffect);return"function"==typeof e?(e.call(t,t),t):((e instanceof Array?e:[...arguments]).forEach((e=>{e instanceof bn.MergeNode?t.put(e):t.mergeNode(e)})),t)},componentTransfer(e={}){const t=this.put(new bn.ComponentTransferEffect);if("function"==typeof e)return e.call(t,t),t;e.r||e.g||e.b||e.a||(e={r:e,g:e,b:e,a:e});for(const n in e)t.add(new(bn["Func"+n.toUpperCase()])(e[n]));return t}}),["distantLight","pointLight","spotLight","mergeNode","FuncR","FuncG","FuncB","FuncA"].forEach((e=>{const t=T(e);bn[t]=class extends xn{constructor(e){super(q("fe"+t,e),e)}}})),["funcR","funcG","funcB","funcA"].forEach((function(e){const t=bn[T(e)],n=Q((function(){return this.put(new t)}));bn.ComponentTransferEffect.prototype[e]=n})),["distantLight","pointLight","spotLight"].forEach((e=>{const t=bn[T(e)],n=Q((function(){return this.put(new t)}));bn.DiffuseLightingEffect.prototype[e]=n,bn.SpecularLightingEffect.prototype[e]=n})),J(bn.MergeEffect,{mergeNode(e){return this.put(new bn.MergeNode).attr("in",e)}}),J(We,{filter:function(e){const t=this.put(new bn);return"function"==typeof e&&e.call(t,t),t}}),J(Ve,{filter:function(e){return this.defs().filter(e)}}),J(ze,{filterWith:function(e){const t=e instanceof bn?e:this.defs().filter(e);return this.attr("filter",t)},unfilter:function(e){return this.attr("filter",null)},filterer(){return this.reference("filter")}});const kn={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)},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)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},diffuseLighting:function(e,t,n,i){return this.parent()&&this.parent().diffuseLighting(e,n,i).in(this)},displacementMap:function(e,t,n,i){return this.parent()&&this.parent().displacementMap(this,e,t,n,i)},dropShadow:function(e,t,n){return this.parent()&&this.parent().dropShadow(this,e,t,n).in(this)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(e){return e=e instanceof Array?e:[...e],this.parent()&&this.parent().merge(this,...e)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},specularLighting:function(e,t,n,i,r){return this.parent()&&this.parent().specularLighting(e,n,i,r).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,n,i,r){return this.parent()&&this.parent().turbulence(e,t,n,i,r).in(this)}};J(xn,kn),J(bn.MergeEffect,{in:function(e){return e instanceof bn.MergeNode?this.add(e,0):this.add((new bn.MergeNode).in(e),0),this}}),J([bn.CompositeEffect,bn.BlendEffect,bn.DisplacementMapEffect],{in2:function(e){if(null==e){const e=this.attr("in2");return this.parent()&&this.parent().find(`[result="${e}"]`)[0]||e}return this.attr("in2",e)}}),bn.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]};var Mn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"getDefaultFilter",value:function(e,t){var n=this.w;e.unfilter(!0),(new bn).size("120%","180%","-5%","-40%"),n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"applyFilter",value:function(e,t,n){var i,r=this,s=this.w;if(e.unfilter(!0),"none"!==n){var a,o,l=s.config.chart.dropShadow,c="lighten"===n?2:.3;e.filterWith((function(e){e.colorMatrix({type:"matrix",values:"\n          ".concat(c," 0 0 0 0\n          0 ").concat(c," 0 0 0\n          0 0 ").concat(c," 0 0\n          0 0 0 1 0\n        "),in:"SourceGraphic",result:"brightness"}),l.enabled&&r.addShadow(e,t,l,"brightness")})),l.noUserSpaceOnUse||null===(a=e.filterer())||void 0===a||null===(o=a.node)||void 0===o||o.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null===(i=e.filterer())||void 0===i?void 0:i.node)}else this.getDefaultFilter(e,t)}},{key:"addShadow",value:function(e,t,n,i){var r,s=this.w,a=n.blur,o=n.top,l=n.left,c=n.color,u=n.opacity;if(c=Array.isArray(c)?c[t]:c,(null===(r=s.config.chart.dropShadow.enabledOnSeries)||void 0===r?void 0:r.length)>0&&-1===s.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;e.offset({in:i,dx:l,dy:o,result:"offset"}),e.gaussianBlur({in:"offset",stdDeviation:a,result:"blur"}),e.flood({"flood-color":c,"flood-opacity":u,result:"flood"}),e.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),e.merge(["shadow",i])}},{key:"dropShadow",value:function(e,t){var n,i,r,s,a,o=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c=this.w;return e.unfilter(!0),b.isMsEdge()&&"radialBar"===c.config.chart.type||(null===(n=c.config.chart.dropShadow.enabledOnSeries)||void 0===n?void 0:n.length)>0&&-1===(null===(r=c.config.chart.dropShadow.enabledOnSeries)||void 0===r?void 0:r.indexOf(l))||(e.filterWith((function(e){o.addShadow(e,l,t,"SourceGraphic")})),t.noUserSpaceOnUse||null===(s=e.filterer())||void 0===s||null===(a=s.node)||void 0===a||a.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null===(i=e.filterer())||void 0===i?void 0:i.node)),e}},{key:"setSelectionFilter",value:function(e,t,n){var i=this.w;if(void 0!==i.globals.selectedDataPoints[t]&&i.globals.selectedDataPoints[t].indexOf(n)>-1){e.node.setAttribute("selected",!0);var r=i.config.states.active.filter;"none"!==r&&this.applyFilter(e,t,r.type)}}},{key:"_scaleFilterSize",value:function(e){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}(),Sn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"roundPathCorners",value:function(e,t){function n(e,t,n){var r=t.x-e.x,s=t.y-e.y,a=Math.sqrt(r*r+s*s);return i(e,t,Math.min(1,n/a))}function i(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function r(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function s(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var a=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}),[]),o=[];if(a.length>1){var l=s(a[0]),c=null;"Z"==a[a.length-1][0]&&a[0].length>2&&(c=["L",l.x,l.y],a[a.length-1]=c),o.push(a[0]);for(var u=1;u<a.length;u++){var d=o[o.length-1],h=a[u],f=h==c?a[1]:a[u+1];if(f&&d&&d.length>2&&"L"==h[0]&&f.length>2&&"L"==f[0]){var p,m,g=s(d),v=s(h),y=s(f);p=n(v,g,t),m=n(v,y,t),r(h,p),h.origPoint=v,o.push(h);var b=i(p,v,.5),x=i(v,m,.5),_=["C",b.x,b.y,x.x,x.y,m.x,m.y];_.origPoint=v,o.push(_)}else o.push(h)}if(c){var w=s(o[o.length-1]);o.push(["Z"]),r(o[0],w)}}else o=a;return o.reduce((function(e,t){return e+t.join(" ")+" "}),"")}},{key:"drawLine",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=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:i,stroke:r,"stroke-dasharray":s,"stroke-width":a,"stroke-linecap":o})}},{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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=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:i>0?i:0,rx:r,ry:r,opacity:a,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":c}),u.node.setAttribute("fill",s),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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:i,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,i=e.stroke,r=void 0===i?"#a8a8a8":i,s=e.strokeWidth,a=void 0===s?1:s,o=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:o,"fill-opacity":c,stroke:r,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":a,"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){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;return null===n?i=[" L",e,t].join(" "):"H"===n?i=[" H",e].join(" "):"V"===n&&(i=[" V",t].join(" ")),i}},{key:"curve",value:function(e,t,n,i,r,s){return["C",e,t,n,i,r,s].join(" ")}},{key:"quadraticCurve",value:function(e,t,n,i){return["Q",e,t,n,i].join(" ")}},{key:"arc",value:function(e,t,n,i,r,s,a){var o="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(o="a"),[o,e,t,n,i,r,s,a].join(" ")}},{key:"renderPaths",value:function(e){var t,n=e.j,i=e.realIndex,r=e.pathFrom,s=e.pathTo,a=e.stroke,o=e.strokeWidth,l=e.strokeLinecap,c=e.fill,u=e.animationDelay,d=e.initialSpeed,f=e.dataChangeSpeed,p=e.className,m=e.chartType,g=e.shouldClipToGrid,v=void 0===g||g,y=e.bindEventsOnPaths,b=void 0===y||y,_=e.drawShadow,w=void 0===_||_,k=this.w,M=new Mn(this.ctx),S=new x(this.ctx),A=this.w.config.chart.animations.enabled,L=A&&this.w.config.chart.animations.dynamicAnimation.enabled,T=!!(A&&!k.globals.resized||L&&k.globals.dataChanged&&k.globals.shouldAnimate);T?t=r:(t=s,k.globals.animationEnded=!0);var C,D=k.config.stroke.dashArray;C=Array.isArray(D)?D[i]:k.config.stroke.dashArray;var E=this.drawPath({d:t,stroke:a,strokeWidth:o,fill:c,fillOpacity:1,classes:p,strokeLinecap:l,strokeDashArray:C});E.attr("index",i),v&&("bar"===m&&!k.globals.isHorizontal||k.globals.comboCharts?E.attr({"clip-path":"url(#gridRectBarMask".concat(k.globals.cuid,")")}):E.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")})),k.config.chart.dropShadow.enabled&&w&&M.dropShadow(E,k.config.chart.dropShadow,i),b&&(E.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,E)),E.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,E)),E.node.addEventListener("mousedown",this.pathMouseDown.bind(this,E))),E.attr({pathTo:s,pathFrom:r});var O={el:E,j:n,realIndex:i,pathFrom:r,pathTo:s,fill:c,strokeWidth:o,delay:u};return!A||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||S.showDelayedElements():S.animatePathsGradually(h(h({},O),{},{speed:d})),k.globals.dataChanged&&L&&T&&S.animatePathsGradually(h(h({},O),{},{speed:f})),E}},{key:"drawPattern",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,n,(function(s){"horizontalLines"===e?s.line(0,0,n,0).stroke({color:i,width:r+1}):"verticalLines"===e?s.line(0,0,0,t).stroke({color:i,width:r+1}):"slantedLines"===e?s.line(0,0,t,n).stroke({color:i,width:r}):"squares"===e?s.rect(t,n).fill("none").stroke({color:i,width:r}):"circles"===e&&s.circle(t).fill("none").stroke({color:i,width:r})}))}},{key:"drawGradient",value:function(e,t,n,i,r){var s,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[],c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=this.w;t.length<9&&0===t.indexOf("#")&&(t=b.hexToRgba(t,i)),n.length<9&&0===n.indexOf("#")&&(n=b.hexToRgba(n,r));var d=0,h=1,f=1,p=null;null!==o&&(d=void 0!==o[0]?o[0]/100:0,h=void 0!==o[1]?o[1]/100:1,f=void 0!==o[2]?o[2]/100:1,p=void 0!==o[3]?o[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(s=l&&0!==l.length?u.globals.dom.Paper.gradient(m?"radial":"linear",(function(e){(Array.isArray(l[c])?l[c]:l).forEach((function(t){e.stop(t.offset/100,t.color,t.opacity)}))})):u.globals.dom.Paper.gradient(m?"radial":"linear",(function(e){e.stop(d,t,i),e.stop(h,n,r),e.stop(f,n,r),null!==p&&e.stop(p,t,i)})),m){var g=u.globals.gridWidth/2,v=u.globals.gridHeight/2;"bubble"!==u.config.chart.type?s.attr({gradientUnits:"userSpaceOnUse",cx:g,cy:v,r:a}):s.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?s.from(0,0).to(0,1):"diagonal"===e?s.from(0,0).to(1,1):"horizontal"===e?s.from(0,1).to(1,1):"diagonal2"===e&&s.from(1,0).to(0,1);return s}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,n=e.maxWidth,i=e.fontSize,r=e.fontFamily,s=this.getTextRects(t,i,r),a=s.width/t.length,o=Math.floor(n/a);return n<s.width?t.slice(0,o-3)+"...":t}},{key:"drawText",value:function(e){var t=this,n=e.x,i=e.y,r=e.text,s=e.textAnchor,a=e.fontSize,o=e.fontFamily,l=e.fontWeight,c=e.foreColor,u=e.opacity,d=e.maxWidth,f=e.cssClass,p=void 0===f?"":f,m=e.isPlainText,g=void 0===m||m,v=e.dominantBaseline,y=void 0===v?"auto":v,b=this.w;void 0===r&&(r="");var x=r;s||(s="start"),c&&c.length||(c=b.config.chart.foreColor),o=o||b.config.chart.fontFamily,l=l||"regular";var _,w={maxWidth:d,fontSize:a=a||"11px",fontFamily:o};return Array.isArray(r)?_=b.globals.dom.Paper.text((function(e){for(var n=0;n<r.length;n++)x=r[n],d&&(x=t.getTextBasedOnMaxWidth(h({text:r[n]},w))),0===n?e.tspan(x):e.tspan(x).newLine()})):(d&&(x=this.getTextBasedOnMaxWidth(h({text:r},w))),_=g?b.globals.dom.Paper.plain(r):b.globals.dom.Paper.text((function(e){return e.tspan(x)}))),_.attr({x:n,y:i,"text-anchor":s,"dominant-baseline":y,"font-size":a,"font-family":o,"font-weight":l,fill:c,class:"apexcharts-text "+p}),_.node.style.fontFamily=o,_.node.style.opacity=u,_}},{key:"getMarkerPath",value:function(e,t,n,i){var r="";switch(n){case"cross":r="M ".concat(e-(i/=1.4)," ").concat(t-i," L ").concat(e+i," ").concat(t+i,"  M ").concat(e-i," ").concat(t+i," L ").concat(e+i," ").concat(t-i);break;case"plus":r="M ".concat(e-(i/=1.12)," ").concat(t," L ").concat(e+i," ").concat(t,"  M ").concat(e," ").concat(t-i," L ").concat(e," ").concat(t+i);break;case"star":case"sparkle":var s=5;i*=1.15,"sparkle"===n&&(i/=1.1,s=4);for(var a=Math.PI/s,o=0;o<=2*s;o++){var l=o*a,c=o%2==0?i:i/2;r+=(0===o?"M":"L")+(e+c*Math.sin(l))+","+(t-c*Math.cos(l))}r+="Z";break;case"triangle":r="M ".concat(e," ").concat(t-i," \n             L ").concat(e+i," ").concat(t+i," \n             L ").concat(e-i," ").concat(t+i," \n             Z");break;case"square":case"rect":r="M ".concat(e-(i/=1.125)," ").concat(t-i," \n           L ").concat(e+i," ").concat(t-i," \n           L ").concat(e+i," ").concat(t+i," \n           L ").concat(e-i," ").concat(t+i," \n           Z");break;case"diamond":i*=1.05,r="M ".concat(e," ").concat(t-i," \n             L ").concat(e+i," ").concat(t," \n             L ").concat(e," ").concat(t+i," \n             L ").concat(e-i," ").concat(t," \n            Z");break;case"line":r="M ".concat(e-(i/=1.1)," ").concat(t," \n           L ").concat(e+i," ").concat(t);break;default:i*=2,r="M ".concat(e,", ").concat(t," \n           m -").concat(i/2,", 0 \n           a ").concat(i/2,",").concat(i/2," 0 1,0 ").concat(i,",0 \n           a ").concat(i/2,",").concat(i/2," 0 1,0 -").concat(i,",0")}return r}},{key:"drawMarkerShape",value:function(e,t,n,i,r){var s=this.drawPath({d:this.getMarkerPath(e,t,n,i,r),stroke:r.pointStrokeColor,strokeDashArray:r.pointStrokeDashArray,strokeWidth:r.pointStrokeWidth,fill:r.pointFillColor,fillOpacity:r.pointFillOpacity,strokeOpacity:r.pointStrokeOpacity});return s.attr({cx:e,cy:t,shape:r.shape,class:r.class?r.class:""}),s}},{key:"drawMarker",value:function(e,t,n){e=e||0;var i=n.pSize||0;return b.isNumber(t)||(i=0,t=0),this.drawMarkerShape(e,t,null==n?void 0:n.shape,i,h(h({},n),"line"===n.shape||"plus"===n.shape||"cross"===n.shape?{pointStrokeColor:n.pointFillColor,pointStrokeOpacity:n.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(e,t){var n=this.w,i=new Mn(this.ctx),r=parseInt(e.node.getAttribute("index"),10),s=parseInt(e.node.getAttribute("j"),10);if("function"==typeof n.config.chart.events.dataPointMouseEnter&&n.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:r,dataPointIndex:s,w:n}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:r,dataPointIndex:s,w:n}]),("none"===n.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==n.config.states.hover.filter.type&&!n.globals.isTouchDevice){var a=n.config.states.hover.filter;i.applyFilter(e,r,a.type)}}},{key:"pathMouseLeave",value:function(e,t){var n=this.w,i=new Mn(this.ctx),r=parseInt(e.node.getAttribute("index"),10),s=parseInt(e.node.getAttribute("j"),10);"function"==typeof n.config.chart.events.dataPointMouseLeave&&n.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:r,dataPointIndex:s,w:n}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:r,dataPointIndex:s,w:n}]),"none"!==n.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==n.config.states.hover.filter.type&&i.getDefaultFilter(e,r)}},{key:"pathMouseDown",value:function(e,t){var n=this.w,i=new Mn(this.ctx),r=parseInt(e.node.getAttribute("index"),10),s=parseInt(e.node.getAttribute("j"),10),a="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),n.globals.selectedDataPoints[r].indexOf(s)>-1){var o=n.globals.selectedDataPoints[r].indexOf(s);n.globals.selectedDataPoints[r].splice(o,1)}}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.globals.selectedDataPoints.length>0){n.globals.selectedDataPoints=[];var l=n.globals.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),c=n.globals.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),u=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),i.getDefaultFilter(e,r)}))};u(l),u(c)}e.node.setAttribute("selected","true"),a="true",void 0===n.globals.selectedDataPoints[r]&&(n.globals.selectedDataPoints[r]=[]),n.globals.selectedDataPoints[r].push(s)}if("true"===a){var d=n.config.states.active.filter;if("none"!==d)i.applyFilter(e,r,d.type);else if("none"!==n.config.states.hover.filter&&!n.globals.isTouchDevice){var h=n.config.states.hover.filter;i.applyFilter(e,r,h.type)}}else"none"!==n.config.states.active.filter.type&&("none"===n.config.states.hover.filter.type||n.globals.isTouchDevice?i.getDefaultFilter(e,r):(h=n.config.states.hover.filter,i.applyFilter(e,r,h.type)));"function"==typeof n.config.chart.events.dataPointSelection&&n.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:s,w:n}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:s,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,i){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=this.w,a=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:n,foreColor:"#fff",opacity:0});i&&a.attr("transform",i),s.globals.dom.Paper.add(a);var o=a.bbox();return r||(o=a.node.getBoundingClientRect()),a.remove(),{width:o.width,height:o.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 i=t.length-3;i>0;i-=3)if(e.getSubStringLength(0,i)<=n/1.1)return void(e.textContent=t.substring(0,i)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}}]),e}(),An=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(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 i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var r=0,s=0;s<t.globals.series.length;s++)void 0!==t.globals.series[s][i]&&-1===e.indexOf(s)&&(r+=t.globals.series[s][i]);n.push(r)}return n}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&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(i){var r=[];t.config.series.forEach((function(e,n){i.indexOf(t.globals.seriesNames[n])>-1&&r.push(n)}));var s=t.globals.series.map((function(e,t){return-1===r.indexOf(t)?t:-1})).filter((function(e){return-1!==e}));n.push(e.getStackedSeriesTotals(s))})),n}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,n=[],i=[],r=[],s=e.series.length>t.yaxis.length||t.yaxis.some((function(e){return Array.isArray(e.seriesName)}));t.series.forEach((function(e,t){r.push(t),i.push(null)})),t.yaxis.forEach((function(e,t){n[t]=[]}));var a=[];t.yaxis.forEach((function(e,i){var o=!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,a){if(t.name===e){var l=a;i===a||s?!s||r.indexOf(a)>-1?n[i].push([i,a]):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[a].push([a,i]),l=i),o=!0,-1!==(l=r.indexOf(l))&&r.splice(l,1)}}))}))}o||a.push(i)})),n=n.map((function(e,t){var n=[];return e.forEach((function(e){i[e[1]]=e[0],n.push(e[1])})),n}));for(var o=t.yaxis.length-1,l=0;l<a.length&&(o=a[l],n[o]=[],r);l++){var c=r[0];r.shift(),n[o].push(c),i[c]=o}r.forEach((function(e){n[o].push(e),i[e]=o})),e.seriesYAxisMap=n.map((function(e){return e})),e.seriesYAxisReverseMap=i.map((function(e){return e})),e.seriesYAxisMap.forEach((function(e,n){e.forEach((function(e){t.series[e]&&void 0===t.series[e].group&&(t.series[e].group="apexcharts-axis-".concat(n.toString()))}))}))}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&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&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),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 i=0;i<e.length;i++)n+=e[i];else n+=e;return n}))}},{key:"getSeriesTotalsXRange",value:function(e,t){var n=this.w;return n.globals.series.map((function(i,r){for(var s=0,a=0;a<i.length;a++)n.globals.seriesX[r][a]>e&&n.globals.seriesX[r][a]<t&&(s+=i[a]);return s}))}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map((function(t,n){var i=[];if(Array.isArray(t))for(var r=0;r<t.length;r++){var s=e.globals.stackedSeriesTotals[r],a=0;s&&(a=100*t[r]/s),i.push(a)}else{var o=100*t/e.globals.seriesTotals.reduce((function(e,t){return e+t}),0);i.push(o)}return i}))}},{key:"getCalculatedRatios",value:function(){var e,t,n,i=this,r=this.w,s=r.globals,a=[],o=0,l=[],c=.1,u=0;if(s.yRange=[],s.isMultipleYAxis)for(var d=0;d<s.minYArr.length;d++)s.yRange.push(Math.abs(s.minYArr[d]-s.maxYArr[d])),l.push(0);else s.yRange.push(Math.abs(s.minY-s.maxY));s.xRange=Math.abs(s.maxX-s.minX),s.zRange=Math.abs(s.maxZ-s.minZ);for(var h=0;h<s.yRange.length;h++)a.push(s.yRange[h]/s.gridHeight);if(t=s.xRange/s.gridWidth,e=s.yRange/s.gridWidth,n=s.xRange/s.gridHeight,(o=s.zRange/s.gridHeight*16)||(o=1),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(s.hasNegs=!0),r.globals.seriesYAxisReverseMap.length>0){var f=function(e,t){var n=r.config.yaxis[r.globals.seriesYAxisReverseMap[t]],s=e<0?-1:1;return e=Math.abs(e),n.logarithmic&&(e=i.getBaseLog(n.logBase,e)),-s*e/a[t]};if(s.isMultipleYAxis){l=[];for(var p=0;p<a.length;p++)l.push(f(s.minYArr[p],p))}else(l=[]).push(f(s.minY,0)),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(c=-s.minY/e,u=s.minX/t)}else(l=[]).push(0),c=0,u=0;return{yRatio:a,invertedYRatio:e,zRatio:o,xRatio:t,invertedXRatio:n,baseLineInvertedY:c,baseLineY:l,baseLineX:u}}},{key:"getLogSeries",value:function(e){var t=this,n=this.w;return n.globals.seriesLog=e.map((function(e,i){var r=n.globals.seriesYAxisReverseMap[i];return n.config.yaxis[r]&&n.config.yaxis[r].logarithmic?e.map((function(e){return null===e?null:t.getLogVal(n.config.yaxis[r].logBase,e,i)})):e})),n.globals.invalidLogScale?e:n.globals.seriesLog}},{key:"getLogValAtSeriesIndex",value:function(e,t){if(null===e)return null;var n=this.w,i=n.globals.seriesYAxisReverseMap[t];return n.config.yaxis[i]&&n.config.yaxis[i].logarithmic?this.getLogVal(n.config.yaxis[i].logBase,e,t):e}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,n){if(t<=0)return 0;var i=this.w,r=0===i.globals.minYArr[n]?-1:this.getBaseLog(e,i.globals.minYArr[n]),s=(0===i.globals.maxYArr[n]?0:this.getBaseLog(e,i.globals.maxYArr[n]))-r;return t<1?t/s:(this.getBaseLog(e,t)-r)/s}},{key:"getLogYRatios",value:function(e){var t=this,n=this.w,i=this.w.globals;return i.yLogRatio=e.slice(),i.logYRange=i.yRange.map((function(e,r){var s=n.globals.seriesYAxisReverseMap[r];if(n.config.yaxis[s]&&t.w.config.yaxis[s].logarithmic){var a,o=-Number.MAX_VALUE,l=Number.MIN_VALUE;return i.seriesLog.forEach((function(e,t){e.forEach((function(e){n.config.yaxis[t]&&n.config.yaxis[t].logarithmic&&(o=Math.max(e,o),l=Math.min(e,l))}))})),a=Math.pow(i.yRange[r],Math.abs(l-o)/i.yRange[r]),i.yLogRatio[r]=a/i.gridHeight,a}})),i.invalidLogScale?e.slice():i.yLogRatio}},{key:"drawSeriesByGroup",value:function(e,t,n,i){var r=this.w,s=[];return e.series.length>0&&t.forEach((function(t){var a=[],o=[];e.i.forEach((function(n,i){r.config.series[n].group===t&&(a.push(e.series[i]),o.push(n))})),a.length>0&&s.push(i.draw(a,n,o))})),s}}],[{key:"checkComboSeries",value:function(e,t){var n=!1,i=0,r=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||i++,void 0!==e.type&&e.type!==t&&r++})),r>0&&(n=!0),{comboBarCount:i,comboCharts:n}}},{key:"extendArrayProps",value:function(e,t,n){var i,r,s,a,o,l;return null!==(i=t)&&void 0!==i&&i.yaxis&&(t=e.extendYAxis(t,n)),null!==(r=t)&&void 0!==r&&r.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),null!==(s=t)&&void 0!==s&&null!==(a=s.annotations)&&void 0!==a&&a.xaxis&&(t=e.extendXAxisAnnotations(t)),null!==(o=t)&&void 0!==o&&null!==(l=o.annotations)&&void 0!==l&&l.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),Ln=function(){function e(t){n(this,e),this.w=t.w,this.annoCtx=t}return r(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 i=null!==t?t:0,r=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(i,"']"));if(null!==r){var s=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-s.height+4);var a="top"===e.label.position?s.width:-s.width;r.setAttribute("y",parseFloat(r.getAttribute("y"))+a);var o=this.annoCtx.graphics.rotateAroundCenter(r),l=o.x,c=o.y;r.setAttribute("transform","rotate(-90 ".concat(l," ").concat(c,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var n=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;var i=n.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=e.getBoundingClientRect(),s=t.label.style.padding,a=s.left,o=s.right,l=s.top,c=s.bottom;if("vertical"===t.label.orientation){var u=[a,o,l,c];l=u[0],c=u[1],a=u[2],o=u[3]}var d=r.left-i.left-a,h=r.top-i.top-l,f=this.annoCtx.graphics.drawRect(d-n.globals.barPadForNumericAxis,h,r.width+a+o,r.height+l+c,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&f.node.classList.add(t.id),f}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,n=function(n,i,r){var s=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(i,"']"));if(s){var a=s.parentNode,o=e.addBackgroundToAnno(s,n);o&&(a.insertBefore(o.node,s),n.label.mouseEnter&&o.node.addEventListener("mouseenter",n.label.mouseEnter.bind(e,n)),n.label.mouseLeave&&o.node.addEventListener("mouseleave",n.label.mouseLeave.bind(e,n)),n.label.click&&o.node.addEventListener("click",n.label.click.bind(e,n)))}};t.config.annotations.xaxis.forEach((function(e,t){return n(e,t,"xaxis")})),t.config.annotations.yaxis.forEach((function(e,t){return n(e,t,"yaxis")})),t.config.annotations.points.forEach((function(e,t){return n(e,t,"point")}))}},{key:"getY1Y2",value:function(e,t){var n,i=this.w,r="y1"===e?t.y:t.y2,s=!1;if(this.annoCtx.invertAxis){var a=i.config.xaxis.convertedCatToNumeric?i.globals.categoryLabels:i.globals.labels,o=a.indexOf(r),l=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(o+1,")"));n=l?parseFloat(l.getAttribute("y")):(i.globals.gridHeight/a.length-1)*(o+1)-i.globals.barHeight,void 0!==t.seriesIndex&&i.globals.barHeight&&(n-=i.globals.barHeight/2*(i.globals.series.length-1)-i.globals.barHeight*t.seriesIndex)}else{var c,u=i.globals.seriesYAxisMap[t.yAxisIndex][0],d=i.config.yaxis[t.yAxisIndex].logarithmic?new An(this.annoCtx.ctx).getLogVal(i.config.yaxis[t.yAxisIndex].logBase,r,u)/i.globals.yLogRatio[u]:(r-i.globals.minYArr[u])/(i.globals.yRange[u]/i.globals.gridHeight);n=i.globals.gridHeight-Math.min(Math.max(d,0),i.globals.gridHeight),s=d>i.globals.gridHeight||d<0,!t.marker||void 0!==t.y&&null!==t.y||(n=0),null!==(c=i.config.yaxis[t.yAxisIndex])&&void 0!==c&&c.reversed&&(n=d)}return"string"==typeof r&&r.includes("px")&&(n=parseFloat(r)),{yP:n,clipped:s}}},{key:"getX1X2",value:function(e,t){var n=this.w,i="x1"===e?t.x:t.x2,r=this.annoCtx.invertAxis?n.globals.minY:n.globals.minX,s=this.annoCtx.invertAxis?n.globals.maxY:n.globals.maxX,a=this.annoCtx.invertAxis?n.globals.yRange[0]:n.globals.xRange,o=!1,l=this.annoCtx.inversedReversedAxis?(s-i)/(a/n.globals.gridWidth):(i-r)/(a/n.globals.gridWidth);return"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||n.config.chart.sparkline.enabled||(l=this.getStringX(i)),"string"==typeof i&&i.includes("px")&&(l=parseFloat(i)),null==i&&t.marker&&(l=n.globals.gridWidth),void 0!==t.seriesIndex&&n.globals.barWidth&&!this.annoCtx.invertAxis&&(l-=n.globals.barWidth/2*(n.globals.series.length-1)-n.globals.barWidth*t.seriesIndex),l>n.globals.gridWidth?(l=n.globals.gridWidth,o=!0):l<0&&(l=0,o=!0),{x:l,clipped:o}}},{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 i=t.globals.labels.map((function(e){return Array.isArray(e)?e.join(" "):e})).indexOf(e),r=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(i+1,")"));return r&&(n=parseFloat(r.getAttribute("x"))),n}}]),e}(),Tn=function(){function e(t){n(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Ln(this.annoCtx)}return r(e,[{key:"addXaxisAnnotation",value:function(e,t,n){var i,r=this.w,s=this.helpers.getX1X2("x1",e),a=s.x,o=s.clipped,l=!0,c=e.label.text,u=e.strokeDashArray;if(b.isNumber(a)){if(null===e.x2||void 0===e.x2){if(!o){var d=this.annoCtx.graphics.drawLine(a+e.offsetX,0+e.offsetY,a+e.offsetX,r.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(i=h.x,l=h.clipped,i<a){var f=a;a=i,i=f}var p=this.annoCtx.graphics.drawRect(a+e.offsetX,0+e.offsetY,i-a,r.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,u);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}if(!o||!l){var m=this.annoCtx.graphics.getTextRects(c,parseFloat(e.label.style.fontSize)),g="top"===e.label.position?4:"center"===e.label.position?r.globals.gridHeight/2+("vertical"===e.label.orientation?m.width/2:0):r.globals.gridHeight,v=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:g+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?m.width/2-12:-m.width/2:0),text:c,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-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});v.attr({rel:n}),t.appendChild(v.node),this.annoCtx.helpers.setOrientations(e,n)}}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map((function(t,i){e.addXaxisAnnotation(t,n.node,i)})),n}}]),e}(),Cn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return r(e,[{key:"isValidDate",value:function(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var n=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(n)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var n=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,r=["\0"].concat(m(n.months)),s=[""].concat(m(n.shortMonths)),a=[""].concat(m(n.days)),o=[""].concat(m(n.shortDays));function l(e,t){var n=e+"";for(t=t||2;n.length<t;)n="0"+n;return n}var c=i?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var u=(i?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+s[0])).replace(/(^|[^\\])MM/g,"$1"+l(u))).replace(/(^|[^\\])M/g,"$1"+u);var d=i?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+a[0])).replace(/(^|[^\\])ddd/g,"$1"+o[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var h=i?e.getUTCHours():e.getHours(),f=h>12?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=i?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var g=i?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);var v=i?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(v,3)),v=Math.round(v/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(v)),v=Math.round(v/10);var y=h<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+y)).replace(/(^|[^\\])T/g,"$1"+y.charAt(0));var b=y.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));var x=-e.getTimezoneOffset(),_=i||!x?"Z":x>0?"+":"-";if(!i){var w=(x=Math.abs(x))%60;_+=l(Math.floor(x/60))+":"+l(w)}t=t.replace(/(^|[^\\])K/g,"$1"+_);var k=(i?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(a[0],"g"),a[k])).replace(new RegExp(o[0],"g"),o[k])).replace(new RegExp(r[0],"g"),r[u])).replace(new RegExp(s[0],"g"),s[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,n){var i=this.w;void 0!==i.config.xaxis.min&&(e=i.config.xaxis.min),void 0!==i.config.xaxis.max&&(t=i.config.xaxis.max);var r=this.getDate(e),s=this.getDate(t),a=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(a[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(a[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(a[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(a[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(a[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(a[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(a[0],10),maxYear:parseInt(o[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 i=this.daysCntOfYear[t]+n;return t>1&&this.isLeapYear()&&i++,i}},{key:"determineDaysOfMonths",value:function(e,t){var n=30;switch(e=b.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}(),Dn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return r(e,[{key:"xLabelFormat",value:function(e,t,n,i){var r=this.w;if("datetime"===r.config.xaxis.type&&void 0===r.config.xaxis.labels.formatter&&void 0===r.config.tooltip.x.formatter){var s=new Cn(this.ctx);return s.formatDate(s.getDate(t),r.config.tooltip.x.format)}return e(t,n,i)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map((function(e){return e})):e}},{key:"defaultYFormatter",value:function(e,t,n){var i=this.w;if(b.isNumber(e))if(0!==i.globals.yValueDecimal)e=e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:i.globals.yValueDecimal);else{var r=e.toFixed(0);e=e==r?r: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(b.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(b.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,i){void 0!==n.labels.formatter?t.globals.yLabelFormatters[i]=n.labels.formatter:t.globals.yLabelFormatters[i]=function(r){return t.globals.xyCharts?Array.isArray(r)?r.map((function(t){return e.defaultYFormatter(t,n,i)})):e.defaultYFormatter(r,n,i):r}})),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}(),En=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"getLabel",value:function(e,t,n,i){var r,s,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=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[i]?"":e[i],d=u,h=c.globals.xLabelFormatter,f=c.config.xaxis.labels.formatter,p=!1,m=new Dn(this.ctx),g=u;l&&(d=m.xLabelFormat(h,u,g,{i:i,dateFormatter:new Cn(this.ctx).formatDate,w:c}),void 0!==f&&(d=f(u,e[i],{i:i,dateFormatter:new Cn(this.ctx).formatDate,w:c}))),t.length>0?(r=t[i].unit,s=null,t.forEach((function(e){"month"===e.unit?s="year":"day"===e.unit?s="month":"hour"===e.unit?s="day":"minute"===e.unit&&(s="hour")})),p=s===r,n=t[i].position,d=t[i].value):"datetime"===c.config.xaxis.type&&void 0===f&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var v,y=new Sn(this.ctx);v=c.globals.rotateXLabels&&l?y.getTextRects(d,parseInt(o,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):y.getTextRects(d,parseInt(o,10));var b=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&("NaN"===String(d)||a.indexOf(d)>=0&&b)&&(d=""),{x:n,text:d,textRect:v,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,n){var i=this.w,r=i.config.xaxis.tickAmount;return"dataPoints"===r&&(r=Math.round(i.globals.gridWidth/120)),r>n||e%Math.round(n/(r+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,n,i,r){var s=this.w;if(0===e&&s.globals.skipFirstTimelinelabel&&(t.text=""),e===n-1&&s.globals.skipLastTimelinelabel&&(t.text=""),s.config.xaxis.labels.hideOverlappingLabels&&i.length>0){var a=r[r.length-1];t.x<a.textRect.width/(s.globals.rotateXLabels?Math.abs(s.config.xaxis.labels.rotate)/12:1.01)+a.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var n=this.w;return n.config.yaxis[e]&&n.config.yaxis[e].reversed&&t.reverse(),t}},{key:"yAxisAllSeriesCollapsed",value:function(e){var t=this.w.globals;return!t.seriesYAxisMap[e].some((function(e){return-1===t.collapsedSeriesIndices.indexOf(e)}))}},{key:"translateYAxisIndex",value:function(e){var t=this.w,n=t.globals,i=t.config.yaxis;return n.series.length>i.length||i.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 i=t.globals.seriesYAxisMap[e],r=new An(this.ctx);return i.every((function(e){return r.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,i,r,s,a){var o=this.w,l=new Sn(this.ctx),c=o.globals.translateY+o.config.yaxis[r].labels.offsetY;if(o.globals.isBarHorizontal?c=0:"heatmap"===o.config.chart.type&&(c+=s/2),i.show&&t>0){!0===o.config.yaxis[r].opposite&&(e+=i.width);for(var u=t;u>=0;u--){var d=l.drawLine(e+n.offsetX-i.width+i.offsetX,c+i.offsetY,e+n.offsetX+i.offsetX,c+i.offsetY,i.color);a.add(d),c+=s}}}}]),e}(),On=function(){function e(t){n(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new Ln(this.annoCtx),this.axesUtils=new En(this.annoCtx)}return r(e,[{key:"addYaxisAnnotation",value:function(e,t,n){var i,r=this.w,s=e.strokeDashArray,a=this.helpers.getY1Y2("y1",e),o=a.yP,l=a.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,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,s,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}}else{if(i=(a=this.helpers.getY1Y2("y2",e)).yP,c=a.clipped,i>o){var f=o;o=i,i=f}if(!l||!c){u=!0;var p=this.annoCtx.graphics.drawRect(0+e.offsetX,i+e.offsetY,this._getYAxisAnnotationWidth(e),o-i,0,e.fillColor,e.opacity,1,e.borderColor,s);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(u){var m="right"===e.label.position?r.globals.gridWidth:"center"===e.label.position?r.globals.gridWidth/2:0,g=this.annoCtx.graphics.drawText({x:m+e.label.offsetX,y:(null!=i?i:o)+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,i){t.yAxisIndex=e.axesUtils.translateYAxisIndex(t.yAxisIndex),e.axesUtils.isYAxisHidden(t.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(t.yAxisIndex)||e.addYaxisAnnotation(t,n.node,i)})),n}}]),e}(),Pn=function(){function e(t){n(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new Ln(this.annoCtx)}return r(e,[{key:"addPointAnnotation",value:function(e,t,n){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var i=this.helpers.getX1X2("x1",e),r=i.x,s=i.clipped,a=(i=this.helpers.getY1Y2("y1",e)).yP,o=i.clipped;if(b.isNumber(r)&&!o&&!s){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(r+e.marker.offsetX,a+e.marker.offsetY,l);t.appendChild(c.node);var u=e.label.text?e.label.text:"",d=this.annoCtx.graphics.drawText({x:r+e.label.offsetX,y:a+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(r+e.customSVG.offsetX,", ").concat(a+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:r+e.image.offsetX-f/2,y:a+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,i){e.addPointAnnotation(t,n.node,i)})),n}}]),e}(),Yn={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"}}},In=function(){function e(){n(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,showDuplicates:!1,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 r(e,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[Yn],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},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},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},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},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},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:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},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:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",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:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},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:.8}},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}(),Nn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.graphics=new Sn(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Ln(this),this.xAxisAnnotations=new Tn(this),this.yAxisAnnotations=new On(this),this.pointsAnnotations=new Pn(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 r(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),i=this.pointsAnnotations.drawPointAnnotations(),r=e.config.chart.animations.enabled,s=[t,n,i],a=[n.node,t.node,i.node],o=0;o<3;o++)e.globals.dom.elGraphical.add(s[o]),!r||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&a[o].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:a[o],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,i=e.y,r=e.text,s=e.textAnchor,a=e.foreColor,o=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,y=e.paddingLeft,b=void 0===y?4:y,x=e.paddingRight,_=void 0===x?4:x,w=e.paddingBottom,k=void 0===w?2:w,M=e.paddingTop,S=void 0===M?2:M,A=this.w,L=this.graphics.drawText({x:n,y:i,text:r,textAnchor:s||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:l||A.config.chart.fontFamily,foreColor:a||A.config.chart.foreColor,cssClass:u}),T=A.globals.dom.baseEl.querySelector(v);T&&T.appendChild(L.node);var C=L.bbox();if(r){var D=this.graphics.drawRect(C.x-b,C.y-S,C.width+b+_,C.height+k+S,p,d||"transparent",1,h,m,f);T.insertBefore(D.node,L.node)}}},{key:"addImage",value:function(e,t){var n=this.w,i=e.path,r=e.x,s=void 0===r?0:r,a=e.y,o=void 0===a?0:a,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(i);p.size(c,d).move(s,o);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,i=e.context,r=e.type,s=e.contextMethod,a=i,o=a.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),c=l.childNodes.length+1,u=new In,d=Object.assign({},"xaxis"===r?u.xAxisAnnotation:"yaxis"===r?u.yAxisAnnotation:u.pointAnnotation),h=b.extend(d,t);switch(r){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=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(c,"']")),p=this.helpers.addBackgroundToAnno(f,h);return p&&l.insertBefore(p.node,f),n&&o.globals.memory.methodsToExec.push({context:a,id:h.id?h.id:b.randomId(),method:s,label:"addAnnotation",params:t}),i}},{key:"clearAnnotations",value:function(e){for(var t=e.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),i=t.globals.memory.methodsToExec.length-1;i>=0;i--)"addText"!==t.globals.memory.methodsToExec[i].label&&"addAnnotation"!==t.globals.memory.methodsToExec[i].label||t.globals.memory.methodsToExec.splice(i,1);n=b.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,i=n.globals.dom.baseEl.querySelectorAll(".".concat(t));i&&(n.globals.memory.methodsToExec.map((function(e,i){e.id===t&&n.globals.memory.methodsToExec.splice(i,1)})),Array.prototype.forEach.call(i,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),Hn=function(e){var t,n=e.isTimeline,i=e.ctx,r=e.seriesIndex,s=e.dataPointIndex,a=e.y1,o=e.y2,l=e.w,c=l.globals.seriesRangeStart[r][s],u=l.globals.seriesRangeEnd[r][s],d=l.globals.labels[s],h=l.config.series[r].name?l.config.series[r].name:"",f=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,m={w:l,seriesIndex:r,dataPointIndex:s,start:c,end:u};"function"==typeof p&&(h=p(h,m)),null!==(t=l.config.series[r].data[s])&&void 0!==t&&t.x&&(d=l.config.series[r].data[s].x),n||"datetime"===l.config.xaxis.type&&(d=new Dn(i).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new Cn(i).formatDate,w:l})),"function"==typeof f&&(d=f(d,m)),Number.isFinite(a)&&Number.isFinite(o)&&(c=a,u=o);var g="",v="",y=l.globals.colors[r];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var b=new Cn(i);g=b.formatDate(b.getDate(c),l.config.tooltip.x.format),v=b.formatDate(b.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:y,seriesName:h}},jn=function(e){var t=e.color,n=e.seriesName,i=e.ylabel,r=e.start,s=e.end,a=e.seriesIndex,o=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(a);r=l.yLbFormatter(r),s=l.yLbFormatter(s);var c=l.yLbFormatter(e.w.globals.series[a][o]),u='<span class="value start-value">\n  '.concat(r,'\n  </span> <span class="separator">-</span> <span class="value end-value">\n  ').concat(s,"\n  </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(n||"")+'</span></div><div> <span class="category">'+i+": </span> "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[a].type||"rangeBar"===e.w.config.series[a].type?u:"<span>".concat(c,"</span>"):u)+" </div></div>"},Fn=function(){function e(t){n(this,e),this.opts=t}return r(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{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(),b.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},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},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(),h(h({},this.bar()),{},{chart:{animations:{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,i=t.dataPointIndex,r=t.w;return e._getBoxTooltip(r,n,i,["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,i=t.dataPointIndex,r=t.w;return e._getBoxTooltip(r,n,i,["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,i=t.dataPointIndex,r=t.w,s=function(){var e=r.globals.seriesRangeStart[n][i];return r.globals.seriesRangeEnd[n][i]-e};return r.globals.comboCharts?"rangeBar"===r.config.series[n].type||"rangeArea"===r.config.series[n].type?s():e:s()},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=Hn(h(h({},e),{},{isTimeline:!0})),n=t.color,i=t.seriesName,r=t.ylabel,s=t.startVal,a=t.endVal;return jn(h(h({},e),{},{color:n,seriesName:i,ylabel:r,start:s,end:a}))}(e):function(e){var t=Hn(e),n=t.color,i=t.seriesName,r=t.ylabel,s=t.start,a=t.end;return jn(h(h({},e),{},{color:n,seriesName:i,ylabel:r,start:s,end:a}))}(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=Hn(e),n=t.color,i=t.seriesName,r=t.ylabel,s=t.start,a=t.end;return jn(h(h({},e),{},{color:n,seriesName:i,ylabel:r,start:s,end:a}))}(e)}}}}},{key:"brush",value:function(e){return b.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 h(h({},e),{},{plotOptions:h(h({},e.plotOptions),{},{bar:h(h({},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 b.isNumber(e)?Math.floor(e):e};var i=e.xaxis.labels.formatter,r=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return n&&n.length&&(r=n.map((function(e){return Array.isArray(e)?e:String(e)}))),r&&r.length&&(e.xaxis.labels.formatter=function(e){return b.isNumber(e)?i(r[Math.floor(e)-1]):i(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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{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,padding:{left:0,right:0,top:0,bottom:0}},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},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(e,t,n,i,r){var s=e.globals.seriesCandleO[t][n],a=e.globals.seriesCandleH[t][n],o=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!==r?'<div class="apexcharts-custom-tooltip">\n          '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][n],"</strong>\n        </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(i[0],': <span class="value">')+s+"</span></div>"+"<div>".concat(i[1],': <span class="value">')+a+"</span></div>"+(o?"<div>".concat(i[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(i[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(i[4],': <span class="value">')+c+"</span></div></div>"}}]),e}(),Rn=function(){function e(t){n(this,e),this.opts=t}return r(e,[{key:"init",value:function(e){var t=e.responsiveOverride,n=this.opts,i=new In,r=new Fn(n);this.chartType=n.chart.type,n=this.extendYAxis(n),n=this.extendAnnotations(n);var s=i.init(),a={};if(n&&"object"===v(n)){var o,l,c,u,d,h,f,p,m,g,y={};y=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?r[n.chart.type]():r.line(),null!==(o=n.plotOptions)&&void 0!==o&&null!==(l=o.bar)&&void 0!==l&&l.isFunnel&&(y=r.funnel()),n.chart.stacked&&"bar"===n.chart.type&&(y=r.stackedBars()),null!==(c=n.chart.brush)&&void 0!==c&&c.enabled&&(y=r.brush(y)),null!==(u=n.plotOptions)&&void 0!==u&&null!==(d=u.line)&&void 0!==d&&d.isSlopeChart&&(y=r.slope()),n.chart.stacked&&"100%"===n.chart.stackType&&(n=r.stacked100(n)),null!==(h=n.plotOptions)&&void 0!==h&&null!==(f=h.bar)&&void 0!==f&&f.isDumbbell&&(n=r.dumbbell(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},t||(n.xaxis.convertedCatToNumeric=!1),(null!==(p=(n=this.checkForCatToNumericXAxis(this.chartType,y,n)).chart.sparkline)&&void 0!==p&&p.enabled||null!==(m=window.Apex.chart)&&void 0!==m&&null!==(g=m.sparkline)&&void 0!==g&&g.enabled)&&(y=r.sparkline(y)),a=b.extend(s,y)}var x=b.extend(a,window.Apex);return s=b.extend(x,n),this.handleUserInputErrors(s)}},{key:"checkForCatToNumericXAxis",value:function(e,t,n){var i,r,s=new Fn(n),a=("bar"===e||"boxPlot"===e)&&(null===(i=n.plotOptions)||void 0===i||null===(r=i.bar)||void 0===r?void 0:r.horizontal),o="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 a||o||!l||"between"===c||(n=s.convertCatToNumeric(n)),n}},{key:"extendYAxis",value:function(e,t){var n=new In;(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=b.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[b.extend(n.yAxis,e.yaxis)]:e.yaxis=b.extendArray(e.yaxis,n.yAxis);var i=!1;e.yaxis.forEach((function(e){e.logarithmic&&(i=!0)}));var r=e.series;return t&&!r&&(r=t.config.series),i&&r.length!==e.yaxis.length&&r.length&&(e.yaxis=r.map((function(t,i){if(t.name||(r[i].name="series-".concat(i+1)),e.yaxis[i])return e.yaxis[i].seriesName=r[i].name,e.yaxis[i];var s=b.extend(n.yAxis,e.yaxis[0]);return s.show=!1,s}))),i&&r.length>1&&r.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 In;return e.annotations.yaxis=b.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new In;return e.annotations.xaxis=b.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new In;return e.annotations.points=b.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}(),zn=function(){function e(){n(this,e)}return r(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.lastWheelExecution=0,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:[],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,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=b.extend({},e),t.initialSeries=b.clone(e.series),t.lastXAxis=b.clone(t.initialConfig.xaxis),t.lastYAxis=b.clone(t.initialConfig.yaxis),t}}]),e}(),Bn=function(){function e(t){n(this,e),this.opts=t}return r(e,[{key:"init",value:function(){var e=new Rn(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new zn).init(e)}}}]),e}(),Vn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return r(e,[{key:"clippedImgArea",value:function(e){var t=this.w,n=t.config,i=parseInt(t.globals.gridWidth,10),r=parseInt(t.globals.gridHeight,10),s=i>r?i:r,a=e.image,o=0,l=0;void 0===e.width&&void 0===e.height?void 0!==n.fill.image.width&&void 0!==n.fill.image.height?(o=n.fill.image.width+1,l=n.fill.image.height):(o=s+1,l=s):(o=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");Sn.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var u=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",a),Sn.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:o+"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:"computeColorStops",value:function(e,t){var n,i=this.w,r=null,a=null,o=s(e);try{for(o.s();!(n=o.n()).done;){var l=n.value;l>=t.threshold?(null===r||l>r)&&(r=l):(null===a||l<a)&&(a=l)}}catch(e){o.e(e)}finally{o.f()}null===r&&(r=t.threshold),null===a&&(a=t.threshold);var c=r-t.threshold+(t.threshold-a);0===c&&(c=1);var u=100-(t.threshold-a)/c*100;return[{offset:u=Math.max(0,Math.min(u,100)),color:t.colorAboveThreshold,opacity:i.config.fill.opacity},{offset:0,color:t.colorBelowThreshold,opacity:i.config.fill.opacity}]}},{key:"fillPath",value:function(e){var t,n,i,r=this.w;this.opts=e;var s,a,o,l=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var c=l.plotOptions.line.colors.colorAboveThreshold&&l.plotOptions.line.colors.colorBelowThreshold,u=this.getFillColors()[this.seriesIndex];void 0!==r.globals.seriesColors[this.seriesIndex]&&(u=r.globals.seriesColors[this.seriesIndex]),"function"==typeof u&&(u=u({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:r}));var d,h,f,p=e.fillType?e.fillType:this.getFillType(this.seriesIndex),g=Array.isArray(l.fill.opacity)?l.fill.opacity[this.seriesIndex]:l.fill.opacity,v="gradient"===p||c;e.color&&(u=e.color),null!==(t=r.config.series[this.seriesIndex])&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&null!==(i=n[e.dataPointIndex])&&void 0!==i&&i.fillColor&&(u=null===(d=r.config.series[this.seriesIndex])||void 0===d||null===(h=d.data)||void 0===h||null===(f=h[e.dataPointIndex])||void 0===f?void 0:f.fillColor),u||(u="#fff",console.warn("undefined color - ApexCharts"));var y=u;if(-1===u.indexOf("rgb")?-1===u.indexOf("#")?y=u:u.length<9&&(y=b.hexToRgba(u,g)):u.indexOf("rgba")>-1?g=b.getOpacityFromRGBA(u):y=b.hexToRgba(b.rgb2hex(u),g),e.opacity&&(g=e.opacity),"pattern"===p&&(a=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:a,fillColor:u,fillOpacity:g,defaultColor:y})),v){var x=m(l.fill.gradient.colorStops)||[],_=l.fill.gradient.type;c&&(x[this.seriesIndex]=this.computeColorStops(r.globals.series[this.seriesIndex],l.plotOptions.line.colors),_="vertical"),o=this.handleGradientFill({type:_,fillConfig:e.fillConfig,fillColor:u,fillOpacity:g,colorStops:x,i:this.seriesIndex})}if("image"===p){var w=l.fill.image.src,k=e.patternID?e.patternID:"",M="pattern".concat(r.globals.cuid).concat(e.seriesNumber+1).concat(k);-1===this.patternIDs.indexOf(M)&&(this.clippedImgArea({opacity:g,image:Array.isArray(w)?e.seriesNumber<w.length?w[e.seriesNumber]:w[0]:w,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:M}),this.patternIDs.push(M)),s="url(#".concat(M,")")}else s=v?o:"pattern"===p?a:y;return e.solid&&(s=y),s}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,n=this.opts,i=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?i=e.globals.stroke.colors:i.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?i=e.globals.fill.colors:i.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?i=e.globals.stroke.colors:i.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?i=e.globals.fill.colors:i.push(e.globals.fill.colors),void 0!==n.fillColors&&(i=[],Array.isArray(n.fillColors)?i=n.fillColors.slice():i.push(n.fillColors)),i}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,n=(e.patternFill,e.fillColor),i=e.fillOpacity,r=e.defaultColor,s=this.w.config.fill;t&&(s=t);var a=this.opts,o=new Sn(this.ctx),l=Array.isArray(s.pattern.strokeWidth)?s.pattern.strokeWidth[this.seriesIndex]:s.pattern.strokeWidth,c=n;return Array.isArray(s.pattern.style)?void 0!==s.pattern.style[a.seriesNumber]?o.drawPattern(s.pattern.style[a.seriesNumber],s.pattern.width,s.pattern.height,c,l,i):r:o.drawPattern(s.pattern.style,s.pattern.width,s.pattern.height,c,l,i)}},{key:"handleGradientFill",value:function(e){var t=e.type,n=e.fillColor,i=e.fillOpacity,r=e.fillConfig,s=e.colorStops,a=e.i,o=this.w.config.fill;r&&(o=h(h({},o),r));var l=this.opts,c=new Sn(this.ctx),u=new b;t=t||o.gradient.type;var d,f=n,p=void 0===o.gradient.opacityFrom?i:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[a]:o.gradient.opacityFrom;f.indexOf("rgba")>-1&&(p=b.getOpacityFromRGBA(f));var m=void 0===o.gradient.opacityTo?i:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[a]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)d="dark"===o.gradient.shade?u.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),n.indexOf("rgb")>-1?b.rgb2hex(n):n):u.shadeColor(parseFloat(o.gradient.shadeIntensity),n.indexOf("rgb")>-1?b.rgb2hex(n):n);else if(o.gradient.gradientToColors[l.seriesNumber]){var g=o.gradient.gradientToColors[l.seriesNumber];d=g,g.indexOf("rgba")>-1&&(m=b.getOpacityFromRGBA(g))}else d=n;if(o.gradient.gradientFrom&&(f=o.gradient.gradientFrom),o.gradient.gradientTo&&(d=o.gradient.gradientTo),o.gradient.inverseColors){var v=f;f=d,d=v}return f.indexOf("rgb")>-1&&(f=b.rgb2hex(f)),d.indexOf("rgb")>-1&&(d=b.rgb2hex(d)),c.drawGradient(t,f,d,p,m,l.size,o.gradient.stops,s,a)}}]),e}(),Wn=function(){function e(t,i){n(this,e),this.ctx=t,this.w=t.w}return r(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.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map((function(t){return e.config.markers.size}))}},{key:"plotChartMarkers",value:function(e){var t=e.pointsPos,n=e.seriesIndex,i=e.j,r=e.pSize,s=e.alwaysDrawMarker,a=void 0!==s&&s,o=e.isVirtualPoint,l=void 0!==o&&o,c=this.w,u=n,d=t,h=null,f=new Sn(this.ctx),p=c.config.markers.discrete&&c.config.markers.discrete.length;if(Array.isArray(d.x))for(var m=0;m<d.x.length;m++){var g=void 0,v=i,y=!b.isNumber(d.y[m]);0===c.globals.markers.largestSize&&c.globals.hasNullValues&&null!==c.globals.series[u][i+1]&&!l&&(y=!0),1===i&&0===m&&(v=0),1===i&&1===m&&(v=1);var x="apexcharts-marker";if("line"!==c.config.chart.type&&"area"!==c.config.chart.type||c.globals.comboCharts||c.config.tooltip.intersect||(x+=" no-pointer-events"),(Array.isArray(c.config.markers.size)?c.globals.markers.size[n]>0:c.config.markers.size>0)||a||p){y||(x+=" w".concat(b.randomId()));var _=this.getMarkerConfig({cssClass:x,seriesIndex:n,dataPointIndex:v});c.config.series[u].data[v]&&(c.config.series[u].data[v].fillColor&&(_.pointFillColor=c.config.series[u].data[v].fillColor),c.config.series[u].data[v].strokeColor&&(_.pointStrokeColor=c.config.series[u].data[v].strokeColor)),void 0!==r&&(_.pSize=r),(d.x[m]<-c.globals.markers.largestSize||d.x[m]>c.globals.gridWidth+c.globals.markers.largestSize||d.y[m]<-c.globals.markers.largestSize||d.y[m]>c.globals.gridHeight+c.globals.markers.largestSize)&&(_.pSize=0),y||((c.globals.markers.size[n]>0||a||p)&&!h&&(h=f.group({class:a||p?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(c.globals.cuid,")")),(g=f.drawMarker(d.x[m],d.y[m],_)).attr("rel",v),g.attr("j",v),g.attr("index",n),g.node.setAttribute("default-marker-size",_.pSize),new Mn(this.ctx).setSelectionFilter(g,n,v),this.addEvents(g),h&&h.add(g))}else void 0===c.globals.pointsArray[n]&&(c.globals.pointsArray[n]=[]),c.globals.pointsArray[n].push([d.x[m],d.y[m]])}return h}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,n=e.seriesIndex,i=e.dataPointIndex,r=void 0===i?null:i,s=e.radius,a=void 0===s?null:s,o=e.size,l=void 0===o?null:o,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!==r&&p.discrete.length&&p.discrete.map((function(e){e.seriesIndex===n&&e.dataPointIndex===r&&(h.pointStrokeColor=e.strokeColor,h.pointFillColor=e.fillColor,f=e.size,h.pointShape=e.shape)})),{pSize:null===a?f:a,pRadius:null!==a?a: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 Sn(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,i=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(i)?i[e]:i,pointFillColor:Array.isArray(n)?n[e]:n}}}]),e}(),qn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled}return r(e,[{key:"draw",value:function(e,t,n){var i=this.w,r=new Sn(this.ctx),s=n.realIndex,a=n.pointsPos,o=n.zRatio,l=n.elParent,c=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(i.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(i.globals.cuid,")")),Array.isArray(a.x))for(var u=0;u<a.x.length;u++){var d=t+1,h=!0;0===t&&0===u&&(d=0),0===t&&1===u&&(d=1);var f=i.globals.markers.size[s];if(o!==1/0){var p=i.config.plotOptions.bubble;f=i.globals.seriesZ[s][d],p.zScaling&&(f/=o),p.minBubbleRadius&&f<p.minBubbleRadius&&(f=p.minBubbleRadius),p.maxBubbleRadius&&f>p.maxBubbleRadius&&(f=p.maxBubbleRadius)}var m=a.x[u],g=a.y[u];if(f=f||0,null!==g&&void 0!==i.globals.series[s][d]||(h=!1),h){var v=this.drawPoint(m,g,f,s,d,t);c.add(v)}l.add(c)}}},{key:"drawPoint",value:function(e,t,n,i,r,s){var a=this.w,o=i,l=new x(this.ctx),c=new Mn(this.ctx),u=new Vn(this.ctx),d=new Wn(this.ctx),h=new Sn(this.ctx),f=d.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:r,radius:"bubble"===a.config.chart.type||a.globals.comboCharts&&a.config.series[i]&&"bubble"===a.config.series[i].type?n:null}),p=u.fillPath({seriesNumber:i,dataPointIndex:r,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:a.globals.series[i][s]}),m=h.drawMarker(e,t,f);if(a.config.series[o].data[r]&&a.config.series[o].data[r].fillColor&&(p=a.config.series[o].data[r].fillColor),m.attr({fill:p}),a.config.chart.dropShadow.enabled){var g=a.config.chart.dropShadow;c.dropShadow(m,g,i)}if(!this.initialAnim||a.globals.dataChanged||a.globals.resized)a.globals.animationEnded=!0;else{var v=a.config.chart.animations.speed;l.animateMarker(m,v,a.globals.easing,(function(){window.setTimeout((function(){l.animationCompleted(m)}),100)}))}return m.attr({rel:r,j:r,index:i,"default-marker-size":f.pSize}),c.setSelectionFilter(m,i,r),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}(),Un=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"dataLabelsCorrection",value:function(e,t,n,i,r,s,a){var o=this.w,l=!1,c=new Sn(this.ctx).getTextRects(n,a),u=c.width,d=c.height;t<0&&(t=0),t>o.globals.gridHeight+d&&(t=o.globals.gridHeight+d/2),void 0===o.globals.dataLabelsRects[i]&&(o.globals.dataLabelsRects[i]=[]),o.globals.dataLabelsRects[i].push({x:e,y:t,width:u,height:d});var h=o.globals.dataLabelsRects[i].length-2,f=void 0!==o.globals.lastDrawnDataLabelsIndexes[i]?o.globals.lastDrawnDataLabelsIndexes[i][o.globals.lastDrawnDataLabelsIndexes[i].length-1]:0;if(void 0!==o.globals.dataLabelsRects[i][h]){var p=o.globals.dataLabelsRects[i][f];(e>p.x+p.width||t>p.y+p.height||t+d<p.y||e+u<p.x)&&(l=!0)}return(0===r||s)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e){var t=this,n=e.type,i=e.pos,r=e.i,s=e.j,a=e.isRangeStart,o=e.strokeWidth,l=void 0===o?2:o,c=this.w,u=new Sn(this.ctx),d=c.config.dataLabels,h=0,f=0,p=s,m=null;if(-1!==c.globals.collapsedSeriesIndices.indexOf(r)||!d.enabled||!Array.isArray(i.x))return m;m=u.group({class:"apexcharts-data-labels"});for(var g=0;g<i.x.length;g++)if(h=i.x[g]+d.offsetX,f=i.y[g]+d.offsetY+l,!isNaN(h)){1===s&&0===g&&(p=0),1===s&&1===g&&(p=1);var v=c.globals.series[r][p];"rangeArea"===n&&(v=a?c.globals.seriesRangeStart[r][p]:c.globals.seriesRangeEnd[r][p]);var y="",b=function(e){return c.config.dataLabels.formatter(e,{ctx:t.ctx,seriesIndex:r,dataPointIndex:p,w:c})};"bubble"===c.config.chart.type?(y=b(v=c.globals.seriesZ[r][p]),f=i.y[g],f=new qn(this.ctx).centerTextInBubble(f,r,p).y):void 0!==v&&(y=b(v));var x=c.config.dataLabels.textAnchor;c.globals.isSlopeChart&&(x=0===p?"end":p===c.config.series[r].data.length-1?"start":"middle"),this.plotDataLabelsText({x:h,y:f,text:y,i:r,j:p,parent:m,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels,textAnchor:x})}return m}},{key:"plotDataLabelsText",value:function(e){var t=this.w,n=new Sn(this.ctx),i=e.x,r=e.y,s=e.i,a=e.j,o=e.text,l=e.textAnchor,c=e.fontSize,u=e.parent,d=e.dataLabelsConfig,h=e.color,f=e.alwaysDrawDataLabel,p=e.offsetCorrection,m=e.className,g=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(s)<0)return g;var v={x:i,y:r,drawnextLabel:!0,textRects:null};p&&(v=this.dataLabelsCorrection(i,r,o,s,a,f,parseInt(d.style.fontSize,10))),t.globals.zoomed||(i=v.x,r=v.y),v.textRects&&(i<-20-v.textRects.width||i>t.globals.gridWidth+v.textRects.width+30)&&(o="");var y=t.globals.dataLabels.style.colors[s];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(y=t.globals.dataLabels.style.colors[a]),"function"==typeof y&&(y=y({series:t.globals.series,seriesIndex:s,dataPointIndex:a,w:t})),h&&(y=h);var b=d.offsetX,x=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(b=0,x=0),t.globals.isSlopeChart&&(0!==a&&(b=-2*d.offsetX+5),0!==a&&a!==t.config.series[s].data.length-1&&(b=0)),v.drawnextLabel){if((g=n.drawText({width:100,height:parseInt(d.style.fontSize,10),x:i+b,y:r+x,foreColor:y,textAnchor:l||d.textAnchor,text:o,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"})).attr({class:m||"apexcharts-datalabel",cx:i,cy:r}),d.dropShadow.enabled){var _=d.dropShadow;new Mn(this.ctx).dropShadow(g,_)}u.add(g),void 0===t.globals.lastDrawnDataLabelsIndexes[s]&&(t.globals.lastDrawnDataLabelsIndexes[s]=[]),t.globals.lastDrawnDataLabelsIndexes[s].push(a)}return g}},{key:"addBackgroundToDataLabel",value:function(e,t){var n=this.w,i=n.config.dataLabels.background,r=i.padding,s=i.padding/2,a=t.width,o=t.height,l=new Sn(this.ctx).drawRect(t.x-r,t.y-s/2,a+2*r,o+s,i.borderRadius,"transparent"!==n.config.chart.background&&n.config.chart.background?n.config.chart.background:"#fff",i.opacity,i.borderWidth,i.borderColor);return i.dropShadow.enabled&&new Mn(this.ctx).dropShadow(l,i.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;n<t.length;n++){var i=t[n],r=i.getBBox(),s=null;if(r.width&&r.height&&(s=this.addBackgroundToDataLabel(i,r)),s){i.parentNode.insertBefore(s.node,i);var a=i.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?s.attr({fill:a}):s.animate().attr({fill:a}),i.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),n=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),i=0;i<t.length;i++)n&&n.insertBefore(t[i],n.nextSibling)}}]),e}(),$n=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return r(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(b.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),n=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:n}}},{key:"addCollapsedClassToSeries",value:function(e,t){var n=this.w;function i(n){for(var i=0;i<n.length;i++)n[i].index===t&&e.node.classList.add("apexcharts-series-collapsed")}i(n.globals.collapsedSeries),i(n.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",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],i=this.w,r=b.clone(i.globals.initialSeries);i.globals.previousPaths=[],n?(i.globals.collapsedSeries=[],i.globals.ancillaryCollapsedSeries=[],i.globals.collapsedSeriesIndices=[],i.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),i.config.series=r,e&&(t&&(i.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,n=0;n<e.length;n++)t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n].data=[]);return e}},{key:"highlightSeries",value:function(e){var t=this.w,n=this.getSeriesByName(e),i=parseInt(null==n?void 0:n.getAttribute("data:realIndex"),10),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),s=null,a=null,o=null;if(t.globals.axisCharts||"radialBar"===t.config.chart.type)if(t.globals.axisCharts){s=t.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(i,"']")),a=t.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(i,"']"));var l=t.globals.seriesYAxisReverseMap[i];o=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"']"))}else s=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(i+1,"']"));else s=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(i+1,"'] path"));for(var c=0;c<r.length;c++)r[c].classList.add(this.legendInactiveClass);if(s)t.globals.axisCharts||s.parentNode.classList.remove(this.legendInactiveClass),s.classList.remove(this.legendInactiveClass),null!==a&&a.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass);else for(var u=0;u<r.length;u++)r[u].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(e,t){var n=this.w;t||(t=e.target);var i=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===e.type){var r=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(n.globals.seriesNames[r])}else if("mouseout"===e.type)for(var s=0;s<i.length;s++)i[s].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var n=this,i=this.w,r=i.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),s=function(e){for(var t=0;t<r.length;t++)r[t].classList[e](n.legendInactiveClass)};if("mousemove"===e.type){var a=parseInt(t.getAttribute("rel"),10)-1;s("add");var o=i.config.plotOptions.heatmap.colorScale.ranges;!function(e,t){for(var i=0;i<r.length;i++){var s=Number(r[i].getAttribute("val"));s>=e.from&&(s<e.to||e.to===t&&s===t)&&r[i].classList.remove(n.legendInactiveClass)}}(o[a],o.reduce((function(e,t){return Math.max(e,t.to)}),0))}else"mouseout"===e.type&&s("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,i=0;if(n.config.series.length>1)for(var r=n.config.series.map((function(e,i){return e.data&&e.data.length>0&&-1===n.globals.collapsedSeriesIndices.indexOf(i)&&(!n.globals.comboCharts||0===t.length||t.length&&t.indexOf(n.config.series[i].type)>-1)?i:-1})),s="asc"===e?0:r.length-1;"asc"===e?s<r.length:s>=0;"asc"===e?s++:s--)if(-1!==r[s]){i=r[s];break}return i}},{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,i){for(var r=t[n].childNodes,s={type:i,paths:[],realIndex:t[n].getAttribute("data:realIndex")},a=0;a<r.length;a++)if(r[a].hasAttribute("pathTo")){var o=r[a].getAttribute("pathTo");s.paths.push({d:o})}e.globals.previousPaths.push(s)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach((function(n){for(var i,r=(i=n,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(i,"-series .apexcharts-series"))),s=0;s<r.length;s++)t(r,s,n)}));var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(n.length>0)for(var i=function(t){for(var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),i=[],r=function(e){var t=function(t){return n[e].getAttribute(t)},r={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};i.push({rect:r,color:n[e].getAttribute("color")})},s=0;s<n.length;s++)r(s);e.globals.previousPaths.push(i)},r=0;r<n.length;r++)i(r);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,n=new Sn(this.ctx),i=e.globals.svgWidth/2,r=e.globals.svgHeight/2,s="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(i=10,s="start"):"right"===t.align&&(i=e.globals.svgWidth-10,s="end"),"top"===t.verticalAlign?r=50:"bottom"===t.verticalAlign&&(r=e.globals.svgHeight-50),i+=t.offsetX,r=r+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var a=n.drawText({x:i,y:r,text:t.text,textAnchor:s,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(a)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,n=0;n<e.length;n++)if(0===e[n].length)for(var i=0;i<e[t.globals.maxValsInArrayIndex].length;i++)e[n].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,n=this.filteredSeriesX(),i=0;i<n.length-1;i++)if(n[i][0]!==n[i+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(e){return e.length>0?e:[]}))}}]),e}(),Xn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new An(this.ctx)}return r(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new $n(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 $n(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,i=this.w.globals,r="boxPlot"===n.chart.type||"boxPlot"===n.series[t].type,s=0;s<e[t].data.length;s++)if(void 0!==e[t].data[s][1]&&(Array.isArray(e[t].data[s][1])&&4===e[t].data[s][1].length&&!r?this.twoDSeries.push(b.parseNumber(e[t].data[s][1][3])):e[t].data[s].length>=5?this.twoDSeries.push(b.parseNumber(e[t].data[s][4])):this.twoDSeries.push(b.parseNumber(e[t].data[s][1])),i.dataFormatXNumeric=!0),"datetime"===n.xaxis.type){var a=new Date(e[t].data[s][0]);a=new Date(a).getTime(),this.twoDSeriesX.push(a)}else this.twoDSeriesX.push(e[t].data[s][0]);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o][2]&&(this.threeDSeries.push(e[t].data[o][2]),i.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var n=this.w.config,i=this.w.globals,r=new Cn(this.ctx),s=t;i.collapsedSeriesIndices.indexOf(t)>-1&&(s=this.activeSeriesIndex);for(var a=0;a<e[t].data.length;a++)void 0!==e[t].data[a].y&&(Array.isArray(e[t].data[a].y)?this.twoDSeries.push(b.parseNumber(e[t].data[a].y[e[t].data[a].y.length-1])):this.twoDSeries.push(b.parseNumber(e[t].data[a].y))),void 0!==e[t].data[a].goals&&Array.isArray(e[t].data[a].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[a].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var o=0;o<e[s].data.length;o++){var l="string"==typeof e[s].data[o].x,c=Array.isArray(e[s].data[o].x),u=!c&&!!r.isValidDate(e[s].data[o].x);if(l||u)if(l||n.xaxis.convertedCatToNumeric){var d=i.isBarHorizontal&&i.isRangeData;"datetime"!==n.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[s].data[o].x),isNaN(e[s].data[o].x)||"category"===this.w.config.xaxis.type||"string"==typeof e[s].data[o].x||(i.isXNumeric=!0)):this.twoDSeriesX.push(r.parseDate(e[s].data[o].x))}else"datetime"===n.xaxis.type?this.twoDSeriesX.push(r.parseDate(e[s].data[o].x.toString())):(i.dataFormatXNumeric=!0,i.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[s].data[o].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[s].data[o].x)):(i.isXNumeric=!0,i.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[s].data[o].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var h=0;h<e[t].data.length;h++)this.threeDSeries.push(e[t].data[h].z);i.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var n=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleRangeDataFormat("xy",e,t)),n.seriesRangeStart.push(void 0===i.start?[]:i.start),n.seriesRangeEnd.push(void 0===i.end?[]:i.end),n.seriesRange.push(i.rangeUniques),n.seriesRange.forEach((function(e,t){e&&e.forEach((function(e,t){e.y.forEach((function(t,n){for(var i=0;i<e.y.length;i++)if(n!==i){var r=t.y1,s=t.y2,a=e.y[i].y1;r<=e.y[i].y2&&a<=s&&(e.overlaps.indexOf(t.rangeName)<0&&e.overlaps.push(t.rangeName),e.overlaps.indexOf(e.y[i].rangeName)<0&&e.overlaps.push(e.y[i].rangeName))}}))}))})),i}},{key:"handleCandleStickBoxData",value:function(e,t){var n=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleCandleStickBoxDataFormat("xy",e,t)),n.seriesCandleO[t]=i.o,n.seriesCandleH[t]=i.h,n.seriesCandleM[t]=i.m,n.seriesCandleL[t]=i.l,n.seriesCandleC[t]=i.c,i}},{key:"handleRangeDataFormat",value:function(e,t,n){var i=[],r=[],s=t[n].data.filter((function(e,t,n){return t===n.findIndex((function(t){return t.x===e.x}))})).map((function(e,t){return{x:e.x,overlaps:[],y:[]}}));if("array"===e)for(var a=0;a<t[n].data.length;a++)Array.isArray(t[n].data[a])?(i.push(t[n].data[a][1][0]),r.push(t[n].data[a][1][1])):(i.push(t[n].data[a]),r.push(t[n].data[a]));else if("xy"===e)for(var o=function(e){var a=Array.isArray(t[n].data[e].y),o=b.randomId(),l=t[n].data[e].x,c={y1:a?t[n].data[e].y[0]:t[n].data[e].y,y2:a?t[n].data[e].y[1]:t[n].data[e].y,rangeName:o};t[n].data[e].rangeName=o;var u=s.findIndex((function(e){return e.x===l}));s[u].y.push(c),i.push(c.y1),r.push(c.y2)},l=0;l<t[n].data.length;l++)o(l);return{start:i,end:r,rangeUniques:s}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,n){var i=this.w,r="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[n].type,s=[],a=[],o=[],l=[],c=[];if("array"===e)if(r&&6===t[n].data[0].length||!r&&5===t[n].data[0].length)for(var u=0;u<t[n].data.length;u++)s.push(t[n].data[u][1]),a.push(t[n].data[u][2]),r?(o.push(t[n].data[u][3]),l.push(t[n].data[u][4]),c.push(t[n].data[u][5])):(l.push(t[n].data[u][3]),c.push(t[n].data[u][4]));else for(var d=0;d<t[n].data.length;d++)Array.isArray(t[n].data[d][1])&&(s.push(t[n].data[d][1][0]),a.push(t[n].data[d][1][1]),r?(o.push(t[n].data[d][1][2]),l.push(t[n].data[d][1][3]),c.push(t[n].data[d][1][4])):(l.push(t[n].data[d][1][2]),c.push(t[n].data[d][1][3])));else if("xy"===e)for(var h=0;h<t[n].data.length;h++)Array.isArray(t[n].data[h].y)&&(s.push(t[n].data[h].y[0]),a.push(t[n].data[h].y[1]),r?(o.push(t[n].data[h].y[2]),l.push(t[n].data[h].y[3]),c.push(t[n].data[h].y[4])):(l.push(t[n].data[h].y[2]),c.push(t[n].data[h].y[3])));return{o:s,h:a,m:o,l:l,c:c}}},{key:"parseDataAxisCharts",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,i=this.w.config,r=this.w.globals,s=new Cn(n),a=i.labels.length>0?i.labels.slice():i.xaxis.categories.slice();r.isRangeBar="rangeBar"===i.chart.type&&r.isBarHorizontal,r.hasXaxisGroups="category"===i.xaxis.type&&i.xaxis.group.groups.length>0,r.hasXaxisGroups&&(r.groups=i.xaxis.group.groups),e.forEach((function(e,t){void 0!==e.name?r.seriesNames.push(e.name):r.seriesNames.push("series-"+parseInt(t+1,10))})),this.coreUtils.setSeriesYAxisMappings();var o=[],l=m(new Set(i.series.map((function(e){return e.group}))));i.series.forEach((function(e,t){var n=l.indexOf(e.group);o[n]||(o[n]=[]),o[n].push(r.seriesNames[t])})),r.seriesGroups=o;for(var c=function(){for(var e=0;e<a.length;e++)if("string"==typeof a[e]){if(!s.isValidDate(a[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(s.parseDate(a[e]))}else t.twoDSeriesX.push(a[e])},u=0;u<e.length;u++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[u].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==i.chart.type&&"rangeArea"!==i.chart.type&&"rangeBar"!==e[u].type&&"rangeArea"!==e[u].type||(r.isRangeData=!0,"rangeBar"!==i.chart.type&&"rangeArea"!==i.chart.type||this.handleRangeData(e,u)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,u):this.isFormatXY()&&this.handleFormatXY(e,u),"candlestick"!==i.chart.type&&"candlestick"!==e[u].type&&"boxPlot"!==i.chart.type&&"boxPlot"!==e[u].type||this.handleCandleStickBoxData(e,u),r.series.push(this.twoDSeries),r.labels.push(this.twoDSeriesX),r.seriesX.push(this.twoDSeriesX),r.seriesGoals=this.seriesGoals,u!==this.activeSeriesIndex||this.fallbackToCategory||(r.isXNumeric=!0);else{"datetime"===i.xaxis.type?(r.isXNumeric=!0,c(),r.seriesX.push(this.twoDSeriesX)):"numeric"===i.xaxis.type&&(r.isXNumeric=!0,a.length>0&&(this.twoDSeriesX=a,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var d=e[u].data.map((function(e){return b.parseNumber(e)}));r.series.push(d)}r.seriesZ.push(this.threeDSeries),void 0!==e[u].color?r.seriesColors.push(e[u].color):r.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 i=0;i<t.series.length;i++)void 0===t.seriesNames[i]&&t.seriesNames.push("series-"+(i+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,n=this.w.globals;t.xaxis.categories.length>0?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 Fn(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,i=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var r=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}))})),s=r.reduce((function(e,t,n,i){return i[e].length>t.length?e:n}),0),a=0;a<r[s].length;a++)i.push(a+1);else for(var o=0;o<t.series[t.maxValsInArrayIndex].length;o++)i.push(o+1);t.seriesX=[];for(var l=0;l<e.length;l++)t.seriesX.push(i);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(0===i.length){i=t.axisCharts?[]:t.series.map((function(e,t){return t+1}));for(var c=0;c<e.length;c++)t.seriesX.push(i)}t.labels=i,n.xaxis.convertedCatToNumeric&&(t.categoryLabels=i.map((function(e){return n.xaxis.labels.formatter(e)}))),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,n=t.config,i=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),i.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),n.chart.stacked){var r=new $n(this.ctx);i.series=r.setNullSeriesToZeroValues(i.series)}this.coreUtils.getSeriesTotals(),i.axisCharts&&(i.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),i.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),i.dataFormatXNumeric||i.isXNumeric&&("numeric"!==n.xaxis.type||0!==n.labels.length||0!==n.xaxis.categories.length)||this.handleExternalLabelsData(e);for(var s=this.coreUtils.getCategoryLabels(i.labels),a=0;a<s.length;a++)if(Array.isArray(s[a])){i.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,t=[];e.globals.seriesYAxisMap.forEach((function(n,i){var r=0;n.forEach((function(t){-1!==e.globals.collapsedSeriesIndices.indexOf(t)&&r++})),r>0&&r==n.length&&t.push(i)})),e.globals.ignoreYAxisIndexes=t.map((function(e){return e}))}}]),e}(),Gn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"svgStringToNode",value:function(e){return(new DOMParser).parseFromString(e,"image/svg+xml").documentElement}},{key:"scaleSvgNode",value:function(e,t){var n=parseFloat(e.getAttributeNS(null,"width")),i=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",n*t),e.setAttributeNS(null,"height",i*t),e.setAttributeNS(null,"viewBox","0 0 "+n+" "+i)}},{key:"getSvgString",value:function(e){var t=this;return new Promise((function(n){var i=t.w,r=e||i.config.chart.toolbar.export.scale||i.config.chart.toolbar.export.width/i.globals.svgWidth;r||(r=1);var s=i.globals.svgWidth*r,a=i.globals.svgHeight*r,o=i.globals.dom.elWrap.cloneNode(!0);o.style.width=s+"px",o.style.height=a+"px";var l=(new XMLSerializer).serializeToString(o),c='\n        <svg xmlns="http://www.w3.org/2000/svg"\n          version="1.1"\n          xmlns:xlink="http://www.w3.org/1999/xlink"\n          class="apexcharts-svg"\n          xmlns:data="ApexChartsNS"\n          transform="translate(0, 0)"\n          width="'.concat(i.globals.svgWidth,'px" height="').concat(i.globals.svgHeight,'px">\n          <foreignObject width="100%" height="100%">\n            <div xmlns="http://www.w3.org/1999/xhtml" style="width:').concat(s,"px; height:").concat(a,'px;">\n            <style type="text/css">\n              .apexcharts-tooltip, .apexcharts-toolbar, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-xcrosshairs, .apexcharts-ycrosshairs, .apexcharts-zoom-rect, .apexcharts-selection-rect {\n                display: none;\n              }\n            </style>\n              ').concat(l,"\n            </div>\n          </foreignObject>\n        </svg>\n      "),u=t.svgStringToNode(c);1!==r&&t.scaleSvgNode(u,r),t.convertImagesToBase64(u).then((function(){c=(new XMLSerializer).serializeToString(u),n(c.replace(/&nbsp;/g,"&#160;"))}))}))}},{key:"convertImagesToBase64",value:function(e){var t=this,n=e.getElementsByTagName("image"),i=Array.from(n).map((function(e){var n=e.getAttributeNS("http://www.w3.org/1999/xlink","href");return n&&!n.startsWith("data:")?t.getBase64FromUrl(n).then((function(t){e.setAttributeNS("http://www.w3.org/1999/xlink","href",t)})).catch((function(e){console.error("Error converting image to base64:",e)})):Promise.resolve()}));return Promise.all(i)}},{key:"getBase64FromUrl",value:function(e){return new Promise((function(t,n){var i=new Image;i.crossOrigin="Anonymous",i.onload=function(){var e=document.createElement("canvas");e.width=i.width,e.height=i.height,e.getContext("2d").drawImage(i,0,0),t(e.toDataURL())},i.onerror=n,i.src=e}))}},{key:"svgUrl",value:function(){var e=this;return new Promise((function(t){e.getSvgString().then((function(e){var n=new Blob([e],{type:"image/svg+xml;charset=utf-8"});t(URL.createObjectURL(n))}))}))}},{key:"dataURI",value:function(e){var t=this;return new Promise((function(n){var i=t.w,r=e?e.scale||e.width/i.globals.svgWidth:1,s=document.createElement("canvas");s.width=i.globals.svgWidth*r,s.height=parseInt(i.globals.dom.elWrap.style.height,10)*r;var a="transparent"!==i.config.chart.background&&i.config.chart.background?i.config.chart.background:"#fff",o=s.getContext("2d");o.fillStyle=a,o.fillRect(0,0,s.width*r,s.height*r),t.getSvgString(r).then((function(e){var t="data:image/svg+xml,"+encodeURIComponent(e),i=new Image;i.crossOrigin="anonymous",i.onload=function(){if(o.drawImage(i,0,0),s.msToBlob){var e=s.msToBlob();n({blob:e})}else{var t=s.toDataURL("image/png");n({imgURI:t})}},i.src=t}))}))}},{key:"exportToSVG",value:function(){var e=this;this.svgUrl().then((function(t){e.triggerDownload(t,e.w.config.chart.toolbar.export.svg.filename,".svg")}))}},{key:"exportToPng",value:function(){var e=this,t=this.w.config.chart.toolbar.export.scale,n=this.w.config.chart.toolbar.export.width,i=t?{scale:t}:n?{width:n}:void 0;this.dataURI(i).then((function(t){var n=t.imgURI,i=t.blob;i?navigator.msSaveOrOpenBlob(i,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,i=e.fileName,r=e.columnDelimiter,s=void 0===r?",":r,a=e.lineDelimiter,o=void 0===a?"\n":a,l=this.w;n||(n=l.config.series);var c=[],u=[],d="",h=l.globals.series.map((function(e,t){return-1===l.globals.collapsedSeriesIndices.indexOf(t)?e:[]})),f=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():b.isNumber(e)?e:e.split(s).join("")},p=function(e){return"function"==typeof l.config.chart.toolbar.export.csv.valueFormatter?l.config.chart.toolbar.export.csv.valueFormatter(e):e},g=Math.max.apply(Math,m(n.map((function(e){return e.data?e.data.length:0})))),v=new Xn(this.ctx),y=new En(this.ctx),x=function(e){var n="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var i=l.globals.yLabelFormatters[0],r=new $n(t.ctx).getActiveConfigSeriesIndex();n=i(l.globals.labels[e],{seriesIndex:r,dataPointIndex:e,w:l})}else n=y.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(" ")),b.isNumber(n)?n:n.split(s).join(""))};c.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(c.push("minimum"),c.push("q1"),c.push("median"),c.push("q3"),c.push("maximum")):"candlestick"===l.config.chart.type?(c.push("open"),c.push("high"),c.push("low"),c.push("close")):"rangeBar"===l.config.chart.type?(c.push("minimum"),c.push("maximum")):n.map((function(e,t){var n=(e.name?e.name:"series-".concat(t))+"";l.globals.axisCharts&&c.push(n.split(s).join("")?n.split(s).join(""):"series-".concat(t))})),l.globals.axisCharts||(c.push(l.config.chart.toolbar.export.csv.headerValue),u.push(c.join(s))),l.globals.allSeriesHasEqualX||!l.globals.axisCharts||l.config.xaxis.categories.length||l.config.labels.length?n.map((function(e,t){l.globals.axisCharts?function(e,t){if(c.length&&0===t&&u.push(c.join(s)),e.data){e.data=e.data.length&&e.data||m(Array(g)).map((function(){return""}));for(var i=0;i<e.data.length;i++){c=[];var r=x(i);if("nullvalue"!==r){if(r||(v.isFormatXY()?r=n[t].data[i].x:v.isFormat2DArray()&&(r=n[t].data[i]?n[t].data[i][0]:"")),0===t){c.push(f(r));for(var a=0;a<l.globals.series.length;a++){var o,d=v.isFormatXY()?null===(o=n[a].data[i])||void 0===o?void 0:o.y:h[a][i];c.push(p(d))}}("candlestick"===l.config.chart.type||e.type&&"candlestick"===e.type)&&(c.pop(),c.push(l.globals.seriesCandleO[t][i]),c.push(l.globals.seriesCandleH[t][i]),c.push(l.globals.seriesCandleL[t][i]),c.push(l.globals.seriesCandleC[t][i])),("boxPlot"===l.config.chart.type||e.type&&"boxPlot"===e.type)&&(c.pop(),c.push(l.globals.seriesCandleO[t][i]),c.push(l.globals.seriesCandleH[t][i]),c.push(l.globals.seriesCandleM[t][i]),c.push(l.globals.seriesCandleL[t][i]),c.push(l.globals.seriesCandleC[t][i])),"rangeBar"===l.config.chart.type&&(c.pop(),c.push(l.globals.seriesRangeStart[t][i]),c.push(l.globals.seriesRangeEnd[t][i])),c.length&&u.push(c.join(s))}}}}(e,t):((c=[]).push(f(l.globals.labels[t])),c.push(p(h[t])),u.push(c.join(s)))})):function(){var e=new Set,t={};n.forEach((function(i,r){null==i||i.data.forEach((function(i){var s,a;if(v.isFormatXY())s=i.x,a=i.y;else{if(!v.isFormat2DArray())return;s=i[0],a=i[1]}t[s]||(t[s]=Array(n.length).fill("")),t[s][r]=p(a),e.add(s)}))})),c.length&&u.push(c.join(s)),Array.from(e).sort().forEach((function(e){u.push([f(e),t[e].join(s)])}))}(),d+=u.join(o),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+d),i||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,n){var i=document.createElement("a");i.href=e,i.download=(t||this.w.globals.chartID)+n,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}]),e}(),Zn=function(){function e(t,i){n(this,e),this.ctx=t,this.elgrid=i,this.w=t.w;var r=this.w;this.axesUtils=new En(t),this.xaxisLabels=r.globals.labels.slice(),r.globals.timescaleLabels.length>0&&!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 r(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new Sn(this.ctx),n=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),i=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(i);for(var r=[],s=0;s<this.xaxisLabels.length;s++)r.push(this.xaxisLabels[s]);if(this.drawXAxisLabelAndGroup(!0,t,i,r,e.globals.isXNumeric,(function(e,t){return t})),e.globals.hasXaxisGroups){var a=e.globals.groups;r=[];for(var o=0;o<a.length;o++)r.push(a[o].title);var l={};e.config.xaxis.group.style&&(l.xaxisFontSize=e.config.xaxis.group.style.fontSize,l.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,l.xaxisForeColors=e.config.xaxis.group.style.colors,l.fontWeight=e.config.xaxis.group.style.fontWeight,l.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,i,r,!1,(function(e,t){return a[e].cols*t}),l)}if(void 0!==e.config.xaxis.title.text){var c=t.group({class:"apexcharts-xaxis-title"}),u=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});c.add(u),n.add(c)}if(e.config.xaxis.axisBorder.show){var d=e.globals.barPadForNumericAxis,h=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(h):n.add(h)}return n}},{key:"drawXAxisLabelAndGroup",value:function(e,t,n,i,r,s){var a,o=this,l=arguments.length>6&&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,y=i.length,b="category"===d.config.xaxis.type?d.globals.dataPoints:y;if(0===b&&y>b&&(b=y),r){var x=Math.max(Number(d.config.xaxis.tickAmount)||1,b>1?b-1:b);a=d.globals.gridWidth/Math.min(x,y-1),v=v+s(0,a)/2+d.config.xaxis.labels.offsetX}else a=d.globals.gridWidth/b,v=v+s(0,a)+d.config.xaxis.labels.offsetX;for(var _=function(r){var l=v-s(r,a)/2+d.config.xaxis.labels.offsetX;0===r&&1===y&&a/2===v&&1===b&&(l=d.globals.gridWidth/2);var x=o.axesUtils.getLabel(i,d.globals.timescaleLabels,l,r,c,h,e),_=28;if(d.globals.rotateXLabels&&e&&(_=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(_+=parseFloat(d.config.xaxis.title.style.fontSize)+2),e||(_=_+parseFloat(h)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),x=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?o.axesUtils.checkLabelBasedOnTickamount(r,x,y):o.axesUtils.checkForOverflowingLabels(r,x,y,c,u),d.config.xaxis.labels.show){var w=t.drawText({x:x.x,y:o.offY+d.config.xaxis.labels.offsetY+_-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:x.text,textAnchor:"middle",fontWeight:x.isBold?600:m,fontSize:h,fontFamily:f,foreColor:Array.isArray(p)?e&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+r-1]:p[r]:p,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+g});if(n.add(w),w.on("click",(function(e){if("function"==typeof d.config.chart.events.xAxisLabelClick){var t=Object.assign({},d,{labelIndex:r});d.config.chart.events.xAxisLabelClick(e,o.ctx,t)}})),e){var k=document.createElementNS(d.globals.SVGNS,"title");k.textContent=Array.isArray(x.text)?x.text.join(" "):x.text,w.node.appendChild(k),""!==x.text&&(c.push(x.text),u.push(x))}}r<y-1&&(v+=s(r+1,a))},w=0;w<=y-1;w++)_(w)}},{key:"drawXaxisInversed",value:function(e){var t,n,i=this,r=this.w,s=new Sn(this.ctx),a=r.config.yaxis[0].opposite?r.globals.translateYAxisX[e]:0,o=s.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=s.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+a+", 0)"});o.add(l);var c=[];if(r.config.yaxis[e].show)for(var u=0;u<this.xaxisLabels.length;u++)c.push(this.xaxisLabels[u]);t=r.globals.gridHeight/c.length,n=-t/2.2;var d=r.globals.yLabelFormatters[0],h=r.config.yaxis[0].labels;if(h.show)for(var f=function(a){var o=void 0===c[a]?"":c[a];o=d(o,{seriesIndex:e,dataPointIndex:a,w:r});var u=i.axesUtils.getYAxisForeColor(h.style.colors,e),f=0;Array.isArray(o)&&(f=o.length/2*parseInt(h.style.fontSize,10));var p=h.offsetX-15,m="end";i.yaxis.opposite&&(m="start"),"left"===r.config.yaxis[0].labels.align?(p=h.offsetX,m="start"):"center"===r.config.yaxis[0].labels.align?(p=h.offsetX,m="middle"):"right"===r.config.yaxis[0].labels.align&&(m="end");var g=s.drawText({x:p,y:n+t+h.offsetY-f,text:o,textAnchor:m,foreColor:Array.isArray(u)?u[a]:u,fontSize:h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+h.style.cssClass,maxWidth:h.maxWidth});l.add(g),g.on("click",(function(e){if("function"==typeof r.config.chart.events.xAxisLabelClick){var t=Object.assign({},r,{labelIndex:a});r.config.chart.events.xAxisLabelClick(e,i.ctx,t)}}));var v=document.createElementNS(r.globals.SVGNS,"title");if(v.textContent=Array.isArray(o)?o.join(" "):o,g.node.appendChild(v),0!==r.config.yaxis[e].labels.rotate){var y=s.rotateAroundCenter(g.node);g.node.setAttribute("transform","rotate(".concat(r.config.yaxis[e].labels.rotate," 0 ").concat(y.y,")"))}n+=t},p=0;p<=c.length-1;p++)f(p);if(void 0!==r.config.yaxis[0].title.text){var m=s.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+a+", 0)"}),g=s.drawText({x:r.config.yaxis[0].title.offsetX,y:r.globals.gridHeight/2+r.config.yaxis[0].title.offsetY,text:r.config.yaxis[0].title.text,textAnchor:"middle",foreColor:r.config.yaxis[0].title.style.color,fontSize:r.config.yaxis[0].title.style.fontSize,fontWeight:r.config.yaxis[0].title.style.fontWeight,fontFamily:r.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+r.config.yaxis[0].title.style.cssClass});m.add(g),o.add(m)}var v=0;this.isCategoryBarHorizontal&&r.config.yaxis[0].opposite&&(v=r.globals.gridWidth);var y=r.config.xaxis.axisBorder;if(y.show){var b=s.drawLine(r.globals.padHorizontal+y.offsetX+v,1+y.offsetY,r.globals.padHorizontal+y.offsetX+v,r.globals.gridHeight+y.offsetY,y.color,0);this.elgrid&&this.elgrid.elGridBorders&&r.config.grid.show?this.elgrid.elGridBorders.add(b):o.add(b)}return r.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(v,c.length,r.config.yaxis[0].axisBorder,r.config.yaxis[0].axisTicks,0,t,o),o}},{key:"drawXaxisTicks",value:function(e,t,n){var i=this.w,r=e;if(!(e<0||e-2>i.globals.gridWidth)){var s=this.offY+i.config.xaxis.axisTicks.offsetY;if(t=t+s+i.config.xaxis.axisTicks.height,"top"===i.config.xaxis.position&&(t=s-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){var a=new Sn(this.ctx).drawLine(e+i.config.xaxis.axisTicks.offsetX,s+i.config.xaxis.offsetY,r+i.config.xaxis.axisTicks.offsetX,t+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);n.add(a),a.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],n=this.xaxisLabels.length,i=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var r=0;r<n;r++)i=this.xaxisLabels[r].position,t.push(i);else for(var s=n,a=0;a<s;a++){var o=s;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(o-=1),i+=e.globals.gridWidth/o,t.push(i)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new Sn(this.ctx),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var a=0;a<i.length;a++){var o=t.rotateAroundCenter(i[a]);o.y=o.y-1,o.x=o.x+1,i[a].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),i[a].setAttribute("text-anchor","end"),n.setAttribute("transform","translate(0, ".concat(-10,")"));var l=i[a].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(n){t.placeTextWithEllipsis(n,n.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))}))}else!function(){for(var n=e.globals.gridWidth/(e.globals.labels.length+1),r=0;r<i.length;r++){var s=i[r].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(s,(function(e){t.placeTextWithEllipsis(e,e.textContent,n)}))}}();if(r.length>0){var c=r[r.length-1].getBBox(),u=r[0].getBBox();c.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),u.x+u.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var d=0;d<s.length;d++)t.placeTextWithEllipsis(s[d],s[d].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),e}(),Kn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),this.axesUtils=new En(t),this.isRangeBar=i.globals.seriesRange.length&&i.globals.isBarHorizontal,i.globals.timescaleLabels.length>0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return r(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,n=new Sn(this.ctx);e||(e=n.group({class:"apexcharts-grid"}));var i=n.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),r=n.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(r),e.add(i),e}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var e=this.renderGrid();return this.drawGridArea(e.el),e}return null}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,n=new Sn(this.ctx),i=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,m(e.config.stroke.width)):e.config.stroke.width,r=function(e){var n=document.createElementNS(t.SVGNS,"clipPath");return n.setAttribute("id",e),n};t.dom.elGridRectMask=r("gridRectMask".concat(t.cuid)),t.dom.elGridRectBarMask=r("gridRectBarMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=r("gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=r("forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=r("nonForecastMask".concat(t.cuid));var s=0,a=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(s=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),a=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),t.dom.elGridRect=n.drawRect(-i/2-2,-i/2-2,t.gridWidth+i+4,t.gridHeight+i+4,0,"#fff"),t.dom.elGridRectBar=n.drawRect(-i/2-s-2,-i/2-2,t.gridWidth+i+a+s+4,t.gridHeight+i+4,0,"#fff");var o=e.globals.markers.largestSize;t.dom.elGridRectMarker=n.drawRect(-o,-o,t.gridWidth+2*o,t.gridHeight+2*o,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectBarMask.appendChild(t.dom.elGridRectBar.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var l=t.dom.baseEl.querySelector("defs");l.appendChild(t.dom.elGridRectMask),l.appendChild(t.dom.elGridRectBarMask),l.appendChild(t.dom.elGridRectMarkerMask),l.appendChild(t.dom.elForecastMask),l.appendChild(t.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,n=e.x1,i=e.y1,r=e.x2,s=e.y2,a=e.xCount,o=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===a-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:i,x2:r,y2:s,xCount:a,parent:o});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;d<t&&h<u.length;h++)d+=u[h].cols;d===t&&(c=.6*l.globals.xAxisLabelsHeight)}}new Zn(this.ctx).drawXaxisTicks(n,c,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,n=e.x1,i=e.y1,r=e.x2,s=e.y2,a=e.xCount,o=e.parent,l=this.w,c=o.node.classList.contains("apexcharts-gridlines-horizontal"),u=l.globals.barPadForNumericAxis,d=0===i&&0===s||0===n&&0===r||i===l.globals.gridHeight&&s===l.globals.gridHeight||l.globals.isBarHorizontal&&(0===t||t===a-1),h=new Sn(this).drawLine(n-(c?u:0),i,r+(c?u:0),s,l.config.grid.borderColor,l.config.grid.strokeDashArray);h.node.classList.add("apexcharts-gridline"),d&&l.config.grid.show?this.elGridBorders.add(h):o.add(h)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,n=e.x1,i=e.y1,r=e.x2,s=e.y2,a=e.type,o=this.w,l=new Sn(this.ctx),c=o.globals.barPadForNumericAxis,u=o.config.grid[a].colors[t],d=l.drawRect(n-("row"===a?c:0),i,r+("row"===a?2*c:0),s,0,u,o.config.grid[a].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(a))}},{key:"_drawXYLines",value:function(e){var t=this,n=e.xCount,i=e.tickAmount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show){var s,a=r.globals.padHorizontal,o=r.globals.gridHeight;r.globals.timescaleLabels.length?function(e){for(var i=e.xC,r=e.x1,s=e.y1,a=e.x2,o=e.y2,l=0;l<i;l++)r=t.xaxisLabels[l].position,a=t.xaxisLabels[l].position,t._drawGridLines({i:l,x1:r,y1:s,x2:a,y2:o,xCount:n,parent:t.elgridLinesV})}({xC:n,x1:a,y1:0,x2:s,y2:o}):(r.globals.isXNumeric&&(n=r.globals.xAxisScale.result.length),function(e){for(var i=e.xC,s=e.x1,a=e.y1,o=e.x2,l=e.y2,c=0;c<i+(r.globals.isXNumeric?0:1);c++)0===c&&1===i&&1===r.globals.dataPoints&&(o=s=r.globals.gridWidth/2),t._drawGridLines({i:c,x1:s,y1:a,x2:o,y2:l,xCount:n,parent:t.elgridLinesV}),o=s+=r.globals.gridWidth/(r.globals.isXNumeric?i-1:i)}({xC:n,x1:a,y1:0,x2:s,y2:o}))}if(r.config.grid.yaxis.lines.show){var l=0,c=0,u=r.globals.gridWidth,d=i+1;this.isRangeBar&&(d=r.globals.labels.length);for(var h=0;h<d+(this.isRangeBar?1:0);h++)this._drawGridLine({i:h,xCount:d+(this.isRangeBar?1:0),x1:0,y1:l,x2:u,y2:c,parent:this.elgridLinesH}),c=l+=r.globals.gridHeight/(this.isRangeBar?d:i)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show)for(var i,r=n.globals.padHorizontal,s=n.globals.gridHeight,a=0;a<t+1;a++)n.config.grid.xaxis.lines.show&&this._drawGridLine({i:a,xCount:t+1,x1:r,y1:0,x2:i,y2:s,parent:this.elgridLinesV}),new Zn(this.ctx).drawXaxisTicks(r,0,n.globals.dom.elGraphical),i=r+=n.globals.gridWidth/t;if(n.config.grid.yaxis.lines.show)for(var o=0,l=0,c=n.globals.gridWidth,u=0;u<n.globals.dataPoints+1;u++)this._drawGridLine({i:u,xCount:n.globals.dataPoints+1,x1:0,y1:o,x2:c,y2:l,parent:this.elgridLinesH}),l=o+=n.globals.gridHeight/n.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=e.globals,n=new Sn(this.ctx);this.elg=n.group({class:"apexcharts-grid"}),this.elgridLinesH=n.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=n.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=n.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var i=0;i<t.seriesYAxisMap.length&&t.ignoreYAxisIndexes.includes(i);)i++;i===t.seriesYAxisMap.length&&(i=0);var r,s,a,o,l=t.yAxisScale[i].result.length-1;!t.isBarHorizontal||this.isRangeBar?(r=this.xaxisLabels.length,this.isRangeBar&&(l=t.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(r=e.config.xaxis.tickAmount),(null===(s=t.yAxisScale)||void 0===s||null===(a=s[i])||void 0===a||null===(o=a.result)||void 0===o?void 0:o.length)>0&&"datetime"!==e.config.xaxis.type&&(r=t.yAxisScale[i].result.length-1)),this._drawXYLines({xCount:r,tickAmount:l})):(r=l,l=t.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:l}));return this.drawGridBands(r,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.gridWidth/r}}},{key:"drawGridBands",value:function(e,t){var n,i,r=this,s=this.w;if((null===(n=s.config.grid.row.colors)||void 0===n?void 0:n.length)>0&&function(e,n,i,a,o,l){for(var c=0,u=0;c<n;c++,u++)u>=s.config.grid.row.colors.length&&(u=0),r._drawGridBandRect({c:u,x1:0,y1:a,x2:o,y2:l,type:"row"}),a+=s.globals.gridHeight/t}(0,t,0,0,s.globals.gridWidth,s.globals.gridHeight/t),(null===(i=s.config.grid.column.colors)||void 0===i?void 0:i.length)>0){var a=s.globals.isBarHorizontal||"on"!==s.config.xaxis.tickPlacement||"category"!==s.config.xaxis.type&&!s.config.xaxis.convertedCatToNumeric?e:e-1;s.globals.isXNumeric&&(a=s.globals.xAxisScale.result.length-1);for(var o=s.globals.padHorizontal,l=s.globals.padHorizontal+s.globals.gridWidth/a,c=s.globals.gridHeight,u=0,d=0;u<e;u++,d++){var h;d>=s.config.grid.column.colors.length&&(d=0),"datetime"===s.config.xaxis.type&&(o=this.xaxisLabels[u].position,l=((null===(h=this.xaxisLabels[u+1])||void 0===h?void 0:h.position)||s.globals.gridWidth)-this.xaxisLabels[u].position),this._drawGridBandRect({c:d,x1:o,y1:0,x2:l,y2:c,type:"column"}),o+=s.globals.gridWidth/a}}}}]),e}(),Jn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.coreUtils=new An(this.ctx)}return r(e,[{key:"niceScale",value:function(e,t){var n,i,r,s,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=1e-11,l=this.w,c=l.globals;c.isBarHorizontal?(n=l.config.xaxis,i=Math.max((c.svgWidth-100)/25,2)):(n=l.config.yaxis[a],i=Math.max((c.svgHeight-100)/15,2)),b.isNumber(i)||(i=10),r=void 0!==n.min&&null!==n.min,s=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:c.niceScaleDefaultTicks[Math.min(Math.round(i/2),c.niceScaleDefaultTicks.length-1)];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||!b.isNumber(e)&&!b.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=b.isNumber(n.min)?n.min:0,t=b.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);!r&&e>0&&e/g<.15&&(e=0,r=!0),!s&&t<0&&-t/g<.15&&(t=0,s=!0);var v=(g=Math.abs(t-e))/m,y=v,x=Math.floor(Math.log10(y)),_=Math.pow(10,x),w=Math.ceil(y/_);if(v=y=(w=c.niceScaleAllowedMagMsd[0===c.yValueDecimal?0:1][w])*_,c.isBarHorizontal&&n.stepSize&&"datetime"!==n.type?(v=n.stepSize,u=!0):u&&(v=n.stepSize),u&&n.forceNiceScale){var k=Math.floor(Math.log10(v));v*=Math.pow(10,x-k)}if(r&&s){var M=g/m;if(d)if(u)if(0!=b.mod(g,v)){var S=b.getGCD(v,M);v=M/S<10?S:M}else 0==b.mod(v,M)?v=M:(M=v,d=!1);else v=M;else if(u)0==b.mod(g,v)?M=v:v=M;else if(0==b.mod(g,v))M=v;else{M=g/(m=Math.ceil(g/v));var A=b.getGCD(g,v);g/A<i&&(M=A),v=M}m=Math.round(g/v)}else{if(r||s){if(s)if(d)e=t-v*m;else{var L=e;e=v*Math.floor(e/v),Math.abs(t-e)/b.getGCD(g,v)>i&&(e=t-v*h,e+=v*Math.floor((L-e)/v))}else if(r)if(d)t=e+v*m;else{var T=t;t=v*Math.ceil(t/v),Math.abs(t-e)/b.getGCD(g,v)>i&&(t=e+v*h,t+=v*Math.ceil((T-t)/v))}}else if(c.isMultipleYAxis&&d){var C=v*Math.floor(e/v),D=C+v*m;D<t&&(v*=2),D=t,t=(e=C)+v*m,g=Math.abs(t-e),e>0&&e<Math.abs(D-t)&&(e=0,t=v*m),t<0&&-t<Math.abs(C-e)&&(t=0,e=-v*m)}else e=v*Math.floor(e/v),t=v*Math.ceil(t/v);g=Math.abs(t-e),v=b.getGCD(g,v),m=Math.round(g/v)}if(d||r||s||(m=Math.ceil((g-o)/(v+o)))>16&&b.getPrimeFactors(m).length<2&&m++,!d&&n.forceNiceScale&&0===c.yValueDecimal&&m>g&&(m=g,v=Math.round(g/m)),m>i&&(!d&&!u||n.forceNiceScale)){var E=b.getPrimeFactors(m),O=E.length-1,P=m;e:for(var Y=0;Y<O;Y++)for(var I=0;I<=O-Y;I++){for(var N=Math.min(I+Y,O),H=P,j=1,F=I;F<=N;F++)j*=E[F];if((H/=j)<i){P=H;break e}}v=P===m?g:g/P,m=Math.round(g/v)}c.isMultipleYAxis&&0==c.multiAxisTickAmount&&c.ignoreYAxisIndexes.indexOf(a)<0&&(c.multiAxisTickAmount=m);var R=e-v,z=v*o;do{R+=v,p.push(b.stripNumber(R,7))}while(t-R>z);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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,s=Math.abs(t-e),a=[];if(e===t)return{result:a=[e],niceMin:a[0],niceMax:a[a.length-1]};"dataPoints"===(n=this._adjustTicksForSmallRange(n,i,s))&&(n=this.w.globals.dataPoints-1),r||(r=s/n),r=Math.round(100*(r+Number.EPSILON))/100,n===Number.MAX_VALUE&&(n=5,r=1);for(var o=e;n>=0;)a.push(o),o=b.preciseAddition(o,r),n-=1;return{result:a,niceMin:a[0],niceMax:a[a.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 i=[],r=Math.ceil(Math.log(t)/Math.log(n)+1),s=Math.floor(Math.log(e)/Math.log(n));s<r;s++)i.push(Math.pow(n,s));return{result:i,niceMin:i[0],niceMax:i[i.length-1]}}},{key:"logarithmicScale",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var i=[],r=Math.log(t)/Math.log(n),s=Math.log(e)/Math.log(n),a=r-s,o=Math.round(a),l=a/o,c=0,u=s;c<o;c++,u+=l)i.push(Math.pow(n,u));return i.push(Math.pow(n,r)),{result:i,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,n){var i=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var r=Number(this.w.config.yaxis[t].labels.formatter(1));b.isNumber(r)&&0===this.w.globals.yValueDecimal&&(i=Math.ceil(n))}return i<e?i:e}},{key:"setYScaleForIndex",value:function(e,t,n){var i=this.w.globals,r=this.w.config,s=i.isBarHorizontal?r.xaxis:r.yaxis[e];void 0===i.yAxisScale[e]&&(i.yAxisScale[e]=[]);var a=Math.abs(n-t);s.logarithmic&&a<=5&&(i.invalidLogScale=!0),s.logarithmic&&a>5?(i.allSeriesCollapsed=!1,i.yAxisScale[e]=s.forceNiceScale?this.logarithmicScaleNice(t,n,s.logBase):this.logarithmicScale(t,n,s.logBase)):n!==-Number.MAX_VALUE&&b.isNumber(n)&&t!==Number.MAX_VALUE&&b.isNumber(t)?(i.allSeriesCollapsed=!1,i.yAxisScale[e]=this.niceScale(t,n,e)):i.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var n=this.w,i=n.globals;if(t!==-Number.MAX_VALUE&&b.isNumber(t)){var r=i.xTickAmount;i.xAxisScale=this.linearScale(e,t,r,0,n.config.xaxis.stepSize)}else i.xAxisScale=this.linearScale(0,10,10);return i.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var e=this,t=this.w.config,n=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var i=n.seriesYAxisMap,r=n.minYArr,s=n.maxYArr;n.allSeriesCollapsed=!0,n.barGroups=[],i.forEach((function(i,a){var o=[];i.forEach((function(e){var n,i=null===(n=t.series[e])||void 0===n?void 0:n.group;o.indexOf(i)<0&&o.push(i)})),i.length>0?function(){var l,c,u=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=u,f=d;if(t.chart.stacked)!function(){var e=new Array(n.dataPoints).fill(0),r=[],s=[],p=[];o.forEach((function(){r.push(e.map((function(){return Number.MIN_VALUE}))),s.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[i[e]].type&&(l=t.series[i[e]].type);var u=i[e];c=t.series[u].group?t.series[u].group:"axis-".concat(a),!(n.collapsedSeriesIndices.indexOf(u)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(u)<0)||(n.allSeriesCollapsed=!1,o.forEach((function(e,i){if(t.series[u].group===e)for(var a=0;a<n.series[u].length;a++){var o=n.series[u][a];o>=0?s[i][a]+=o:p[i][a]+=o,r[i][a]+=o,h=Math.min(h,o),f=Math.max(f,o)}}))),"bar"!==l&&"column"!==l||n.barGroups.push(c)},g=0;g<i.length;g++)m(g);l||(l=t.chart.type),"bar"===l||"column"===l?o.forEach((function(e,t){u=Math.min(u,Math.min.apply(null,p[t])),d=Math.max(d,Math.max.apply(null,s[t]))})):(o.forEach((function(e,t){h=Math.min(h,Math.min.apply(null,r[t])),f=Math.max(f,Math.max.apply(null,r[t]))})),u=h,d=f),u===Number.MIN_VALUE&&d===Number.MIN_VALUE&&(d=-Number.MAX_VALUE)}();else for(var p=0;p<i.length;p++){var m=i[p];u=Math.min(u,r[m]),d=Math.max(d,s[m]),!(n.collapsedSeriesIndices.indexOf(m)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(m)<0)||(n.allSeriesCollapsed=!1)}void 0!==t.yaxis[a].min&&(u="function"==typeof t.yaxis[a].min?t.yaxis[a].min(u):t.yaxis[a].min),void 0!==t.yaxis[a].max&&(d="function"==typeof t.yaxis[a].max?t.yaxis[a].max(d):t.yaxis[a].max),n.barGroups=n.barGroups.filter((function(e,t,n){return n.indexOf(e)===t})),e.setYScaleForIndex(a,u,d),i.forEach((function(e){r[e]=n.yAxisScale[a].niceMin,s[e]=n.yAxisScale[a].niceMax}))}():e.setYScaleForIndex(a,0,-Number.MAX_VALUE)}))}}]),e}(),Qn=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.scales=new Jn(t)}return r(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w.config,s=this.w.globals,a=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===i&&(i=e+1);var l=s.series,c=l,u=l;"candlestick"===r.chart.type?(c=s.seriesCandleL,u=s.seriesCandleH):"boxPlot"===r.chart.type?(c=s.seriesCandleO,u=s.seriesCandleC):s.isRangeData&&(c=s.seriesRangeStart,u=s.seriesRangeEnd);var d=!1;if(s.seriesX.length>=i){var h,f=null===(h=s.brushSource)||void 0===h?void 0:h.w.config.chart.brush;(r.chart.zoom.enabled&&r.chart.zoom.autoScaleYaxis||null!=f&&f.enabled&&null!=f&&f.autoScaleYaxis)&&(d=!0)}for(var p=e;p<i;p++){s.dataPoints=Math.max(s.dataPoints,l[p].length);var m=r.series[p].type;s.categoryLabels.length&&(s.dataPoints=s.categoryLabels.filter((function(e){return void 0!==e})).length),s.labels.length&&"datetime"!==r.xaxis.type&&0!==s.series.reduce((function(e,t){return e+t.length}),0)&&(s.dataPoints=Math.max(s.dataPoints,s.labels.length));var g=0,v=l[p].length-1;if(d){if(r.xaxis.min)for(;g<v&&s.seriesX[p][g]<r.xaxis.min;g++);if(r.xaxis.max)for(;v>g&&s.seriesX[p][v]>r.xaxis.max;v--);}for(var y=g;y<=v&&y<s.series[p].length;y++){var x=l[p][y];if(null!==x&&b.isNumber(x)){switch(void 0!==u[p][y]&&(a=Math.max(a,u[p][y]),t=Math.min(t,u[p][y])),void 0!==c[p][y]&&(t=Math.min(t,c[p][y]),n=Math.max(n,c[p][y])),m){case"candlestick":void 0!==s.seriesCandleC[p][y]&&(a=Math.max(a,s.seriesCandleH[p][y]),t=Math.min(t,s.seriesCandleL[p][y]));break;case"boxPlot":void 0!==s.seriesCandleC[p][y]&&(a=Math.max(a,s.seriesCandleC[p][y]),t=Math.min(t,s.seriesCandleO[p][y]))}m&&"candlestick"!==m&&"boxPlot"!==m&&"rangeArea"!==m&&"rangeBar"!==m&&(a=Math.max(a,s.series[p][y]),t=Math.min(t,s.series[p][y])),s.seriesGoals[p]&&s.seriesGoals[p][y]&&Array.isArray(s.seriesGoals[p][y])&&s.seriesGoals[p][y].forEach((function(e){a=Math.max(a,e.value),t=Math.min(t,e.value)})),n=a,x=b.noExponents(x),b.isFloat(x)&&(s.yValueDecimal=Math.max(s.yValueDecimal,x.toString().split(".")[1].length)),o>c[p][y]&&c[p][y]<0&&(o=c[p][y])}else s.hasNullValues=!0}"bar"!==m&&"column"!==m||(o<0&&a<0&&(a=0,n=Math.max(n,0)),o===Number.MIN_VALUE&&(o=0,t=Math.min(t,0)))}return"rangeBar"===r.chart.type&&s.seriesRangeStart.length&&s.isBarHorizontal&&(o=t),"bar"===r.chart.type&&(o<0&&a<0&&(a=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:a,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,i=Number.MAX_VALUE;if(e.isMultipleYAxis){i=Number.MAX_VALUE;for(var r=0;r<e.series.length;r++)n=this.getMinYMaxY(r),e.minYArr[r]=n.lowestY,e.maxYArr[r]=n.highestY,i=Math.min(i,n.lowestY)}return n=this.getMinYMaxY(0,i,null,e.series.length),"bar"===t.chart.type?(e.minY=n.minY,e.maxY=n.maxY):(e.minY=n.lowestY,e.maxY=n.highestY),i=n.lowestY,t.chart.stacked&&this._setStackedMinMax(),"line"===t.chart.type||"area"===t.chart.type||"scatter"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==e.maxY&&(e.minY=i):e.minY=e.minY!==Number.MIN_VALUE?Math.min(n.minY,e.minY):n.minY,t.yaxis.forEach((function(t,n){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[n]=t.max:"function"==typeof t.max&&(e.maxYArr[n]=t.max(e.isMultipleYAxis?e.maxYArr[n]:e.maxY)),e.maxY=e.maxYArr[n]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[n]=t.min:"function"==typeof t.min&&(e.minYArr[n]=t.min(e.isMultipleYAxis?e.minYArr[n]===Number.MIN_VALUE?0:e.minYArr[n]:e.minY)),e.minY=e.minYArr[n])})),e.isBarHorizontal&&["min","max"].forEach((function(n){void 0!==t.xaxis[n]&&"number"==typeof t.xaxis[n]&&("min"===n?e.minY=t.xaxis[n]:e.maxY=t.xaxis[n])})),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=i):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach((function(n){switch(n.type||t.chart.type){case"bar":case"column":e.barGroups.push(n.group);break;case"line":e.lineGroups.push(n.group);break;case"area":e.areaGroups.push(n.group)}})),e.barGroups=e.barGroups.filter((function(e,t,n){return n.indexOf(e)===t})),e.lineGroups=e.lineGroups.filter((function(e,t,n){return n.indexOf(e)===t})),e.areaGroups=e.areaGroups.filter((function(e,t,n){return n.indexOf(e)===t})),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,n="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;t<e.series.length;t++)if(e.labels[t])for(var n=0;n<e.labels[t].length;n++)null!==e.labels[t][n]&&b.isNumber(e.labels[t][n])&&(e.maxX=Math.max(e.maxX,e.labels[t][n]),e.initialMaxX=Math.max(e.maxX,e.labels[t][n]),e.minX=Math.min(e.minX,e.labels[t][n]),e.initialMinX=Math.min(e.minX,e.labels[t][n]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var i=10;if(void 0===t.xaxis.tickAmount)i=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(i=e.dataPoints-1),i>e.dataPoints&&0!==e.dataPoints&&(i=e.dataPoints-1);else if("dataPoints"===t.xaxis.tickAmount){if(e.series.length>1&&(i=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric){var r=Math.round(e.maxX-e.minX);r<30&&(i=r-1)}}else i=t.xaxis.tickAmount;if(e.xTickAmount=i,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 s=[],a=e.minX-1;a<e.maxX;a++)s.push(a+1);e.xAxisScale={result:s,niceMin:s[0],niceMax:s[s.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,i,i,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,i-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;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var n=0;n<e.seriesZ[t].length;n++)null!==e.seriesZ[t][n]&&b.isNumber(e.seriesZ[t][n])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][n]),e.minZ=Math.min(e.minZ,e.seriesZ[t][n]))}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var n=new Cn(this.ctx);if("datetime"===t.xaxis.type){var i=n.getDate(e.minX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()-2):i.setDate(i.getDate()-2),e.minX=new Date(i).getTime();var r=n.getDate(e.maxX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()+2):r.setDate(r.getDate()+2),e.maxX=new Date(r).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach((function(t,n){if(t.length){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var i=t.slice();i.sort((function(e,t){return e-t})),i.forEach((function(t,n){if(n>0){var r=t-i[n-1];r>0&&(e.minXDiff=Math.min(r,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 i={},r={};n.forEach((function(n){i[n]=[],r[n]=[],e.w.config.series.map((function(e,i){return n.indexOf(t.seriesNames[i])>-1?i:null})).filter((function(e){return null!==e})).forEach((function(s){for(var a=0;a<t.series[t.maxValsInArrayIndex].length;a++){var o,l,c,u;void 0===i[n][a]&&(i[n][a]=0,r[n][a]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||"bar"===(null===(o=e.w.config.series)||void 0===o||null===(l=o[s])||void 0===l?void 0:l.type)||"column"===(null===(c=e.w.config.series)||void 0===c||null===(u=c[s])||void 0===u?void 0:u.type)))&&null!==t.series[s][a]&&b.isNumber(t.series[s][a])&&(t.series[s][a]>0?i[n][a]+=parseFloat(t.series[s][a])+1e-4:r[n][a]+=parseFloat(t.series[s][a]))}}))})),Object.entries(i).forEach((function(e){var n=p(e,1)[0];i[n].forEach((function(e,s){t.maxY=Math.max(t.maxY,i[n][s]),t.minY=Math.min(t.minY,r[n][s])}))}))}}}]),e}(),ei=function(){function e(t,i){n(this,e),this.ctx=t,this.elgrid=i,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="bottom"===r.config.xaxis.position?r.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new En(t)}return r(e,[{key:"drawYaxis",value:function(e){var t=this.w,n=new Sn(this.ctx),i=t.config.yaxis[e].labels.style,r=i.fontSize,s=i.fontFamily,a=i.fontWeight,o=n.group({class:"apexcharts-yaxis",rel:e,transform:"translate(".concat(t.globals.translateYAxisX[e],", 0)")});if(this.axesUtils.isYAxisHidden(e))return o;var l=n.group({class:"apexcharts-yaxis-texts-g"});o.add(l);var c=t.globals.yAxisScale[e].result.length-1,u=t.globals.gridHeight/c,d=t.globals.yLabelFormatters[e],h=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){var f=t.globals.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?f=0:"heatmap"===t.config.chart.type&&(f-=u/2),f+=parseInt(r,10)/3;for(var p=c;p>=0;p--){var m=d(h[p],p,t),g=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&0!==t.config.yaxis.length&&(g*=-1);var v=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),y=this.axesUtils.getYAxisForeColor(i.colors,e),x=Array.isArray(y)?y[p]:y,_=b.listToArray(t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map((function(e){return e.textContent})),w=n.drawText({x:g,y:f,text:_.includes(m)&&!t.config.yaxis[e].labels.showDuplicates?"":m,textAnchor:v,fontSize:r,fontFamily:s,fontWeight:a,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:x,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(i.cssClass)});l.add(w),this.addTooltip(w,m),0!==t.config.yaxis[e].labels.rotate&&this.rotateLabel(n,w,firstLabel,t.config.yaxis[e].labels.rotate),f+=u}}return this.addYAxisTitle(n,o,e),this.addAxisBorder(n,o,e,c,u),o}},{key:"getTextAnchor",value:function(e,t){return"left"===e?"start":"center"===e?"middle":"right"===e?"end":t?"start":"end"}},{key:"addTooltip",value:function(e,t){var n=document.createElementNS(this.w.globals.SVGNS,"title");n.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(n)}},{key:"rotateLabel",value:function(e,t,n,i){var r=e.rotateAroundCenter(n.node),s=e.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(".concat(i," ").concat(r.x," ").concat(s.y,")"))}},{key:"addYAxisTitle",value:function(e,t,n){var i=this.w;if(void 0!==i.config.yaxis[n].title.text){var r=e.group({class:"apexcharts-yaxis-title"}),s=i.config.yaxis[n].opposite?i.globals.translateYAxisX[n]:0,a=e.drawText({x:s,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[n].title.offsetY,text:i.config.yaxis[n].title.text,textAnchor:"end",foreColor:i.config.yaxis[n].title.style.color,fontSize:i.config.yaxis[n].title.style.fontSize,fontWeight:i.config.yaxis[n].title.style.fontWeight,fontFamily:i.config.yaxis[n].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(i.config.yaxis[n].title.style.cssClass)});r.add(a),t.add(r)}}},{key:"addAxisBorder",value:function(e,t,n,i,r){var s=this.w,a=s.config.yaxis[n].axisBorder,o=31+a.offsetX;if(s.config.yaxis[n].opposite&&(o=-31-a.offsetX),a.show){var l=e.drawLine(o,s.globals.translateY+a.offsetY-2,o,s.globals.gridHeight+s.globals.translateY+a.offsetY+2,a.color,0,a.width);t.add(l)}s.config.yaxis[n].axisTicks.show&&this.axesUtils.drawYAxisTicks(o,i,a,s.config.yaxis[n].axisTicks,n,r,t)}},{key:"drawYaxisInversed",value:function(e){var t=this.w,n=new Sn(this.ctx),i=n.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),r=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(r);var s=t.globals.yAxisScale[e].result.length-1,a=t.globals.gridWidth/s+.1,o=a+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice()),u=t.globals.timescaleLabels;if(u.length>0&&(this.xaxisLabels=u.slice(),s=(c=u.slice()).length),t.config.xaxis.labels.show)for(var d=u.length?0:s;u.length?d<u.length:d>=0;u.length?d++:d--){var h=l(c[d],d,t),f=t.globals.gridWidth+t.globals.padHorizontal-(o-a+t.config.xaxis.labels.offsetX);if(u.length){var p=this.axesUtils.getLabel(c,u,f,d,this.drawnLabels,this.xaxisFontSize);f=p.x,h=p.text,this.drawnLabels.push(p.text),0===d&&t.globals.skipFirstTimelinelabel&&(h=""),d===c.length-1&&t.globals.skipLastTimelinelabel&&(h="")}var m=n.drawText({x:f,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:h,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 ".concat(t.config.xaxis.labels.style.cssClass)});r.add(m),m.tspan(h),this.addTooltip(m,h),o+=a}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,n=new Sn(this.ctx),i=t.config.xaxis.axisBorder;if(i.show){var r=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(r-=15);var s=n.drawLine(t.globals.padHorizontal+r+i.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,i.color,0,i.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(s):e.add(s)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,n=new Sn(this.ctx);if(void 0!==t.config.xaxis.title.text){var i=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),r=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 ".concat(t.config.xaxis.title.style.cssClass)});i.add(r),e.add(i)}}},{key:"yAxisTitleRotate",value:function(e,t){var n=this.w,i=new Sn(this.ctx),r=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g")),s=r?r.getBoundingClientRect():{width:0,height:0},a=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text")),o=a?a.getBoundingClientRect():{width:0,height:0};if(a){var l=this.xPaddingForYAxisTitle(e,s,o,t);a.setAttribute("x",l.xPos-(t?10:0));var c=i.rotateAroundCenter(a);a.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,i){var r=this.w,s=0,a=10;return void 0===r.config.yaxis[e].title.text||e<0?{xPos:s,padd:0}:(i?s=t.width+r.config.yaxis[e].title.offsetX+n.width/2+a/2:(s=-1*t.width+r.config.yaxis[e].title.offsetX+a/2+n.width/2,r.globals.isBarHorizontal&&(a=25,s=-1*t.width-r.config.yaxis[e].title.offsetX-a)),{xPos:s,padd:a})}},{key:"setYAxisXPosition",value:function(e,t){var n=this.w,i=0,r=0,s=18,a=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.forEach((function(o,l){var c=n.globals.ignoreYAxisIndexes.includes(l)||!o.show||o.floating||0===e[l].width,u=e[l].width+t[l].width;o.opposite?n.globals.isBarHorizontal?(r=n.globals.gridWidth+n.globals.translateX-1,n.globals.translateYAxisX[l]=r-o.labels.offsetX):(r=n.globals.gridWidth+n.globals.translateX+a,c||(a+=u+20),n.globals.translateYAxisX[l]=r-o.labels.offsetX+20):(i=n.globals.translateX-s,c||(s+=u+20),n.globals.translateYAxisX[l]=i+o.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var e=this.w;b.listToArray(e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach((function(t,n){var i=e.config.yaxis[n];if(i&&!i.floating&&void 0!==i.labels.align){var r=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),s=b.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"))),a=r.getBoundingClientRect();s.forEach((function(e){e.setAttribute("text-anchor",i.labels.align)})),"left"!==i.labels.align||i.opposite?"center"===i.labels.align?r.setAttribute("transform","translate(".concat(a.width/2*(i.opposite?1:-1),", 0)")):"right"===i.labels.align&&i.opposite&&r.setAttribute("transform","translate(".concat(a.width,", 0)")):r.setAttribute("transform","translate(-".concat(a.width,", 0)"))}}))}}]),e}(),ti=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.documentEvent=b.bind(this.documentEvent,this)}return r(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 i=n.globals.events[e].indexOf(t);-1!==i&&n.globals.events[e].splice(i,1)}}},{key:"fireEvent",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var i=n.globals.events[e],r=i.length,s=0;s<r;s++)i[s].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,n=this.ctx,i=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach((function(e){i.addEventListener(e,(function(e){var i=Object.assign({},t,{seriesIndex:t.globals.axisCharts?t.globals.capturedSeriesIndex:0,dataPointIndex:t.globals.capturedDataPointIndex});"mousemove"===e.type||"touchmove"===e.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(e,n,i):"mouseleave"===e.type||"touchleave"===e.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(e,n,i):("mouseup"===e.type&&1===e.which||"touchend"===e.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(e,n,i),n.ctx.events.fireEvent("click",[e,n,i]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(n){t.globals.dom.baseEl.addEventListener(n,e.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,n=e.target.className;if("click"===e.type){var i=t.globals.dom.baseEl.querySelector(".apexcharts-menu");i&&i.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==n&&i.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),e}(),ni=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(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 i=b.extend(Yn,n);this.w.globals.locale=i.options}}]),e}(),ii=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"drawAxis",value:function(e,t){var n,i,r=this,s=this.w.globals,a=this.w.config,o=new Zn(this.ctx,t),l=new ei(this.ctx,t);s.axisCharts&&"radar"!==e&&(s.isBarHorizontal?(i=l.drawYaxisInversed(0),n=o.drawXaxisInversed(0),s.dom.elGraphical.add(n),s.dom.elGraphical.add(i)):(n=o.drawXaxis(),s.dom.elGraphical.add(n),a.yaxis.map((function(e,t){if(-1===s.ignoreYAxisIndexes.indexOf(t)&&(i=l.drawYaxis(t),s.dom.Paper.add(i),"back"===r.w.config.grid.position)){var n=s.dom.Paper.children()[1];n.remove(),s.dom.Paper.add(n)}}))))}}]),e}(),ri=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new Sn(this.ctx),n=new Mn(this.ctx),i=e.config.xaxis.crosshairs.fill.gradient,r=e.config.xaxis.crosshairs.dropShadow,s=e.config.xaxis.crosshairs.fill.type,a=i.colorFrom,o=i.colorTo,l=i.opacityFrom,c=i.opacityTo,u=i.stops,d=r.enabled,h=r.left,f=r.top,p=r.blur,m=r.color,g=r.opacity,v=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===s&&(v=t.drawGradient("vertical",a,o,l,c,null,u,null));var y=t.drawRect();1===e.config.xaxis.crosshairs.width&&(y=t.drawLine());var x=e.globals.gridHeight;(!b.isNumber(x)||x<0)&&(x=0);var _=e.config.xaxis.crosshairs.width;(!b.isNumber(_)||_<0)&&(_=0),y.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:x,width:_,height:x,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&&(y=n.dropShadow(y,{left:h,top:f,blur:p,color:m,opacity:g})),e.globals.dom.elGraphical.add(y)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new Sn(this.ctx),n=e.config.yaxis[0].crosshairs,i=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var r=t.drawLine(-i,0,e.globals.gridWidth+i,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);r.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(r)}var s=t.drawLine(-i,0,e.globals.gridWidth+i,0,n.stroke.color,0,0);s.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(s)}}]),e}(),si=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,n=this.w,i=n.config;if(0!==i.responsive.length){var r=i.responsive.slice();r.sort((function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0})).reverse();var s=new Rn({}),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r[0].breakpoint,a=window.innerWidth>0?window.innerWidth:screen.width;if(a>i){var o=b.clone(n.globals.initialConfig);o.series=b.clone(n.config.series);var l=An.extendArrayProps(s,o,n);e=b.extend(l,e),e=b.extend(n.config,e),t.overrideResponsiveOptions(e)}else for(var c=0;c<r.length;c++)a<r[c].breakpoint&&(e=An.extendArrayProps(s,r[c].options,n),e=b.extend(n.config,e),t.overrideResponsiveOptions(e))};if(e){var o=An.extendArrayProps(s,e,n);o=b.extend(n.config,o),a(o=b.extend(o,e))}else a({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new Rn(e).init({responsiveOverride:!0});this.w.config=t}}]),e}(),ai=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return r(e,[{key:"checkHeatmapDistributed",value:function(){var e=this.w.config,t=e.chart,n=e.plotOptions;return"treemap"===t.type&&n.treemap&&n.treemap.distributed||"heatmap"===t.type&&n.heatmap&&n.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var e=this.w.config,t=e.chart,n=e.plotOptions;return n.bar&&n.bar.distributed&&("bar"===t.type||"rangeBar"===t.type)}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this.w,t=new b;e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode));var n=m(e.config.colors||e.config.fill.colors||[]);e.globals.colors=this.getColors(n),this.applySeriesColors(e.globals.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.globals.series,t));var i=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],i),this.applyDataLabelsColors(i),this.applyRadarPolygonsColors(),this.applyMarkersColors(i)}},{key:"getColors",value:function(e){var t=this,n=this.w;return e&&0!==e.length?Array.isArray(e)&&e.length>0&&"function"==typeof e[0]?(this.isColorFn=!0,n.config.series.map((function(i,r){var s=e[r]||e[0];return"function"==typeof s?s({value:n.globals.axisCharts?n.globals.series[r][0]||0:n.globals.series[r],seriesIndex:r,dataPointIndex:r,w:t.w}):s}))):e:this.predefined()}},{key:"applySeriesColors",value:function(e,t){e.forEach((function(e,n){e&&(t[n]=e)}))}},{key:"getMonochromeColors",value:function(e,t,n){var i=e.color,r=e.shadeIntensity,s=e.shadeTo,a=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,o=1/(a/r),l=0;return Array.from({length:a},(function(){var e="dark"===s?n.shadeColor(-1*l,i):n.shadeColor(l,i);return l+=o,e}))}},{key:"applyColorTypes",value:function(e,t){var n=this,i=this.w;e.forEach((function(e){i.globals[e].colors=void 0===i.config[e].colors?n.isColorFn?i.config.colors:t:i.config[e].colors.slice(),n.pushExtraColors(i.globals[e].colors)}))}},{key:"applyDataLabelsColors",value:function(e){var t=this.w;t.globals.dataLabels.style.colors=void 0===t.config.dataLabels.style.colors?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var e=this.w;e.globals.radarPolygons.fill.colors=void 0===e.config.plotOptions.radar.polygons.fill.colors?["dark"===e.config.theme.mode?"#424242":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(e){var t=this.w;t.globals.markers.colors=void 0===t.config.markers.colors?e:t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.w,r=t||i.globals.series.length;if(null===n&&(n=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap&&i.config.plotOptions.heatmap.colorScale.inverse),n&&i.globals.series.length&&(r=i.globals.series[i.globals.maxValsInArrayIndex].length*i.globals.series.length),e.length<r)for(var s=r-e.length,a=0;a<s;a++)e.push(e[a])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode,n="dark"===t?"palette4":"light"===t?"palette1":e.theme.palette||"palette1",i="dark"===t?"#f6f7f8":"light"===t?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=i,e.theme.palette=n,e}},{key:"predefined",value:function(){var e={palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"],palette3:["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"],palette4:["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"],palette5:["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],default:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]};return e[this.w.config.theme.palette]||e.default}}]),e}(),oi=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,n="title"===e?t.config.title:t.config.subtitle,i=t.globals.svgWidth/2,r=n.offsetY,s="middle";if("left"===n.align?(i=10,s="start"):"right"===n.align&&(i=t.globals.svgWidth-10,s="end"),i+=n.offsetX,r=r+parseInt(n.style.fontSize,10)+n.margin/2,void 0!==n.text){var a=new Sn(this.ctx).drawText({x:i,y:r,text:n.text,textAnchor:s,fontSize:n.style.fontSize,fontFamily:n.style.fontFamily,fontWeight:n.style.fontWeight,foreColor:n.style.color,opacity:1});a.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(a)}}}]),e}(),li=function(){function e(t){n(this,e),this.w=t.w,this.dCtx=t}return r(e,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,n=0,i=0,r="title"===e?t.config.title.floating:t.config.subtitle.floating,s=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==s&&!r){var a=s.getBoundingClientRect();n=a.width,i=t.globals.axisCharts?a.height+5:a.height}return{width:n,height:i}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var n=Object.assign({},b.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:n.x,y:n.y,height:n.height,width:0===n.height?0:n.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.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(r,s){r.data.forEach((function(r,a){var o;o=t.globals.series[s][a],i=t.config.dataLabels.formatter(o,{ctx:e.dCtx.ctx,seriesIndex:s,dataPointIndex:a,w:t}),n.push(i)}))}));var i=b.getLargestStringFromArr(n),r=new Sn(this.dCtx.ctx),s=t.config.dataLabels.style,a=r.getTextRects(i,parseInt(s.fontSize),s.fontFamily);return{width:1.05*a.width,height:a.height}}},{key:"getLargestStringFromMultiArr",value:function(e,t){var n=e;if(this.w.globals.isMultiLineX){var i=t.map((function(e,t){return Array.isArray(e)?e.length:1})),r=Math.max.apply(Math,m(i));n=t[i.indexOf(r)]}return n}}]),e}(),ci=function(){function e(t){n(this,e),this.w=t.w,this.dCtx=t}return r(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 i=this.getxAxisTimeScaleLabelsCoords();e={width:i.width,height:i.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 r=t.globals.xLabelFormatter,s=b.getLargestStringFromArr(n),a=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,n);t.globals.isBarHorizontal&&(a=s=t.globals.yAxisScale[0].result.reduce((function(e,t){return e.length>t.length?e:t}),0));var o=new Dn(this.dCtx.ctx),l=s;s=o.xLabelFormat(r,s,l,{i:void 0,dateFormatter:new Cn(this.dCtx.ctx).formatDate,w:t}),a=o.xLabelFormat(r,a,l,{i:void 0,dateFormatter:new Cn(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===s||""===String(s).trim())&&(a=s="1");var c=new Sn(this.dCtx.ctx),u=c.getTextRects(s,t.config.xaxis.labels.style.fontSize),d=u;if(s!==a&&(d=c.getTextRects(a,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(s),s!==a&&(d=h(a)),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,i=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,r=t.globals.groups.map((function(e){return e.title})),s=b.getLargestStringFromArr(r),a=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,r),o=new Sn(this.dCtx.ctx),l=o.getTextRects(s,i),c=l;return s!==a&&(c=o.getTextRects(a,i)),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 i=new Sn(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=i.width,n=i.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})),i=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 Sn(this.dCtx.ctx).getTextRects(i,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,i=n.globals,r=n.config,s=r.xaxis.type,a=e.width;i.skipLastTimelinelabel=!1,i.skipFirstTimelinelabel=!1;var o=n.config.yaxis[0].opposite&&n.globals.isBarHorizontal,l=function(e,o){r.yaxis.length>1&&function(e){return-1!==i.collapsedSeriesIndices.indexOf(e)}(o)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var o=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+a/1.75-t.dCtx.yAxisWidthRight,c=o.position-a/1.75+t.dCtx.yAxisWidthLeft,u="right"===n.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>i.svgWidth-i.translateX-u&&(i.skipLastTimelinelabel=!0),c<-(e.show&&!e.floating||"bar"!==r.chart.type&&"candlestick"!==r.chart.type&&"rangeBar"!==r.chart.type&&"boxPlot"!==r.chart.type?10:a/1.75)&&(i.skipFirstTimelinelabel=!0)}else"datetime"===s?t.dCtx.gridPad.right<a&&!i.rotateXLabels&&(i.skipLastTimelinelabel=!0):"datetime"!==s&&t.dCtx.gridPad.right<a/2-t.dCtx.yAxisWidthRight&&!i.rotateXLabels&&!n.config.xaxis.labels.trim&&(t.dCtx.xPadRight=a/2+1)}(e)};r.yaxis.forEach((function(e,n){o?(t.dCtx.gridPad.left<a&&(t.dCtx.xPadLeft=a/2+1),t.dCtx.xPadRight=a/2+1):l(e,n)}))}}]),e}(),ui=function(){function e(t){n(this,e),this.w=t.w,this.dCtx=t}return r(e,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,n=[],i=10,r=new En(this.dCtx.ctx);return t.config.yaxis.map((function(s,a){var o={seriesIndex:a,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[a],c=0;if(!r.isYAxisHidden(a)&&s.labels.show&&void 0!==s.labels.minWidth&&(c=s.labels.minWidth),!r.isYAxisHidden(a)&&s.labels.show&&l.result.length){var u=t.globals.yLabelFormatters[a],d=l.niceMin===Number.MIN_VALUE?0:l.niceMin,h=l.result.reduce((function(e,t){var n,i;return(null===(n=String(u(e,o)))||void 0===n?void 0:n.length)>(null===(i=String(u(t,o)))||void 0===i?void 0:i.length)?e:t}),d),f=h=u(h,o);if(void 0!==h&&0!==h.length||(h=l.niceMax),t.globals.isBarHorizontal){i=0;var p=t.globals.labels.slice();h=b.getLargestStringFromArr(p),h=u(h,{seriesIndex:a,dataPointIndex:-1,w:t}),f=e.dCtx.dimHelpers.getLargestStringFromMultiArr(h,p)}var m=new Sn(e.dCtx.ctx),g="rotate(".concat(s.labels.rotate," 0 0)"),v=m.getTextRects(h,s.labels.style.fontSize,s.labels.style.fontFamily,g,!1),y=v;h!==f&&(y=m.getTextRects(f,s.labels.style.fontSize,s.labels.style.fontFamily,g,!1)),n.push({width:(c>y.width||c>v.width?c:y.width>v.width?y.width:v.width)+i,height:y.height>v.height?y.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,i){if(t.show&&void 0!==t.title.text){var r=new Sn(e.dCtx.ctx),s="rotate(".concat(t.title.rotate," 0 0)"),a=r.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,s,!1);n.push({width:a.width,height:a.height})}else n.push({width:0,height:0})})),n}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,n=0,i=0,r=e.globals.yAxisScale.length>1?10:0,s=new En(this.dCtx.ctx),a=function(a,o){var l=e.config.yaxis[o].floating,c=0;a.width>0&&!l?(c=a.width+r,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(o)&&(c=c-a.width-r)):c=l||s.isYAxisHidden(o)?0:5,e.config.yaxis[o].opposite?i+=c:n+=c,t+=c};return e.globals.yLabelsCoords.map((function(e,t){a(e,t)})),e.globals.yTitleCoords.map((function(e,t){a(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=i,t}}]),e}(),di=function(){function e(t){n(this,e),this.w=t.w,this.dCtx=t}return r(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,n=t.config,i=t.globals;if(i.noData||i.collapsedSeries.length+i.ancillaryCollapsedSeries.length===n.series.length)return 0;var r=function(e){return["bar","rangeBar","candlestick","boxPlot"].includes(e)},s=n.chart.type,a=0,o=r(s)?n.series.length:1;i.comboBarCount>0&&(o=i.comboBarCount),i.collapsedSeries.forEach((function(e){r(e.type)&&(o-=1)})),n.chart.stacked&&(o=1);var l=r(s)||i.comboBarCount>0,c=Math.abs(i.initialMaxX-i.initialMinX);if(l&&i.isXNumeric&&!i.isBarHorizontal&&o>0&&0!==c){c<=3&&(c=i.dataPoints);var u=c/e,d=i.minXDiff&&i.minXDiff/u>0?i.minXDiff/u:0;d>e/2&&(d/=2),(a=d*parseInt(n.plotOptions.bar.columnWidth,10)/100)<1&&(a=1),i.barPadForNumericAxis=a}return a}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,n=t.globals,i=this.dCtx.isSparkline||!n.axisCharts?0:10;["title","subtitle"].forEach((function(r){void 0!==t.config[r].text?i+=t.config[r].margin:i+=e.dCtx.isSparkline||!n.axisCharts?0:5})),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||n.axisCharts||(i+=10);var r=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),s=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight-=r.height+s.height+i,n.translateY+=r.height+s.height+i}},{key:"setGridXPosForDualYAxis",value:function(e,t){var n=this.w,i=new En(this.dCtx.ctx);n.config.yaxis.forEach((function(r,s){-1!==n.globals.ignoreYAxisIndexes.indexOf(s)||r.floating||i.isYAxisHidden(s)||(r.opposite&&(n.globals.translateX-=t[s].width+e[s].width+parseInt(r.labels.style.fontSize,10)/1.2+12),n.globals.translateX<2&&(n.globals.translateX=2))}))}}]),e}(),hi=function(){function e(t){n(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 li(this),this.dimYAxis=new ui(this),this.dimXAxis=new ci(this),this.dimGrid=new di(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return r(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 i=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,m(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=p(t,2),i=n[0],r=n[1];e.gridPad[i]=Math.max(r,e.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(i/2,this.gridPad.top),this.gridPad.bottom=Math.max(i/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 r=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*r,n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(r>0?r:0),n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,n=t.globals,i=this.dimYAxis.getyAxisLabelsCoords(),r=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:i[n].width,index:n}),t.globals.yTitleCoords.push({width:r[n].width,index:n})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var s=this.dimXAxis.getxAxisLabelsCoords(),a=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(s,o,a),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-o.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-s.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight;var u=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,c=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,c=0,u=0),this.isSparkline||"treemap"===t.config.chart.type||this.dimXAxis.additionalPaddingXLabels(s);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(r,i),new ei(this.ctx).setYAxisXPosition(i,r)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=e.config,i=0;e.config.legend.show&&!e.config.legend.floating&&(i=20);var r="pie"===n.chart.type||"polarArea"===n.chart.type||"donut"===n.chart.type?"pie":"radialBar",s=n.plotOptions[r].offsetY,a=n.plotOptions[r].offsetX;if(!n.legend.show||n.legend.floating){t.gridHeight=t.svgHeight;var o=t.dom.elWrap.getBoundingClientRect().width;return t.gridWidth=Math.min(o,t.gridHeight),t.translateY=s,void(t.translateX=a+(t.svgWidth-t.gridWidth)/2)}switch(n.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=s-10,t.translateX=a+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+s+10,t.translateX=a+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-i,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=s,t.translateX=a+this.lgRect.width+i;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-i-5,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=s,t.translateX=a+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,n){var i=this.w,r=i.globals.hasXaxisGroups?2:1,s=n.height+e.height+t.height,a=i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO,o=i.globals.rotateXLabels?22:10,l=i.globals.rotateXLabels&&"bottom"===i.config.legend.position?10:0;this.xAxisHeight=s*a+r*o+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight),i.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,u=0;i.config.yaxis.forEach((function(e){c+=e.labels.minWidth,u+=e.labels.maxWidth})),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>u&&(this.yAxisWidth=u)}}]),e}(),fi=function(){function e(t){n(this,e),this.w=t.w,this.lgCtx=t}return r(e,[{key:"getLegendStyles",value:function(){var e,t,n,i=document.createElement("style");i.setAttribute("type","text/css");var r=(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;r&&i.setAttribute("nonce",r);var s=document.createTextNode("\n      .apexcharts-flip-y {\n        transform: scaleY(-1) translateY(-100%);\n        transform-origin: top;\n        transform-box: fill-box;\n      }\n      .apexcharts-flip-x {\n        transform: scaleX(-1);\n        transform-origin: center;\n        transform-box: fill-box;\n      }\n      .apexcharts-legend {\n        display: flex;\n        overflow: auto;\n        padding: 0 10px;\n      }\n      .apexcharts-legend.apexcharts-legend-group-horizontal {\n        flex-direction: column;\n      }\n      .apexcharts-legend-group {\n        display: flex;\n      }\n      .apexcharts-legend-group-vertical {\n        flex-direction: column-reverse;\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        align-items: 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        align-items: 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        align-items: 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      }\n\n    ");return i.appendChild(s),i}},{key:"getLegendDimensions",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var n=this,i=this.w;if(i.globals.axisCharts||"radialBar"===i.config.chart.type){i.globals.resized=!0;var r=null,s=null;i.globals.risingSeries=[],i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),s=parseInt(r.getAttribute("data:realIndex"),10)):(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),s=parseInt(r.getAttribute("rel"),10)-1),t?[{cs:i.globals.collapsedSeries,csi:i.globals.collapsedSeriesIndices},{cs:i.globals.ancillaryCollapsedSeries,csi:i.globals.ancillaryCollapsedSeriesIndices}].forEach((function(e){n.riseCollapsedSeries(e.cs,e.csi,s)})):this.hideSeries({seriesEl:r,realIndex:s})}else{var a=i.globals.dom.Paper.findOne(" .apexcharts-series[rel='".concat(e+1,"'] path")),o=i.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var l=i.config.plotOptions.pie.donut.labels;new Sn(this.lgCtx.ctx).pathMouseDown(a,null),this.lgCtx.ctx.pie.printDataLabelsInner(a.node,l)}a.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(e){var t=e.realIndex,n=this.w,i=n.globals,r=b.clone(n.config.series);if(i.axisCharts){var s=n.config.yaxis[i.seriesYAxisReverseMap[t]],a={index:t,data:r[t].data.slice(),type:r[t].type||n.config.chart.type};if(s&&s.show&&s.showAlways)i.ancillaryCollapsedSeriesIndices.indexOf(t)<0&&(i.ancillaryCollapsedSeries.push(a),i.ancillaryCollapsedSeriesIndices.push(t));else if(i.collapsedSeriesIndices.indexOf(t)<0){i.collapsedSeries.push(a),i.collapsedSeriesIndices.push(t);var o=i.risingSeries.indexOf(t);i.risingSeries.splice(o,1)}}else i.collapsedSeries.push({index:t,data:r[t]}),i.collapsedSeriesIndices.push(t);return i.allSeriesCollapsed=i.collapsedSeries.length+i.ancillaryCollapsedSeries.length===n.config.series.length,this._getSeriesBasedOnCollapsedState(r)}},{key:"hideSeries",value:function(e){for(var t=e.seriesEl,n=e.realIndex,i=this.w,r=this.getSeriesAfterCollapsing({realIndex:n}),s=t.childNodes,a=0;a<s.length;a++)s[a].classList.contains("apexcharts-series-markers-wrap")&&(s[a].classList.contains("apexcharts-hide")?s[a].classList.remove("apexcharts-hide"):s[a].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,n){var i=this.w,r=b.clone(i.config.series);if(e.length>0){for(var s=0;s<e.length;s++)e[s].index===n&&(i.globals.axisCharts?r[n].data=e[s].data.slice():r[n]=e[s].data,"number"!=typeof r[n]&&(r[n].hidden=!1),e.splice(s,1),t.splice(s,1),i.globals.risingSeries.push(n));r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w,n=0;return t.globals.axisCharts?e.forEach((function(i,r){t.globals.collapsedSeriesIndices.indexOf(r)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(r)<0||(e[r].data=[],n++)})):e.forEach((function(i,r){!t.globals.collapsedSeriesIndices.indexOf(r)<0&&(e[r]=0,n++)})),t.globals.allSeriesCollapsed=n===e.length,e}}]),e}(),pi=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new fi(this)}return r(e,[{key:"init",value:function(){var e=this.w,t=e.globals,n=e.config,i=n.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1;if(this.legendHelpers.appendToForeignObject(),(i||!t.axisCharts)&&n.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),"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,i=this.w,r=document.createElement("span");r.classList.add("apexcharts-legend-marker");var s=i.config.legend.markers.shape||i.config.markers.shape,a=s;Array.isArray(s)&&(a=s[t]);var o=Array.isArray(i.config.legend.markers.size)?parseFloat(i.config.legend.markers.size[t]):parseFloat(i.config.legend.markers.size),l=Array.isArray(i.config.legend.markers.offsetX)?parseFloat(i.config.legend.markers.offsetX[t]):parseFloat(i.config.legend.markers.offsetX),c=Array.isArray(i.config.legend.markers.offsetY)?parseFloat(i.config.legend.markers.offsetY[t]):parseFloat(i.config.legend.markers.offsetY),u=Array.isArray(i.config.legend.markers.strokeWidth)?parseFloat(i.config.legend.markers.strokeWidth[t]):parseFloat(i.config.legend.markers.strokeWidth),d=r.style;if(d.height=2*(o+u)+"px",d.width=2*(o+u)+"px",d.left=l+"px",d.top=c+"px",i.config.legend.markers.customHTML)d.background="transparent",d.color=n[t],Array.isArray(i.config.legend.markers.customHTML)?i.config.legend.markers.customHTML[t]&&(r.innerHTML=i.config.legend.markers.customHTML[t]()):r.innerHTML=i.config.legend.markers.customHTML();else{var f=new Wn(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(a),seriesIndex:t,strokeWidth:u,size:o}),p=window.SVG().addTo(r).size("100%","100%"),m=new Sn(this.ctx).drawMarker(0,0,h(h({},f),{},{pointFillColor:Array.isArray(n)?n[t]:f.pointFillColor,shape:a}));i.globals.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").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 r}},{key:"drawLegends",value:function(){var e=this,t=this,n=this.w,i=n.config.legend.fontFamily,r=n.globals.seriesNames,s=n.config.legend.markers.fillColors?n.config.legend.markers.fillColors.slice():n.globals.colors.slice();if("heatmap"===n.config.chart.type){var a=n.config.plotOptions.heatmap.colorScale.ranges;r=a.map((function(e){return e.name?e.name:e.from+" - "+e.to})),s=a.map((function(e){return e.color}))}else this.isBarsDistributed&&(r=n.globals.labels.slice());n.config.legend.customLegendItems.length&&(r=n.config.legend.customLegendItems);var o=n.globals.legendFormatter,l=n.config.legend.inverseOrder,c=[];n.globals.seriesGroups.length>1&&n.config.legend.clusterGroupedSeries&&n.globals.seriesGroups.forEach((function(e,t){c[t]=document.createElement("div"),c[t].classList.add("apexcharts-legend-group","apexcharts-legend-group-".concat(t)),"horizontal"===n.config.legend.clusterGroupedSeriesOrientation?n.globals.dom.elLegendWrap.classList.add("apexcharts-legend-group-horizontal"):c[t].classList.add("apexcharts-legend-group-vertical")}));for(var u=function(t){var a,l=o(r[t],{seriesIndex:t,w:n}),u=!1,d=!1;if(n.globals.collapsedSeries.length>0)for(var h=0;h<n.globals.collapsedSeries.length;h++)n.globals.collapsedSeries[h].index===t&&(u=!0);if(n.globals.ancillaryCollapsedSeriesIndices.length>0)for(var f=0;f<n.globals.ancillaryCollapsedSeriesIndices.length;f++)n.globals.ancillaryCollapsedSeriesIndices[f]===t&&(d=!0);var p=e.createLegendMarker({i:t,fillcolor:s});Sn.setAttrs(p,{rel:t+1,"data:collapsed":u||d}),(u||d)&&p.classList.add("apexcharts-inactive-legend");var m=document.createElement("div"),g=document.createElement("span");g.classList.add("apexcharts-legend-text"),g.innerHTML=Array.isArray(l)?l.join(" "):l;var v=n.config.legend.labels.useSeriesColors?n.globals.colors[t]:Array.isArray(n.config.legend.labels.colors)?null===(a=n.config.legend.labels.colors)||void 0===a?void 0:a[t]:n.config.legend.labels.colors;v||(v=n.config.chart.foreColor),g.style.color=v,g.style.fontSize=parseFloat(n.config.legend.fontSize)+"px",g.style.fontWeight=n.config.legend.fontWeight,g.style.fontFamily=i||n.config.chart.fontFamily,Sn.setAttrs(g,{rel:t+1,i:t,"data:default-text":encodeURIComponent(l),"data:collapsed":u||d}),m.appendChild(p),m.appendChild(g);var y=new An(e.ctx);n.config.legend.showForZeroSeries||0===y.getSeriesTotalByIndex(t)&&y.seriesHaveSameValues(t)&&!y.isSeriesNull(t)&&-1===n.globals.collapsedSeriesIndices.indexOf(t)&&-1===n.globals.ancillaryCollapsedSeriesIndices.indexOf(t)&&m.classList.add("apexcharts-hidden-zero-series"),n.config.legend.showForNullSeries||y.isSeriesNull(t)&&-1===n.globals.collapsedSeriesIndices.indexOf(t)&&-1===n.globals.ancillaryCollapsedSeriesIndices.indexOf(t)&&m.classList.add("apexcharts-hidden-null-series"),c.length?n.globals.seriesGroups.forEach((function(e,i){var r;e.includes(null===(r=n.config.series[t])||void 0===r?void 0:r.name)&&(n.globals.dom.elLegendWrap.appendChild(c[i]),c[i].appendChild(m))})):n.globals.dom.elLegendWrap.appendChild(m),n.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(n.config.legend.horizontalAlign)),n.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+n.config.legend.position),m.classList.add("apexcharts-legend-series"),m.style.margin="".concat(n.config.legend.itemMargin.vertical,"px ").concat(n.config.legend.itemMargin.horizontal,"px"),n.globals.dom.elLegendWrap.style.width=n.config.legend.width?n.config.legend.width+"px":"",n.globals.dom.elLegendWrap.style.height=n.config.legend.height?n.config.legend.height+"px":"",Sn.setAttrs(m,{rel:t+1,seriesName:b.escapeString(r[t]),"data:collapsed":u||d}),(u||d)&&m.classList.add("apexcharts-inactive-legend"),n.config.legend.onItemClick.toggleDataSeries||m.classList.add("apexcharts-no-click")},d=l?r.length-1:0;l?d>=0:d<=r.length-1;l?d--:d++)u(d);n.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),n.config.legend.onItemHover.highlightDataSeries&&0===n.config.legend.customLegendItems.length&&(n.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),n.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var n=this.w,i=n.globals.dom.elLegendWrap,r=i.clientHeight,s=0,a=0;if("bottom"===n.config.legend.position)a=n.globals.svgHeight-Math.min(r,n.globals.svgHeight/2)-5;else if("top"===n.config.legend.position){var o=new hi(this.ctx),l=o.dimHelpers.getTitleSubtitleCoords("title").height,c=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;a=(l>0?l-10:0)+(c>0?c-10:0)}i.style.position="absolute",s=s+e+n.config.legend.offsetX,a=a+t+n.config.legend.offsetY,i.style.left=s+"px",i.style.top=a+"px","right"===n.config.legend.position&&(i.style.left="auto",i.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach((function(e){i.style[e]&&(i.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=new hi(this.ctx),n=t.dimHelpers.getTitleSubtitleCoords("title"),i=t.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;"top"===e.config.legend.position&&(r=n.height+i.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{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 i=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,i,this.w]),new $n(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&n&&new $n(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,i="true"===e.target.getAttribute("data:collapsed"),r=this.w.config.chart.events.legendClick;"function"==typeof r&&r(this.ctx,n,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,n,this.w]);var s=this.w.config.legend.markers.onClick;"function"==typeof s&&e.target.classList.contains("apexcharts-legend-marker")&&(s(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,i)}}}]),e}(),mi=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return r(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,n=function(){return document.createElement("div")},i=n();if(i.setAttribute("class","apexcharts-toolbar"),i.style.top=t.config.chart.toolbar.offsetY+"px",i.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(i),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 r=0;r<this.t.customIcons.length;r++)this.elCustomIcons.push(n());var s=[],a=function(n,i,r){var a=n.toLowerCase();e.t[a]&&t.config.chart.zoom.enabled&&s.push({el:i,icon:"string"==typeof e.t[a]?e.t[a]:r,title:e.localeValues[n],class:"apexcharts-".concat(a,"-icon")})};a("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),a("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var o=function(n){e.t[n]&&t.config.chart[n].enabled&&s.push({el:"zoom"===n?e.elZoom:e.elSelection,icon:"string"==typeof e.t[n]?e.t[n]:"zoom"===n?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n    <path d="M0 0h24v24H0V0z" fill="none"/>\n    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:e.localeValues["zoom"===n?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(n,"-icon")})};o("zoom"),o("selection"),this.t.pan&&t.config.chart.zoom.enabled&&s.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <defs>\n        <path d="M0 0h24v24H0z" id="a"/>\n    </defs>\n    <clipPath id="b">\n        <use overflow="visible" xlink:href="#a"/>\n    </clipPath>\n    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),a("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n    <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&s.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)s.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});s.forEach((function(e,t){e.index&&b.moveIndexInArray(s,t,e.index)}));for(var c=0;c<s.length;c++)Sn.setAttrs(s[c].el,{class:s[c].class,title:s[c].title}),s[c].el.innerHTML=s[c].icon,i.appendChild(s[c].el);this._createHamburgerMenu(i),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),Sn.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],n=0;n<t.length;n++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[n].innerHTML=t[n].title,Sn.setAttrs(this.elMenuItems[n],{class:"apexcharts-menu-item ".concat(t[n].name),title:t[n].title}),this.elMenu.appendChild(this.elMenuItems[n])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach((function(t){t.classList.contains("exportSVG")?t.addEventListener("click",e.handleDownload.bind(e,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",e.handleDownload.bind(e,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",e.handleDownload.bind(e,"csv"))}));for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls();var n="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,i="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[i]=!t.w.globals[i],n.classList.contains(t.ctx.toolbar.selectedClass)?n.classList.remove(t.ctx.toolbar.selectedClass):n.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,n="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),n&&n.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach((function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(t){t&&t.classList.remove(e.selectedClass)}))}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,n=(this.minX+t)/2,i=(this.maxX+t)/2,r=this._getNewMinXMaxX(n,i);e.globals.disableZoomIn||this.zoomUpdateOptions(r.minX,r.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,n=this.minX-(t-this.minX),i=this.maxX-(t-this.maxX),r=this._getNewMinXMaxX(n,i);e.globals.disableZoomOut||this.zoomUpdateOptions(r.minX,r.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var n=this.w.config.xaxis.convertedCatToNumeric;return{minX:n?Math.floor(e):e,maxX:n?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var n=this.w;if(void 0!==e||void 0!==t){if(!(n.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=n.globals.dataPoints),t-e<2))){var i={min:e,max:t},r=this.getBeforeZoomRange(i);r&&(i=r.xaxis);var s={xaxis:i},a=b.clone(n.globals.initialConfig.yaxis);n.config.chart.group||(s.yaxis=a),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(s,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(i,a)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var n=null;return"function"==typeof this.ev.beforeZoom&&(n=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),n}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout((function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(e){var t=this.w,n=new Gn(this.ctx);switch(e){case"svg":n.exportToSVG(this.ctx);break;case"png":n.exportToPng(this.ctx);break;case"csv":n.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach((function(e){var t=e.w;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){var n=t.config.chart.events.beforeResetZoom(e,t);n&&e.updateHelpers.revertDefaultAxisMinMax(n)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max}),t.globals.zoomed=!1;var i=e.ctx.series.emptyCollapsedSeries(b.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(i,t.config.chart.animations.dynamicAnimation.enabled)}))}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),e}(),gi=function(e){c(i,e);var t=a(i);function i(e){var r;return n(this,i),(r=t.call(this,e)).ctx=e,r.w=e.w,r.dragged=!1,r.graphics=new Sn(r.ctx),r.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],r.clientX=0,r.clientY=0,r.startX=0,r.endX=0,r.dragX=0,r.startY=0,r.endY=0,r.dragY=0,r.moveDirection="none",r.debounceTimer=null,r.debounceDelay=100,r.wheelDelay=400,r}return r(i,[{key:"init",value:function(e){var t=this,n=e.xyRatios,i=this.w,r=this;this.xyRatios=n,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=i.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new we(0,0,i.globals.gridWidth,i.globals.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),i.globals.dom.Paper.add(this.zoomRect),i.globals.dom.Paper.add(this.selectionRect),"x"===i.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):"y"===i.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:i.globals.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=i.globals.dom.baseEl.querySelector("".concat(i.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach((function(e){t.hoverArea.addEventListener(e,r.svgMouseEvents.bind(r,n),{capture:!1,passive:!0})})),i.config.chart.zoom.enabled&&i.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",r.mouseWheelEvent.bind(r),{capture:!1,passive:!1})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(e,t){var n=this.w,i=this.ctx.toolbar,r=n.globals.zoomEnabled?n.config.chart.zoom.type:n.config.chart.selection.type,s=n.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,i.enableZoomPanFromToolbar("pan"===s?"zoom":"pan")):this.shiftWasPressed&&(i.enableZoomPanFromToolbar(s),this.shiftWasPressed=!1),t.target){var a,o=t.target.classList;if(t.target.parentNode&&null!==t.target.parentNode&&(a=t.target.parentNode.classList),!(o.contains("apexcharts-legend-marker")||o.contains("apexcharts-legend-text")||a&&a.contains("apexcharts-toolbar"))){if(this.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,this.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which||"touchstart"===t.type){var l=this.gridRect.getBoundingClientRect();this.startX=this.clientX-l.left-n.globals.barPadForNumericAxis,this.startY=this.clientY-l.top,this.dragged=!1,this.w.globals.mousedown=!0}("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(this.dragged=!0,n.globals.panEnabled?(n.globals.selection=null,this.w.globals.mousedown&&this.panDragging({context:this,zoomtype:r,xyRatios:e})):(this.w.globals.mousedown&&n.globals.zoomEnabled||this.w.globals.mousedown&&n.globals.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:r}))),"mouseup"!==t.type&&"touchend"!==t.type&&"mouseleave"!==t.type||this.handleMouseUp({zoomtype:r}),this.makeSelectionRectDraggable()}}}},{key:"handleMouseUp",value:function(e){var t,n=e.zoomtype,i=e.isResized,r=this.w,s=null===(t=this.gridRect)||void 0===t?void 0:t.getBoundingClientRect();s&&(this.w.globals.mousedown||i)&&(this.endX=this.clientX-s.left-r.globals.barPadForNumericAxis,this.endY=this.clientY-s.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(r.globals.zoomEnabled||r.globals.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:n}),r.globals.panEnabled&&r.config.xaxis.convertedCatToNumeric&&this.delayedPanScrolled()),r.globals.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.globals.mousedown=!1}},{key:"mouseWheelEvent",value:function(e){var t=this,n=this.w;e.preventDefault();var i=Date.now();i-n.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),n.globals.lastWheelExecution=i),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){i-n.globals.lastWheelExecution>t.wheelDelay&&(t.executeMouseWheelZoom(e),n.globals.lastWheelExecution=i)}),this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(e){var t,n=this.w;this.minX=n.globals.isRangeBar?n.globals.minY:n.globals.minX,this.maxX=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;var i=null===(t=this.gridRect)||void 0===t?void 0:t.getBoundingClientRect();if(i){var r,s,a,o=(e.clientX-i.left)/i.width,l=this.minX,c=this.maxX,u=c-l;if(e.deltaY<0){var d=l+o*u;s=d-(r=.5*u)/2,a=d+r/2}else s=l-(r=1.5*u)/2,a=c+r/2;if(!n.globals.isRangeBar){s=Math.max(s,n.globals.initialMinX),a=Math.min(a,n.globals.initialMaxX);var h=.01*(n.globals.initialMaxX-n.globals.initialMinX);if(a-s<h){var f=(s+a)/2;s=f-h/2,a=f+h/2}}var p=this._getNewMinXMaxX(s,a);isNaN(p.minX)||isNaN(p.maxX)||this.zoomUpdateOptions(p.minX,p.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var e=this,t=this.w;if(this.selectionRect){var n=this.selectionRect.node.getBoundingClientRect();n.width>0&&n.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:function(){},updateRot:function(){},createHandle:function(e,t,n,i,r){return"l"===r||"r"===r?e.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):e.circle(0)},updateHandle:function(e,t){return e.center(t[0],t[1])}}).resize().on("resize",(function(){var n=t.globals.zoomEnabled?t.config.chart.zoom.type:t.config.chart.selection.type;e.handleMouseUp({zoomtype:n,isResized:!0})})))}}},{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(h(h({},e.globals.selection),{},{translateX:e.globals.translateX,translateY:e.globals.translateY}));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,i=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,i=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);var r={x:n,y:0,width:i,height:e.globals.gridHeight,translateX:e.globals.translateX,translateY:e.globals.translateY,selectionEnabled:!0};this.drawSelectionRect(r),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,i=e.width,r=e.height,s=e.translateX,a=void 0===s?0:s,o=e.translateY,l=void 0===o?0:o,c=this.w,u=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var h={transform:"translate("+a+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(i<0&&(i=1),u.attr({x:t,y:n,width:i,height:r,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}),Sn.setAttrs(u.node,h)),c.globals.selectionEnabled&&(d.attr({x:t,y:n,width:i>0?i:0,height:r>0?r: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}),Sn.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,i=this.w,r=t,s=this.gridRect.getBoundingClientRect(),a=r.startX-1,o=r.startY,l=!1,c=!1,u=r.clientX-s.left-i.globals.barPadForNumericAxis,d=r.clientY-s.top,f=u-a,p=d-o,m={translateX:i.globals.translateX,translateY:i.globals.translateY};return Math.abs(f+a)>i.globals.gridWidth?f=i.globals.gridWidth-a:u<0&&(f=a),a>u&&(l=!0,f=Math.abs(f)),o>d&&(c=!0,p=Math.abs(p)),m=h(h({},m="x"===n?{x:l?a-f:a,y:0,width:f,height:i.globals.gridHeight}:"y"===n?{x:0,y:c?o-p:o,width:i.globals.gridWidth,height:p}:{x:l?a-f:a,y:c?o-p:o,width:f,height:p}),{},{translateX:i.globals.translateX,translateY:i.globals.translateY}),r.drawSelectionRect(m),r.selectionDragging("resizing"),m}},{key:"selectionDragging",value:function(e,t){var n=this,i=this.w;if(t){t.preventDefault();var r=t.detail,s=r.handler,a=r.box,o=a.x,l=a.y;o<this.constraints.x&&(o=this.constraints.x),l<this.constraints.y&&(l=this.constraints.y),a.x2>this.constraints.x2&&(o=this.constraints.x2-a.w),a.y2>this.constraints.y2&&(l=this.constraints.y2-a.h),s.move(o,l);var c=this.xyRatios,u=this.selectionRect,d=0;"resizing"===e&&(d=30);var h=function(e){return parseFloat(u.node.getAttribute(e))},f={x:h("x"),y:h("y"),width:h("width"),height:h("height")};i.globals.selection=f,"function"==typeof i.config.chart.events.selection&&i.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var e,t,r,s,a=n.gridRect.getBoundingClientRect(),o=u.node.getBoundingClientRect();i.globals.isRangeBar?(e=i.globals.yAxisScale[0].niceMin+(o.left-a.left)*c.invertedYRatio,t=i.globals.yAxisScale[0].niceMin+(o.right-a.left)*c.invertedYRatio,r=0,s=1):(e=i.globals.xAxisScale.niceMin+(o.left-a.left)*c.xRatio,t=i.globals.xAxisScale.niceMin+(o.right-a.left)*c.xRatio,r=i.globals.yAxisScale[0].niceMin+(a.bottom-o.bottom)*c.yRatio[0],s=i.globals.yAxisScale[0].niceMax-(o.top-a.top)*c.yRatio[0]);var l={xaxis:{min:e,max:t},yaxis:{min:r,max:s}};i.config.chart.events.selection(n.ctx,l),i.config.chart.brush.enabled&&void 0!==i.config.chart.events.brushScrolled&&i.config.chart.events.brushScrolled(n.ctx,l)}),d))}}},{key:"selectionDrawn",value:function(e){var t,n,i=e.context,r=e.zoomtype,s=this.w,a=i,o=this.xyRatios,l=this.ctx.toolbar,c=s.globals.zoomEnabled?a.zoomRect.node.getBoundingClientRect():a.selectionRect.node.getBoundingClientRect(),u=a.gridRect.getBoundingClientRect(),d=c.left-u.left-s.globals.barPadForNumericAxis,h=c.right-u.left-s.globals.barPadForNumericAxis,f=c.top-u.top,p=c.bottom-u.top;s.globals.isRangeBar?(t=s.globals.yAxisScale[0].niceMin+d*o.invertedYRatio,n=s.globals.yAxisScale[0].niceMin+h*o.invertedYRatio):(t=s.globals.xAxisScale.niceMin+d*o.xRatio,n=s.globals.xAxisScale.niceMin+h*o.xRatio);var m=[],g=[];if(s.config.yaxis.forEach((function(e,t){var n=s.globals.seriesYAxisMap[t][0],i=s.globals.yAxisScale[t].niceMax-o.yRatio[n]*f,r=s.globals.yAxisScale[t].niceMax-o.yRatio[n]*p;m.push(i),g.push(r)})),a.dragged&&(a.dragX>10||a.dragY>10)&&t!==n)if(s.globals.zoomEnabled){var v=b.clone(s.globals.initialConfig.yaxis),y=b.clone(s.globals.initialConfig.xaxis);if(s.globals.zoomed=!0,s.config.xaxis.convertedCatToNumeric&&(t=Math.floor(t),n=Math.floor(n),t<1&&(t=1,n=s.globals.dataPoints),n-t<2&&(n=t+1)),"xy"!==r&&"x"!==r||(y={min:t,max:n}),"xy"!==r&&"y"!==r||v.forEach((function(e,t){v[t].min=g[t],v[t].max=m[t]})),l){var x=l.getBeforeZoomRange(y,v);x&&(y=x.xaxis?x.xaxis:y,v=x.yaxis?x.yaxis:v)}var _={xaxis:y};s.config.chart.group||(_.yaxis=v),a.ctx.updateHelpers._updateOptions(_,!1,a.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof s.config.chart.events.zoomed&&l.zoomCallback(y,v)}else if(s.globals.selectionEnabled){var w,k=null;w={min:t,max:n},"xy"!==r&&"y"!==r||(k=b.clone(s.config.yaxis)).forEach((function(e,t){k[t].min=g[t],k[t].max=m[t]})),s.globals.selection=a.selection,"function"==typeof s.config.chart.events.selection&&s.config.chart.events.selection(a.ctx,{xaxis:w,yaxis:k})}}},{key:"panDragging",value:function(e){var t=e.context,n=this.w,i=t;if(void 0!==n.globals.lastClientPosition.x){var r=n.globals.lastClientPosition.x-i.clientX,s=n.globals.lastClientPosition.y-i.clientY;Math.abs(r)>Math.abs(s)&&r>0?this.moveDirection="left":Math.abs(r)>Math.abs(s)&&r<0?this.moveDirection="right":Math.abs(s)>Math.abs(r)&&s>0?this.moveDirection="up":Math.abs(s)>Math.abs(r)&&s<0&&(this.moveDirection="down")}n.globals.lastClientPosition={x:i.clientX,y:i.clientY};var a=n.globals.isRangeBar?n.globals.minY:n.globals.minX,o=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;n.config.xaxis.convertedCatToNumeric||i.panScrolled(a,o)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,n=e.globals.maxX,i=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+i,n=e.globals.maxX+i):"right"===this.moveDirection&&(t=e.globals.minX-i,n=e.globals.maxX-i),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,i=this.xyRatios,r=b.clone(n.globals.initialConfig.yaxis),s=i.xRatio,a=n.globals.minX,o=n.globals.maxX;n.globals.isRangeBar&&(s=i.invertedYRatio,a=n.globals.minY,o=n.globals.maxY),"left"===this.moveDirection?(e=a+n.globals.gridWidth/15*s,t=o+n.globals.gridWidth/15*s):"right"===this.moveDirection&&(e=a-n.globals.gridWidth/15*s,t=o-n.globals.gridWidth/15*s),n.globals.isRangeBar||(e<n.globals.initialMinX||t>n.globals.initialMaxX)&&(e=a,t=o);var l={xaxis:{min:e,max:t}};n.config.chart.group||(l.yaxis=r),this.updateScrolledChart(l,e,t)}},{key:"updateScrolledChart",value:function(e,t,n){var i=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof i.config.chart.events.scrolled&&i.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:n}})}}]),i}(mi),vi=function(){function e(t){n(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return r(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,n=e.elGrid,i=e.clientX,r=e.clientY,s=this.w,a=n.getBoundingClientRect(),o=a.width,l=a.height,c=o/(s.globals.dataPoints-1),u=l/s.globals.dataPoints,d=this.hasBars();!s.globals.comboCharts&&!d||s.config.xaxis.convertedCatToNumeric||(c=o/s.globals.dataPoints);var h=i-a.left-s.globals.barPadForNumericAxis,f=r-a.top;h<0||f<0||h>o||f>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):s.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):s.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var p=Math.round(h/c),m=Math.floor(f/u);d&&!s.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(h/c),p-=1);var g=null,v=null,y=s.globals.seriesXvalues.map((function(e){return e.filter((function(e){return b.isNumber(e)}))})),x=s.globals.seriesYvalues.map((function(e){return e.filter((function(e){return b.isNumber(e)}))}));if(s.globals.isXNumeric){var _=this.ttCtx.getElGrid().getBoundingClientRect(),w=h*(_.width/o),k=f*(_.height/l);g=(v=this.closestInMultiArray(w,k,y,x)).index,p=v.j,null!==g&&s.globals.hasNullValues&&(y=s.globals.seriesXvalues[g],p=(v=this.closestInArray(w,y)).j)}return s.globals.capturedSeriesIndex=null===g?-1:g,(!p||p<1)&&(p=0),s.globals.isBarHorizontal?s.globals.capturedDataPointIndex=m:s.globals.capturedDataPointIndex=p,{capturedSeries:g,j:s.globals.isBarHorizontal?m:p,hoverX:h,hoverY:f}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,n=0,i=e.map((function(e,t){return e.length>0?t:-1})),r=0;r<i.length;r++)if(-1!==i[r]&&-1===t.globals.collapsedSeriesIndices.indexOf(r)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(r)){n=i[r];break}return n}},{key:"closestInMultiArray",value:function(e,t,n,i){for(var r,s=this.w,a=1/0,o=null,l=null,c=0;c<n.length;c++)if(r=c,-1===s.globals.collapsedSeriesIndices.indexOf(r)&&-1===s.globals.ancillaryCollapsedSeriesIndices.indexOf(r))for(var u=n[c],d=i[c],h=Math.min(u.length,d.length),f=0;f<h;f++){var p=e-u[f],m=Math.sqrt(p*p);if(!s.globals.allSeriesHasEqualX){var g=t-d[f];m=Math.sqrt(p*p+g*g)}m<a&&(a=m,o=c,l=f)}return{index:o,j:l}}},{key:"closestInArray",value:function(e,t){for(var n=t[0],i=null,r=Math.abs(e-n),s=0;s<t.length;s++){var a=Math.abs(e-t[s]);a<r&&(r=a,i=s)}return{j:i}}},{key:"isXoverlap",value:function(e){var t=[],n=this.w.globals.seriesX.filter((function(e){return void 0!==e[0]}));if(n.length>0)for(var i=0;i<n.length-1;i++)void 0!==n[i][e]&&void 0!==n[i+1][e]&&n[i][e]!==n[i+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,n=0;n<t.length-1;n++)if(t[n].data.length!==t[n+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return m(e).reduce((function(e,t){return e+t.getBBox().height}),0)}},{key:"getElMarkers",value:function(e){return"number"==typeof e?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");n=m(n),t&&(n=n.filter((function(t){var n=Number(t.getAttribute("data:realIndex"));return-1===e.w.globals.collapsedSeriesIndices.indexOf(n)}))),n.sort((function(e,t){var n=Number(e.getAttribute("data:realIndex")),i=Number(t.getAttribute("data:realIndex"));return i<n?1:i>n?-1:0}));var i=[];return n.forEach((function(e){i.push(e.querySelector(".apexcharts-marker"))})),i}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,t){var n=Number(e.getAttribute("cx")),i=Number(e.getAttribute("cy")),r=e.getAttribute("shape");return new Sn(this.ctx).getMarkerPath(n,i,r,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 i=n.allTooltipSeriesGroups,r=0;r<i.length;r++)"enable"===e?(i[r].classList.add("apexcharts-active"),i[r].style.display=t.config.tooltip.items.display):(i[r].classList.remove("apexcharts-active"),i[r].style.display="none")}}]),e}(),yi=function(){function e(t){n(this,e),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new vi(t)}return r(e,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,n=void 0===t||t,i=e.ttItems,r=e.i,s=void 0===r?0:r,a=e.j,o=void 0===a?null:a,l=e.y1,c=e.y2,u=e.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:s,j:o,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(n,s);var h=this.getValuesToPrint({i:s,j:o});this.printLabels({i:s,j:o,values:h,ttItems:i,shared:n,e:u});var f=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=f.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=f.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,n=this,i=e.i,r=e.j,s=e.values,a=e.ttItems,o=e.shared,l=e.e,c=this.w,u=[],d=function(e){return c.globals.seriesGoals[e]&&c.globals.seriesGoals[e][r]&&Array.isArray(c.globals.seriesGoals[e][r])},f=s.xVal,p=s.zVal,m=s.xAxisTTVal,g="",v=c.globals.colors[i];null!==r&&c.config.plotOptions.bar.distributed&&(v=c.globals.colors[r]);for(var y=function(e,s){var y=n.getFormatters(i);g=n.getSeriesName({fn:y.yLbTitleFormatter,index:i,seriesIndex:i,j:r}),"treemap"===c.config.chart.type&&(g=y.yLbTitleFormatter(String(c.config.series[i].data[r].x),{series:c.globals.series,seriesIndex:i,dataPointIndex:r,w:c}));var b=c.config.tooltip.inverseOrder?s:e;if(c.globals.axisCharts){var x=function(e){var t,n,i,s;return c.globals.isRangeData?y.yLbFormatter(null===(t=c.globals.seriesRangeStart)||void 0===t||null===(n=t[e])||void 0===n?void 0:n[r],{series:c.globals.seriesRangeStart,seriesIndex:e,dataPointIndex:r,w:c})+" - "+y.yLbFormatter(null===(i=c.globals.seriesRangeEnd)||void 0===i||null===(s=i[e])||void 0===s?void 0:s[r],{series:c.globals.seriesRangeEnd,seriesIndex:e,dataPointIndex:r,w:c}):y.yLbFormatter(c.globals.series[e][r],{series:c.globals.series,seriesIndex:e,dataPointIndex:r,w:c})};if(o)y=n.getFormatters(b),g=n.getSeriesName({fn:y.yLbTitleFormatter,index:b,seriesIndex:i,j:r}),v=c.globals.colors[b],t=x(b),d(b)&&(u=c.globals.seriesGoals[b][r].map((function(e){return{attrs:e,val:y.yLbFormatter(e.value,{seriesIndex:b,dataPointIndex:r,w:c})}})));else{var _,w=null==l||null===(_=l.target)||void 0===_?void 0:_.getAttribute("fill");w&&(-1!==w.indexOf("url")?-1!==w.indexOf("Pattern")&&(v=c.globals.dom.baseEl.querySelector(w.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):v=w),t=x(i),d(i)&&Array.isArray(c.globals.seriesGoals[i][r])&&(u=c.globals.seriesGoals[i][r].map((function(e){return{attrs:e,val:y.yLbFormatter(e.value,{seriesIndex:i,dataPointIndex:r,w:c})}})))}}null===r&&(t=y.yLbFormatter(c.globals.series[i],h(h({},c),{},{seriesIndex:i,dataPointIndex:i}))),n.DOMHandling({i:i,t:b,j:r,ttItems:a,values:{val:t,goalVals:u,xVal:f,xAxisTTVal:m,zVal:p},seriesName:g,shared:o,pColor:v})},b=0,x=c.globals.series.length-1;b<c.globals.series.length;b++,x--)y(b,x)}},{key:"getFormatters",value:function(e){var t,n=this.w,i=n.globals.yLabelFormatters[e];return void 0!==n.globals.ttVal?Array.isArray(n.globals.ttVal)?(i=n.globals.ttVal[e]&&n.globals.ttVal[e].formatter,t=n.globals.ttVal[e]&&n.globals.ttVal[e].title&&n.globals.ttVal[e].title.formatter):(i=n.globals.ttVal.formatter,"function"==typeof n.globals.ttVal.title.formatter&&(t=n.globals.ttVal.title.formatter)):t=n.config.tooltip.y.title.formatter,"function"!=typeof i&&(i=n.globals.yLabelFormatters[0]?n.globals.yLabelFormatters[0]:function(e){return e}),"function"!=typeof t&&(t=function(e){return e?e+": ":""}),{yLbFormatter:i,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,n=e.index,i=e.seriesIndex,r=e.j,s=this.w;return t(String(s.globals.seriesNames[n]),{series:s.globals.series,seriesIndex:i,dataPointIndex:r,w:s})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,n=e.j,i=e.ttItems,r=e.values,s=e.seriesName,a=e.shared,o=e.pColor,l=this.w,c=this.ttCtx,u=r.val,d=r.goalVals,h=r.xVal,f=r.xAxisTTVal,p=r.zVal,m=null;m=i[t].children,l.config.tooltip.fillSeriesColor&&(i[t].style.backgroundColor=o,m[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=h),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==f?f:h);var g=i[t].querySelector(".apexcharts-tooltip-text-y-label");g&&(g.innerHTML=s||"");var v=i[t].querySelector(".apexcharts-tooltip-text-y-value");v&&(v.innerHTML=void 0!==u?u:""),m[0]&&m[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[t]),l.config.tooltip.fillSeriesColor?m[0].style.backgroundColor=o:m[0].style.color=o),l.config.tooltip.marker.show||(m[0].style.display="none");var y=i[t].querySelector(".apexcharts-tooltip-text-goals-label"),b=i[t].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[t]){var x=function(){var e="<div>",t="<div>";d.forEach((function(n,i){e+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(n.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(n.attrs.name,"</div>"),t+="<div>".concat(n.val,"</div>")})),y.innerHTML=e+"</div>",b.innerHTML=t+"</div>"};a?l.globals.seriesGoals[t][n]&&Array.isArray(l.globals.seriesGoals[t][n])?x():(y.innerHTML="",b.innerHTML=""):x()}else y.innerHTML="",b.innerHTML="";if(null!==p&&(i[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,i[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),a&&m[0]){if(l.config.tooltip.hideEmptySeries){var _=i[t].querySelector(".apexcharts-tooltip-marker"),w=i[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(u)?(_.style.display="none",w.style.display="none"):(_.style.display="block",w.style.display="block")}null==u||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)?m[0].parentNode.style.display="none":m[0].parentNode.style.display=l.config.tooltip.items.display}else Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)&&(m[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(e,t){var n=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(t));i&&(i.classList.add("apexcharts-active"),i.style.display=n.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,n=e.j,i=this.w,r=this.ctx.series.filteredSeriesX(),s="",a="",o=null,l=null,c={series:i.globals.series,seriesIndex:t,dataPointIndex:n,w:i},u=i.globals.ttZFormatter;null===n?l=i.globals.series[t]:i.globals.isXNumeric&&"treemap"!==i.config.chart.type?(s=r[t][n],0===r[t].length&&(s=r[this.tooltipUtil.getFirstActiveXArray(r)][n])):s=new Xn(this.ctx).isFormatXY()?void 0!==i.config.series[t].data[n]?i.config.series[t].data[n].x:"":void 0!==i.globals.labels[n]?i.globals.labels[n]:"";var d=s;return s=i.globals.isXNumeric&&"datetime"===i.config.xaxis.type?new Dn(this.ctx).xLabelFormat(i.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new Cn(this.ctx).formatDate,w:this.w}):i.globals.isBarHorizontal?i.globals.yLabelFormatters[0](d,c):i.globals.xLabelFormatter(d,c),void 0!==i.config.tooltip.x.formatter&&(s=i.globals.ttKeyFormatter(d,c)),i.globals.seriesZ.length>0&&i.globals.seriesZ[t].length>0&&(o=u(i.globals.seriesZ[t][n],i)),a="function"==typeof i.config.xaxis.tooltip.formatter?i.globals.xaxisTooltipFormatter(d,c):s,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(s)?s.join(" "):s,xAxisTTVal:Array.isArray(a)?a.join(" "):a,zVal:o}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,n=e.j,i=e.y1,r=e.y2,s=e.w,a=this.ttCtx.getElTooltip(),o=s.config.tooltip.custom;Array.isArray(o)&&o[t]&&(o=o[t]);var l=o({ctx:this.ctx,series:s.globals.series,seriesIndex:t,dataPointIndex:n,y1:i,y2:r,w:s});"string"==typeof l?a.innerHTML=l:(l instanceof Element||"string"==typeof l.nodeName)&&(a.innerHTML="",a.appendChild(l.cloneNode(!0)))}}]),e}(),bi=function(){function e(t){n(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return r(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.ttCtx,i=this.w,r=n.getElXCrosshairs(),s=e-n.xcrosshairsWidth/2,a=i.globals.labels.slice().length;if(null!==t&&(s=i.globals.gridWidth/a*t),null===r||i.globals.isBarHorizontal||(r.setAttribute("x",s),r.setAttribute("x1",s),r.setAttribute("x2",s),r.setAttribute("y2",i.globals.gridHeight),r.classList.add("apexcharts-active")),s<0&&(s=0),s>i.globals.gridWidth&&(s=i.globals.gridWidth),n.isXAxisTooltipEnabled){var o=s;"tickWidth"!==i.config.xaxis.crosshairs.width&&"barWidth"!==i.config.xaxis.crosshairs.width||(o=s+n.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&Sn.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&Sn.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 i,r=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,i=new Sn(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=i.width+"px",n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=r+"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 i=parseInt(n.ycrosshairsHidden.getAttribute("y1"),10),r=t.globals.translateY+i,s=n.yaxisTTEls[e].getBoundingClientRect().height,a=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(a-=26),r-=s/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=r+"px",n.yaxisTTEls[e].style.left=a+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,i=this.w,r=this.ttCtx,s=r.getElTooltip(),a=r.tooltipRect,o=null!==n?parseFloat(n):1,l=parseFloat(e)+o+5,c=parseFloat(t)+o/2;if(l>i.globals.gridWidth/2&&(l=l-a.ttWidth-o-10),l>i.globals.gridWidth-a.ttWidth-10&&(l=i.globals.gridWidth-a.ttWidth),l<-20&&(l=-20),i.config.tooltip.followCursor){var u=r.getElGrid().getBoundingClientRect();(l=r.e.clientX-u.left)>i.globals.gridWidth/2&&(l-=r.tooltipRect.ttWidth),(c=r.e.clientY+i.globals.translateY-u.top)>i.globals.gridHeight/2&&(c-=r.tooltipRect.ttHeight)}else i.globals.isBarHorizontal||a.ttHeight/2+c>i.globals.gridHeight&&(c=i.globals.gridHeight-a.ttHeight+i.globals.translateY);isNaN(l)||(l+=i.globals.translateX,s.style.left=l+"px",s.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var n=this.w,i=this.ttCtx;if(n.globals.markers.size[e]>0)for(var r=n.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),s=0;s<r.length;s++)parseInt(r[s].getAttribute("rel"),10)===t&&(i.marker.resetPointsSize(),i.marker.enlargeCurrentPoint(t,r[s]));else i.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var n,i,r,s,a=this.w,o=this.ttCtx,l=new Sn(this.ctx),c=a.globals.pointsArray,u=o.tooltipUtil.getHoverMarkerSize(t),d=a.config.series[t].type;if(!d||"column"!==d&&"candlestick"!==d&&"boxPlot"!==d){r=null===(n=c[t][e])||void 0===n?void 0:n[0],s=(null===(i=c[t][e])||void 0===i?void 0:i[1])||0;var h=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers path"));if(h&&s<a.globals.gridHeight&&s>0){var f=h.getAttribute("shape"),p=l.getMarkerPath(r,s,f,1.5*u);h.setAttribute("d",p)}this.moveXCrosshairs(r),o.fixedTooltip||this.moveTooltip(r,s,u)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,n=this.ttCtx,i=n.w,r=0,s=0,a=i.globals.pointsArray,o=new $n(this.ctx),l=new Sn(this.ctx);t=o.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var c=n.tooltipUtil.getHoverMarkerSize(t);if(a[t]&&(r=a[t][e][0],s=a[t][e][1]),!isNaN(r)){var u=n.tooltipUtil.getAllMarkers();if(u.length)for(var d=0;d<i.globals.series.length;d++){var h=a[d];if(i.globals.comboCharts&&void 0===h&&u.splice(d,0,null),h&&h.length){var f=a[d][e][1],p=void 0;u[d].setAttribute("cx",r);var m=u[d].getAttribute("shape");if("rangeArea"===i.config.chart.type&&!i.globals.comboCharts){var g=e+i.globals.series[d].length;p=a[d][g][1],f-=Math.abs(f-p)/2}if(null!==f&&!isNaN(f)&&f<i.globals.gridHeight+c&&f+c>0){var v=l.getMarkerPath(r,f,m,c);u[d].setAttribute("d",v)}else u[d].setAttribute("d","")}}this.moveXCrosshairs(r),n.fixedTooltip||this.moveTooltip(r,s||i.globals.gridHeight,c)}}},{key:"moveStickyTooltipOverBars",value:function(e,t){var n=this.w,i=this.ttCtx,r=n.globals.columnSeries?n.globals.columnSeries.length:n.globals.series.length;n.config.chart.stacked&&(r=n.globals.barGroups.length);var s=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1;n.globals.isBarHorizontal&&(s=new $n(this.ctx).getActiveConfigSeriesIndex("desc")+1);var a=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(s,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"']"));a||"number"!=typeof t||(a=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 o=a?parseFloat(a.getAttribute("cx")):0,l=a?parseFloat(a.getAttribute("cy")):0,c=a?parseFloat(a.getAttribute("barWidth")):0,u=i.getElGrid().getBoundingClientRect(),d=a&&(a.classList.contains("apexcharts-candlestick-area")||a.classList.contains("apexcharts-boxPlot-area"));n.globals.isXNumeric?(a&&!d&&(o-=r%2!=0?c/2:0),a&&d&&(o-=c/2)):n.globals.isBarHorizontal||(o=i.xAxisTicksPositions[e-1]+i.dataPointsDividedWidth/2,isNaN(o)&&(o=i.xAxisTicksPositions[e]-i.dataPointsDividedWidth/2)),n.globals.isBarHorizontal?l-=i.tooltipRect.ttHeight:n.config.tooltip.followCursor?l=i.e.clientY-u.top-i.tooltipRect.ttHeight/2:l+i.tooltipRect.ttHeight+15>n.globals.gridHeight&&(l=n.globals.gridHeight),n.globals.isBarHorizontal||this.moveXCrosshairs(o),i.fixedTooltip||this.moveTooltip(o,l||n.globals.gridHeight)}}]),e}(),xi=function(){function e(t){n(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new bi(t)}return r(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new Sn(this.ctx),n=new Wn(this.ctx),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");i=m(i),e.config.chart.stacked&&i.sort((function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}));for(var r=0;r<i.length;r++){var s=i[r].querySelector(".apexcharts-series-markers-wrap");if(null!==s){var a=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(o+=" no-pointer-events");var l=n.getMarkerConfig({cssClass:o,seriesIndex:Number(s.getAttribute("data:realIndex"))});(a=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(e.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(a.node),s.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w;"bubble"!==r.config.chart.type&&this.newPointSize(e,t);var s=t.getAttribute("cx"),a=t.getAttribute("cy");if(null!==n&&null!==i&&(s=n,a=i),this.tooltipPosition.moveXCrosshairs(s),!this.fixedTooltip){if("radar"===r.config.chart.type){var o=this.ttCtx.getElGrid().getBoundingClientRect();s=this.ttCtx.e.clientX-o.left}this.tooltipPosition.moveTooltip(s,a,r.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,n=this,i=this.ttCtx,r=e,s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),a=t.config.markers.hover.size,o=0;o<s.length;o++){var l=s[o].getAttribute("rel"),c=s[o].getAttribute("index");if(void 0===a&&(a=t.globals.markers.size[c]+t.config.markers.hover.sizeOffset),r===parseInt(l,10)){n.newPointSize(r,s[o]);var u=s[o].getAttribute("cx"),d=s[o].getAttribute("cy");n.tooltipPosition.moveXCrosshairs(u),i.fixedTooltip||n.tooltipPosition.moveTooltip(u,d,a)}else n.oldPointSize(s[o])}}},{key:"newPointSize",value:function(e,t){var n=this.w,i=n.config.markers.hover.size,r=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==r.getAttribute("default-marker-size")){var s=parseInt(r.getAttribute("index"),10);void 0===i&&(i=n.globals.markers.size[s]+n.config.markers.hover.sizeOffset),i<0&&(i=0);var a=this.ttCtx.tooltipUtil.getPathFromPoint(t,i);t.setAttribute("d",a)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size")),n=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",n)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var n=parseFloat(e[t].getAttribute("default-marker-size"));if(b.isNumber(n)&&n>0){var i=this.ttCtx.tooltipUtil.getPathFromPoint(e[t],n);e[t].setAttribute("d",i)}else e[t].setAttribute("d","M0,0")}}}]),e}(),_i=function(){function e(t){n(this,e),this.w=t.w;var i=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&"rangeBar"===i.config.chart.type&&i.config.plotOptions.bar.rangeBarGroupRows}return r(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,i=e.x,r=e.y,s=e.type,a=this.ttCtx,o=this.w;if(t.target.classList.contains("apexcharts-".concat(s,"-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(a.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:l,j:c,shared:!1,e:t}),o.globals.capturedSeriesIndex=l,o.globals.capturedDataPointIndex=c,i=u+a.tooltipRect.ttWidth/2+h,r=d+a.tooltipRect.ttHeight/2-f/2,a.tooltipPosition.moveXCrosshairs(u+h/2),i>o.globals.gridWidth/2&&(i=u-a.tooltipRect.ttWidth/2+h),a.w.config.tooltip.followCursor){var p=o.globals.dom.elWrap.getBoundingClientRect();i=o.globals.clientX-p.left-(i>o.globals.gridWidth/2?a.tooltipRect.ttWidth:0),r=o.globals.clientY-p.top-(r>o.globals.gridHeight/2?a.tooltipRect.ttHeight:0)}}return{x:i,y:r}}},{key:"handleMarkerTooltip",value:function(e){var t,n,i=e.e,r=e.opt,s=e.x,a=e.y,o=this.w,l=this.ttCtx;if(i.target.classList.contains("apexcharts-marker")){var c=parseInt(r.paths.getAttribute("cx"),10),u=parseInt(r.paths.getAttribute("cy"),10),d=parseFloat(r.paths.getAttribute("val"));if(n=parseInt(r.paths.getAttribute("rel"),10),t=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var h=b.findAncestor(r.paths,"apexcharts-series");h&&(t=parseInt(h.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:t,j:n,shared:!l.showOnIntersect&&o.config.tooltip.shared,e:i}),"mouseup"===i.type&&l.markerClick(i,t,n),o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=n,s=c,a=u+o.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();a=l.e.clientY+o.globals.translateY-f.top}d<0&&(a=u),l.marker.enlargeCurrentPoint(n,r.paths,s,a)}return{x:s,y:a}}},{key:"handleBarTooltip",value:function(e){var t,n,i=e.e,r=e.opt,s=this.w,a=this.ttCtx,o=a.getElTooltip(),l=0,c=0,u=0,d=this.getBarTooltipXY({e:i,opt:r});if(null!==d.j||0!==d.barHeight||0!==d.barWidth){t=d.i;var h=d.j;if(s.globals.capturedSeriesIndex=t,s.globals.capturedDataPointIndex=h,s.globals.isBarHorizontal&&a.tooltipUtil.hasBars()||!s.config.tooltip.shared?(c=d.x,u=d.y,n=Array.isArray(s.config.stroke.width)?s.config.stroke.width[t]:s.config.stroke.width,l=c):s.globals.comboCharts||s.config.tooltip.shared||(l/=2),isNaN(u)&&(u=s.globals.svgHeight-a.tooltipRect.ttHeight),parseInt(r.paths.parentNode.getAttribute("data:realIndex"),10),c+a.tooltipRect.ttWidth>s.globals.gridWidth?c-=a.tooltipRect.ttWidth:c<0&&(c=0),a.w.config.tooltip.followCursor){var f=a.getElGrid().getBoundingClientRect();u=a.e.clientY-f.top}null===a.tooltip&&(a.tooltip=s.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),s.config.tooltip.shared||(s.globals.comboBarCount>0?a.tooltipPosition.moveXCrosshairs(l+n/2):a.tooltipPosition.moveXCrosshairs(l)),!a.fixedTooltip&&(!s.config.tooltip.shared||s.globals.isBarHorizontal&&a.tooltipUtil.hasBars())&&(u=u+s.globals.translateY-a.tooltipRect.ttHeight/2,o.style.left=c+s.globals.translateX+"px",o.style.top=u+"px")}}},{key:"getBarTooltipXY",value:function(e){var t=this,n=e.e,i=e.opt,r=this.w,s=null,a=this.ttCtx,o=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=i.elGrid.getBoundingClientRect(),g=p.height;d=p.height;var v=p.width,y=parseInt(f.getAttribute("cx"),10),b=parseInt(f.getAttribute("cy"),10);u=parseFloat(f.getAttribute("barWidth"));var x="touchmove"===n.type?n.touches[0].clientX:n.clientX;s=parseInt(f.getAttribute("j"),10),o=parseInt(f.parentNode.getAttribute("rel"),10)-1;var _=f.getAttribute("data-range-y1"),w=f.getAttribute("data-range-y2");r.globals.comboCharts&&(o=parseInt(f.parentNode.getAttribute("data:realIndex"),10));var k=function(e){return r.globals.isXNumeric?y-v/2:t.isVerticalGroupedRangeBar?y+v/2:y-a.dataPointsDividedWidth+v/2},M=function(){return b-a.dataPointsDividedHeight+g/2-a.tooltipRect.ttHeight/2};a.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:o,j:s,y1:_?parseInt(_,10):null,y2:w?parseInt(w,10):null,shared:!a.showOnIntersect&&r.config.tooltip.shared,e:n}),r.config.tooltip.followCursor?r.globals.isBarHorizontal?(l=x-m.left+15,c=M()):(l=k(),c=n.clientY-m.top-a.tooltipRect.ttHeight/2-15):r.globals.isBarHorizontal?((l=y)<a.xyRatios.baseLineInvertedY&&(l=y-a.tooltipRect.ttWidth),c=M()):(l=k(),c=b)}return{x:l,y:c,barHeight:d,barWidth:u,i:o,j:s}}}]),e}(),wi=function(){function e(t){n(this,e),this.w=t.w,this.ttCtx=t}return r(e,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,n="bottom"===e.config.xaxis.position;t.xaxisOffY=n?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var i=n?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",r=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+e.config.tooltip.theme),r.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,n=0;n<e.config.yaxis.length;n++){var i=e.config.yaxis[n].opposite||e.config.yaxis[n].crosshairs.opposite;t.yaxisOffX=i?e.globals.gridWidth+1:1;var r="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n,i?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),s=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),s.appendChild(t.yaxisTooltip),0===n&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[n]=document.createElement("div"),t.yaxisTooltipText[n].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[n]))}}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,n=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var i=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==i&&"barWidth"===e.config.xaxis.crosshairs.width){var r=parseFloat(i.getAttribute("barWidth"));t.xcrosshairsWidth=r}else if("tickWidth"===e.config.xaxis.crosshairs.width){var s=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/s}}else if("tickWidth"===e.config.xaxis.crosshairs.width){var a=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/a}else if("barWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){var l=parseFloat(o.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==n&&t.xcrosshairsWidth>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 i=this.ttCtx,r=this.w,s=r.globals,a=s.seriesYAxisMap[e];if(i.yaxisTooltips[e]&&a.length>0){var o=s.yLabelFormatters[e],l=i.getElGrid().getBoundingClientRect(),c=a[0],u=0;n.yRatio.length>1&&(u=c);var d=(t-l.top)*n.yRatio[u],h=s.maxYArr[c]-s.minYArr[c],f=s.minYArr[c]+(h-d);r.config.yaxis[e].reversed&&(f=s.maxYArr[c]-(h-d)),i.tooltipPosition.moveYCrosshairs(t-l.top),i.yaxisTooltipText[e].innerHTML=o(f),i.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),ki=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new vi(this),this.tooltipLabels=new yi(this),this.tooltipPosition=new bi(this),this.marker=new xi(this),this.intersect=new _i(this),this.axesTooltip=new wi(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=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return r(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 i=new Zn(this.ctx);this.xAxisTicksPositions=i.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 r=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,n=this.w,i=[],r=this.getElTooltip(),s=function(s){var a=document.createElement("div");a.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(s)),a.style.order=n.config.tooltip.inverseOrder?e-s:s+1;var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),n.config.tooltip.fillSeriesColor?o.style.backgroundColor=n.globals.colors[s]:o.style.color=n.globals.colors[s];var l=n.config.markers.shape,c=l;Array.isArray(l)&&(c=l[s]),o.setAttribute("shape",c),a.appendChild(o);var u=document.createElement("div");u.classList.add("apexcharts-tooltip-text"),u.style.fontFamily=t.tConfig.style.fontFamily||n.config.chart.fontFamily,u.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 i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(i),u.appendChild(t)})),a.appendChild(u),r.appendChild(a),i.push(a)},a=0;a<e;a++)s(a);return i}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,n=this.getElTooltip(),i=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),r="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,s=e.globals.dom.Paper.node,a=this.getElGrid();a&&(this.seriesBound=a.getBoundingClientRect());var o,l=[],c=[],u={hoverArea:s,elGrid:a,tooltipEl:n,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(e.globals.axisCharts&&(r?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var d=0;d<o.length;d++)l.push(o[d].getAttribute("cy")),c.push(o[d].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||i&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([s],u);else if(i&&!e.globals.comboCharts||r&&this.showOnIntersect)this.addDatapointEventsListeners(u);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(h,u)}if(this.showOnIntersect){var f=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&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(),i=n.width+10,r=n.height+10,s=this.tConfig.fixed.offsetX,a=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(s=s+e.globals.svgWidth-i+10),o.indexOf("bottom")>-1&&(a=a+e.globals.svgHeight-r-10),t.style.left=s+"px",t.style.top=a+"px",{x:s,y:a,ttWidth:i,ttHeight:r}}},{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,i=function(i){var r={paths:e[i],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[i].addEventListener(t,n.onSeriesHover.bind(n,r),{capture:!1,passive:!0})}))},r=0;r<e.length;r++)i(r)}},{key:"onSeriesHover",value:function(e,t){var n=this,i=Date.now()-this.lastHoverTime;i>=20?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){n.seriesHover(e,t)}),20-i))}},{key:"seriesHover",value:function(e,t){var n=this;this.lastHoverTime=Date.now();var i=[],r=this.w;r.config.chart.group&&(i=this.ctx.getGroupedCharts()),r.globals.axisCharts&&(r.globals.minX===-1/0&&r.globals.maxX===1/0||0===r.globals.dataPoints)||(i.length?i.forEach((function(i){var r=n.getElTooltip(i),s={paths:e.paths,tooltipEl:r,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:i.w.globals.tooltip.ttItems};i.w.globals.minX===n.w.globals.minX&&i.w.globals.maxX===n.w.globals.maxX&&i.w.globals.tooltip.seriesHoverByContext({chartCtx:i,ttCtx:i.w.globals.tooltip,opt:s,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,i=e.opt,r=e.e,s=t.w,a=this.getElTooltip(t);a&&(n.tooltipRect={x:0,y:0,ttWidth:a.getBoundingClientRect().width,ttHeight:a.getBoundingClientRect().height},n.e=r,!n.tooltipUtil.hasBars()||s.globals.comboCharts||n.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new $n(t).toggleSeriesOnHover(r,r.target.parentNode),n.fixedTooltip&&n.drawFixedTooltipRect(),s.globals.axisCharts?n.axisChartsTooltips({e:r,opt:i,tooltipRect:n.tooltipRect}):n.nonAxisChartsTooltips({e:r,opt:i,tooltipRect:n.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,n,i=e.e,r=e.opt,s=this.w,a=r.elGrid.getBoundingClientRect(),o="touchmove"===i.type?i.touches[0].clientX:i.clientX,l="touchmove"===i.type?i.touches[0].clientY:i.clientY;if(this.clientY=l,this.clientX=o,s.globals.capturedSeriesIndex=-1,s.globals.capturedDataPointIndex=-1,l<a.top||l>a.top+a.height)this.handleMouseOut(r);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!s.config.tooltip.shared){var c=parseInt(r.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(r)}var u=this.getElTooltip(),d=this.getElXCrosshairs(),h=[];s.config.chart.group&&(h=this.ctx.getSyncedCharts());var f=s.globals.xyCharts||"bar"===s.config.chart.type&&!s.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||s.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===i.type||"touchmove"===i.type||"mouseup"===i.type){if(s.globals.collapsedSeries.length+s.globals.ancillaryCollapsedSeries.length===s.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter((function(e){return!0===e}));if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),f&&!this.showOnIntersect||h.length>1)this.handleStickyTooltip(i,o,l,r);else if("heatmap"===s.config.chart.type||"treemap"===s.config.chart.type){var m=this.intersect.handleHeatTreeTooltip({e:i,opt:r,x:t,y:n,type:s.config.chart.type});t=m.x,n=m.y,u.style.left=t+"px",u.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:i,opt:r}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:i,opt:r,x:t,y:n});if(this.yaxisTooltips.length)for(var g=0;g<s.config.yaxis.length;g++)this.axesTooltip.drawYaxisTooltipText(g,l,this.xyRatios);s.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),r.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==i.type&&"touchend"!==i.type||this.handleMouseOut(r)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,n=e.opt,i=e.tooltipRect,r=this.w,s=n.paths.getAttribute("rel"),a=this.getElTooltip(),o=r.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){r.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),a.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:parseInt(s,10)-1,shared:!1});var l=r.globals.clientX-o.left-i.ttWidth/2,c=r.globals.clientY-o.top-i.ttHeight-10;if(a.style.left=l+"px",a.style.top=c+"px",r.config.legend.tooltipHoverFormatter){var u=s-1,d=(0,r.config.legend.tooltipHoverFormatter)(this.legendLabels[u].getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:r});this.legendLabels[u].innerHTML=d}}else"mouseout"!==t.type&&"touchend"!==t.type||(a.classList.remove("apexcharts-active"),r.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),r.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)})))}},{key:"handleStickyTooltip",value:function(e,t,n,i){var r=this.w,s=this.tooltipUtil.getNearestValues({context:this,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:t,clientY:n}),a=s.j,o=s.capturedSeries;r.globals.collapsedSeriesIndices.includes(o)&&(o=null);var l=i.elGrid.getBoundingClientRect();if(s.hoverX<0||s.hoverX>l.width)this.handleMouseOut(i);else if(null!==o)this.handleStickyCapturedSeries(e,o,i,a);else if(this.tooltipUtil.isXoverlap(a)||r.globals.isBarHorizontal){var c=r.globals.series.findIndex((function(e,t){return!r.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,c,a,i.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,n,i){var r=this.w;if(this.tConfig.shared||null!==r.globals.series[t][i]){if(void 0!==r.globals.series[t][i])this.tConfig.shared&&this.tooltipUtil.isXoverlap(i)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,i,n.ttItems):this.create(e,this,t,i,n.ttItems,!1);else if(this.tooltipUtil.isXoverlap(i)){var s=r.globals.series.findIndex((function(e,t){return!r.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,s,i,n.ttItems)}}else this.handleMouseOut(n)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new Sn(this.ctx),n=e.globals.dom.Paper.find(".apexcharts-bar-area"),i=0;i<n.length;i++)t.pathMouseLeave(n[i])}},{key:"handleMouseOut",value:function(e){var t=this.w,n=this.getElXCrosshairs();if(t.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==n&&n.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var i=0;i<this.yaxisTTEls.length;i++)this.yaxisTTEls[i].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}))}},{key:"markerClick",value:function(e,t,n){var i=this.w;"function"==typeof i.config.chart.events.markerClick&&i.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:i}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:i}])}},{key:"create",value:function(e,t,n,i,r){var s,a,o,l,c,u,d,f,p,m,g,v,y,b,x,_,w=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,k=this.w,M=t;"mouseup"===e.type&&this.markerClick(e,n,i),null===w&&(w=this.tConfig.shared);var S=this.tooltipUtil.hasMarkers(n),A=this.tooltipUtil.getElBars(),L=function(){k.globals.markers.largestSize>0?M.marker.enlargePoints(i):M.tooltipPosition.moveDynamicPointsOnHover(i)};if(k.config.legend.tooltipHoverFormatter){var T=k.config.legend.tooltipHoverFormatter,C=Array.from(this.legendLabels);C.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}));for(var D=0;D<C.length;D++){var E=C[D],O=parseInt(E.getAttribute("i"),10),P=decodeURIComponent(E.getAttribute("data:default-text")),Y=T(P,{seriesIndex:w?O:n,dataPointIndex:i,w:k});if(w)E.innerHTML=k.globals.collapsedSeriesIndices.indexOf(O)<0?Y:P;else if(E.innerHTML=O===n?Y:P,n===O)break}}var I=h(h({ttItems:r,i:n,j:i},void 0!==(null===(s=k.globals.seriesRange)||void 0===s||null===(a=s[n])||void 0===a||null===(o=a[i])||void 0===o||null===(l=o.y[0])||void 0===l?void 0:l.y1)&&{y1:null===(c=k.globals.seriesRange)||void 0===c||null===(u=c[n])||void 0===u||null===(d=u[i])||void 0===d||null===(f=d.y[0])||void 0===f?void 0:f.y1}),void 0!==(null===(p=k.globals.seriesRange)||void 0===p||null===(m=p[n])||void 0===m||null===(g=m[i])||void 0===g||null===(v=g.y[0])||void 0===v?void 0:v.y2)&&{y2:null===(y=k.globals.seriesRange)||void 0===y||null===(b=y[n])||void 0===b||null===(x=b[i])||void 0===x||null===(_=x.y[0])||void 0===_?void 0:_.y2});if(w){if(M.tooltipLabels.drawSeriesTexts(h(h({},I),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),S)L();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(A),this.barSeriesHeight>0)){var N=new Sn(this.ctx),H=k.globals.dom.Paper.find(".apexcharts-bar-area[j='".concat(i,"']"));this.deactivateHoverFilter(),M.tooltipPosition.moveStickyTooltipOverBars(i,n),M.tooltipUtil.getAllMarkers(!0).length&&L();for(var j=0;j<H.length;j++)N.pathMouseEnter(H[j])}}else M.tooltipLabels.drawSeriesTexts(h({shared:!1},I)),this.tooltipUtil.hasBars()&&M.tooltipPosition.moveStickyTooltipOverBars(i,n),S&&M.tooltipPosition.moveMarkers(n,i)}}]),e}(),Mi=function(){function e(t){n(this,e),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return r(e,[{key:"handleBarDataLabels",value:function(e){var t,n,i=e.x,r=e.y,s=e.y1,a=e.y2,o=e.i,l=e.j,c=e.realIndex,u=e.columnGroupIndex,d=e.series,f=e.barHeight,p=e.barWidth,m=e.barXPosition,g=e.barYPosition,v=e.visibleSeries,y=e.renderedPath,b=this.w,x=new Sn(this.barCtx.ctx),_=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[c]:this.barCtx.strokeWidth;b.globals.isXNumeric&&!b.globals.isBarHorizontal?(t=i+parseFloat(p*(v+1)),n=r+parseFloat(f*(v+1))-_):(t=i+parseFloat(p*v),n=r+parseFloat(f*v));var w,k,M=null,S=i,A=r,L=b.config.dataLabels,T=this.barCtx.barOptions.dataLabels,C=this.barCtx.barOptions.dataLabels.total;void 0!==g&&this.barCtx.isRangeBar&&(n=g,A=g),void 0!==m&&this.barCtx.isVerticalGroupedRangeBar&&(t=m,S=m);var D=L.offsetX,E=L.offsetY,O={width:0,height:0};if(b.config.dataLabels.enabled){var P=b.globals.series[o][l];O=x.getTextRects(b.config.dataLabels.formatter?b.config.dataLabels.formatter(P,h(h({},b),{},{seriesIndex:o,dataPointIndex:l,w:b})):b.globals.yLabelFormatters[0](P),parseFloat(L.style.fontSize))}var Y={x:i,y:r,i:o,j:l,realIndex:c,columnGroupIndex:u,renderedPath:y,bcx:t,bcy:n,barHeight:f,barWidth:p,textRects:O,strokeWidth:_,dataLabelsX:S,dataLabelsY:A,dataLabelsConfig:L,barDataLabelsConfig:T,barTotalDataLabelsConfig:C,offX:D,offY:E};return k=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(Y):this.calculateColumnsDataLabelsPosition(Y),y.attr({cy:k.bcy,cx:k.bcx,j:l,val:b.globals.series[o][l],barHeight:f,barWidth:p}),w=this.drawCalculatedDataLabels({x:k.dataLabelsX,y:k.dataLabelsY,val:this.barCtx.isRangeBar?[s,a]:"100%"===b.config.chart.stackType?d[c][l]:b.globals.series[c][l],i:c,j:l,barWidth:p,barHeight:f,textRects:O,dataLabelsConfig:L}),b.config.chart.stacked&&C.enabled&&(M=this.drawTotalDataLabels({x:k.totalDataLabelsX,y:k.totalDataLabelsY,barWidth:p,barHeight:f,realIndex:c,textAnchor:k.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:c,j:l}),dataLabelsConfig:L,barTotalDataLabelsConfig:C})),{dataLabels:w,totalDataLabels:M}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,n=e.j,i=this.w,r=this.barCtx.stackedSeriesTotals[n];return this.totalFormatter&&(r=this.totalFormatter(r,h(h({},i),{},{seriesIndex:t,dataPointIndex:n,w:i}))),r}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t=this,n=this.w,i=e.i,r=e.j,s=e.realIndex;e.columnGroupIndex;var a,o,l=e.y,c=e.bcx,u=e.barWidth,d=e.barHeight,h=e.textRects,f=e.dataLabelsX,p=e.dataLabelsY,m=e.dataLabelsConfig,g=e.barDataLabelsConfig,v=e.barTotalDataLabelsConfig,y=e.strokeWidth,b=e.offX,x=e.offY,_=c;d=Math.abs(d);var w="vertical"===n.config.plotOptions.bar.dataLabels.orientation,k=this.barCtx.barHelpers.getZeroValueEncounters({i:i,j:r}).zeroEncounters;c-=y/2;var M=n.globals.gridWidth/n.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?f+=u/2:(f=n.globals.isXNumeric?c-u/2+b:c-M+u/2+b,!n.config.chart.stacked&&k>0&&n.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(f-=u*k)),w&&(f=f+h.height/2-y/2-2);var S=n.globals.series[i][r]<0,A=l;switch(this.barCtx.isReversed&&(A=l+(S?d:-d)),g.position){case"center":p=w?S?A-d/2+x:A+d/2-x:S?A-d/2+h.height/2+x:A+d/2+h.height/2-x;break;case"bottom":p=w?S?A-d+x:A+d-x:S?A-d+h.height+y+x:A+d-h.height/2+y-x;break;case"top":p=w?S?A+x:A-x:S?A-h.height/2-x:A+h.height+x}var L=A;if(n.globals.seriesGroups.forEach((function(e){var n;null===(n=t.barCtx[e.join(",")])||void 0===n||n.prevY.forEach((function(e){L=S?Math.max(e[r],L):Math.min(e[r],L)}))})),this.barCtx.lastActiveBarSerieIndex===s&&v.enabled){var T=new Sn(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:s,j:r}),m.fontSize);a=S?L-T.height/2-x-v.offsetY+18:L+T.height+x+v.offsetY-18;var C=M;o=_+(n.globals.isXNumeric?-u*n.globals.barGroups.length/2:n.globals.barGroups.length*u/2-(n.globals.barGroups.length-1)*u-C)+v.offsetX}return n.config.chart.stacked||(p<0?p=0+y:p+h.height/3>n.globals.gridHeight&&(p=n.globals.gridHeight-y)),{bcx:c,bcy:l,dataLabelsX:f,dataLabelsY:p,totalDataLabelsX:o,totalDataLabelsY:a,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this,n=this.w,i=e.x,r=e.i,s=e.j,a=e.realIndex,o=e.bcy,l=e.barHeight,c=e.barWidth,u=e.textRects,d=e.dataLabelsX,h=e.strokeWidth,f=e.dataLabelsConfig,p=e.barDataLabelsConfig,m=e.barTotalDataLabelsConfig,g=e.offX,v=e.offY,y=n.globals.gridHeight/n.globals.dataPoints,b=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:s}).zeroEncounters;c=Math.abs(c);var x,_,w=o-(this.barCtx.isRangeBar?0:y)+l/2+u.height/2+v-3;!n.config.chart.stacked&&b>0&&n.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(w-=l*b);var k="start",M=n.globals.series[r][s]<0,S=i;switch(this.barCtx.isReversed&&(S=i+(M?-c:c),k=M?"start":"end"),p.position){case"center":d=M?S+c/2-g:Math.max(u.width/2,S-c/2)+g;break;case"bottom":d=M?S+c-h-g:S-c+h+g;break;case"top":d=M?S-h-g:S-h+g}var A=S;if(n.globals.seriesGroups.forEach((function(e){var n;null===(n=t.barCtx[e.join(",")])||void 0===n||n.prevX.forEach((function(e){A=M?Math.min(e[s],A):Math.max(e[s],A)}))})),this.barCtx.lastActiveBarSerieIndex===a&&m.enabled){var L=new Sn(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:s}),f.fontSize);M?(x=A-h-g-m.offsetX,k="end"):x=A+g+m.offsetX+(this.barCtx.isReversed?-(c+h):h),_=w-u.height/2+L.height/2+m.offsetY+h,n.globals.barGroups.length>1&&(_-=n.globals.barGroups.length/2*(l/2))}return n.config.chart.stacked||("start"===f.textAnchor?d-u.width<0?d=M?u.width+h:h:d+u.width>n.globals.gridWidth&&(d=M?n.globals.gridWidth-h:n.globals.gridWidth-u.width-h):"middle"===f.textAnchor?d-u.width/2<0?d=u.width/2+h:d+u.width/2>n.globals.gridWidth&&(d=n.globals.gridWidth-u.width/2-h):"end"===f.textAnchor&&(d<1?d=u.width+h:d+1>n.globals.gridWidth&&(d=n.globals.gridWidth-u.width-h))),{bcx:i,bcy:o,dataLabelsX:d,dataLabelsY:w,totalDataLabelsX:x,totalDataLabelsY:_,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,n=e.y,i=e.val,r=e.i,s=e.j,a=e.textRects,o=e.barHeight,l=e.barWidth,c=e.dataLabelsConfig,u=this.w,d="rotate(0)";"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&(d="rotate(-90, ".concat(t,", ").concat(n,")"));var f=new Un(this.barCtx.ctx),p=new Sn(this.barCtx.ctx),m=c.formatter,g=null,v=u.globals.collapsedSeriesIndices.indexOf(r)>-1;if(c.enabled&&!v){g=p.group({class:"apexcharts-data-labels",transform:d});var y="";void 0!==i&&(y=m(i,h(h({},u),{},{seriesIndex:r,dataPointIndex:s,w:u}))),!i&&u.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(y="");var b=u.globals.series[r][s]<0,x=u.config.plotOptions.bar.dataLabels.position;"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&("top"===x&&(c.textAnchor=b?"end":"start"),"center"===x&&(c.textAnchor="middle"),"bottom"===x&&(c.textAnchor=b?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<p.getTextRects(y,parseFloat(c.style.fontSize)).width&&(y=""),u.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?a.width/1.6>Math.abs(l)&&(y=""):a.height/1.6>Math.abs(o)&&(y=""));var _=h({},c);this.barCtx.isHorizontal&&i<0&&("start"===c.textAnchor?_.textAnchor="end":"end"===c.textAnchor&&(_.textAnchor="start")),f.plotDataLabelsText({x:t,y:n,text:y,i:r,j:s,parent:g,dataLabelsConfig:_,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return g}},{key:"drawTotalDataLabels",value:function(e){var t=e.x,n=e.y,i=e.val,r=e.realIndex,s=e.textAnchor,a=e.barTotalDataLabelsConfig;this.w;var o,l=new Sn(this.barCtx.ctx);return a.enabled&&void 0!==t&&void 0!==n&&this.barCtx.lastActiveBarSerieIndex===r&&(o=l.drawText({x:t,y:n,foreColor:a.style.color,text:i,textAnchor:s,fontFamily:a.style.fontFamily,fontSize:a.style.fontSize,fontWeight:a.style.fontWeight})),o}}]),e}(),Si=function(){function e(t){n(this,e),this.w=t.w,this.barCtx=t}return r(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;n<e.length;n++)if(e[n].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),t.globals.isXNumeric)for(var i=0;i<e[n].length;i++)t.globals.seriesX[n][i]>t.globals.minX&&t.globals.seriesX[n][i]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.globals.series),0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(e){var t,n,i,r,s,a,o,l,c=this.w,u=c.globals.dataPoints;this.barCtx.isRangeBar&&(u=c.globals.labels.length);var d=this.barCtx.seriesLen;if(c.config.plotOptions.bar.rangeBarGroupRows&&(d=1),this.barCtx.isHorizontal)s=(i=c.globals.gridHeight/u)/d,c.globals.isXNumeric&&(s=(i=c.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),s=s*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(s=parseInt(this.barCtx.barOptions.barHeight,10)),l=this.barCtx.baseLineInvertedY+c.globals.padHorizontal+(this.barCtx.isReversed?c.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(l=c.globals.gridWidth/2),n=(i-s*this.barCtx.seriesLen)/2;else{if(r=c.globals.gridWidth/this.barCtx.visibleItems,c.config.xaxis.convertedCatToNumeric&&(r=c.globals.gridWidth/c.globals.dataPoints),a=r/d*parseInt(this.barCtx.barOptions.columnWidth,10)/100,c.globals.isXNumeric){var h=this.barCtx.xRatio;c.globals.minXDiff&&.5!==c.globals.minXDiff&&c.globals.minXDiff/h>0&&(r=c.globals.minXDiff/h),(a=r/d*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=c.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?c.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),t=c.globals.isXNumeric?this.barCtx.getBarXForNumericXAxis({x:t,j:0,realIndex:e,barWidth:a}).x:c.globals.padHorizontal+b.noExponents(r-a*this.barCtx.seriesLen)/2}return c.globals.barHeight=s,c.globals.barWidth=a,{x:t,y:n,yDivision:i,xDivision:r,barHeight:s,barWidth:a,zeroH:o,zeroW:l}}},{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,i){var r,s,a,o,l=this.w,c=this.barCtx.ctx.fill,u=null,d=this.barCtx.barOptions.distributed?n:t,h=!1;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(i){e[t][n]>=i.from&&e[t][n]<=i.to&&(u=i.color,h=!0)})),{color:c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:i,dataPointIndex:n,color:u,value:e[t][n],fillConfig:null===(r=l.config.series[t].data[n])||void 0===r?void 0:r.fill,fillType:null!==(s=l.config.series[t].data[n])&&void 0!==s&&null!==(a=s.fill)&&void 0!==a&&a.type?null===(o=l.config.series[t].data[n])||void 0===o?void 0:o.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[i]:l.config.fill.type}),useRangeColor:h}}},{key:"getStrokeWidth",value:function(e,t,n){var i=0,r=this.w;return this.barCtx.series[e][t]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,r.config.stroke.show&&(this.barCtx.isNullValue||(i=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),i}},{key:"createBorderRadiusArr",value:function(e){var t,n=this.w,i=!this.w.config.chart.stacked||n.config.plotOptions.bar.borderRadius<=0,r=e.length,a=0|(null===(t=e[0])||void 0===t?void 0:t.length),o=Array.from({length:r},(function(){return Array(a).fill(i?"top":"none")}));if(i)return o;for(var l=0;l<a;l++){for(var c=[],u=[],d=0,h=0;h<r;h++){var f=e[h][l];f>0?(c.push(h),d++):f<0&&(u.push(h),d++)}if(c.length>0&&0===u.length)if(1===c.length)o[c[0]][l]="both";else{var p,m=c[0],g=c[c.length-1],v=s(c);try{for(v.s();!(p=v.n()).done;){var y=p.value;o[y][l]=y===m?"bottom":y===g?"top":"none"}}catch(e){v.e(e)}finally{v.f()}}else if(u.length>0&&0===c.length)if(1===u.length)o[u[0]][l]="both";else{var b,x=Math.max.apply(Math,u),_=Math.min.apply(Math,u),w=s(u);try{for(w.s();!(b=w.n()).done;){var k=b.value;o[k][l]=k===x?"bottom":k===_?"top":"none"}}catch(e){w.e(e)}finally{w.f()}}else if(c.length>0&&u.length>0){var M,S=c[c.length-1],A=s(c);try{for(A.s();!(M=A.n()).done;){var L=M.value;o[L][l]=L===S?"top":"none"}}catch(e){A.e(e)}finally{A.f()}var T,C=Math.max.apply(Math,u),D=s(u);try{for(D.s();!(T=D.n()).done;){var E=T.value;o[E][l]=E===C?"bottom":"none"}}catch(e){D.e(e)}finally{D.f()}}else 1===d&&(o[c[0]||u[0]][l]="both")}return o}},{key:"barBackground",value:function(e){var t=e.j,n=e.i,i=e.x1,r=e.x2,s=e.y1,a=e.y2,o=e.elSeries,l=this.w,c=new Sn(this.barCtx.ctx),u=new $n(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!==i?i:0,void 0!==s?s:0,void 0!==r?r:l.globals.gridWidth,void 0!==a?a:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(h),h.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,n=e.barWidth,i=e.barXPosition,r=e.y1,s=e.y2,a=e.strokeWidth,o=e.isReversed,l=e.series,c=e.seriesGroup,u=e.realIndex,d=e.i,h=e.j,f=e.w,p=new Sn(this.barCtx.ctx);(a=Array.isArray(a)?a[u]:a)||(a=0);var m=n,g=i;null!==(t=f.config.series[u].data[h])&&void 0!==t&&t.columnWidthOffset&&(g=i-f.config.series[u].data[h].columnWidthOffset/2,m=n+f.config.series[u].data[h].columnWidthOffset);var v=a/2,y=g+v,b=g+m-v,x=(l[d][h]>=0?1:-1)*(o?-1:1);r+=.001-v*x,s+=.001+v*x;var _=p.move(y,r),w=p.move(y,r),k=p.line(b,r);if(f.globals.previousPaths.length>0&&(w=this.barCtx.getPreviousPath(u,h,!1)),_=_+p.line(y,s)+p.line(b,s)+k+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),w=w+p.line(y,r)+k+k+k+k+k+p.line(y,r)+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),"none"!==this.arrBorderRadius[u][h]&&(_=p.roundPathCorners(_,f.config.plotOptions.bar.borderRadius)),f.config.chart.stacked){var M=this.barCtx;(M=this.barCtx[c]).yArrj.push(s-v*x),M.yArrjF.push(Math.abs(r-s+a*x)),M.yArrjVal.push(this.barCtx.series[d][h])}return{pathTo:_,pathFrom:w}}},{key:"getBarpaths",value:function(e){var t,n=e.barYPosition,i=e.barHeight,r=e.x1,s=e.x2,a=e.strokeWidth,o=e.isReversed,l=e.series,c=e.seriesGroup,u=e.realIndex,d=e.i,h=e.j,f=e.w,p=new Sn(this.barCtx.ctx);(a=Array.isArray(a)?a[u]:a)||(a=0);var m=n,g=i;null!==(t=f.config.series[u].data[h])&&void 0!==t&&t.barHeightOffset&&(m=n-f.config.series[u].data[h].barHeightOffset/2,g=i+f.config.series[u].data[h].barHeightOffset);var v=a/2,y=m+v,b=m+g-v,x=(l[d][h]>=0?1:-1)*(o?-1:1);r+=.001+v*x,s+=.001-v*x;var _=p.move(r,y),w=p.move(r,y);f.globals.previousPaths.length>0&&(w=this.barCtx.getPreviousPath(u,h,!1));var k=p.line(r,b);if(_=_+p.line(s,y)+p.line(s,b)+k+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),w=w+p.line(r,y)+k+k+k+k+k+p.line(r,y)+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),"none"!==this.arrBorderRadius[u][h]&&(_=p.roundPathCorners(_,f.config.plotOptions.bar.borderRadius)),f.config.chart.stacked){var M=this.barCtx;(M=this.barCtx[c]).xArrj.push(s+v*x),M.xArrjF.push(Math.abs(r-s-a*x)),M.xArrjVal.push(this.barCtx.series[d][h])}return{pathTo:_,pathFrom:w}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,n=this.w,i=0;i<t.length;i++){for(var r=0,s=0;s<t[n.globals.maxValsInArrayIndex].length;s++)r+=t[i][s];0===r&&this.barCtx.zeroSerieses.push(i)}}},{key:"getXForValue",value:function(e,t){var n=arguments.length>2&&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 i=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?null:t;return null!=e&&(i=t-e/this.barCtx.yRatio[n]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[n]:0)),i}},{key:"getGoalValues",value:function(e,t,n,i,r,s){var a=this,l=this.w,c=[],u=function(i,r){var l;c.push((o(l={},e,"x"===e?a.getXForValue(i,t,!1):a.getYForValue(i,n,s,!1)),o(l,"attrs",r),l))};if(l.globals.seriesGoals[i]&&l.globals.seriesGoals[i][r]&&Array.isArray(l.globals.seriesGoals[i][r])&&l.globals.seriesGoals[i][r].forEach((function(e){u(e.value,e)})),this.barCtx.barOptions.isDumbbell&&l.globals.seriesRange.length){var d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:l.globals.colors,f={strokeHeight:"x"===e?0:l.globals.markers.size[i],strokeWidth:"x"===e?l.globals.markers.size[i]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[i])?d[i][0]:d[i]};u(l.globals.seriesRangeStart[i][r],f),u(l.globals.seriesRangeEnd[i][r],h(h({},f),{},{strokeColor:Array.isArray(d[i])?d[i][1]:d[i]}))}return c}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,n=e.barYPosition,i=e.goalX,r=e.goalY,s=e.barWidth,a=e.barHeight,o=new Sn(this.barCtx.ctx),l=o.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(i)&&i.forEach((function(e){if(e.x>=-1&&e.x<=o.w.globals.gridWidth+1){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:a/2,i=n+t+a/2;c=o.drawLine(e.x,i-2*t,e.x,i,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(r)&&r.forEach((function(e){if(e.y>=-1&&e.y<=o.w.globals.gridHeight+1){var n=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:s/2,i=t+n+s/2;c=o.drawLine(i-2*n,e.y,i,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,i=e.color,r=this.w,s=t.x,a=t.x1,o=t.barYPosition,l=n.x,c=n.x1,u=n.barYPosition,d=o+n.barHeight,h=new Sn(this.barCtx.ctx),f=new b,p=h.move(a,d)+h.line(s,d)+h.line(l,u)+h.line(c,u)+h.line(a,d)+("around"===r.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[realIndex][j]?" Z":" z");return h.drawPath({d:p,fill:f.shadeColor(.5,b.rgb2hex(i)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}},{key:"getZeroValueEncounters",value:function(e){var t,n=e.i,i=e.j,r=this.w,s=0,a=0;return(r.config.plotOptions.bar.horizontal?r.globals.series.map((function(e,t){return t})):(null===(t=r.globals.columnSeries)||void 0===t?void 0:t.i.map((function(e){return e})))||[]).forEach((function(e){var t=r.globals.seriesPercent[e][i];t&&s++,e<n&&0===t&&a++})),{nonZeroColumns:s,zeroEncounters:a}}},{key:"getGroupIndex",value:function(e){var t=this.w,n=t.globals.seriesGroups.findIndex((function(n){return n.indexOf(t.globals.seriesNames[e])>-1})),i=this.barCtx.columnGroupIndices,r=i.indexOf(n);return r<0&&(i.push(n),r=i.length-1),{groupIndex:n,columnGroupIndex:r}}}]),e}(),Ai=function(){function e(t,i){n(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=i,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var s=new $n(this.ctx);this.lastActiveBarSerieIndex=s.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var a=s.getBarSeriesIndices(),o=new An(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 Si(this)}return r(e,[{key:"draw",value:function(e,t){var n=this.w,i=new Sn(this.ctx),r=new An(this.ctx,n);e=r.getLogSeries(e),this.series=e,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var s=i.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 a=0,o=0;a<e.length;a++,o++){var l,c,u,d,f=void 0,p=void 0,m=[],g=[],v=n.globals.comboCharts?t[a]:a,y=this.barHelpers.getGroupIndex(v).columnGroupIndex,x=i.group({class:"apexcharts-series",rel:a+1,seriesName:b.escapeString(n.globals.seriesNames[v]),"data:realIndex":v});this.ctx.series.addCollapsedClassToSeries(x,v),e[a].length>0&&(this.visibleI=this.visibleI+1);var _=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[v],this.translationsIndex=v);var k=this.translationsIndex;this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var M=this.barHelpers.initialPositions(v);p=M.y,_=M.barHeight,c=M.yDivision,d=M.zeroW,f=M.x,w=M.barWidth,l=M.xDivision,u=M.zeroH,this.isHorizontal||g.push(f+w/2);var S=i.group({class:"apexcharts-datalabels","data:realIndex":v});n.globals.delayedElements.push({el:S.node}),S.node.classList.add("apexcharts-element-hidden");var A=i.group({class:"apexcharts-bar-goals-markers"}),L=i.group({class:"apexcharts-bar-shadows"});n.globals.delayedElements.push({el:L.node}),L.node.classList.add("apexcharts-element-hidden");for(var T=0;T<e[a].length;T++){var C=this.barHelpers.getStrokeWidth(a,T,v),D=null,E={indexes:{i:a,j:T,realIndex:v,translationsIndex:k,bc:o},x:f,y:p,strokeWidth:C,elSeries:x};this.isHorizontal?(D=this.drawBarPaths(h(h({},E),{},{barHeight:_,zeroW:d,yDivision:c})),w=this.series[a][T]/this.invertedYRatio):(D=this.drawColumnPaths(h(h({},E),{},{xDivision:l,barWidth:w,zeroH:u})),_=this.series[a][T]/this.yRatio[k]);var O=this.barHelpers.getPathFillColor(e,a,T,v);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&T>0){var P,Y=this.barHelpers.drawBarShadow({color:"string"==typeof O.color&&-1===(null===(P=O.color)||void 0===P?void 0:P.indexOf("url"))?O.color:b.hexToRgba(n.globals.colors[a]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:D});L.add(Y),n.config.chart.dropShadow.enabled&&new Mn(this.ctx).dropShadow(Y,n.config.chart.dropShadow,v)}this.pathArr.push(D);var I=this.barHelpers.drawGoalLine({barXPosition:D.barXPosition,barYPosition:D.barYPosition,goalX:D.goalX,goalY:D.goalY,barHeight:_,barWidth:w});I&&A.add(I),p=D.y,f=D.x,T>0&&g.push(f+w/2),m.push(p),this.renderSeries(h(h({realIndex:v,pathFill:O.color},O.useRangeColor?{lineFill:O.color}:{}),{},{j:T,i:a,columnGroupIndex:y,pathFrom:D.pathFrom,pathTo:D.pathTo,strokeWidth:C,elSeries:x,x:f,y:p,series:e,barHeight:Math.abs(D.barHeight?D.barHeight:_),barWidth:Math.abs(D.barWidth?D.barWidth:w),elDataLabelsWrap:S,elGoalsMarkers:A,elBarShadows:L,visibleSeries:this.visibleI,type:"bar"}))}n.globals.seriesXvalues[v]=g,n.globals.seriesYvalues[v]=m,s.add(x)}return s}},{key:"renderSeries",value:function(e){var t=e.realIndex,n=e.pathFill,i=e.lineFill,r=e.j,s=e.i,a=e.columnGroupIndex,o=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,y=e.barXPosition,b=e.barYPosition,x=e.elDataLabelsWrap,_=e.elGoalsMarkers,w=e.elBarShadows,k=e.visibleSeries,M=e.type,S=e.classes,A=this.w,L=new Sn(this.ctx);if(!i){var T="function"==typeof A.globals.stroke.colors[t]?function(e){var t,n=A.config.stroke.colors;return Array.isArray(n)&&n.length>0&&((t=n[e])||(t=""),"function"==typeof t)?t({value:A.globals.series[e][r],dataPointIndex:r,w:A}):t}(t):A.globals.stroke.colors[t];i=this.barOptions.distributed?A.globals.stroke.colors[r]:T}A.config.series[s].data[r]&&A.config.series[s].data[r].strokeColor&&(i=A.config.series[s].data[r].strokeColor),this.isNullValue&&(n="none");var C=r/A.config.chart.animations.animateGradually.delay*(A.config.chart.animations.speed/A.globals.dataPoints)/2.4,D=L.renderPaths({i:s,j:r,realIndex:t,pathFrom:o,pathTo:l,stroke:i,strokeWidth:c,strokeLineCap:A.config.stroke.lineCap,fill:n,animationDelay:C,initialSpeed:A.config.chart.animations.speed,dataChangeSpeed:A.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(M,"-area ").concat(S),chartType:M});D.attr("clip-path","url(#gridRectBarMask".concat(A.globals.cuid,")"));var E=A.config.forecastDataPoints;E.count>0&&r>=A.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 Mn(this.ctx).setSelectionFilter(D,t,r),u.add(D);var O=new Mi(this).handleBarDataLabels({x:d,y:h,y1:f,y2:p,i:s,j:r,series:m,realIndex:t,columnGroupIndex:a,barHeight:g,barWidth:v,barXPosition:y,barYPosition:b,renderedPath:D,visibleSeries:k});return null!==O.dataLabels&&x.add(O.dataLabels),O.totalDataLabels&&x.add(O.totalDataLabels),u.add(x),_&&u.add(_),w&&u.add(w),u}},{key:"drawBarPaths",value:function(e){var t,n=e.indexes,i=e.barHeight,r=e.strokeWidth,s=e.zeroW,a=e.x,o=e.y,l=e.yDivision,c=e.elSeries,u=this.w,d=n.i,h=n.j;if(u.globals.isXNumeric)t=(o=(u.globals.seriesX[d][h]-u.globals.minX)/this.invertedXRatio-i)+i*this.visibleI;else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var f=this.barHelpers.getZeroValueEncounters({i:d,j:h}),p=f.nonZeroColumns,m=f.zeroEncounters;p>0&&(i=this.seriesLen*i/p),t=o+i*this.visibleI,t-=i*m}else t=o+i*this.visibleI;this.isFunnel&&(s-=(this.barHelpers.getXForValue(this.series[d][h],s)-s)/2),a=this.barHelpers.getXForValue(this.series[d][h],s);var g=this.barHelpers.getBarpaths({barYPosition:t,barHeight:i,x1:s,x2:a,strokeWidth:r,isReversed:this.isReversed,series:this.series,realIndex:n.realIndex,i:d,j:h,w:u});return u.globals.isXNumeric||(o+=l),this.barHelpers.barBackground({j:h,i:d,y1:t-i*this.visibleI,y2:i*this.seriesLen,elSeries:c}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x1:s,x:a,y:o,goalX:this.barHelpers.getGoalValues("x",s,null,d,h),barYPosition:t,barHeight:i}}},{key:"drawColumnPaths",value:function(e){var t,n=e.indexes,i=e.x,r=e.y,s=e.xDivision,a=e.barWidth,o=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:i,j:p,realIndex:d,barWidth:a});i=g.x,t=g.barXPosition}else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var v=this.barHelpers.getZeroValueEncounters({i:f,j:p}),y=v.nonZeroColumns,b=v.zeroEncounters;y>0&&(a=this.seriesLen*a/y),t=i+a*this.visibleI,t-=a*b}else t=i+a*this.visibleI;r=this.barHelpers.getYForValue(this.series[f][p],o,h);var x=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:a,y1:o,y2:r,strokeWidth:l,isReversed:this.isReversed,series:this.series,realIndex:d,i:f,j:p,w:u});return u.globals.isXNumeric||(i+=s),this.barHelpers.barBackground({bc:m,j:p,i:f,x1:t-l/2-a*this.visibleI,x2:a*this.seriesLen+l/2,elSeries:c}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x:i,y:r,goalY:this.barHelpers.getGoalValues("y",null,o,f,p,h),barXPosition:t,barWidth:a}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,n=e.barWidth,i=e.realIndex,r=e.j,s=this.w,a=i;return s.globals.seriesX[i].length||(a=s.globals.maxValsInArrayIndex),b.isNumber(s.globals.seriesX[a][r])&&(t=(s.globals.seriesX[a][r]-s.globals.minX)/this.xRatio-n*this.seriesLen/2),{barXPosition:t+n*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var n,i=this.w,r=0;r<i.globals.previousPaths.length;r++){var s=i.globals.previousPaths[r];s.paths&&s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(e,10)&&void 0!==i.globals.previousPaths[r].paths[t]&&(n=i.globals.previousPaths[r].paths[t].d)}return n}}]),e}(),Li=function(e){c(i,e);var t=a(i);function i(){return n(this,i),t.apply(this,arguments)}return r(i,[{key:"draw",value:function(e,t){var n=this,i=this.w;this.graphics=new Sn(this.ctx),this.bar=new Ai(this.ctx,this.xyRatios);var r=new An(this.ctx,i);e=r.getLogSeries(e),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===i.config.chart.stackType&&(e=i.globals.comboCharts?t.map((function(e){return i.globals.seriesPercent[e]})):i.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);for(var s=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),a=0,o=0,l=function(r,l){var c=void 0,u=void 0,d=void 0,f=void 0,p=i.globals.comboCharts?t[r]:r,m=n.barHelpers.getGroupIndex(p),g=m.groupIndex,v=m.columnGroupIndex;n.groupCtx=n[i.globals.seriesGroups[g]];var y=[],x=[],_=0;n.yRatio.length>1&&(n.yaxisIndex=i.globals.seriesYAxisReverseMap[p][0],_=p),n.isReversed=i.config.yaxis[n.yaxisIndex]&&i.config.yaxis[n.yaxisIndex].reversed;var w=n.graphics.group({class:"apexcharts-series",seriesName:b.escapeString(i.globals.seriesNames[p]),rel:r+1,"data:realIndex":p});n.ctx.series.addCollapsedClassToSeries(w,p);var k=n.graphics.group({class:"apexcharts-datalabels","data:realIndex":p}),M=n.graphics.group({class:"apexcharts-bar-goals-markers"}),S=0,A=0,L=n.initialPositions(a,o,c,u,d,f,_);o=L.y,S=L.barHeight,u=L.yDivision,f=L.zeroW,a=L.x,A=L.barWidth,c=L.xDivision,d=L.zeroH,i.globals.barHeight=S,i.globals.barWidth=A,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 d})),n.groupCtx.prevYF[0]=n.groupCtx.prevYF[0].map((function(){return 0})));for(var T=0;T<i.globals.dataPoints;T++){var C=n.barHelpers.getStrokeWidth(r,T,p),D={indexes:{i:r,j:T,realIndex:p,translationsIndex:_,bc:l},strokeWidth:C,x:a,y:o,elSeries:w,columnGroupIndex:v,seriesGroup:i.globals.seriesGroups[g]},E=null;n.isHorizontal?(E=n.drawStackedBarPaths(h(h({},D),{},{zeroW:f,barHeight:S,yDivision:u})),A=n.series[r][T]/n.invertedYRatio):(E=n.drawStackedColumnPaths(h(h({},D),{},{xDivision:c,barWidth:A,zeroH:d})),S=n.series[r][T]/n.yRatio[_]);var O=n.barHelpers.drawGoalLine({barXPosition:E.barXPosition,barYPosition:E.barYPosition,goalX:E.goalX,goalY:E.goalY,barHeight:S,barWidth:A});O&&M.add(O),o=E.y,a=E.x,y.push(a),x.push(o);var P=n.barHelpers.getPathFillColor(e,r,T,p),Y="",I=i.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";("bottom"===n.barHelpers.arrBorderRadius[p][T]&&i.globals.series[p][T]>0||"top"===n.barHelpers.arrBorderRadius[p][T]&&i.globals.series[p][T]<0)&&(Y=I),w=n.renderSeries(h(h({realIndex:p,pathFill:P.color},P.useRangeColor?{lineFill:P.color}:{}),{},{j:T,i:r,columnGroupIndex:v,pathFrom:E.pathFrom,pathTo:E.pathTo,strokeWidth:C,elSeries:w,x:a,y:o,series:e,barHeight:S,barWidth:A,elDataLabelsWrap:k,elGoalsMarkers:M,type:"bar",visibleSeries:v,classes:Y}))}i.globals.seriesXvalues[p]=y,i.globals.seriesYvalues[p]=x,n.groupCtx.prevY.push(n.groupCtx.yArrj),n.groupCtx.prevYF.push(n.groupCtx.yArrjF),n.groupCtx.prevYVal.push(n.groupCtx.yArrjVal),n.groupCtx.prevX.push(n.groupCtx.xArrj),n.groupCtx.prevXF.push(n.groupCtx.xArrjF),n.groupCtx.prevXVal.push(n.groupCtx.xArrjVal),s.add(w)},c=0,u=0;c<e.length;c++,u++)l(c,u);return s}},{key:"initialPositions",value:function(e,t,n,i,r,s,a){var o,l,c=this.w;if(this.isHorizontal){i=c.globals.gridHeight/c.globals.dataPoints;var u=c.config.plotOptions.bar.barHeight;o=-1===String(u).indexOf("%")?parseInt(u,10):i*parseInt(u,10)/100,s=c.globals.padHorizontal+(this.isReversed?c.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),t=(i-o)/2}else{l=n=c.globals.gridWidth/c.globals.dataPoints;var d=c.config.plotOptions.bar.columnWidth;c.globals.isXNumeric&&c.globals.dataPoints>1?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,r=this.isReversed?this.baseLineY[a]:c.globals.gridHeight-this.baseLineY[a],e=c.globals.padHorizontal+(n-l)/2}var h=c.globals.barGroups.length||1;return{x:e,y:t,yDivision:i,xDivision:n,barHeight:o/h,barWidth:l/h,zeroH:r,zeroW:s}}},{key:"drawStackedBarPaths",value:function(e){for(var t,n=e.indexes,i=e.barHeight,r=e.strokeWidth,s=e.zeroW,a=e.x,o=e.y,l=e.columnGroupIndex,c=e.seriesGroup,u=e.yDivision,d=e.elSeries,h=this.w,f=o+l*i,p=n.i,m=n.j,g=n.realIndex,v=n.translationsIndex,y=0,b=0;b<this.groupCtx.prevXF.length;b++)y+=this.groupCtx.prevXF[b][m];var x=p;if(h.config.series[g].name&&(x=c.indexOf(h.config.series[g].name)),x>0){var _=s;this.groupCtx.prevXVal[x-1][m]<0?_=this.series[p][m]>=0?this.groupCtx.prevX[x-1][m]+y-2*(this.isReversed?y:0):this.groupCtx.prevX[x-1][m]:this.groupCtx.prevXVal[x-1][m]>=0&&(_=this.series[p][m]>=0?this.groupCtx.prevX[x-1][m]:this.groupCtx.prevX[x-1][m]-y+2*(this.isReversed?y:0)),t=_}else t=s;a=null===this.series[p][m]?t:t+this.series[p][m]/this.invertedYRatio-2*(this.isReversed?this.series[p][m]/this.invertedYRatio:0);var w=this.barHelpers.getBarpaths({barYPosition:f,barHeight:i,x1:t,x2:a,strokeWidth:r,isReversed:this.isReversed,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:i,elSeries:d}),o+=u,{pathTo:w.pathTo,pathFrom:w.pathFrom,goalX:this.barHelpers.getGoalValues("x",s,null,p,m,v),barXPosition:t,barYPosition:f,x:a,y:o}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,n=e.x,i=e.y,r=e.xDivision,s=e.barWidth,a=e.zeroH,o=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-s/2*u.globals.barGroups.length}for(var v,y=n+o*s,b=0,x=0;x<this.groupCtx.prevYF.length;x++)b+=isNaN(this.groupCtx.prevYF[x][h])?0:this.groupCtx.prevYF[x][h];var _=d;if(l&&(_=l.indexOf(u.globals.seriesNames[p])),_>0&&!u.globals.isXNumeric||_>0&&u.globals.isXNumeric&&u.globals.seriesX[p-1][h]===u.globals.seriesX[p][h]){var w,k,M,S=Math.min(this.yRatio.length+1,p+1);if(void 0!==this.groupCtx.prevY[_-1]&&this.groupCtx.prevY[_-1].length)for(var A=1;A<S;A++){var L;if(!isNaN(null===(L=this.groupCtx.prevY[_-A])||void 0===L?void 0:L[h])){M=this.groupCtx.prevY[_-A][h];break}}for(var T=1;T<S;T++){var C,D;if((null===(C=this.groupCtx.prevYVal[_-T])||void 0===C?void 0:C[h])<0){k=this.series[d][h]>=0?M-b+2*(this.isReversed?b:0):M;break}if((null===(D=this.groupCtx.prevYVal[_-T])||void 0===D?void 0:D[h])>=0){k=this.series[d][h]>=0?M:M+b-2*(this.isReversed?b:0);break}}void 0===k&&(k=u.globals.gridHeight),v=null!==(w=this.groupCtx.prevYF[0])&&void 0!==w&&w.every((function(e){return 0===e}))&&this.groupCtx.prevYF.slice(1,_).every((function(e){return e.every((function(e){return isNaN(e)}))}))?a:k}else v=a;i=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 E=this.barHelpers.getColumnPaths({barXPosition:y,barWidth:s,y1:v,y2:i,yRatio:this.yRatio[m],strokeWidth:this.strokeWidth,isReversed:this.isReversed,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:y,x2:s,elSeries:c}),{pathTo:E.pathTo,pathFrom:E.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,a,d,h),barXPosition:y,x:u.globals.isXNumeric?n:n+r,y:i}}}]),i}(Ai),Ti=function(e){c(i,e);var t=a(i);function i(){return n(this,i),t.apply(this,arguments)}return r(i,[{key:"draw",value:function(e,t,n){var i=this,r=this.w,s=new Sn(this.ctx),a=r.globals.comboCharts?t:r.config.chart.type,o=new Vn(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=r.config.plotOptions.bar.horizontal;var l=new An(this.ctx,r);e=l.getLogSeries(e),this.series=e,this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var c=s.group({class:"apexcharts-".concat(a,"-series apexcharts-plot-series")}),u=function(t){i.isBoxPlot="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[t].type;var a,l,u,d,f=void 0,p=void 0,m=[],g=[],v=r.globals.comboCharts?n[t]:t,y=i.barHelpers.getGroupIndex(v).columnGroupIndex,x=s.group({class:"apexcharts-series",seriesName:b.escapeString(r.globals.seriesNames[v]),rel:t+1,"data:realIndex":v});i.ctx.series.addCollapsedClassToSeries(x,v),e[t].length>0&&(i.visibleI=i.visibleI+1);var _,w,k=0;i.yRatio.length>1&&(i.yaxisIndex=r.globals.seriesYAxisReverseMap[v][0],k=v);var M=i.barHelpers.initialPositions(v);p=M.y,_=M.barHeight,l=M.yDivision,d=M.zeroW,f=M.x,w=M.barWidth,a=M.xDivision,u=M.zeroH,g.push(f+w/2);for(var S=s.group({class:"apexcharts-datalabels","data:realIndex":v}),A=s.group({class:"apexcharts-bar-goals-markers"}),L=function(n){var s=i.barHelpers.getStrokeWidth(t,n,v),c=null,b={indexes:{i:t,j:n,realIndex:v,translationsIndex:k},x:f,y:p,strokeWidth:s,elSeries:x};c=i.isHorizontal?i.drawHorizontalBoxPaths(h(h({},b),{},{yDivision:l,barHeight:_,zeroW:d})):i.drawVerticalBoxPaths(h(h({},b),{},{xDivision:a,barWidth:w,zeroH:u})),p=c.y,f=c.x;var M=i.barHelpers.drawGoalLine({barXPosition:c.barXPosition,barYPosition:c.barYPosition,goalX:c.goalX,goalY:c.goalY,barHeight:_,barWidth:w});M&&A.add(M),n>0&&g.push(f+w/2),m.push(p),c.pathTo.forEach((function(a,l){var u=!i.isBoxPlot&&i.candlestickOptions.wick.useFillColor?c.color[l]:r.globals.stroke.colors[t],d=o.fillPath({seriesNumber:v,dataPointIndex:n,color:c.color[l],value:e[t][n]});i.renderSeries({realIndex:v,pathFill:d,lineFill:u,j:n,i:t,pathFrom:c.pathFrom,pathTo:a,strokeWidth:s,elSeries:x,x:f,y:p,series:e,columnGroupIndex:y,barHeight:_,barWidth:w,elDataLabelsWrap:S,elGoalsMarkers:A,visibleSeries:i.visibleI,type:r.config.chart.type})}))},T=0;T<r.globals.dataPoints;T++)L(T);r.globals.seriesXvalues[v]=g,r.globals.seriesYvalues[v]=m,c.add(x)},d=0;d<e.length;d++)u(d);return c}},{key:"drawVerticalBoxPaths",value:function(e){var t=e.indexes,n=e.x;e.y;var i=e.xDivision,r=e.barWidth,s=e.zeroH,a=e.strokeWidth,o=this.w,l=new Sn(this.ctx),c=t.i,u=t.j,d=o.config.plotOptions.candlestick.colors,h=this.boxOptions.colors,f=t.realIndex,p=function(e){return Array.isArray(e)?e[f]:e},m=p(d.upward),g=p(d.downward),v=this.yRatio[t.translationsIndex],y=this.getOHLCValue(f,u),b=s,x=s,_=y.o<y.c?[m]:[g];this.isBoxPlot&&(_=[p(h.lower),p(h.upper)]);var w=Math.min(y.o,y.c),k=Math.max(y.o,y.c),M=y.m;o.globals.isXNumeric&&(n=(o.globals.seriesX[f][u]-o.globals.minX)/this.xRatio-r/2);var S=n+r*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(w=s,k=s):(w=s-w/v,k=s-k/v,b=s-y.h/v,x=s-y.l/v,M=s-y.m/v);var A=l.move(S,s),L=l.move(S+r/2,w);return o.globals.previousPaths.length>0&&(L=this.getPreviousPath(f,u,!0)),A=this.isBoxPlot?[l.move(S,w)+l.line(S+r/2,w)+l.line(S+r/2,b)+l.line(S+r/4,b)+l.line(S+r-r/4,b)+l.line(S+r/2,b)+l.line(S+r/2,w)+l.line(S+r,w)+l.line(S+r,M)+l.line(S,M)+l.line(S,w+a/2),l.move(S,M)+l.line(S+r,M)+l.line(S+r,k)+l.line(S+r/2,k)+l.line(S+r/2,x)+l.line(S+r-r/4,x)+l.line(S+r/4,x)+l.line(S+r/2,x)+l.line(S+r/2,k)+l.line(S,k)+l.line(S,M)+"z"]:[l.move(S,k)+l.line(S+r/2,k)+l.line(S+r/2,b)+l.line(S+r/2,k)+l.line(S+r,k)+l.line(S+r,w)+l.line(S+r/2,w)+l.line(S+r/2,x)+l.line(S+r/2,w)+l.line(S,w)+l.line(S,k-a/2)],L+=l.move(S,w),o.globals.isXNumeric||(n+=i),{pathTo:A,pathFrom:L,x:n,y:k,goalY:this.barHelpers.getGoalValues("y",null,s,c,u,t.translationsIndex),barXPosition:S,color:_}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var n=e.y,i=e.yDivision,r=e.barHeight,s=e.zeroW,a=e.strokeWidth,o=this.w,l=new Sn(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=s,g=s,v=Math.min(p.o,p.c),y=Math.max(p.o,p.c),b=p.m;o.globals.isXNumeric&&(n=(o.globals.seriesX[f][u]-o.globals.minX)/this.invertedXRatio-r/2);var x=n+r*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(v=s,y=s):(v=s+v/h,y=s+y/h,m=s+p.h/h,g=s+p.l/h,b=s+p.m/h);var _=l.move(s,x),w=l.move(v,x+r/2);return o.globals.previousPaths.length>0&&(w=this.getPreviousPath(f,u,!0)),_=[l.move(v,x)+l.line(v,x+r/2)+l.line(m,x+r/2)+l.line(m,x+r/2-r/4)+l.line(m,x+r/2+r/4)+l.line(m,x+r/2)+l.line(v,x+r/2)+l.line(v,x+r)+l.line(b,x+r)+l.line(b,x)+l.line(v+a/2,x),l.move(b,x)+l.line(b,x+r)+l.line(y,x+r)+l.line(y,x+r/2)+l.line(g,x+r/2)+l.line(g,x+r-r/4)+l.line(g,x+r/4)+l.line(g,x+r/2)+l.line(y,x+r/2)+l.line(y,x)+l.line(b,x)+"z"],w+=l.move(v,x),o.globals.isXNumeric||(n+=i),{pathTo:_,pathFrom:w,x:y,y:n,goalX:this.barHelpers.getGoalValues("x",s,null,c,u),barYPosition:x,color:d}}},{key:"getOHLCValue",value:function(e,t){var n=this.w,i=new An(this.ctx,n),r=i.getLogValAtSeriesIndex(n.globals.seriesCandleH[e][t],e),s=i.getLogValAtSeriesIndex(n.globals.seriesCandleO[e][t],e),a=i.getLogValAtSeriesIndex(n.globals.seriesCandleM[e][t],e),o=i.getLogValAtSeriesIndex(n.globals.seriesCandleC[e][t],e),l=i.getLogValAtSeriesIndex(n.globals.seriesCandleL[e][t],e);return{o:this.isBoxPlot?r:s,h:this.isBoxPlot?s:r,m:a,l:this.isBoxPlot?o:l,c:this.isBoxPlot?l:o}}}]),i}(Ai),Ci=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(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,i){var r=this.w,s=1,a=r.config.plotOptions[e].shadeIntensity,o=this.determineColor(e,t,n);r.globals.hasNegs||i?s=r.config.plotOptions[e].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*a):(1-o.percent/100)*(1.25*a):o.percent<=0?1-(1+o.percent/100)*a:(1-o.percent/100)*a:(s=1-o.percent/100,"treemap"===e&&(s=(1-o.percent/100)*(1.25*a)));var l=o.color,c=new b;if(r.config.plotOptions[e].enableShades)if("dark"===this.w.config.theme.mode){var u=c.shadeColor(-1*s,o.color);l=b.hexToRgba(b.isColorHex(u)?u:b.rgb2hex(u),r.config.fill.opacity)}else{var d=c.shadeColor(s,o.color);l=b.hexToRgba(b.isColorHex(d)?d:b.rgb2hex(d),r.config.fill.opacity)}return{color:l,colorProps:o}}},{key:"determineColor",value:function(e,t,n){var i=this.w,r=i.globals.series[t][n],s=i.config.plotOptions[e],a=s.colorScale.inverse?n:t;s.distributed&&"treemap"===i.config.chart.type&&(a=n);var o=i.globals.colors[a],l=null,c=Math.min.apply(Math,m(i.globals.series[t])),u=Math.max.apply(Math,m(i.globals.series[t]));s.distributed||"heatmap"!==e||(c=i.globals.minY,u=i.globals.maxY),void 0!==s.colorScale.min&&(c=s.colorScale.min<i.globals.minY?s.colorScale.min:i.globals.minY,u=s.colorScale.max>i.globals.maxY?s.colorScale.max:i.globals.maxY);var d=Math.abs(u)+Math.abs(c),h=100*r/(0===d?d-1e-6:d);return s.colorScale.ranges.length>0&&s.colorScale.ranges.map((function(e,t){if(r>=e.from&&r<=e.to){o=e.color,l=e.foreColor?e.foreColor:null,c=e.from,u=e.to;var n=Math.abs(u)+Math.abs(c);h=100*r/(0===n?n-1e-6:n)}})),{color:o,foreColor:l,percent:h}}},{key:"calculateDataLabels",value:function(e){var t=e.text,n=e.x,i=e.y,r=e.i,s=e.j,a=e.colorProps,o=e.fontSize,l=this.w.config.dataLabels,c=new Sn(this.ctx),u=new Un(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=i+parseFloat(l.style.fontSize)/3+f;u.plotDataLabelsText({x:p,y:m,text:t,i:r,j:s,color:a.foreColor,parent:d,fontSize:o,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(e){var t=new Sn(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}(),Di=function(){function e(t,i){n(this,e),this.ctx=t,this.w=t.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Ci(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return r(e,[{key:"draw",value:function(e){var t=this.w,n=new Sn(this.ctx),i=n.group({class:"apexcharts-heatmap"});i.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var r=t.globals.gridWidth/t.globals.dataPoints,s=t.globals.gridHeight/t.globals.series.length,a=0,o=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var c=o?0:l.length-1;o?c<l.length:c>=0;o?c++:c--){var u=n.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:b.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 Mn(this.ctx).dropShadow(u,d,c)}for(var h=0,f=t.config.plotOptions.heatmap.shadeIntensity,p=0,m=0;m<t.globals.dataPoints;m++)if(t.globals.seriesX.length&&!t.globals.allSeriesHasEqualX&&t.globals.minX+t.globals.minXDiff*m<t.globals.seriesX[c][p])h+=r;else{if(p>=l[c].length)break;var g=this.helpers.getShadeColor(t.config.chart.type,c,p,this.negRange),v=g.color,y=g.colorProps;"image"===t.config.fill.type&&(v=new Vn(this.ctx).fillPath({seriesNumber:c,dataPointIndex:p,opacity:t.globals.hasNegs?y.percent<0?1-(1+y.percent/100):f+y.percent/100:y.percent/100,patternID:b.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:r,height:t.config.fill.image.height?t.config.fill.image.height:s}));var x=this.rectRadius,_=n.drawRect(h,a,r,s,x);if(_.attr({cx:h,cy:a}),_.node.classList.add("apexcharts-heatmap-rect"),u.add(_),_.attr({fill:v,i:c,index:c,j:p,val:e[c][p],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?v:t.globals.stroke.colors[0],color:v}),this.helpers.addListeners(_),t.config.chart.animations.enabled&&!t.globals.dataChanged){var w=1;t.globals.resized||(w=t.config.chart.animations.speed),this.animateHeatMap(_,h,a,r,s,w)}if(t.globals.dataChanged){var k=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){k=this.dynamicAnim.speed;var M=t.globals.previousPaths[c]&&t.globals.previousPaths[c][p]&&t.globals.previousPaths[c][p].color;M||(M="rgba(255, 255, 255, 0)"),this.animateHeatColor(_,b.isColorHex(M)?M:b.rgb2hex(M),b.isColorHex(v)?v:b.rgb2hex(v),k)}}var S=(0,t.config.dataLabels.formatter)(t.globals.series[c][p],{value:t.globals.series[c][p],seriesIndex:c,dataPointIndex:p,w:t}),A=this.helpers.calculateDataLabels({text:S,x:h+r/2,y:a+s/2,i:c,j:p,colorProps:y,series:l});null!==A&&u.add(A),h+=r,p++}a+=s,i.add(u)}var L=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?L.unshift(""):L.push(""),t.globals.yAxisScale[0].result=L,i}},{key:"animateHeatMap",value:function(e,t,n,i,r,s){var a=new x(this.ctx);a.animateRect(e,{x:t+i/2,y:n+r/2,width:0,height:0},{x:t,y:n,width:i,height:r},s,(function(){a.animationCompleted(e)}))}},{key:"animateHeatColor",value:function(e,t,n,i){e.attr({fill:t}).animate(i).attr({fill:n})}}]),e}(),Ei=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"drawYAxisTexts",value:function(e,t,n,i){var r=this.w,s=r.config.yaxis[0],a=r.globals.yLabelFormatters[0];return new Sn(this.ctx).drawText({x:e+s.labels.offsetX,y:t+s.labels.offsetY,text:a(i,n),textAnchor:"middle",fontSize:s.labels.style.fontSize,fontFamily:s.labels.style.fontFamily,foreColor:Array.isArray(s.labels.style.colors)?s.labels.style.colors[n]:s.labels.style.colors})}}]),e}(),Oi=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=Math.min(i.globals.gridWidth,i.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=i.globals.gridWidth/2,"radialBar"===i.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(i.config.plotOptions.pie.endAngle-i.config.plotOptions.pie.startAngle),this.initialAngle=i.config.plotOptions.pie.startAngle%this.fullAngle,i.globals.radialSize=this.defaultSize/2.05-i.config.stroke.width-(i.config.chart.sparkline.enabled?0:i.config.chart.dropShadow.blur),this.donutSize=i.globals.radialSize*parseInt(i.config.plotOptions.pie.donut.size,10)/100;var r=i.config.plotOptions.pie.customScale,s=i.globals.gridWidth/2,a=i.globals.gridHeight/2;this.translateX=s-s*r,this.translateY=a-a*r,this.dataLabelsGroup=new Sn(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(r,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return r(e,[{key:"draw",value:function(e){var t=this,n=this.w,i=new Sn(this.ctx),r=i.group({class:"apexcharts-pie"});if(n.globals.noData)return r;for(var s=0,a=0;a<e.length;a++)s+=b.negToZero(e[a]);var o=[],l=i.group();0===s&&(s=1e-5),e.forEach((function(e){t.maxY=Math.max(t.maxY,e)})),n.config.yaxis[0].max&&(this.maxY=n.config.yaxis[0].max),"back"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(r);for(var c=0;c<e.length;c++){var u=this.fullAngle*b.negToZero(e[c])/s;o.push(u),"polarArea"===this.chartType?(o[c]=this.fullAngle/e.length,this.sliceSizes.push(n.globals.radialSize*e[c]/this.maxY)):this.sliceSizes.push(n.globals.radialSize)}if(n.globals.dataChanged){for(var d,h=0,f=0;f<n.globals.previousPaths.length;f++)h+=b.negToZero(n.globals.previousPaths[f]);for(var p=0;p<n.globals.previousPaths.length;p++)d=this.fullAngle*b.negToZero(n.globals.previousPaths[p])/h,this.prevSectorAngleArr.push(d)}if(this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType){var m=i.drawCircle(this.donutSize);m.attr({cx:this.centerX,cy:this.centerY,fill:n.config.plotOptions.pie.donut.background?n.config.plotOptions.pie.donut.background:"transparent"}),l.add(m)}var g=this.drawArcs(o,e);if(this.sliceLabels.forEach((function(e){g.add(e)})),l.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(n.config.plotOptions.pie.customScale,")")}),l.add(g),r.add(l),this.donutDataLabels.show){var v=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});r.add(v)}return"front"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(r),r}},{key:"drawArcs",value:function(e,t){var n=this.w,i=new Mn(this.ctx),r=new Sn(this.ctx),s=new Vn(this.ctx),a=r.group({class:"apexcharts-slices"}),o=this.initialAngle,l=this.initialAngle,c=this.initialAngle,u=this.initialAngle;this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0;for(var d=0;d<e.length;d++){var h=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:b.escapeString(n.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});a.add(h),l=u,c=(o=c)+e[d],u=l+this.prevSectorAngleArr[d];var f=c<o?this.fullAngle+c-o:c-o,p=s.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:t[d]}),m=this.getChangedPath(l,u),g=r.drawPath({d:m,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:n.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(g.attr({index:0,j:d}),i.setSelectionFilter(g,0,d),n.config.chart.dropShadow.enabled){var v=n.config.chart.dropShadow;i.dropShadow(g,v,d)}this.addListeners(g,this.donutDataLabels),Sn.setAttrs(g.node,{"data:angle":f,"data:startAngle":o,"data:strokeWidth":this.strokeWidth,"data:value":t[d]});var y={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?y=b.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize/1.25+n.config.plotOptions.pie.dataLabels.offset,(o+f/2)%this.fullAngle):"donut"===this.chartType&&(y=b.polarToCartesian(this.centerX,this.centerY,(n.globals.radialSize+this.donutSize)/2+n.config.plotOptions.pie.dataLabels.offset,(o+f/2)%this.fullAngle)),h.add(g);var x=0;if(!this.initialAnim||n.globals.resized||n.globals.dataChanged?this.animBeginArr.push(0):(0==(x=f/this.fullAngle*n.config.chart.animations.speed)&&(x=1),this.animDur=x+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&n.globals.dataChanged?this.animatePaths(g,{size:this.sliceSizes[d],endAngle:c,startAngle:o,prevStartAngle:l,prevEndAngle:u,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:n.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(g,{size:this.sliceSizes[d],endAngle:c,startAngle:o,i:d,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:x}),n.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&g.node.addEventListener("mouseup",this.pieClicked.bind(this,d)),void 0!==n.globals.selectedDataPoints[0]&&n.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),n.config.dataLabels.enabled){var _=y.x,w=y.y,k=100*f/this.fullAngle+"%";if(0!==f&&n.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[d]){var M=n.config.dataLabels.formatter;void 0!==M&&(k=M(n.globals.seriesPercent[d][0],{seriesIndex:d,w:n}));var S=n.globals.dataLabels.style.colors[d],A=r.group({class:"apexcharts-datalabels"}),L=r.drawText({x:_,y:w,text:k,textAnchor:"middle",fontSize:n.config.dataLabels.style.fontSize,fontFamily:n.config.dataLabels.style.fontFamily,fontWeight:n.config.dataLabels.style.fontWeight,foreColor:S});if(A.add(L),n.config.dataLabels.dropShadow.enabled){var T=n.config.dataLabels.dropShadow;i.dropShadow(L,T)}L.node.classList.add("apexcharts-pie-label"),n.config.chart.animations.animate&&!1===n.globals.resized&&(L.node.classList.add("apexcharts-pie-label-delay"),L.node.style.animationDelay=n.config.chart.animations.speed/940+"s"),this.sliceLabels.push(A)}}}return a}},{key:"addListeners",value:function(e,t){var n=new Sn(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var n=this.w,i=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,r=i,s=t.startAngle,a=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(s=t.prevEndAngle,r=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===n.config.series.length-1&&(i+a>this.fullAngle?t.endAngle=t.endAngle-(i+a):i+a<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(i+a)))),i===this.fullAngle&&(i=this.fullAngle-.01),this.animateArc(e,s,a,i,r,t)}},{key:"animateArc",value:function(e,t,n,i,r,s){var a,o=this,l=this.w,c=new x(this.ctx),u=s.size;(isNaN(t)||isNaN(r))&&(t=n,r=i,s.dur=0);var d=i,h=n,f=t<n?this.fullAngle+t-n:t-n;l.globals.dataChanged&&s.shouldSetPrevPaths&&s.prevEndAngle&&(a=o.getPiePath({me:o,startAngle:s.prevStartAngle,angle:s.prevEndAngle<s.prevStartAngle?this.fullAngle+s.prevEndAngle-s.prevStartAngle:s.prevEndAngle-s.prevStartAngle,size:u}),e.attr({d:a})),0!==s.dur?e.animate(s.dur,s.animBeginArr[s.i]).after((function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),s.i===l.config.series.length-1&&c.animationCompleted(e)})).during((function(l){d=f+(i-f)*l,s.animateStartingPos&&(d=r+(i-r)*l,h=t-r+(n-(t-r))*l),a=o.getPiePath({me:o,startAngle:h,angle:d,size:u}),e.node.setAttribute("data:pathOrig",a),e.attr({d:a})})):(a=o.getPiePath({me:o,startAngle:h,angle:i,size:u}),s.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",a),e.attr({d:a,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,n=this.w,i=this,r=i.sliceSizes[e]+(n.config.plotOptions.pie.expandOnClick?4:0),s=n.globals.dom.Paper.findOne(".apexcharts-".concat(i.chartType.toLowerCase(),"-slice-").concat(e));if("true"!==s.attr("data:pieClicked")){var a=n.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(a,(function(e){e.setAttribute("data:pieClicked","false");var t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)})),n.globals.capturedDataPointIndex=e,s.attr("data:pieClicked","true");var o=parseInt(s.attr("data:startAngle"),10),l=parseInt(s.attr("data:angle"),10);t=i.getPiePath({me:i,startAngle:o,angle:l,size:r}),360!==l&&s.plot(t)}else{s.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(s.node,this.donutDataLabels);var c=s.attr("data:pathOrig");s.attr({d:c})}}},{key:"getChangedPath",value:function(e,t){var n="";return this.dynamicAnim&&this.w.globals.dataChanged&&(n=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),n}},{key:"getPiePath",value:function(e){var t,n=e.me,i=e.startAngle,r=e.angle,s=e.size,a=new Sn(this.ctx),o=i,l=Math.PI*(o-90)/180,c=r+i;Math.ceil(c)>=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+s*Math.cos(l),h=n.centerY+s*Math.sin(l),f=n.centerX+s*Math.cos(u),p=n.centerY+s*Math.sin(u),m=b.polarToCartesian(n.centerX,n.centerY,n.donutSize,c),g=b.polarToCartesian(n.centerX,n.centerY,n.donutSize,o),v=r>180?1:0,y=["M",d,h,"A",s,s,0,v,1,f,p];return t="donut"===n.chartType?[].concat(y,["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(y,["L",n.centerX,n.centerY,"L",d,h]).join(" "):[].concat(y).join(" "),a.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,n=new Jn(this.ctx),i=new Sn(this.ctx),r=new Ei(this.ctx),s=i.group(),a=i.group(),o=n.niceScale(0,Math.ceil(this.maxY),0),l=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var u=t.globals.radialSize,d=u/(c-1),h=0;h<c-1;h++){var f=i.drawCircle(u);if(f.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var p=r.drawYAxisTexts(this.centerX,this.centerY-u+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,h,l[h]);a.add(p)}s.add(f),u-=d}this.drawSpokes(e),e.add(s),e.add(a)}},{key:"renderInnerDataLabels",value:function(e,t,n){var i=this.w,r=new Sn(this.ctx),s=t.total.show;e.node.innerHTML="",e.node.style.opacity=n.opacity;var a,o,l=n.centerX,c=this.donutDataLabels.total.label?n.centerY:n.centerY-n.centerY/6;a=void 0===t.name.color?i.globals.colors[0]:t.name.color;var u=t.name.fontSize,d=t.name.fontFamily,h=t.name.fontWeight;o=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var f=t.value.formatter,p="",m="";if(s?(a=t.total.color,u=t.total.fontSize,d=t.total.fontFamily,h=t.total.fontWeight,m=this.donutDataLabels.total.label?t.total.label:"",p=t.total.formatter(i)):1===i.globals.series.length&&(p=f(i.globals.series[0],i),m=i.globals.seriesNames[0]),m&&(m=t.name.formatter(m,t.total.show,i)),t.name.show){var g=r.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:m,textAnchor:"middle",foreColor:a,fontSize:u,fontWeight:h,fontFamily:d});g.node.classList.add("apexcharts-datalabel-label"),e.add(g)}if(t.value.show){var v=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,y=r.drawText({x:l,y:c+v,text:p,textAnchor:"middle",foreColor:o,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});y.node.classList.add("apexcharts-datalabel-value"),e.add(y)}return e}},{key:"printInnerLabels",value:function(e,t,n,i){var r,s=this.w;i?r=void 0===e.name.color?s.globals.colors[parseInt(i.parentNode.getAttribute("rel"),10)-1]:e.name.color:s.globals.series.length>1&&e.total.show&&(r=e.total.color);var a=s.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=s.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");n=(0,e.value.formatter)(n,s),i||"function"!=typeof e.total.formatter||(n=e.total.formatter(s));var l=t===e.total.label;t=this.donutDataLabels.total.label?e.name.formatter(t,l,s):"",null!==a&&(a.textContent=t),null!==o&&(o.textContent=n),null!==a&&(a.style.fill=r)}},{key:"printDataLabelsInner",value:function(e,t){var n=this.w,i=e.getAttribute("data:value"),r=n.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];n.globals.series.length>1&&this.printInnerLabels(t,r,i,e);var s=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==s&&(s.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,n=this.w,i=new Sn(this.ctx),r=n.config.plotOptions.polarArea.spokes;if(0!==r.strokeWidth){for(var s=[],a=360/n.globals.series.length,o=0;o<n.globals.series.length;o++)s.push(b.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize,n.config.plotOptions.pie.startAngle+a*o));s.forEach((function(n,s){var a=i.drawLine(n.x,n.y,t.centerX,t.centerY,Array.isArray(r.connectorColors)?r.connectorColors[s]:r.connectorColors);e.add(a)}))}}},{key:"revertDataLabelsInner",value:function(){var e=this.w;if(this.donutDataLabels.show){var t=e.globals.dom.Paper.findOne(".apexcharts-datalabels-group"),n=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.globals.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(n)}}}]),e}(),Pi=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new Sn(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight<i.globals.svgWidth?i.globals.gridHeight:i.globals.gridWidth,this.isLog=i.config.yaxis[0].logarithmic,this.logBase=i.config.yaxis[0].logBase,this.coreUtils=new An(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,i.globals.maxY,0):i.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):i.globals.minY,this.polygons=i.config.plotOptions.radar.polygons,this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-i.config.chart.dropShadow.blur,i.config.xaxis.labels.show&&(this.size=this.size-i.globals.xAxisLabelsWidth/1.75),void 0!==i.config.plotOptions.radar.size&&(this.size=i.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return r(e,[{key:"draw",value:function(e){var t=this,n=this.w,i=new Vn(this.ctx),r=[],s=new Un(this.ctx);e.length&&(this.dataPointsLen=e[n.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var a=n.globals.gridWidth/2,o=n.globals.gridHeight/2,l=a+n.config.plotOptions.radar.offsetX,c=o+n.config.plotOptions.radar.offsetY,u=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(l||0,", ").concat(c||0,")")}),d=[],f=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((function(e,a){var o=e.length===n.globals.dataPoints,l=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":o,seriesName:b.escapeString(n.globals.seriesNames[a]),rel:a+1,"data:realIndex":a});t.dataRadiusOfPercent[a]=[],t.dataRadius[a]=[],t.angleArr[a]=[],e.forEach((function(e,n){var i=Math.abs(t.maxValue-t.minValue);e-=t.minValue,t.isLog&&(e=t.coreUtils.getLogVal(t.logBase,e,0)),t.dataRadiusOfPercent[a][n]=e/i,t.dataRadius[a][n]=t.dataRadiusOfPercent[a][n]*t.size,t.angleArr[a][n]=n*t.disAngle})),d=t.getDataPointsPos(t.dataRadius[a],t.angleArr[a]);var c=t.createPaths(d,{x:0,y:0});f=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":a}),n.globals.delayedElements.push({el:f.node,index:a});var u={i:a,realIndex:a,animationDelay:a,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:n.globals.stroke.colors[a],strokeLineCap:n.config.stroke.lineCap},m=null;n.globals.previousPaths.length>0&&(m=t.getPreviousPath(a));for(var g=0;g<c.linePathsTo.length;g++){var v=t.graphics.renderPaths(h(h({},u),{},{pathFrom:null===m?c.linePathsFrom[g]:m,pathTo:c.linePathsTo[g],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[a]:t.strokeWidth,fill:"none",drawShadow:!1}));l.add(v);var y=i.fillPath({seriesNumber:a}),x=t.graphics.renderPaths(h(h({},u),{},{pathFrom:null===m?c.areaPathsFrom[g]:m,pathTo:c.areaPathsTo[g],strokeWidth:0,fill:y,drawShadow:!1}));if(n.config.chart.dropShadow.enabled){var _=new Mn(t.ctx),w=n.config.chart.dropShadow;_.dropShadow(x,Object.assign({},w,{noUserSpaceOnUse:!0}),a)}l.add(x)}e.forEach((function(e,i){var r=new Wn(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:a,dataPointIndex:i}),o=t.graphics.drawMarker(d[i].x,d[i].y,r);o.attr("rel",i),o.attr("j",i),o.attr("index",a),o.node.setAttribute("default-marker-size",r.pSize);var c=t.graphics.group({class:"apexcharts-series-markers"});c&&c.add(o),f.add(c),l.add(f);var u=n.config.dataLabels;if(u.enabled){var m=u.formatter(n.globals.series[a][i],{seriesIndex:a,dataPointIndex:i,w:n});s.plotDataLabelsText({x:d[i].x,y:d[i].y,text:m,textAnchor:"middle",i:a,j:a,parent:p,offsetCorrection:!1,dataLabelsConfig:h({},u)})}l.add(p)})),r.push(l)})),this.drawPolygons({parent:u}),n.config.xaxis.labels.show){var m=this.drawXAxisTexts();u.add(m)}return r.forEach((function(e){u.add(e)})),u.add(this.yaxisLabels),u}},{key:"drawPolygons",value:function(e){for(var t=this,n=this.w,i=e.parent,r=new Ei(this.ctx),s=n.globals.yAxisScale[0].result.reverse(),a=s.length,o=[],l=this.size/(a-1),c=0;c<a;c++)o[c]=l*c;o.reverse();var u=[],d=[];o.forEach((function(e,n){var i=b.getPolygonPos(e,t.dataPointsLen),r="";i.forEach((function(e,i){if(0===n){var s=t.graphics.drawLine(e.x,e.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[i]:t.polygons.connectorColors);d.push(s)}0===i&&t.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),r+=e.x+","+e.y+" "})),u.push(r)})),u.forEach((function(e,r){var s=t.polygons.strokeColors,a=t.polygons.strokeWidth,o=t.graphics.drawPolygon(e,Array.isArray(s)?s[r]:s,Array.isArray(a)?a[r]:a,n.globals.radarPolygons.fill.colors[r]);i.add(o)})),d.forEach((function(e){i.add(e)})),n.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(e,n){var i=r.drawYAxisTexts(e.x,e.y,n,s[n]);t.yaxisLabels.add(i)}))}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,n=t.config.xaxis.labels,i=this.graphics.group({class:"apexcharts-xaxis"}),r=b.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach((function(s,a){var o=t.config.xaxis.labels.formatter,l=new Un(e.ctx);if(r[a]){var c=e.getTextPos(r[a],e.size),u=o(s,{seriesIndex:-1,dataPointIndex:a,w:t});l.plotDataLabelsText({x:c.newX,y:c.newY,text:u,textAnchor:c.textAnchor,i:a,j:a,parent:i,className:"apexcharts-xaxis-label",color:Array.isArray(n.style.colors)&&n.style.colors[a]?n.style.colors[a]:"#a8a8a8",dataLabelsConfig:h({textAnchor:c.textAnchor,dropShadow:{enabled:!1}},n),offsetCorrection:!1}).on("click",(function(n){if("function"==typeof t.config.chart.events.xAxisLabelClick){var i=Object.assign({},t,{labelIndex:a});t.config.chart.events.xAxisLabelClick(n,e.ctx,i)}}))}})),i}},{key:"createPaths",value:function(e,t){var n=this,i=[],r=[],s=[],a=[];if(e.length){r=[this.graphics.move(t.x,t.y)],a=[this.graphics.move(t.x,t.y)];var o=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach((function(t,i){o+=n.graphics.line(t.x,t.y),l+=n.graphics.line(t.x,t.y),i===e.length-1&&(o+="Z",l+="Z")})),i.push(o),s.push(l)}return{linePathsFrom:r,linePathsTo:i,areaPathsFrom:a,areaPathsTo:s}}},{key:"getTextPos",value:function(e,t){var n="middle",i=e.x,r=e.y;return Math.abs(e.x)>=10?e.x>0?(n="start",i+=10):e.x<0&&(n="end",i-=10):n="middle",Math.abs(e.y)>=t-10&&(e.y<0?r-=10:e.y>0&&(r+=10)),{textAnchor:n,newX:i,newY:r}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,n=null,i=0;i<t.globals.previousPaths.length;i++){var r=t.globals.previousPaths[i];r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[i].paths[0]&&(n=t.globals.previousPaths[i].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 i=[],r=0;r<n;r++){var s={};s.x=e[r]*Math.sin(t[r]),s.y=-e[r]*Math.cos(t[r]),i.push(s)}return i}}]),e}(),Yi=function(e){c(s,e);var i=a(s);function s(e){var r;n(this,s),(r=i.call(this,e)).ctx=e,r.w=e.w,r.animBeginArr=[0],r.animDur=0;var a=r.w;return r.startAngle=a.config.plotOptions.radialBar.startAngle,r.endAngle=a.config.plotOptions.radialBar.endAngle,r.totalAngle=Math.abs(a.config.plotOptions.radialBar.endAngle-a.config.plotOptions.radialBar.startAngle),r.trackStartAngle=a.config.plotOptions.radialBar.track.startAngle,r.trackEndAngle=a.config.plotOptions.radialBar.track.endAngle,r.barLabels=r.w.config.plotOptions.radialBar.barLabels,r.donutDataLabels=r.w.config.plotOptions.radialBar.dataLabels,r.radialDataLabels=r.donutDataLabels,r.trackStartAngle||(r.trackStartAngle=r.startAngle),r.trackEndAngle||(r.trackEndAngle=r.endAngle),360===r.endAngle&&(r.endAngle=359.99),r.margin=parseInt(a.config.plotOptions.radialBar.track.margin,10),r.onBarLabelClick=r.onBarLabelClick.bind(t(r)),r}return r(s,[{key:"draw",value:function(e){var t=this.w,n=new Sn(this.ctx),i=n.group({class:"apexcharts-radialbar"});if(t.globals.noData)return i;var r=n.group(),s=this.defaultSize/2,a=t.globals.gridWidth/2,o=this.defaultSize/2.05;t.config.chart.sparkline.enabled||(o=o-t.config.stroke.width-t.config.chart.dropShadow.blur);var l=t.globals.fill.colors;if(t.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:a,centerY:s,colorArr:l,series:e});r.add(c)}var u=this.drawArcs({size:o,centerX:a,centerY:s,colorArr:l,series:e}),d=360;t.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var h=(360-d)/360;if(t.globals.radialSize=o-o*h,this.radialDataLabels.value.show){var f=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);t.globals.radialSize+=f*h}return r.add(u.g),"front"===t.config.plotOptions.radialBar.hollow.position&&(u.g.add(u.elHollow),u.dataLabels&&u.g.add(u.dataLabels)),i.add(r),i}},{key:"drawTracks",value:function(e){var t=this.w,n=new Sn(this.ctx),i=n.group({class:"apexcharts-tracks"}),r=new Mn(this.ctx),s=new Vn(this.ctx),a=this.getStrokeWidth(e);e.size=e.size-a/2;for(var o=0;o<e.series.length;o++){var l=n.group({class:"apexcharts-radialbar-track apexcharts-track"});i.add(l),l.attr({rel:o+1}),e.size=e.size-a-this.margin;var c=t.config.plotOptions.radialBar.track,u=s.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[o]:c.background,solid:!0}),d=this.trackStartAngle,h=this.trackEndAngle;Math.abs(h)+Math.abs(d)>=360&&(h=360-Math.abs(this.startAngle)-.1);var f=n.drawPath({d:"",stroke:u,strokeWidth:a*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;r.dropShadow(f,p)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+o),this.animatePaths(f,{centerX:e.centerX,centerY:e.centerY,endAngle:h,startAngle:d,size:e.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return i}},{key:"drawArcs",value:function(e){var t=this.w,n=new Sn(this.ctx),i=new Vn(this.ctx),r=new Mn(this.ctx),s=n.group(),a=this.getStrokeWidth(e);e.size=e.size-a/2;var o=t.config.plotOptions.radialBar.hollow.background,l=e.size-a*e.series.length-this.margin*e.series.length-a*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&&(o=this.drawHollowImage(e,s,l,o));var u=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:o||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=t.config.plotOptions.radialBar.hollow.dropShadow;r.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.findOne(".apexcharts-datalabels-group");f=this.renderInnerDataLabels(p,this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:h})}"back"===t.config.plotOptions.radialBar.hollow.position&&(s.add(u),f&&s.add(f));var m=!1;t.config.plotOptions.radialBar.inverseOrder&&(m=!0);for(var g=m?e.series.length-1:0;m?g>=0:g<e.series.length;m?g--:g++){var v=n.group({class:"apexcharts-series apexcharts-radial-series",seriesName:b.escapeString(t.globals.seriesNames[g])});s.add(v),v.attr({rel:g+1,"data:realIndex":g}),this.ctx.series.addCollapsedClassToSeries(v,g),e.size=e.size-a-this.margin;var y=i.fillPath({seriesNumber:g,size:e.size,value:e.series[g]}),x=this.startAngle,_=void 0,w=b.negToZero(e.series[g]>100?100:e.series[g])/100,k=Math.round(this.totalAngle*w)+this.startAngle,M=void 0;t.globals.dataChanged&&(_=this.startAngle,M=Math.round(this.totalAngle*b.negToZero(t.globals.previousPaths[g])/100)+_),Math.abs(k)+Math.abs(x)>360&&(k-=.01),Math.abs(M)+Math.abs(_)>360&&(M-=.01);var S=k-x,A=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[g]:t.config.stroke.dashArray,L=n.drawPath({d:"",stroke:y,strokeWidth:a,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+g,strokeDashArray:A});if(Sn.setAttrs(L.node,{"data:angle":S,"data:value":e.series[g]}),t.config.chart.dropShadow.enabled){var T=t.config.chart.dropShadow;r.dropShadow(L,T,g)}if(r.setSelectionFilter(L,0,g),this.addListeners(L,this.radialDataLabels),v.add(L),L.attr({index:0,j:g}),this.barLabels.enabled){var C=b.polarToCartesian(e.centerX,e.centerY,e.size,x),D=this.barLabels.formatter(t.globals.seriesNames[g],{seriesIndex:g,w:t}),E=["apexcharts-radialbar-label"];this.barLabels.onClick||E.push("apexcharts-no-click");var O=this.barLabels.useSeriesColors?t.globals.colors[g]:t.config.chart.foreColor;O||(O=t.config.chart.foreColor);var P=C.x+this.barLabels.offsetX,Y=C.y+this.barLabels.offsetY,I=n.drawText({x:P,y:Y,text:D,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:O,cssClass:E.join(" ")});I.on("click",this.onBarLabelClick),I.attr({rel:g+1}),0!==x&&I.attr({"transform-origin":"".concat(P," ").concat(Y),transform:"rotate(".concat(x," 0 0)")}),v.add(I)}var N=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(N=t.config.chart.animations.speed),t.globals.dataChanged&&(N=t.config.chart.animations.dynamicAnimation.speed),this.animDur=N/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(L,{centerX:e.centerX,centerY:e.centerY,endAngle:k,startAngle:x,prevEndAngle:M,prevStartAngle:_,size:e.size,i:g,totalItems:2,animBeginArr:this.animBeginArr,dur:N,shouldSetPrevPaths:!0})}return{g:s,elHollow:u,dataLabels:f}}},{key:"drawHollow",value:function(e){var t=new Sn(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,i){var r=this.w,s=new Vn(this.ctx),a=b.randomId(),o=r.config.plotOptions.radialBar.hollow.image;if(r.config.plotOptions.radialBar.hollow.imageClipped)s.clippedImgArea({width:n,height:n,image:o,patternID:"pattern".concat(r.globals.cuid).concat(a)}),i="url(#pattern".concat(r.globals.cuid).concat(a,")");else{var l=r.config.plotOptions.radialBar.hollow.imageWidth,c=r.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var u=r.globals.dom.Paper.image(o,(function(t){this.move(e.centerX-t.width/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+r.config.plotOptions.radialBar.hollow.imageOffsetY)}));t.add(u)}else{var d=r.globals.dom.Paper.image(o,(function(t){this.move(e.centerX-l/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-c/2+r.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));t.add(d)}}return i}},{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,i=this.w;n&&n(i.globals.seriesNames[t],{w:i,seriesIndex:t})}}]),s}(Oi),Ii=function(e){c(i,e);var t=a(i);function i(){return n(this,i),t.apply(this,arguments)}return r(i,[{key:"draw",value:function(e,t){var n=this.w,i=new Sn(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 r=i.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),s=0;s<e.length;s++){var a,o,l,c,u=void 0,d=void 0,f=n.globals.comboCharts?t[s]:s,p=this.barHelpers.getGroupIndex(f).columnGroupIndex,m=i.group({class:"apexcharts-series",seriesName:b.escapeString(n.globals.seriesNames[f]),rel:s+1,"data:realIndex":f});this.ctx.series.addCollapsedClassToSeries(m,f),e[s].length>0&&(this.visibleI=this.visibleI+1);var g=0,v=0,y=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[f][0],y=f);var x=this.barHelpers.initialPositions(f);d=x.y,c=x.zeroW,u=x.x,v=x.barWidth,g=x.barHeight,a=x.xDivision,o=x.yDivision,l=x.zeroH;for(var _=i.group({class:"apexcharts-datalabels","data:realIndex":f}),w=i.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k<n.globals.dataPoints;k++){var M=this.barHelpers.getStrokeWidth(s,k,f),S=this.seriesRangeStart[s][k],A=this.seriesRangeEnd[s][k],L=null,T=null,C=null,D={x:u,y:d,strokeWidth:M,elSeries:m},E=this.seriesLen;if(n.config.plotOptions.bar.rangeBarGroupRows&&(E=1),void 0===n.config.series[s].data[k])break;if(this.isHorizontal){C=d+g*this.visibleI;var O=(o-g*E)/2;if(n.config.series[s].data[k].x){var P=this.detectOverlappingBars({i:s,j:k,barYPosition:C,srty:O,barHeight:g,yDivision:o,initPositions:x});g=P.barHeight,C=P.barYPosition}v=(L=this.drawRangeBarPaths(h({indexes:{i:s,j:k,realIndex:f},barHeight:g,barYPosition:C,zeroW:c,yDivision:o,y1:S,y2:A},D))).barWidth}else{n.globals.isXNumeric&&(u=(n.globals.seriesX[s][k]-n.globals.minX)/this.xRatio-v/2),T=u+v*this.visibleI;var Y=(a-v*E)/2;if(n.config.series[s].data[k].x){var I=this.detectOverlappingBars({i:s,j:k,barXPosition:T,srtx:Y,barWidth:v,xDivision:a,initPositions:x});v=I.barWidth,T=I.barXPosition}g=(L=this.drawRangeColumnPaths(h({indexes:{i:s,j:k,realIndex:f,translationsIndex:y},barWidth:v,barXPosition:T,zeroH:l,xDivision:a},D))).barHeight}var N=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:C,goalX:L.goalX,goalY:L.goalY,barHeight:g,barWidth:v});N&&w.add(N),d=L.y,u=L.x;var H=this.barHelpers.getPathFillColor(e,s,k,f);this.renderSeries({realIndex:f,pathFill:H.color,lineFill:H.useRangeColor?H.color:n.globals.stroke.colors[f],j:k,i:s,x:u,y:d,y1:S,y2:A,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:M,elSeries:m,series:e,barHeight:g,barWidth:v,barXPosition:T,barYPosition:C,columnGroupIndex:p,elDataLabelsWrap:_,elGoalsMarkers:w,visibleSeries:this.visibleI,type:"rangebar"})}r.add(m)}return r}},{key:"detectOverlappingBars",value:function(e){var t=e.i,n=e.j,i=e.barYPosition,r=e.barXPosition,s=e.srty,a=e.srtx,o=e.barHeight,l=e.barWidth,c=e.yDivision,u=e.xDivision,d=e.initPositions,h=this.w,f=[],p=h.config.series[t].data[n].rangeName,m=h.config.series[t].data[n].x,g=Array.isArray(m)?m.join(" "):m,v=h.globals.labels.map((function(e){return Array.isArray(e)?e.join(" "):e})).indexOf(g),y=h.globals.seriesRange[t].findIndex((function(e){return e.x===g&&e.overlaps.length>0}));return this.isHorizontal?(i=h.config.plotOptions.bar.rangeBarGroupRows?s+c*v:s+o*this.visibleI+c*v,y>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][y].overlaps).indexOf(p)>-1&&(i=(o=d.barHeight/f.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+f.indexOf(p))+c*v)):(v>-1&&!h.globals.timescaleLabels.length&&(r=h.config.plotOptions.bar.rangeBarGroupRows?a+u*v:a+l*this.visibleI+u*v),y>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][y].overlaps).indexOf(p)>-1&&(r=(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:i,barXPosition:r,barHeight:o,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,n=e.x,i=e.xDivision,r=e.barWidth,s=e.barXPosition,a=e.zeroH,o=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=a:(p=a-p/h,m=a-m/h);var g=Math.abs(m-p),v=this.barHelpers.getColumnPaths({barXPosition:s,barWidth:r,y1:p,y2:m,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:u,i:u,j:c,w:o});if(o.globals.isXNumeric){var y=this.getBarXForNumericXAxis({x:n,j:c,realIndex:u,barWidth:r});n=y.x,s=y.barXPosition}else n+=i;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,a,l,c,d),barXPosition:s}}},{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,i=e.y1,r=e.y2,s=e.yDivision,a=e.barHeight,o=e.barYPosition,l=e.zeroW,c=this.w,u=t.realIndex,d=t.j,h=this.preventBarOverflow(l+i/this.invertedYRatio),f=this.preventBarOverflow(l+r/this.invertedYRatio),p=this.getRangeValue(u,d),m=Math.abs(f-h),g=this.barHelpers.getBarpaths({barYPosition:o,barHeight:a,x1:h,x2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:u,realIndex:u,j:d,w:c});return c.globals.isXNumeric||(n+=s),{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]}}}]),i}(Ai),Ni=function(){function e(t){n(this,e),this.w=t.w,this.lineCtx=t}return r(e,[{key:"sameValueSeriesFix",value:function(e,t){var n=this.w;if(("gradient"===n.config.fill.type||"gradient"===n.config.fill.type[e])&&new An(this.lineCtx.ctx,n).seriesHaveSameValues(e)){var i=t[e].slice();i[i.length-1]=i[i.length-1]+1e-6,t[e]=i}return t}},{key:"calculatePoints",value:function(e){var t=e.series,n=e.realIndex,i=e.x,r=e.y,s=e.i,a=e.j,o=e.prevY,l=this.w,c=[],u=[],d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;return l.globals.isXNumeric&&(d=(l.globals.seriesX[n][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),0===a&&(c.push(d),u.push(b.isNumber(t[s][0])?o+l.config.markers.offsetY:null)),c.push(i+l.config.markers.offsetX),u.push(b.isNumber(t[s][a+1])?r+l.config.markers.offsetY:null),{x:c,y:u}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,n=e.pathFromArea,i=e.realIndex,r=this.w,s=0;s<r.globals.previousPaths.length;s++){var a=r.globals.previousPaths[s];("line"===a.type||"area"===a.type)&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(i,10)&&("line"===a.type?(this.lineCtx.appendPathFrom=!1,t=r.globals.previousPaths[s].paths[0].d):"area"===a.type&&(this.lineCtx.appendPathFrom=!1,n=r.globals.previousPaths[s].paths[0].d,r.config.stroke.show&&r.globals.previousPaths[s].paths[1]&&(t=r.globals.previousPaths[s].paths[1].d)))}return{pathFromLine:t,pathFromArea:n}}},{key:"determineFirstPrevY",value:function(e){var t,n,i,r=e.i,s=e.realIndex,a=e.series,o=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[s])||void 0===t?void 0:t.type)||"column"===(null===(n=this.w.config.series[s])||void 0===n?void 0:n.type));if(void 0!==(null===(i=a[r])||void 0===i?void 0:i[0]))o=(l=d&&r>0?this.lineCtx.prevSeriesY[r-1][0]:this.lineCtx.zeroY)-a[r][0]/this.lineCtx.yRatio[c]+2*(this.lineCtx.isReversed?a[r][0]/this.lineCtx.yRatio[c]:0);else if(d&&r>0&&void 0===a[r][0])for(var h=r-1;h>=0;h--)if(null!==a[h][0]&&void 0!==a[h][0]){o=l=this.lineCtx.prevSeriesY[h][0];break}return{prevY:o,lineYPosition:l}}}]),e}(),Hi=function(e){var t=function(e){for(var t,n,i,r,s=function(e){for(var t=[],n=e[0],i=e[1],r=t[0]=Fi(n,i),s=1,a=e.length-1;s<a;s++)n=i,i=e[s+1],t[s]=.5*(r+(r=Fi(n,i)));return t[s]=r,t}(e),a=e.length-1,o=[],l=0;l<a;l++)i=Fi(e[l],e[l+1]),Math.abs(i)<1e-6?s[l]=s[l+1]=0:(r=(t=s[l]/i)*t+(n=s[l+1]/i)*n)>9&&(r=3*i/Math.sqrt(r),s[l]=r*t,s[l+1]=r*n);for(var c=0;c<=a;c++)r=(e[Math.min(a,c+1)][0]-e[Math.max(0,c-1)][0])/(6*(1+s[c]*s[c])),o.push([r||0,s[c]*r||0]);return o}(e),n=e[1],i=e[0],r=[],s=t[1],a=t[0];r.push(i,[i[0]+a[0],i[1]+a[1],n[0]-s[0],n[1]-s[1],n[0],n[1]]);for(var o=2,l=t.length;o<l;o++){var c=e[o],u=t[o];r.push([c[0]-u[0],c[1]-u[1],c[0],c[1]])}return r},ji=function(e,t,n){var i=e.slice(t,n);if(t){if(n-t>1&&i[1].length<6){var r=i[0].length;i[1]=[2*i[0][r-2]-i[0][r-4],2*i[0][r-1]-i[0][r-3]].concat(i[1])}i[0]=i[0].slice(-2)}return i};function Fi(e,t){return(t[1]-e[1])/(t[0]-e[0])}var Ri=function(){function e(t,i,r){n(this,e),this.ctx=t,this.w=t.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||r,this.scatter=new qn(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Ni(this),this.markers=new Wn(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return r(e,[{key:"draw",value:function(e,t,n,i){var r,s=this.w,a=new Sn(this.ctx),o=s.globals.comboCharts?t:s.config.chart.type,l=a.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),c=new An(this.ctx,s);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=c.getLogSeries(e),this.yRatio=c.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var u=[],d=0;d<e.length;d++){e=this.lineHelpers.sameValueSeriesFix(d,e);var f=s.globals.comboCharts?n[d]:d,p=this.yRatio.length>1?f:0;this._initSerieVariables(e,d,f);var m=[],g=[],v=[],y=s.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,f),s.globals.isXNumeric&&s.globals.seriesX.length>0&&(y=(s.globals.seriesX[f][0]-s.globals.minX)/this.xRatio),v.push(y);var b,x=y,_=void 0,w=x,k=this.zeroY,M=this.zeroY;k=this.lineHelpers.determineFirstPrevY({i:d,realIndex:f,series:e,prevY:k,lineYPosition:0,translationsIndex:p}).prevY,"monotoneCubic"===s.config.stroke.curve&&null===e[d][0]?m.push(null):m.push(k),b=k,"rangeArea"===o&&(_=M=this.lineHelpers.determineFirstPrevY({i:d,realIndex:f,series:i,prevY:M,lineYPosition:0,translationsIndex:p}).prevY,g.push(null!==m[0]?M:null));var S=this._calculatePathsFrom({type:o,series:e,i:d,realIndex:f,translationsIndex:p,prevX:w,prevY:k,prevY2:M}),A=[m[0]],L=[g[0]],T={type:o,series:e,realIndex:f,translationsIndex:p,i:d,x:y,y:1,pX:x,pY:b,pathsFrom:S,linePaths:[],areaPaths:[],seriesIndex:n,lineYPosition:0,xArrj:v,yArrj:m,y2Arrj:g,seriesRangeEnd:i},C=this._iterateOverDataPoints(h(h({},T),{},{iterations:"rangeArea"===o?e[d].length-1:void 0,isRangeStart:!0}));if("rangeArea"===o){for(var D=this._calculatePathsFrom({series:i,i:d,realIndex:f,prevX:w,prevY:M}),E=this._iterateOverDataPoints(h(h({},T),{},{series:i,xArrj:[y],yArrj:A,y2Arrj:L,pY:_,areaPaths:C.areaPaths,pathsFrom:D,iterations:i[d].length-1,isRangeStart:!1})),O=C.linePaths.length/2,P=0;P<O;P++)C.linePaths[P]=E.linePaths[P+O]+C.linePaths[P];C.linePaths.splice(O),C.pathFromLine=E.pathFromLine+C.pathFromLine}else C.pathFromArea+="z";this._handlePaths({type:o,realIndex:f,i:d,paths:C}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),u.push(this.elSeries)}if(void 0!==(null===(r=s.config.series[0])||void 0===r?void 0:r.zIndex)&&u.sort((function(e,t){return Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))})),s.config.chart.stacked)for(var Y=u.length-1;Y>=0;Y--)l.add(u[Y]);else for(var I=0;I<u.length;I++)l.add(u[I]);return l}},{key:"_initSerieVariables",value:function(e,t,n){var i=this.w,r=new Sn(this.ctx);this.xDivision=i.globals.gridWidth/(i.globals.dataPoints-("on"===i.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(i.config.stroke.width)?i.config.stroke.width[n]:i.config.stroke.width;var s=0;if(this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[n],s=n),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.zeroY=i.globals.gridHeight-this.baseLineY[s]-(this.isReversed?i.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[s]:0),this.areaBottomY=this.zeroY,(this.zeroY>i.globals.gridHeight||"end"===i.config.plotOptions.area.fillTo)&&(this.areaBottomY=i.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=r.group({class:"apexcharts-series",zIndex:void 0!==i.config.series[n].zIndex?i.config.series[n].zIndex:n,seriesName:b.escapeString(i.globals.seriesNames[n])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":n}),i.globals.hasNullValues){var a=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[i.globals.gridHeight+i.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});null!==a&&this.elPointsMain.add(a)}this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":n});var o=e[t].length===i.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,i,r,s=e.type,a=e.series,o=e.i,l=e.realIndex,c=e.translationsIndex,u=e.prevX,d=e.prevY,h=e.prevY2,f=this.w,p=new Sn(this.ctx);if(null===a[o][0]){for(var m=0;m<a[o].length;m++)if(null!==a[o][m]){u=this.xDivision*m,d=this.zeroY-a[o][m]/this.yRatio[c],t=p.move(u,d),n=p.move(u,this.areaBottomY);break}}else t=p.move(u,d),"rangeArea"===s&&(t=p.move(u,h)+p.line(u,d)),n=p.move(u,this.areaBottomY)+p.line(u,d);if(i=p.move(0,this.areaBottomY)+p.line(0,this.areaBottomY),r=p.move(0,this.areaBottomY)+p.line(0,this.areaBottomY),f.globals.previousPaths.length>0){var g=this.lineHelpers.checkPreviousPaths({pathFromLine:i,pathFromArea:r,realIndex:l});i=g.pathFromLine,r=g.pathFromArea}return{prevX:u,prevY:d,linePath:t,areaPath:n,pathFromLine:i,pathFromArea:r}}},{key:"_handlePaths",value:function(e){var t=e.type,n=e.realIndex,i=e.i,r=e.paths,s=this.w,a=new Sn(this.ctx),o=new Vn(this.ctx);this.prevSeriesY.push(r.yArrj),s.globals.seriesXvalues[n]=r.xArrj,s.globals.seriesYvalues[n]=r.yArrj;var l=s.config.forecastDataPoints;if(l.count>0&&"rangeArea"!==t){var c=s.globals.seriesXvalues[n][s.globals.seriesXvalues[n].length-l.count-1],u=a.drawRect(c,0,s.globals.gridWidth,s.globals.gridHeight,0);s.globals.dom.elForecastMask.appendChild(u.node);var d=a.drawRect(0,0,c,s.globals.gridHeight,0);s.globals.dom.elNonForecastMask.appendChild(d.node)}this.pointsChart||s.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var f={i:i,realIndex:n,animationDelay:i,initialSpeed:s.config.chart.animations.speed,dataChangeSpeed:s.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var p=o.fillPath({seriesNumber:n}),m=0;m<r.areaPaths.length;m++){var g=a.renderPaths(h(h({},f),{},{pathFrom:r.pathFromArea,pathTo:r.areaPaths[m],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p}));this.elSeries.add(g)}if(s.config.stroke.show&&!this.pointsChart){var v=null;if("line"===t)v=o.fillPath({seriesNumber:n,i:i});else if("solid"===s.config.stroke.fill.type)v=s.globals.stroke.colors[n];else{var y=s.config.fill;s.config.fill=s.config.stroke.fill,v=o.fillPath({seriesNumber:n,i:i}),s.config.fill=y}for(var b=0;b<r.linePaths.length;b++){var x=v;"rangeArea"===t&&(x=o.fillPath({seriesNumber:n}));var _=h(h({},f),{},{pathFrom:r.pathFromLine,pathTo:r.linePaths[b],stroke:v,strokeWidth:this.strokeWidth,strokeLineCap:s.config.stroke.lineCap,fill:"rangeArea"===t?x:"none"}),w=a.renderPaths(_);if(this.elSeries.add(w),w.attr("fill-rule","evenodd"),l.count>0&&"rangeArea"!==t){var k=a.renderPaths(_);k.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&k.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(k),k.attr("clip-path","url(#forecastMask".concat(s.globals.cuid,")")),w.attr("clip-path","url(#nonForecastMask".concat(s.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,n,i=this,r=e.type,s=e.series,a=e.iterations,o=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,y=e.lineYPosition,x=e.xArrj,_=e.yArrj,w=e.y2Arrj,k=e.isRangeStart,M=e.seriesRangeEnd,S=this.w,A=new Sn(this.ctx),L=this.yRatio,T=p.prevY,C=p.linePath,D=p.areaPath,E=p.pathFromLine,O=p.pathFromArea,P=b.isNumber(S.globals.minYArr[o])?S.globals.minYArr[o]:S.globals.minY;a||(a=S.globals.dataPoints>1?S.globals.dataPoints-1:S.globals.dataPoints);var Y=function(e,t){return t-e/L[l]+2*(i.isReversed?e/L[l]:0)},I=d,N=S.config.chart.stacked&&!S.globals.comboCharts||S.config.chart.stacked&&S.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[o])||void 0===t?void 0:t.type)||"column"===(null===(n=this.w.config.series[o])||void 0===n?void 0:n.type)),H=S.config.stroke.curve;Array.isArray(H)&&(H=Array.isArray(v)?H[v[c]]:H[c]);for(var j,F=0,R=0;R<a&&0!==s[c].length;R++){var z=void 0===s[c][R+1]||null===s[c][R+1];if(S.globals.isXNumeric){var B=S.globals.seriesX[o][R+1];void 0===S.globals.seriesX[o][R+1]&&(B=S.globals.seriesX[o][a-1]),u=(B-S.globals.minX)/this.xRatio}else u+=this.xDivision;y=N&&c>0&&S.globals.collapsedSeries.length<S.config.series.length-1?this.prevSeriesY[function(e){for(var t=e;t>0;t--){if(!(S.globals.collapsedSeriesIndices.indexOf((null==v?void 0:v[t])||t)>-1))return t;t--}return 0}(c-1)][R+1]:this.zeroY,z?d=Y(P,y):(d=Y(s[c][R+1],y),"rangeArea"===r&&(I=Y(M[c][R+1],y))),x.push(null===s[c][R+1]?null:u),!z||"smooth"!==S.config.stroke.curve&&"monotoneCubic"!==S.config.stroke.curve?(_.push(d),w.push(I)):(_.push(null),w.push(null));var V=this.lineHelpers.calculatePoints({series:s,x:u,y:d,realIndex:o,i:c,j:R,prevY:T}),W=this._createPaths({type:r,series:s,i:c,realIndex:o,j:R,x:u,y:d,y2:I,xArrj:x,yArrj:_,y2Arrj:w,pX:h,pY:f,pathState:F,segmentStartX:j,linePath:C,areaPath:D,linePaths:m,areaPaths:g,curve:H,isRangeStart:k});g=W.areaPaths,m=W.linePaths,h=W.pX,f=W.pY,F=W.pathState,j=W.segmentStartX,D=W.areaPath,C=W.linePath,!this.appendPathFrom||S.globals.hasNullValues||"monotoneCubic"===H&&"rangeArea"===r||(E+=A.line(u,this.areaBottomY),O+=A.line(u,this.areaBottomY)),this.handleNullDataPoints(s,V,c,R,o),this._handleMarkersAndLabels({type:r,pointsPos:V,i:c,j:R,realIndex:o,isRangeStart:k})}return{yArrj:_,xArrj:x,pathFromArea:O,areaPaths:g,pathFromLine:E,linePaths:m,linePath:C,areaPath:D}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,n=e.pointsPos,i=e.isRangeStart,r=e.i,s=e.j,a=e.realIndex,o=this.w,l=new Un(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,s,{realIndex:a,pointsPos:n,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[r].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers({pointsPos:n,seriesIndex:a,j:s+1});null!==c&&this.elPointsMain.add(c)}var u=l.drawDataLabel({type:t,isRangeStart:i,pos:n,i:a,j:s+1});null!==u&&this.elDataLabelsWrap.add(u)}},{key:"_createPaths",value:function(e){var t=e.type,n=e.series,i=e.i;e.realIndex;var r,s=e.j,a=e.x,o=e.y,l=e.xArrj,c=e.yArrj,u=e.y2,d=e.y2Arrj,h=e.pX,f=e.pY,p=e.pathState,m=e.segmentStartX,g=e.linePath,v=e.areaPath,y=e.linePaths,b=e.areaPaths,x=e.curve,_=e.isRangeStart,w=new Sn(this.ctx),k=this.areaBottomY,M="rangeArea"===t,S="rangeArea"===t&&_;switch(x){case"monotoneCubic":var A=_?c:d;switch(p){case 0:if(null===A[s+1])break;p=1;case 1:if(!(M?l.length===n[i].length:s===n[i].length-2))break;case 2:var L=_?l:l.slice().reverse(),T=_?A:A.slice().reverse(),C=(r=T,L.map((function(e,t){return[e,r[t]]})).filter((function(e){return null!==e[1]}))),D=C.length>1?Hi(C):C,E=[];M&&(S?b=C:E=b.reverse());var O=0,P=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),i=[],r=0,s=0;r<n.length;s+=n[r++])i[r]=ji(t,s,s+n[r]);return i}(T,D).forEach((function(e){O++;var t=function(e){for(var t="",n=0;n<e.length;n++){var i=e[n],r=i.length;r>4?(t+="C".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]),t+=", ".concat(i[4],", ").concat(i[5])):r>2&&(t+="S".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]))}return t}(e),n=P,i=(P+=e.length)-1;S?g=w.move(C[n][0],C[n][1])+t:M?g=w.move(E[n][0],E[n][1])+w.line(C[n][0],C[n][1])+t+w.line(E[i][0],E[i][1]):(g=w.move(C[n][0],C[n][1])+t,v=g+w.line(C[i][0],k)+w.line(C[n][0],k)+"z",b.push(v)),y.push(g)})),M&&O>1&&!S){var Y=y.slice(O).reverse();y.splice(O),Y.forEach((function(e){return y.push(e)}))}p=0}break;case"smooth":var I=.35*(a-h);if(null===n[i][s])p=0;else switch(p){case 0:if(m=h,g=S?w.move(h,d[s])+w.line(h,f):w.move(h,f),v=w.move(h,f),null===n[i][s+1]||void 0===n[i][s+1]){y.push(g),b.push(v);break}if(p=1,s<n[i].length-2){var N=w.curve(h+I,f,a-I,o,a,o);g+=N,v+=N;break}case 1:if(null===n[i][s+1])g+=S?w.line(h,u):w.move(h,f),v+=w.line(h,k)+w.line(m,k)+"z",y.push(g),b.push(v),p=-1;else{var H=w.curve(h+I,f,a-I,o,a,o);g+=H,v+=H,s>=n[i].length-2&&(S&&(g+=w.curve(a,o,a,o,a,u)+w.move(a,u)),v+=w.curve(a,o,a,o,a,k)+w.line(m,k)+"z",y.push(g),b.push(v),p=-1)}}h=a,f=o;break;default:var j=function(e,t,n){var i=[];switch(e){case"stepline":i=w.line(t,null,"H")+w.line(null,n,"V");break;case"linestep":i=w.line(null,n,"V")+w.line(t,null,"H");break;case"straight":i=w.line(t,n)}return i};if(null===n[i][s])p=0;else switch(p){case 0:if(m=h,g=S?w.move(h,d[s])+w.line(h,f):w.move(h,f),v=w.move(h,f),null===n[i][s+1]||void 0===n[i][s+1]){y.push(g),b.push(v);break}if(p=1,s<n[i].length-2){var F=j(x,a,o);g+=F,v+=F;break}case 1:if(null===n[i][s+1])g+=S?w.line(h,u):w.move(h,f),v+=w.line(h,k)+w.line(m,k)+"z",y.push(g),b.push(v),p=-1;else{var R=j(x,a,o);g+=R,v+=R,s>=n[i].length-2&&(S&&(g+=w.line(a,u)),v+=w.line(a,k)+w.line(m,k)+"z",y.push(g),b.push(v),p=-1)}}h=a,f=o}return{linePaths:y,areaPaths:b,pX:h,pY:f,pathState:p,segmentStartX:m,linePath:g,areaPath:v}}},{key:"handleNullDataPoints",value:function(e,t,n,i,r){var s=this.w;if(null===e[n][i]&&s.config.markers.showNullDataPoints||1===e[n].length){var a=this.strokeWidth-s.config.markers.strokeWidth/2;a>0||(a=0);var o=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:r,j:i+1,pSize:a,alwaysDrawMarker:!0});null!==o&&this.elPointsMain.add(o)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,n,i,r){this.xoffset=t,this.yoffset=n,this.height=r,this.width=i,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,n=[],i=this.xoffset,r=this.yoffset,a=s(e)/this.height,o=s(e)/this.width;if(this.width>=this.height)for(t=0;t<e.length;t++)n.push([i,r,i+a,r+e[t]/a]),r+=e[t]/a;else for(t=0;t<e.length;t++)n.push([i,r,i+e[t]/o,r+o]),i+=e[t]/o;return n},this.cutArea=function(t){var n;if(this.width>=this.height){var i=t/this.height,r=this.width-i;n=new e(this.xoffset+i,this.yoffset,r,this.height)}else{var s=t/this.width,a=this.height-s;n=new e(this.xoffset,this.yoffset+s,this.width,a)}return n}}function t(t,i,r,a,o){a=void 0===a?0:a,o=void 0===o?0:o;var l=n(function(e,t){var n,i=[],r=t/s(e);for(n=0;n<e.length;n++)i[n]=e[n]*r;return i}(t,i*r),[],new e(a,o,i,r),[]);return function(e){var t,n,i=[];for(t=0;t<e.length;t++)for(n=0;n<e[t].length;n++)i.push(e[t][n]);return i}(l)}function n(e,t,r,a){var o,l,c;if(0!==e.length)return o=r.shortestEdge(),function(e,t,n){var r;return 0===e.length||((r=e.slice()).push(t),i(e,n)>=i(r,n))}(t,l=e[0],o)?(t.push(l),n(e.slice(1),t,r,a)):(c=r.cutArea(s(t),a),a.push(r.getCoordinates(t)),n(e,[],c,a)),a;a.push(r.getCoordinates(t))}function i(e,t){var n=Math.min.apply(Math,e),i=Math.max.apply(Math,e),r=s(e);return Math.max(Math.pow(t,2)*i/Math.pow(r,2),Math.pow(r,2)/(Math.pow(t,2)*n))}function r(e){return e&&e.constructor===Array}function s(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t];return n}function a(e){var t,n=0;if(r(e[0]))for(t=0;t<e.length;t++)n+=a(e[t]);else n=s(e);return n}return function e(n,i,s,o,l){o=void 0===o?0:o,l=void 0===l?0:l;var c,u,d=[],h=[];if(r(n[0])){for(u=0;u<n.length;u++)d[u]=a(n[u]);for(c=t(d,i,s,o,l),u=0;u<n.length;u++)h.push(e(n[u],c[u][2]-c[u][0],c[u][3]-c[u][1],c[u][0],c[u][1]))}else h=t(n,i,s,o,l);return h}}();var zi=function(){function e(t,i){n(this,e),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Ci(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return r(e,[{key:"draw",value:function(e){var t=this,n=this.w,i=new Sn(this.ctx),r=new Vn(this.ctx),s=i.group({class:"apexcharts-treemap"});if(n.globals.noData)return s;var a=[];return e.forEach((function(e){var t=e.map((function(e){return Math.abs(e)}));a.push(t)})),this.negRange=this.helpers.checkColorRange(),n.config.series.forEach((function(e,n){e.data.forEach((function(e){Array.isArray(t.labels[n])||(t.labels[n]=[]),t.labels[n].push(e.x)}))})),window.TreemapSquared.generate(a,n.globals.gridWidth,n.globals.gridHeight).forEach((function(a,o){var l=i.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:b.escapeString(n.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});if(n.config.chart.dropShadow.enabled){var c=n.config.chart.dropShadow;new Mn(t.ctx).dropShadow(s,c,o)}var u=i.group({class:"apexcharts-data-labels"}),d={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0};a.forEach((function(s,a){var c=s[0],u=s[1],h=s[2],f=s[3];d.xMin=Math.min(d.xMin,c),d.yMin=Math.min(d.yMin,u),d.xMax=Math.max(d.xMax,h),d.yMax=Math.max(d.yMax,f);var p=t.helpers.getShadeColor(n.config.chart.type,o,a,t.negRange),m=p.color,g=r.fillPath({color:m,seriesNumber:o,dataPointIndex:a}),v=i.drawRect(c,u,h-c,f-u,n.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,n.config.plotOptions.treemap.useFillColorAsStroke?m:n.globals.stroke.colors[o]);v.attr({cx:c,cy:u,index:o,i:o,j:a,width:h-c,height:f-u,fill:g}),v.node.classList.add("apexcharts-treemap-rect"),t.helpers.addListeners(v);var y={x:c+(h-c)/2,y:u+(f-u)/2,width:0,height:0},b={x:c,y:u,width:h-c,height:f-u};if(n.config.chart.animations.enabled&&!n.globals.dataChanged){var x=1;n.globals.resized||(x=n.config.chart.animations.speed),t.animateTreemap(v,y,b,x)}if(n.globals.dataChanged){var _=1;t.dynamicAnim.enabled&&n.globals.shouldAnimate&&(_=t.dynamicAnim.speed,n.globals.previousPaths[o]&&n.globals.previousPaths[o][a]&&n.globals.previousPaths[o][a].rect&&(y=n.globals.previousPaths[o][a].rect),t.animateTreemap(v,y,b,_))}var w=t.getFontSize(s),k=n.config.dataLabels.formatter(t.labels[o][a],{value:n.globals.series[o][a],seriesIndex:o,dataPointIndex:a,w:n});"truncate"===n.config.plotOptions.treemap.dataLabels.format&&(w=parseInt(n.config.dataLabels.style.fontSize,10),k=t.truncateLabels(k,w,c,u,h,f));var M=null;n.globals.series[o][a]&&(M=t.helpers.calculateDataLabels({text:k,x:(c+h)/2,y:(u+f)/2+t.strokeWidth/2+w/3,i:o,j:a,colorProps:p,fontSize:w,series:e})),n.config.dataLabels.enabled&&M&&t.rotateToFitLabel(M,w,k,c,u,h,f),l.add(v),null!==M&&l.add(M)}));var h=n.config.plotOptions.treemap.seriesTitle;if(n.config.series.length>1&&h&&h.show){var f=n.config.series[o].name||"";if(f&&d.xMin<1/0&&d.yMin<1/0){var p=h.offsetX,m=h.offsetY,g=h.borderColor,v=h.borderWidth,y=h.borderRadius,x=h.style,_=x.color||n.config.chart.foreColor,w={left:x.padding.left,right:x.padding.right,top:x.padding.top,bottom:x.padding.bottom},k=i.getTextRects(f,x.fontSize,x.fontFamily),M=k.width+w.left+w.right,S=k.height+w.top+w.bottom,A=d.xMin+(p||0),L=d.yMin+(m||0),T=i.drawRect(A,L,M,S,y,x.background,1,v,g),C=i.drawText({x:A+w.left,y:L+w.top+.75*k.height,text:f,fontSize:x.fontSize,fontFamily:x.fontFamily,fontWeight:x.fontWeight,foreColor:_,cssClass:x.cssClass||""});l.add(T),l.add(C)}}l.add(u),s.add(l)})),s}},{key:"getFontSize",value:function(e){var t=this.w,n=function e(t){var n,i=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)i+=e(t[n]);else for(n=0;n<t.length;n++)i+=t[n].length;return i}(this.labels)/function e(t){var n,i=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)i+=e(t[n]);else for(n=0;n<t.length;n++)i+=1;return i}(this.labels);return function(e,i){var r=e*i,s=Math.pow(r,.5);return Math.min(s/n,parseInt(t.config.dataLabels.style.fontSize,10))}(e[2]-e[0],e[3]-e[1])}},{key:"rotateToFitLabel",value:function(e,t,n,i,r,s,a){var o=new Sn(this.ctx),l=o.getTextRects(n,t);if(l.width+this.w.config.stroke.width+5>s-i&&l.width<=a-r){var c=o.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,i,r,s){var a=new Sn(this.ctx),o=a.getTextRects(e,t).width+this.w.config.stroke.width+5>r-n&&s-i>r-n?s-i:r-n,l=a.getTextBasedOnMaxWidth({text:e,maxWidth:o,fontSize:t});return e.length!==l.length&&o/t<5?"":l}},{key:"animateTreemap",value:function(e,t,n,i){var r=new x(this.ctx);r.animateRect(e,t,n,i,(function(){r.animationCompleted(e)}))}}]),e}(),Bi=10/86400,Vi=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return r(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var n=this,i=this.w;if(i.globals.allSeriesCollapsed)return i.globals.labels=[],i.globals.timescaleLabels=[],[];var r=new Cn(this.ctx),s=(t-e)/864e5;this.determineInterval(s),i.globals.disableZoomIn=!1,i.globals.disableZoomOut=!1,s<Bi?i.globals.disableZoomIn=!0:s>5e4&&(i.globals.disableZoomOut=!0);var a=r.getTimeUnitsfromTimestamp(e,t,this.utc),o=i.globals.gridWidth/s,l=o/24,c=l/60,u=c/60,d=Math.floor(24*s),f=Math.floor(1440*s),p=Math.floor(86400*s),m=Math.floor(s),g=Math.floor(s/30),v=Math.floor(s/365),y={minMillisecond:a.minMillisecond,minSecond:a.minSecond,minMinute:a.minMinute,minHour:a.minHour,minDate:a.minDate,minMonth:a.minMonth,minYear:a.minYear},b={firstVal:y,currentMillisecond:y.minMillisecond,currentSecond:y.minSecond,currentMinute:y.minMinute,currentHour:y.minHour,currentMonthDate:y.minDate,currentDate:y.minDate,currentMonth:y.minMonth,currentYear:y.minYear,daysWidthOnXAxis:o,hoursWidthOnXAxis:l,minutesWidthOnXAxis:c,secondsWidthOnXAxis:u,numberOfSeconds:p,numberOfMinutes:f,numberOfHours:d,numberOfDays:m,numberOfMonths:g,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(b);break;case"months":case"half_year":this.generateMonthScale(b);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(b);break;case"hours":this.generateHourScale(b);break;case"minutes_fives":case"minutes":this.generateMinuteScale(b);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(b)}var x=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?h(h({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?h(h({},t),{},{value:e.value}):"minute"===e.unit?h(h({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?h(h({},t),{},{value:e.value,minute:e.minute,second:e.second}):e}));return x.filter((function(e){var t=1,r=Math.ceil(i.globals.gridWidth/120),s=e.value;void 0!==i.config.xaxis.tickAmount&&(r=i.config.xaxis.tickAmount),x.length>r&&(t=Math.floor(x.length/r));var a=!1,o=!1;switch(n.tickInterval){case"years":"year"===e.unit&&(a=!0);break;case"half_year":t=7,"year"===e.unit&&(a=!0);break;case"months":t=1,"year"===e.unit&&(a=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(a=!0),30===s&&(o=!0);break;case"months_days":t=10,"month"===e.unit&&(a=!0),30===s&&(o=!0);break;case"week_days":t=8,"month"===e.unit&&(a=!0);break;case"days":t=1,"month"===e.unit&&(a=!0);break;case"hours":"day"===e.unit&&(a=!0);break;case"minutes_fives":case"seconds_fives":s%5!=0&&(o=!0);break;case"seconds_tens":s%10!=0&&(o=!0)}if("hours"===n.tickInterval||"minutes_fives"===n.tickInterval||"seconds_tens"===n.tickInterval||"seconds_fives"===n.tickInterval){if(!o)return!0}else if((s%t==0||a)&&!o)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var n=this.w,i=this.formatDates(e),r=this.removeOverlappingTS(i);n.globals.timescaleLabels=r.slice(),new hi(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,i=e.currentYear,r=e.daysWidthOnXAxis,s=e.numberOfYears,a=t.minYear,o=0,l=new Cn(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var u=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);o=(l.determineDaysOfYear(t.minYear)-u+1)*r,a=t.minYear+1,this.timeScaleArray.push({position:o,value:a,unit:c,year:a,month:b.monthMod(n+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:o,value:a,unit:c,year:i,month:b.monthMod(n+1)});for(var d=a,h=o,f=0;f<s;f++)d++,h=l.determineDaysOfYear(d-1)*r+h,this.timeScaleArray.push({position:h,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,n=e.currentMonthDate,i=e.currentMonth,r=e.currentYear,s=e.daysWidthOnXAxis,a=e.numberOfMonths,o=i,l=0,c=new Cn(this.ctx),u="month",d=0;if(t.minDate>1){l=(c.determineDaysOfMonths(i+1,t.minYear)-n+1)*s,o=b.monthMod(i+1);var h=r+d,f=b.monthMod(o),p=o;0===o&&(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:o,unit:u,year:r,month:b.monthMod(i)});for(var m=o+1,g=l,v=0,y=1;v<a;v++,y++){0===(m=b.monthMod(m))?(u="year",d+=1):u="month";var x=this._getYear(r,m,d);g=c.determineDaysOfMonths(m,x)*s+g;var _=0===m?x:m;this.timeScaleArray.push({position:g,value:_,unit:u,year:x,month:0===m?1:m}),m++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,n=e.currentMonth,i=e.currentYear,r=e.hoursWidthOnXAxis,s=e.numberOfDays,a=new Cn(this.ctx),o="day",l=t.minDate+1,c=l,u=function(e,t,n){return e>a.determineDaysOfMonths(t+1,n)?(c=1,o="month",h=t+=1,t):t},d=(24-t.minHour)*r,h=l,f=u(c,n,i);0===t.minHour&&1===t.minDate?(d=0,h=b.monthMod(t.minMonth),o="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,i),1!==h&&(o="day")),this.timeScaleArray.push({position:d,value:h,unit:o,year:this._getYear(i,f,0),month:b.monthMod(f),day:c});for(var p=d,m=0;m<s;m++){o="day",f=u(c+=1,f,this._getYear(i,f,0));var g=this._getYear(i,f,0);p=24*r+p;var v=1===c?b.monthMod(f):c;this.timeScaleArray.push({position:p,value:v,unit:o,year:g,month:b.monthMod(f),day:v})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,n=e.currentDate,i=e.currentMonth,r=e.currentYear,s=e.minutesWidthOnXAxis,a=e.numberOfHours,o=new Cn(this.ctx),l="hour",c=function(e,t){return e>o.determineDaysOfMonths(t+1,r)&&(m=1,t+=1),{month:t,date:m}},u=function(e,t){return e>o.determineDaysOfMonths(t+1,r)?t+=1:t},d=60-(t.minMinute+t.minSecond/60),h=d*s,f=t.minHour+1,p=f;60===d&&(h=0,p=f=t.minHour);var m=n;p>=24&&(p=0,l="day",f=m+=1);var g=c(m,i).month;g=u(m,g),f>31&&(f=m=1),this.timeScaleArray.push({position:h,value:f,unit:l,day:m,hour:p,year:r,month:b.monthMod(g)}),p++;for(var v=h,y=0;y<a;y++){l="hour",p>=24&&(p=0,l="day",g=c(m+=1,g).month,g=u(m,g));var x=this._getYear(r,g,0);v=60*s+v;var _=0===p?m:p;this.timeScaleArray.push({position:v,value:_,unit:l,hour:p,day:m,year:x,month:b.monthMod(g)}),p++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,i=e.currentMinute,r=e.currentHour,s=e.currentDate,a=e.currentMonth,o=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,u=e.numberOfMinutes,d=i+1,h=s,f=a,p=o,m=r,g=(60-n-t/1e3)*c,v=0;v<u;v++)d>=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:b.monthMod(f)}),g+=l,d++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,i=e.currentMinute,r=e.currentHour,s=e.currentDate,a=e.currentMonth,o=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,u=n+1,d=i,h=s,f=a,p=o,m=r,g=(1e3-t)/1e3*l,v=0;v<c;v++)u>=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:b.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 i=e.value.toString(),r=new Cn(t.ctx),s=t.createRawDateString(e,i),a=r.getDate(r.parseDate(s));if(t.utc||(a=r.getDate(r.parseDateWithTimezone(s))),void 0===n.config.xaxis.labels.format){var o="dd MMM",l=n.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(o=l.year),"month"===e.unit&&(o=l.month),"day"===e.unit&&(o=l.day),"hour"===e.unit&&(o=l.hour),"minute"===e.unit&&(o=l.minute),"second"===e.unit&&(o=l.second),i=r.formatDate(a,o)}else i=r.formatDate(a,n.config.xaxis.labels.format);return{dateString:s,position:e.position,value:i,unit:e.unit,year:e.year,month:e.month}}))}},{key:"removeOverlappingTS",value:function(e){var t,n=this,i=new Sn(this.ctx),r=!1;e.length>0&&e[0].value&&e.every((function(t){return t.value.length===e[0].value.length}))&&(r=!0,t=i.getTextRects(e[0].value).width);var s=0,a=e.map((function(a,o){if(o>0&&n.w.config.xaxis.labels.hideOverlappingLabels){var l=r?t:i.getTextRects(e[s].value).width,c=e[s].position;return a.position>c+l+10?(s=o,a):null}return a}));return a.filter((function(e){return null!==e}))}},{key:"_getYear",value:function(e,t,n){return e+Math.floor(t/12)+n}}]),e}(),Wi=function(){function e(t,i){n(this,e),this.ctx=i,this.w=i.w,this.el=t}return r(e,[{key:"setupElements",value:function(){var e=this.w,t=e.globals,n=e.config,i=n.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(i),t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(i),t.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(i)&&n.plotOptions.bar.horizontal,t.chartClass=".apexcharts".concat(t.chartID),t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),Sn.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas ".concat(t.chartClass.substring(1))}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=window.SVG().addTo(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(n.chart.offsetX,", ").concat(n.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==n.theme.mode||n.chart.background?"light"!==n.theme.mode||n.chart.background?n.chart.background:"#fff":"#424242",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),Sn.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elWrap.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var n=this.w,i=this.ctx,r=n.config,s=n.globals,a={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},o=r.chart.type||"line",l=null,c=0;s.series.forEach((function(t,i){var r="column"===e[i].type?"bar":e[i].type||("column"===o?"bar":o);a[r]?("rangeArea"===r?(a[r].series.push(s.seriesRangeStart[i]),a[r].seriesRangeEnd.push(s.seriesRangeEnd[i])):a[r].series.push(t),a[r].i.push(i),"bar"===r&&(n.globals.columnSeries=a.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(r)?l=r:console.warn("You have specified an unrecognized series type (".concat(r,").")),o!==r&&"scatter"!==r&&c++})),c>0&&(l&&console.warn("Chart or series type ".concat(l," cannot appear with other chart or series types.")),a.bar.series.length>0&&r.plotOptions.bar.horizontal&&(c-=a.bar.series.length,a.bar={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`"))),s.comboCharts||(s.comboCharts=c>0);var u=new Ri(i,t),d=new Ti(i,t);i.pie=new Oi(i);var h=new Yi(i);i.rangeBar=new Ii(i,t);var f=new Pi(i),p=[];if(s.comboCharts){var g,v,y=new An(i);if(a.area.series.length>0&&(g=p).push.apply(g,m(y.drawSeriesByGroup(a.area,s.areaGroups,"area",u))),a.bar.series.length>0)if(r.chart.stacked){var b=new Li(i,t);p.push(b.draw(a.bar.series,a.bar.i))}else i.bar=new Ai(i,t),p.push(i.bar.draw(a.bar.series,a.bar.i));if(a.rangeArea.series.length>0&&p.push(u.draw(a.rangeArea.series,"rangeArea",a.rangeArea.i,a.rangeArea.seriesRangeEnd)),a.line.series.length>0&&(v=p).push.apply(v,m(y.drawSeriesByGroup(a.line,s.lineGroups,"line",u))),a.candlestick.series.length>0&&p.push(d.draw(a.candlestick.series,"candlestick",a.candlestick.i)),a.boxPlot.series.length>0&&p.push(d.draw(a.boxPlot.series,"boxPlot",a.boxPlot.i)),a.rangeBar.series.length>0&&p.push(i.rangeBar.draw(a.rangeBar.series,a.rangeBar.i)),a.scatter.series.length>0){var x=new Ri(i,t,!0);p.push(x.draw(a.scatter.series,"scatter",a.scatter.i))}if(a.bubble.series.length>0){var _=new Ri(i,t,!0);p.push(_.draw(a.bubble.series,"bubble",a.bubble.i))}}else switch(r.chart.type){case"line":p=u.draw(s.series,"line");break;case"area":p=u.draw(s.series,"area");break;case"bar":r.chart.stacked?p=new Li(i,t).draw(s.series):(i.bar=new Ai(i,t),p=i.bar.draw(s.series));break;case"candlestick":p=new Ti(i,t).draw(s.series,"candlestick");break;case"boxPlot":p=new Ti(i,t).draw(s.series,r.chart.type);break;case"rangeBar":p=i.rangeBar.draw(s.series);break;case"rangeArea":p=u.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":p=new Di(i,t).draw(s.series);break;case"treemap":p=new zi(i,t).draw(s.series);break;case"pie":case"donut":case"polarArea":p=i.pie.draw(s.series);break;case"radialBar":p=h.draw(s.series);break;case"radar":p=f.draw(s.series);break;default:p=u.draw(s.series)}return p}},{key:"setSVGDimensions",value:function(){var e=this.w,t=e.globals,n=e.config;n.chart.width=n.chart.width||"100%",n.chart.height=n.chart.height||"auto",t.svgWidth=n.chart.width,t.svgHeight=n.chart.height;var i=b.getDimensions(this.el),r=n.chart.width.toString().split(/[0-9]+/g).pop();"%"===r?b.isNumber(i[0])&&(0===i[0].width&&(i=b.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(n.chart.width,10)/100):"px"!==r&&""!==r||(t.svgWidth=parseInt(n.chart.width,10));var s=String(n.chart.height).toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===s){var a=b.getDimensions(this.el.parentNode);t.svgHeight=a[1]*parseInt(n.chart.height,10)/100}else t.svgHeight=parseInt(n.chart.height,10);else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;if(t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),Sn.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==s){var o=n.chart.sparkline.enabled?0:t.axisCharts?n.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(t.svgHeight+o,"px")}t.dom.elWrap.style.width="".concat(t.svgWidth,"px"),t.dom.elWrap.style.height="".concat(t.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,n=e.translateX;Sn.setAttrs(e.dom.elGraphical.node,{transform:"translate(".concat(n,", ").concat(t,")")})}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=0,i=e.config.chart.sparkline.enabled?1:15;i+=e.config.grid.padding.bottom,["top","bottom"].includes(e.config.legend.position)&&e.config.legend.show&&!e.config.legend.floating&&(n=new pi(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var r=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),s=2.05*e.globals.radialSize;if(r&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var a=b.getBoundingClientRect(r);s=a.bottom;var o=a.bottom-a.top;s=Math.max(2.05*e.globals.radialSize,o)}var l=Math.ceil(s+t.translateY+n+i);t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).includes("%")||(t.dom.elWrap.style.height="".concat(l,"px"),Sn.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(l,"px"))}},{key:"coreCalculations",value:function(){new Qn(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map((function(){return[]}))},n=new zn,i=this.w.globals;n.initGlobalVars(i),i.seriesXvalues=t(),i.seriesYvalues=t()}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var e=this.w,t=null;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new ri(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new ri(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Vi(this.ctx);var n=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(n)}t=new An(this.ctx).getCalculatedRatios()}return t}},{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.ctx,n=this.w;if(n.config.chart.brush.enabled&&"function"!=typeof n.config.chart.events.selection){var i=Array.isArray(n.config.chart.brush.targets)?n.config.chart.brush.targets:[n.config.chart.brush.target];i.forEach((function(n){var i=t.constructor.getChartByID(n);i.w.globals.brushSource=e.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){return e.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){return e.updateSourceChart(i)})})),n.config.chart.events.selection=function(e,n){i.forEach((function(e){t.constructor.getChartByID(e).ctx.updateHelpers._updateOptions({xaxis:{min:n.xaxis.min,max:n.xaxis.max}},!1,!1,!1,!1)}))}}}}]),e}(),qi=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"_updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(a){var o=[t.ctx];r&&(o=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(o=[t.ctx],t.ctx.w.globals.isExecCalled=!1),o.forEach((function(r,l){var c=r.w;if(c.globals.shouldAnimate=i,n||(c.globals.resized=!0,c.globals.dataChanged=!0,i&&r.series.getPreviousPaths()),e&&"object"===v(e)&&(r.config=new Rn(e),e=An.extendArrayProps(r.config,e,c),r.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,c.config=b.extend(c.config,e),s&&(c.globals.lastXAxis=e.xaxis?b.clone(e.xaxis):[],c.globals.lastYAxis=e.yaxis?b.clone(e.yaxis):[],c.globals.initialConfig=b.extend({},c.config),c.globals.initialSeries=b.clone(c.config.series),e.series))){for(var u=0;u<c.globals.collapsedSeriesIndices.length;u++){var d=c.config.series[c.globals.collapsedSeriesIndices[u]];c.globals.collapsedSeries[u].data=c.globals.axisCharts?d.data.slice():d}for(var h=0;h<c.globals.ancillaryCollapsedSeriesIndices.length;h++){var f=c.config.series[c.globals.ancillaryCollapsedSeriesIndices[h]];c.globals.ancillaryCollapsedSeries[h].data=c.globals.axisCharts?f.data.slice():f}r.series.emptyCollapsedSeries(c.config.series)}return r.update(e).then((function(){l===o.length-1&&a(r)}))}))}))}},{key:"_updateSeries",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(r){var s,a=n.w;return a.globals.shouldAnimate=t,a.globals.dataChanged=!0,t&&n.ctx.series.getPreviousPaths(),a.globals.axisCharts?(0===(s=e.map((function(e,t){return n._extendSeries(e,t)}))).length&&(s=[{data:[]}]),a.config.series=s):a.config.series=e.slice(),i&&(a.globals.initialConfig.series=b.clone(a.config.series),a.globals.initialSeries=b.clone(a.config.series)),n.ctx.update().then((function(){r(n.ctx)}))}))}},{key:"_extendSeries",value:function(e,t){var n=this.w,i=n.config.series[t];return h(h({},n.config.series[t]),{},{name:e.name?e.name:null==i?void 0:i.name,color:e.color?e.color:null==i?void 0:i.color,type:e.type?e.type:null==i?void 0:i.type,group:e.group?e.group:null==i?void 0:i.group,hidden:void 0!==e.hidden?e.hidden:null==i?void 0:i.hidden,data:e.data?e.data:null==i?void 0:i.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var n=this.w,i=null,r=".apexcharts-series[data\\:realIndex='".concat(e,"']");return n.globals.axisCharts?i=n.globals.dom.Paper.findOne("".concat(r," path[j='").concat(t,"'], ").concat(r," circle[j='").concat(t,"'], ").concat(r," rect[j='").concat(t,"']")):void 0===t&&(i=n.globals.dom.Paper.findOne("".concat(r," path[j='").concat(e,"']")),"pie"!==n.config.chart.type&&"polarArea"!==n.config.chart.type&&"donut"!==n.config.chart.type||this.ctx.pie.pieClicked(e)),i?(new Sn(this.ctx).pathMouseDown(i,null),i.node?i.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 Fn(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,i=n.globals.lastXAxis,r=n.globals.lastYAxis;e&&e.xaxis&&(i=e.xaxis),e&&e.yaxis&&(r=e.yaxis),n.config.xaxis.min=i.min,n.config.xaxis.max=i.max;n.config.yaxis.map((function(e,i){n.globals.zoomed||void 0!==r[i]?function(e){void 0!==r[e]&&(n.config.yaxis[e].min=r[e].min,n.config.yaxis[e].max=r[e].max)}(i):void 0!==t.ctx.opts.yaxis[i]&&(e.min=t.ctx.opts.yaxis[i].min,e.max=t.ctx.opts.yaxis[i].max)}))}}]),e}();!function(){function e(){for(var e=arguments.length>0&&arguments[0]!==c?arguments[0]:[],r=arguments.length>1?arguments[1]:c,s=arguments.length>2?arguments[2]:c,a=arguments.length>3?arguments[3]:c,o=arguments.length>4?arguments[4]:c,l=arguments.length>5?arguments[5]:c,c=arguments.length>6?arguments[6]:c,u=e.slice(r,s||c),d=a.slice(o,l||c),h=0,f={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};u[h]=t.call(f,u[h]),d[h]=t.call(p,d[h]),u[h][0]!=d[h][0]||"M"==u[h][0]||"A"==u[h][0]&&(u[h][4]!=d[h][4]||u[h][5]!=d[h][5])?(Array.prototype.splice.apply(u,[h,1].concat(i.call(f,u[h]))),Array.prototype.splice.apply(d,[h,1].concat(i.call(p,d[h])))):(u[h]=n.call(f,u[h]),d[h]=n.call(p,d[h])),++h!=u.length||h!=d.length;)h==u.length&&u.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),h==d.length&&d.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:u,dest:d}}function t(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function n(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function i(e){var t=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],t;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":t=function(e,t){var n,i,r,s,a,o,l,c,u,d,h,f,p,m,g,v,y,b,x,_,w,k,M,S,A,L,T=Math.abs(t[1]),C=Math.abs(t[2]),D=t[3]%360,E=t[4],O=t[5],P=t[6],Y=t[7],I=new ve(e),N=new ve(P,Y),H=[];if(0===T||0===C||I.x===N.x&&I.y===N.y)return[["C",I.x,I.y,N.x,N.y,N.x,N.y]];for((i=(n=new ve((I.x-N.x)/2,(I.y-N.y)/2).transform((new be).rotate(D))).x*n.x/(T*T)+n.y*n.y/(C*C))>1&&(T*=i=Math.sqrt(i),C*=i),r=(new be).rotate(D).scale(1/T,1/C).rotate(-D),I=I.transform(r),o=(s=[(N=N.transform(r)).x-I.x,N.y-I.y])[0]*s[0]+s[1]*s[1],a=Math.sqrt(o),s[0]/=a,s[1]/=a,l=o<4?Math.sqrt(1-o/4):0,E===O&&(l*=-1),c=new ve((N.x+I.x)/2+l*-s[1],(N.y+I.y)/2+l*s[0]),u=new ve(I.x-c.x,I.y-c.y),d=new ve(N.x-c.x,N.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),O&&h>f&&(f+=2*Math.PI),!O&&h<f&&(f-=2*Math.PI),v=[],y=h,p=(f-h)/(m=Math.ceil(2*Math.abs(h-f)/Math.PI)),g=4*Math.tan(p/4)/3,w=0;w<=m;w++)x=Math.cos(y),b=Math.sin(y),_=new ve(c.x+x,c.y+b),v[w]=[new ve(_.x+g*b,_.y-g*x),_,new ve(_.x-g*b,_.y+g*x)],y+=p;for(v[0][0]=v[0][1].clone(),v[v.length-1][2]=v[v.length-1][1].clone(),r=(new be).rotate(D).scale(T,C).rotate(-D),w=0,k=v.length;w<k;w++)v[w][0]=v[w][0].transform(r),v[w][1]=v[w][1].transform(r),v[w][2]=v[w][2].transform(r);for(w=1,k=v.length;w<k;w++)M=(_=v[w-1][2]).x,S=_.y,A=(_=v[w][0]).x,L=_.y,P=(_=v[w][1]).x,Y=_.y,H.push(["C",M,S,A,L,P,Y]);return H}(this.pos,e),e=t[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],t}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!1===t)return!1;for(var n=t,i=e.length;n<i;++n)if("M"==e[n][0])return n;return!1}J(Et,{morph:function(t,n,i,s,a){for(var o=this.parse(t),l=this.parse(n),c=0,u=0,d=!1,h=!1;!1!==c||!1!==u;){var f;d=r(o,!1!==c&&c+1),h=r(l,!1!==u&&u+1),!1===c&&(c=0==(f=new Et(p.start).bbox()).height||0==f.width?o.push(o[0])-1:o.push(["M",f.x+f.width/2,f.y+f.height/2])-1),!1===u&&(u=0==(f=new Et(p.dest).bbox()).height||0==f.width?l.push(l[0])-1:l.push(["M",f.x+f.width/2,f.y+f.height/2])-1);var p=e(o,c,d,l,u,h);o=o.slice(0,c).concat(p.start,!1===d?[]:o.slice(d)),l=l.slice(0,u).concat(p.dest,!1===h?[]:l.slice(h)),c=!1!==d&&c+p.start.length,u=!1!==h&&u+p.dest.length}this._array=o,this.destination=new Et,this.destination._array=l;var m=this.fromArray(o.map((function(e,t){var n=l[t].map((function(n,r){return 0===r?n:s.step(e[r],l[t][r],i,a[t],a)}));return n})));return m}})}();const Ui=e=>(e.changedTouches&&(e=e.changedTouches[0]),{x:e.clientX,y:e.clientY});class $i{constructor(e){e.remember("_draggable",this),this.el=e,this.drag=this.drag.bind(this),this.startDrag=this.startDrag.bind(this),this.endDrag=this.endDrag.bind(this)}init(e){e?(this.el.on("mousedown.drag",this.startDrag),this.el.on("touchstart.drag",this.startDrag,{passive:!1})):(this.el.off("mousedown.drag"),this.el.off("touchstart.drag"))}startDrag(e){const t=!e.type.indexOf("mouse");if(t&&1!==e.which&&0!==e.buttons)return;if(this.el.dispatch("beforedrag",{event:e,handler:this}).defaultPrevented)return;e.preventDefault(),e.stopPropagation(),this.init(!1),this.box=this.el.bbox(),this.lastClick=this.el.point(Ui(e));const n=(t?"mouseup":"touchend")+".drag";Ee(window,(t?"mousemove":"touchmove")+".drag",this.drag,this,{passive:!1}),Ee(window,n,this.endDrag,this,{passive:!1}),this.el.fire("dragstart",{event:e,handler:this,box:this.box})}drag(e){const{box:t,lastClick:n}=this,i=this.el.point(Ui(e)),r=i.x-n.x,s=i.y-n.y;if(!r&&!s)return t;const a=t.x+r,o=t.y+s;this.box=new we(a,o,t.w,t.h),this.lastClick=i,this.el.dispatch("dragmove",{event:e,handler:this,box:this.box}).defaultPrevented||this.move(a,o)}move(e,t){"svg"===this.el.type?dn.prototype.move.call(this.el,e,t):this.el.move(e,t)}endDrag(e){this.drag(e),this.el.fire("dragend",{event:e,handler:this,box:this.box}),Oe(window,"mousemove.drag"),Oe(window,"touchmove.drag"),Oe(window,"mouseup.drag"),Oe(window,"touchend.drag"),this.init(!0)
/*!
  * @svgdotjs/svg.select.js - An extension of svg.js which allows to select elements with mouse
  * @version 4.0.1
  * https://github.com/svgdotjs/svg.select.js
  *
  * @copyright Ulrich-Matthias Schäfer
  * @license MIT
  *
  * BUILT: Mon Jul 01 2024 15:04:42 GMT+0200 (Central European Summer Time)
  */}}function Xi(e,t,n,i=null){return function(r){r.preventDefault(),r.stopPropagation();var s=r.pageX||r.touches[0].pageX,a=r.pageY||r.touches[0].pageY;t.fire(e,{x:s,y:a,event:r,index:i,points:n})}}function Gi([e,t],{a:n,b:i,c:r,d:s,e:a,f:o}){return[e*n+t*r+a,e*i+t*s+o]}J(ze,{draggable(e=!0){return(this.remember("_draggable")||new $i(this)).init(e),this}});let Zi=class{constructor(e){this.el=e,e.remember("_selectHandler",this),this.selection=new dn,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const t=F();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.createRot=e.createRot||this.createRotFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.updateRot=e.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach(((e,t,n)=>{const i=this.order[t];this.createHandle.call(this,this.selection,e,t,n,i),this.selection.get(t+1).addClass("svg_select_handle svg_select_handle_"+i).on("mousedown.selection touchstart.selection",Xi(i,this.el,this.handlePoints,t))}))}createHandleFn(e){e.polyline()}updateHandleFn(e,t,n,i){const r=i.at(n-1),s=i[(n+1)%i.length],a=t,o=[a[0]-r[0],a[1]-r[1]],l=[a[0]-s[0],a[1]-s[1]],c=Math.sqrt(o[0]*o[0]+o[1]*o[1]),u=Math.sqrt(l[0]*l[0]+l[1]*l[1]),d=[o[0]/c,o[1]/c],h=[l[0]/u,l[1]/u],f=[a[0]-10*d[0],a[1]-10*d[1]],p=[a[0]-10*h[0],a[1]-10*h[1]];e.plot([f,a,p])}updateResizeHandles(){this.handlePoints.forEach(((e,t,n)=>{const i=this.order[t];this.updateHandle.call(this,this.selection.get(t+1),e,t,n,i)}))}createRotFn(e){e.line(),e.circle(5)}getPoint(e){return this.handlePoints[this.order.indexOf(e)]}getPointHandle(e){return this.selection.get(this.order.indexOf(e)+1)}updateRotFn(e,t){const n=this.getPoint("t");e.get(0).plot(n[0],n[1],t[0],t[1]),e.get(1).center(t[0],t[1])}createRotationHandle(){const e=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",Xi("rot",this.el,this.handlePoints));this.createRot.call(this,e)}updateRotationHandle(){const e=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(e,this.rotationPoint,this.handlePoints)}updatePoints(){const e=this.el.bbox(),t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(e).map((e=>Gi(e,t))),this.rotationPoint=Gi(this.getRotationPoint(e),t)}getHandlePoints({x:e,x2:t,y:n,y2:i,cx:r,cy:s}=this.el.bbox()){return[[e,n],[r,n],[t,n],[t,s],[t,i],[r,i],[e,i],[e,s]]}getRotationPoint({y:e,cx:t}=this.el.bbox()){return[t,e-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}};const Ki=e=>function(t=!0,n={}){"object"==typeof t&&(n=t,t=!0);let i=this.remember("_"+e.name);return i||(t.prototype instanceof Zi?(i=new t(this),t=!0):i=new e(this),this.remember("_"+e.name,i)),i.active(t,n),this
/*!
  * @svgdotjs/svg.resize.js - An extension for svg.js which allows to resize elements which are selected
  * @version 2.0.4
  * https://github.com/svgdotjs/svg.resize.js
  *
  * @copyright [object Object]
  * @license MIT
  *
  * BUILT: Fri Sep 13 2024 12:43:14 GMT+0200 (Central European Summer Time)
  */
/*!
  * @svgdotjs/svg.select.js - An extension of svg.js which allows to select elements with mouse
  * @version 4.0.1
  * https://github.com/svgdotjs/svg.select.js
  *
  * @copyright Ulrich-Matthias Schäfer
  * @license MIT
  *
  * BUILT: Mon Jul 01 2024 15:04:42 GMT+0200 (Central European Summer Time)
  */};function Ji(e,t,n,i=null){return function(r){r.preventDefault(),r.stopPropagation();var s=r.pageX||r.touches[0].pageX,a=r.pageY||r.touches[0].pageY;t.fire(e,{x:s,y:a,event:r,index:i,points:n})}}function Qi([e,t],{a:n,b:i,c:r,d:s,e:a,f:o}){return[e*n+t*r+a,e*i+t*s+o]}J(ze,{select:Ki(Zi)}),J([zt,Bt,ft],{pointSelect:Ki(class{constructor(e){this.el=e,e.remember("_pointSelectHandler",this),this.selection=new dn,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const t=F();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach(((e,t,n)=>{this.createHandle.call(this,this.selection,e,t,n),this.selection.get(t+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",Xi("point",this.el,this.points,t))}))}createHandleFn(e){e.circle(5)}updateHandleFn(e,t){e.center(t[0],t[1])}updatePointHandles(){this.points.forEach(((e,t,n)=>{this.updateHandle.call(this,this.selection.get(t+1),e,t,n)}))}updatePoints(){const e=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map((t=>Gi(t,e)))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});class er{constructor(e){this.el=e,e.remember("_selectHandler",this),this.selection=new dn,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const t=F();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.createRot=e.createRot||this.createRotFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.updateRot=e.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach(((e,t,n)=>{const i=this.order[t];this.createHandle.call(this,this.selection,e,t,n,i),this.selection.get(t+1).addClass("svg_select_handle svg_select_handle_"+i).on("mousedown.selection touchstart.selection",Ji(i,this.el,this.handlePoints,t))}))}createHandleFn(e){e.polyline()}updateHandleFn(e,t,n,i){const r=i.at(n-1),s=i[(n+1)%i.length],a=t,o=[a[0]-r[0],a[1]-r[1]],l=[a[0]-s[0],a[1]-s[1]],c=Math.sqrt(o[0]*o[0]+o[1]*o[1]),u=Math.sqrt(l[0]*l[0]+l[1]*l[1]),d=[o[0]/c,o[1]/c],h=[l[0]/u,l[1]/u],f=[a[0]-10*d[0],a[1]-10*d[1]],p=[a[0]-10*h[0],a[1]-10*h[1]];e.plot([f,a,p])}updateResizeHandles(){this.handlePoints.forEach(((e,t,n)=>{const i=this.order[t];this.updateHandle.call(this,this.selection.get(t+1),e,t,n,i)}))}createRotFn(e){e.line(),e.circle(5)}getPoint(e){return this.handlePoints[this.order.indexOf(e)]}getPointHandle(e){return this.selection.get(this.order.indexOf(e)+1)}updateRotFn(e,t){const n=this.getPoint("t");e.get(0).plot(n[0],n[1],t[0],t[1]),e.get(1).center(t[0],t[1])}createRotationHandle(){const e=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",Ji("rot",this.el,this.handlePoints));this.createRot.call(this,e)}updateRotationHandle(){const e=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(e,this.rotationPoint,this.handlePoints)}updatePoints(){const e=this.el.bbox(),t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(e).map((e=>Qi(e,t))),this.rotationPoint=Qi(this.getRotationPoint(e),t)}getHandlePoints({x:e,x2:t,y:n,y2:i,cx:r,cy:s}=this.el.bbox()){return[[e,n],[r,n],[t,n],[t,s],[t,i],[r,i],[e,i],[e,s]]}getRotationPoint({y:e,cx:t}=this.el.bbox()){return[t,e-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}}const tr=e=>function(t=!0,n={}){"object"==typeof t&&(n=t,t=!0);let i=this.remember("_"+e.name);return i||(t.prototype instanceof er?(i=new t(this),t=!0):i=new e(this),this.remember("_"+e.name,i)),i.active(t,n),this};J(ze,{select:tr(er)}),J([zt,Bt,ft],{pointSelect:tr(class{constructor(e){this.el=e,e.remember("_pointSelectHandler",this),this.selection=new dn,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const t=F();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach(((e,t,n)=>{this.createHandle.call(this,this.selection,e,t,n),this.selection.get(t+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",Ji("point",this.el,this.points,t))}))}createHandleFn(e){e.circle(5)}updateHandleFn(e,t){e.center(t[0],t[1])}updatePointHandles(){this.points.forEach(((e,t,n)=>{this.updateHandle.call(this,this.selection.get(t+1),e,t,n)}))}updatePoints(){const e=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map((t=>Qi(t,e)))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});const nr=e=>(e.changedTouches&&(e=e.changedTouches[0]),{x:e.clientX,y:e.clientY}),ir=e=>{let t=1/0,n=1/0,i=-1/0,r=-1/0;for(let s=0;s<e.length;s++){const a=e[s];t=Math.min(t,a[0]),n=Math.min(n,a[1]),i=Math.max(i,a[0]),r=Math.max(r,a[1])}return new we(t,n,i-t,r-n)};class rr{constructor(e){this.el=e,e.remember("_ResizeHandler",this),this.lastCoordinates=null,this.eventType="",this.lastEvent=null,this.handleResize=this.handleResize.bind(this),this.resize=this.resize.bind(this),this.endResize=this.endResize.bind(this),this.rotate=this.rotate.bind(this),this.movePoint=this.movePoint.bind(this)}active(e,t){this.preserveAspectRatio=t.preserveAspectRatio??!1,this.aroundCenter=t.aroundCenter??!1,this.grid=t.grid??0,this.degree=t.degree??0,this.el.off(".resize"),e&&(this.el.on(["lt.resize","rt.resize","rb.resize","lb.resize","t.resize","r.resize","b.resize","l.resize","rot.resize","point.resize"],this.handleResize),this.lastEvent&&("rot"===this.eventType?this.rotate(this.lastEvent):"point"===this.eventType?this.movePoint(this.lastEvent):this.resize(this.lastEvent)))}handleResize(e){this.eventType=e.type;const{event:t,index:n,points:i}=e.detail,r=!t.type.indexOf("mouse");if(r&&1!==(t.which||t.buttons))return;if(this.el.dispatch("beforeresize",{event:e,handler:this}).defaultPrevented)return;this.box=this.el.bbox(),this.startPoint=this.el.point(nr(t)),this.index=n,this.points=i.slice();const s=(r?"mousemove":"touchmove")+".resize",a=(r?"mouseup":"touchcancel.resize touchend")+".resize";"point"===e.type?Ee(window,s,this.movePoint):"rot"===e.type?Ee(window,s,this.rotate):Ee(window,s,this.resize),Ee(window,a,this.endResize)}resize(e){this.lastEvent=e;const t=this.snapToGrid(this.el.point(nr(e)));let n=t.x-this.startPoint.x,i=t.y-this.startPoint.y;this.preserveAspectRatio&&this.aroundCenter&&(n*=2,i*=2);const r=this.box.x+n,s=this.box.y+i,a=this.box.x2+n,o=this.box.y2+i;let l=new we(this.box);if(this.eventType.includes("l")&&(l.x=Math.min(r,this.box.x2),l.x2=Math.max(r,this.box.x2)),this.eventType.includes("r")&&(l.x=Math.min(a,this.box.x),l.x2=Math.max(a,this.box.x)),this.eventType.includes("t")&&(l.y=Math.min(s,this.box.y2),l.y2=Math.max(s,this.box.y2)),this.eventType.includes("b")&&(l.y=Math.min(o,this.box.y),l.y2=Math.max(o,this.box.y)),l.width=l.x2-l.x,l.height=l.y2-l.y,this.preserveAspectRatio){const e=l.width/this.box.width,t=l.height/this.box.height,n=["lt","t","rt","r","rb","b","lb","l"],i=(n.indexOf(this.eventType)+4)%n.length,r=this.aroundCenter?[this.box.cx,this.box.cy]:this.points[i];let s=this.eventType.includes("t")||this.eventType.includes("b")?t:e;s=2===this.eventType.length?Math.max(e,t):s,l=function(e,t,n){const i=[[e.x,e.y],[e.x+e.width,e.y],[e.x+e.width,e.y+e.height],[e.x,e.y+e.height]].map((([e,i])=>{const r=e-t[0],s=(i-t[1])*n;return[r*n+t[0],s+t[1]]}));return ir(i)}(this.box,r,s)}this.el.dispatch("resize",{box:new we(l),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.size(l.width,l.height).move(l.x,l.y)}movePoint(e){this.lastEvent=e;const{x:t,y:n}=this.snapToGrid(this.el.point(nr(e))),i=this.el.array().slice();i[this.index]=[t,n],this.el.dispatch("resize",{box:ir(i),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.plot(i)}rotate(e){this.lastEvent=e;const t=this.startPoint,n=this.el.point(nr(e)),{cx:i,cy:r}=this.box,s=t.x-i,a=t.y-r,o=n.x-i,l=n.y-r,c=Math.sqrt(s*s+a*a)*Math.sqrt(o*o+l*l);if(0===c)return;let u=Math.acos((s*o+a*l)/c)/Math.PI*180;if(!u)return;n.x<t.x&&(u=-u);const d=new be(this.el),{x:h,y:f}=new ve(i,r).transformO(d),{rotate:p}=d.decompose(),m=this.snapToAngle(p+u)-p;this.el.dispatch("resize",{box:this.box,angle:m,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.transform(d.rotateO(m,h,f))}endResize(e){"rot"!==this.eventType&&"point"!==this.eventType&&this.resize(e),this.lastEvent=null,this.eventType="",Oe(window,"mousemove.resize touchmove.resize"),Oe(window,"mouseup.resize touchend.resize")}snapToGrid(e){return this.grid&&(e.x=Math.round(e.x/this.grid)*this.grid,e.y=Math.round(e.y/this.grid)*this.grid),e}snapToAngle(e){return this.degree&&(e=Math.round(e/this.degree)*this.degree),e}}J(ze,{resize:function(e=!0,t={}){"object"==typeof e&&(t=e,e=!0);let n=this.remember("_ResizeHandler");return n||(e.prototype instanceof rr?(n=new e(this),e=!0):n=new rr(this),this.remember("_resizeHandler",n)),n.active(e,t),this}}),void 0===window.SVG&&(window.SVG=yn),void 0===window.Apex&&(window.Apex={});var sr=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(e,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","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 ii(this.ctx),this.ctx.core=new Wi(this.ctx.el,this.ctx),this.ctx.config=new Rn({}),this.ctx.data=new Xn(this.ctx),this.ctx.grid=new Kn(this.ctx),this.ctx.graphics=new Sn(this.ctx),this.ctx.coreUtils=new An(this.ctx),this.ctx.crosshairs=new ri(this.ctx),this.ctx.events=new ti(this.ctx),this.ctx.exports=new Gn(this.ctx),this.ctx.fill=new Vn(this.ctx),this.ctx.localization=new ni(this.ctx),this.ctx.options=new In,this.ctx.responsive=new si(this.ctx),this.ctx.series=new $n(this.ctx),this.ctx.theme=new ai(this.ctx),this.ctx.formatters=new Dn(this.ctx),this.ctx.titleSubtitle=new oi(this.ctx),this.ctx.legend=new pi(this.ctx),this.ctx.toolbar=new mi(this.ctx),this.ctx.tooltip=new ki(this.ctx),this.ctx.dimensions=new hi(this.ctx),this.ctx.updateHelpers=new qi(this.ctx),this.ctx.zoomPanSelection=new gi(this.ctx),this.ctx.w.globals.tooltip=new ki(this.ctx)}}]),e}(),ar=function(){function e(t){n(this,e),this.ctx=t,this.w=t.w}return r(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(){this.removeClass("*"),this.off()}),!0),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,n=e.isUpdating,i=this.w.globals.dom.Paper.node;i.parentNode&&i.parentNode.parentNode&&!n&&(i.parentNode.parentNode.style.minHeight="unset");var r=this.w.globals.dom.baseEl;r&&this.ctx.eventList.forEach((function(e){r.removeEventListener(e,t.ctx.events.documentEvent)}));var s=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(s.Paper),s.Paper.remove(),s.elWrap=null,s.elGraphical=null,s.elLegendWrap=null,s.elLegendForeign=null,s.baseEl=null,s.elGridRect=null,s.elGridRectMask=null,s.elGridRectBarMask=null,s.elGridRectMarkerMask=null,s.elForecastMask=null,s.elNonForecastMask=null,s.elDefs=null}}]),e}(),or=new WeakMap,lr=function(){function e(t,i){n(this,e),this.opts=i,this.ctx=this,this.w=new Bn(i).init(),this.el=t,this.w.globals.cuid=b.randomId(),this.w.globals.chartID=this.w.config.chart.id?b.escapeString(this.w.config.chart.id):this.w.globals.cuid,new sr(this).initModules(),this.create=b.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return r(e,[{key:"render",value:function(){var e=this;return new Promise((function(t,n){if(b.elementExists(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 i=e.w.config.chart.events.beforeMount;"function"==typeof i&&i(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 i=e.getBoundingClientRect();"none"!==e.style.display&&0!==i.width||(n=!0)}var r=new ResizeObserver((function(i){n&&t.call(e,i),n=!0}));e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach((function(e){return r.observe(e)})):r.observe(e),or.set(t,r)}(e.el.parentNode,e.parentResizeHandler);var r=e.el.getRootNode&&e.el.getRootNode(),s=b.is("ShadowRoot",r),a=e.el.ownerDocument,o=s?r.getElementById("apexcharts-css"):a.getElementById("apexcharts-css");if(!o){var l;(o=document.createElement("style")).id="apexcharts-css",o.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  direction: ltr !important;\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  display: inline-block;\n  position: relative;\n  width: 16px;\n  height: 16px;\n  font-size: 16px;\n  line-height: 16px;\n  margin-right: 4px;\n  text-align: center;\n  vertical-align: middle;\n  color: inherit;\n}\n\n.apexcharts-tooltip-marker::before {\n  content: "";\n  display: inline-block;\n  width: 100%;\n  text-align: center;\n  color: currentcolor;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  font-size: 26px;\n  font-family: Arial, Helvetica, sans-serif;\n  line-height: 14px;\n  font-weight: 900;\n}\n\n.apexcharts-tooltip-marker[shape="circle"]::before {\n  content: "\\25CF";\n}\n\n.apexcharts-tooltip-marker[shape="square"]::before,\n.apexcharts-tooltip-marker[shape="rect"]::before {\n  content: "\\25A0";\n  transform: translate(-1px, -2px);\n}\n\n.apexcharts-tooltip-marker[shape="line"]::before {\n  content: "\\2500";\n}\n\n.apexcharts-tooltip-marker[shape="diamond"]::before {\n  content: "\\25C6";\n  font-size: 28px;\n}\n\n.apexcharts-tooltip-marker[shape="triangle"]::before {\n  content: "\\25B2";\n  font-size: 22px;\n}\n\n.apexcharts-tooltip-marker[shape="cross"]::before {\n  content: "\\2715";\n  font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="plus"]::before {\n  content: "\\2715";\n  transform: rotate(45deg) translate(-1px, -1px);\n  font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="star"]::before {\n  content: "\\2605";\n  font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="sparkle"]::before {\n  content: "\\2726";\n  font-size: 20px;\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-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_shape {\n  stroke-width: 1;\n  stroke-dasharray: 10 10;\n  stroke: black;\n  stroke-opacity: 0.1;\n  pointer-events: none;\n  fill: none;\n}\n\n.svg_select_handle {\n  stroke-width: 3;\n  stroke: black;\n  fill: none;\n}\n\n.svg_select_handle_r {\n  cursor: e-resize;\n}\n\n.svg_select_handle_l {\n  cursor: w-resize;\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-gridline,\n.apexcharts-line,\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.no-pointer-events {\n  pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n  transition: .15s ease all\n}\n\n.apexcharts-radar-series .apexcharts-yaxis {\n  pointer-events: none;\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&&o.setAttribute("nonce",c),s?r.prepend(o):a.head.appendChild(o)}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,i=this.w;new sr(this).initModules();var r=this.w.globals;if(r.noData=!1,r.animationEnded=!1,!b.elementExists(this.el))return r.animationEnded=!0,this.destroy(),null;if(this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric&&new Fn(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===r.svgWidth)return r.animationEnded=!0,null;var s=e;e.forEach((function(e,t){e.hidden&&(s=n.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:t}))}));var a=An.checkComboSeries(s,i.config.chart.type);r.comboCharts=a.comboCharts,r.comboBarCount=a.comboBarCount;var o=s.every((function(e){return e.data&&0===e.data.length}));(0===s.length||o&&r.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(s),this.theme.init(),new Wn(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),r.noData&&r.collapsedSeries.length!==r.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),r.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new An(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var c=this.core.plotChartType(s,l),u=new Un(this);return u.bringForward(),i.config.dataLabels.background.enabled&&u.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:c,xyRatios:l,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this,i=n.w;return new Promise((function(r,s){if(null===n.el)return s(new Error("Not enough data to display or target element not found"));(null===t||i.globals.allSeriesCollapsed)&&n.series.handleNoData(),n.grid=new Kn(n);var a,o,l=n.grid.drawGrid();if(n.annotations=new Nn(n),n.annotations.drawImageAnnos(),n.annotations.drawTextAnnos(),"back"===i.config.grid.position&&(l&&i.globals.dom.elGraphical.add(l.el),null!=l&&null!==(a=l.elGridBorders)&&void 0!==a&&a.node&&i.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(t.elGraph))for(var c=0;c<t.elGraph.length;c++)i.globals.dom.elGraphical.add(t.elGraph[c]);else i.globals.dom.elGraphical.add(t.elGraph);"front"===i.config.grid.position&&(l&&i.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&i.globals.dom.elGraphical.add(l.elGridBorders)),"front"===i.config.xaxis.crosshairs.position&&n.crosshairs.drawXCrosshairs(),"front"===i.config.yaxis[0].crosshairs.position&&n.crosshairs.drawYCrosshairs(),"treemap"!==i.config.chart.type&&n.axes.drawAxis(i.config.chart.type,l);var u=new Zn(e.ctx,l),d=new ei(e.ctx,l);if(null!==l&&(u.xAxisLabelCorrections(l.xAxisTickWidth),d.setYAxisTextAlignments(),i.config.yaxis.map((function(e,t){-1===i.globals.ignoreYAxisIndexes.indexOf(t)&&d.yAxisTitleRotate(t,e.opposite)}))),n.annotations.drawAxesAnnotations(),!i.globals.noData){if(i.config.tooltip.enabled&&!i.globals.noData&&n.w.globals.tooltip.drawTooltip(t.xyRatios),i.globals.axisCharts&&(i.globals.isXNumeric||i.config.xaxis.convertedCatToNumeric||i.globals.isRangeBar))(i.config.chart.zoom.enabled||i.config.chart.selection&&i.config.chart.selection.enabled||i.config.chart.pan&&i.config.chart.pan.enabled)&&n.zoomPanSelection.init({xyRatios:t.xyRatios});else{var h=i.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(e){h[e]=!1}))}i.config.chart.toolbar.show&&!i.globals.allSeriesCollapsed&&n.toolbar.createToolbar()}i.globals.memory.methodsToExec.length>0&&i.globals.memory.methodsToExec.forEach((function(e){e.method(e.params,!1,e.context)})),i.globals.axisCharts||i.globals.noData||n.core.resizeNonAxisCharts(),r(n)}))}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),function(e,t){var n=or.get(t);n&&(n.disconnect(),or.delete(t))}(this.el.parentNode,this.parentResizeHandler);var e=this.w.config.chart.id;e&&Apex._chartInstances.forEach((function(t,n){t.id===b.escapeString(e)&&Apex._chartInstances.splice(n,1)})),new ar(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w;return a.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)),a.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,n,i,r,s)}},{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],i=this.w.config.series.slice();return i.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(i,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 i=n.w.config.series.slice(),r=0;r<i.length;r++)if(null!==e[r]&&void 0!==e[r])for(var s=0;s<e[r].data.length;s++)i[r].data.push(e[r].data[s]);return n.w.config.series=i,t&&(n.w.globals.initialSeries=b.clone(n.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise((function(n,i){new ar(t.ctx).clear({isUpdating:!0});var r=t.create(t.w.config.series,e);if(!r)return n(t);t.mount(r).then((function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,n(t)})).catch((function(e){i(e)}))}))}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach((function(e){t.push(e)}))),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter((function(e){if(e.group)return!0})).map((function(t){return e.w.config.chart.group===t.group?t.chart:e}))}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"highlightSeries",value:function(e){this.series.highlightSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&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,i=this;n&&(i=n),i.annotations.addXaxisAnnotationExternal(e,t,i)}},{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,i=this;n&&(i=n),i.annotations.addYaxisAnnotationExternal(e,t,i)}},{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,i=this;n&&(i=n),i.annotations.addPointAnnotationExternal(e,t,i)}},{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 Qn(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Qn(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 Gn(this.ctx).dataURI(e)}},{key:"getSvgString",value:function(e){return new Gn(this.ctx).getSvgString(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Gn(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=b.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;n<t.length;n++)new e(t[n],JSON.parse(t[n].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var n=this.getChartByID(e);if(n){n.w.globals.isExecCalled=!0;var i=null;if(-1!==n.publicMethods.indexOf(t)){for(var r=arguments.length,s=new Array(r>2?r-2:0),a=2;a<r;a++)s[a-2]=arguments[a];i=n[t].apply(n,s)}return i}}},{key:"merge",value:function(e,t){return b.extend(e,t)}}]),e}();return lr})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Chart=t()}(this,(function(){"use strict";var e=Object.freeze({__proto__:null,get Colors(){return Ps},get Decimation(){return Ns},get Filler(){return Qs},get Legend(){return ia},get SubTitle(){return oa},get Title(){return sa},get Tooltip(){return wa}});function t(){}const n=(()=>{let e=0;return()=>e++})();function i(e){return null==e}function r(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function s(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function o(e,t){return a(e)?e:t}function l(e,t){return void 0===e?t:e}const c=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,u=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function d(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function h(e,t,n,i){let a,o,l;if(r(e))if(o=e.length,i)for(a=o-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<o;a++)t.call(n,e[a],a);else if(s(e))for(l=Object.keys(e),o=l.length,a=0;a<o;a++)t.call(n,e[l[a]],l[a])}function f(e,t){let n,i,r,s;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],s=t[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function p(e){if(r(e))return e.map(p);if(s(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let r=0;for(;r<i;++r)t[n[r]]=p(e[n[r]]);return t}return e}function m(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function g(e,t,n,i){if(!m(e))return;const r=t[e],a=n[e];s(r)&&s(a)?v(r,a,i):t[e]=p(a)}function v(e,t,n){const i=r(t)?t:[t],a=i.length;if(!s(e))return e;const o=(n=n||{}).merger||g;let l;for(let t=0;t<a;++t){if(l=i[t],!s(l))continue;const r=Object.keys(l);for(let t=0,i=r.length;t<i;++t)o(r[t],e,l,n)}return e}function y(e,t){return v(e,t,{merger:b})}function b(e,t,n){if(!m(e))return;const i=t[e],r=n[e];s(i)&&s(r)?y(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=p(r))}const x={"":e=>e,x:e=>e.x,y:e=>e.y};function _(e){const t=e.split("."),n=[];let i="";for(const e of t)i+=e,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function w(e,t){const n=x[t]||(x[t]=function(e){const t=_(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function k(e){return e.charAt(0).toUpperCase()+e.slice(1)}const M=e=>void 0!==e,S=e=>"function"==typeof e,A=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function L(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}const T=Math.PI,C=2*T,D=C+T,E=Number.POSITIVE_INFINITY,O=T/180,P=T/2,Y=T/4,I=2*T/3,N=Math.log10,H=Math.sign;function j(e,t,n){return Math.abs(e-t)<n}function F(e){const t=Math.round(e);e=j(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(N(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function R(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i==0&&(t.push(i),t.push(e/i));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}function z(e){return!function(e){return"symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function B(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function V(e,t,n){let i,r,s;for(i=0,r=e.length;i<r;i++)s=e[i][n],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function W(e){return e*(T/180)}function q(e){return e*(180/T)}function U(e){if(!a(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function $(e,t){const n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*T&&(s+=C),{angle:s,distance:r}}function X(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function G(e,t){return(e-t+D)%C-T}function Z(e){return(e%C+C)%C}function K(e,t,n,i){const r=Z(e),s=Z(t),a=Z(n),o=Z(s-r),l=Z(a-r),c=Z(r-s),u=Z(r-a);return r===s||r===a||i&&s===a||o>l&&c<u}function J(e,t,n){return Math.max(t,Math.min(n,e))}function Q(e){return J(e,-32768,32767)}function ee(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function te(e,t,n){n=n||(n=>e[n]<t);let i,r=e.length-1,s=0;for(;r-s>1;)i=s+r>>1,n(i)?s=i:r=i;return{lo:s,hi:r}}const ne=(e,t,n,i)=>te(e,n,i?i=>{const r=e[i][t];return r<n||r===n&&e[i+1][t]===n}:i=>e[i][t]<n),ie=(e,t,n)=>te(e,n,(i=>e[i][t]>=n));function re(e,t,n){let i=0,r=e.length;for(;i<r&&e[i]<t;)i++;for(;r>i&&e[r-1]>n;)r--;return i>0||r<e.length?e.slice(i,r):e}const se=["push","pop","shift","splice","unshift"];function ae(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),se.forEach((t=>{const n="_onData"+k(t),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const r=i.apply(this,t);return e._chartjs.listeners.forEach((e=>{"function"==typeof e[n]&&e[n](...t)})),r}})})))}function oe(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(se.forEach((t=>{delete e[t]})),delete e._chartjs)}function le(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const ce="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function ue(e,t){let n=[],i=!1;return function(...r){n=r,i||(i=!0,ce.call(window,(()=>{i=!1,e.apply(t,n)})))}}function de(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const he=e=>"start"===e?"left":"end"===e?"right":"center",fe=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,pe=(e,t,n,i)=>e===(i?"left":"right")?n:"center"===e?(t+n)/2:t;function me(e,t,n){const r=t.length;let s=0,a=r;if(e._sorted){const{iScale:o,vScale:l,_parsed:c}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,d=o.axis,{min:h,max:f,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(s=Math.min(ne(c,d,h).lo,n?r:ne(t,d,o.getPixelForValue(h)).lo),u){const e=c.slice(0,s+1).reverse().findIndex((e=>!i(e[l.axis])));s-=Math.max(0,e)}s=J(s,0,r-1)}if(m){let e=Math.max(ne(c,o.axis,f,!0).hi+1,n?0:ne(t,d,o.getPixelForValue(f),!0).hi+1);if(u){const t=c.slice(e-1).findIndex((e=>!i(e[l.axis])));e+=Math.max(0,t)}a=J(e,s,r)-s}else a=r-s}return{start:s,count:a}}function ge(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=r,!0;const s=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),s}var ve=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,i){const r=t.listeners[i],s=t.duration;r.forEach((i=>i({chart:e,initial:t.initial,numSteps:s,currentStep:Math.min(n-t.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=ce.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let s,a=r.length-1,o=!1;for(;a>=0;--a)s=r[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(r[a]=r[r.length-1],r.pop());o&&(i.draw(),this._notify(i,n,e,"progress")),r.length||(n.running=!1,this._notify(i,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};
/*!
 * @kurkle/color v0.3.2
 * https://github.com/kurkle/color#readme
 * (c) 2023 Jukka Kurkela
 * Released under the MIT License
 */function ye(e){return e+.5|0}const be=(e,t,n)=>Math.max(Math.min(e,n),t);function xe(e){return be(ye(2.55*e),0,255)}function _e(e){return be(ye(255*e),0,255)}function we(e){return be(ye(e/2.55)/100,0,1)}function ke(e){return be(ye(100*e),0,100)}const Me={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Se=[..."0123456789ABCDEF"],Ae=e=>Se[15&e],Le=e=>Se[(240&e)>>4]+Se[15&e],Te=e=>(240&e)>>4==(15&e);const Ce=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function De(e,t,n){const i=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Ee(e,t,n){const i=(i,r=(i+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function Oe(e,t,n){const i=De(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function Pe(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=Math.min(t,n,i),a=(r+s)/2;let o,l,c;return r!==s&&(c=r-s,l=a>.5?c/(2-r-s):c/(r+s),o=function(e,t,n,i,r){return e===r?(t-n)/i+(t<n?6:0):t===r?(n-e)/i+2:(e-t)/i+4}(t,n,i,c,r),o=60*o+.5),[0|o,l||0,a]}function Ye(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(_e)}function Ie(e,t,n){return Ye(De,e,t,n)}function Ne(e){return(e%360+360)%360}const He={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},je={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Fe;const Re=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,ze=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Be=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ve(e,t,n){if(e){let i=Pe(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,0===t?360:1)),i=Ie(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function We(e,t){return e?Object.assign(t||{},e):e}function qe(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=_e(e[3]))):(t=We(e,{r:0,g:0,b:0,a:1})).a=_e(t.a),t}function Ue(e){return"r"===e.charAt(0)?function(e){const t=Re.exec(e);let n,i,r,s=255;if(t){if(t[7]!==n){const e=+t[7];s=t[8]?xe(e):be(255*e,0,255)}return n=+t[1],i=+t[3],r=+t[5],n=255&(t[2]?xe(n):be(n,0,255)),i=255&(t[4]?xe(i):be(i,0,255)),r=255&(t[6]?xe(r):be(r,0,255)),{r:n,g:i,b:r,a:s}}}(e):function(e){const t=Ce.exec(e);let n,i=255;if(!t)return;t[5]!==n&&(i=t[6]?xe(+t[5]):_e(+t[5]));const r=Ne(+t[2]),s=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return Ye(Oe,e,t,n)}(r,s,a):"hsv"===t[1]?function(e,t,n){return Ye(Ee,e,t,n)}(r,s,a):Ie(r,s,a),{r:n[0],g:n[1],b:n[2],a:i}}(e)}class $e{constructor(e){if(e instanceof $e)return e;const t=typeof e;let n;var i,r,s;"object"===t?n=qe(e):"string"===t&&(s=(i=e).length,"#"===i[0]&&(4===s||5===s?r={r:255&17*Me[i[1]],g:255&17*Me[i[2]],b:255&17*Me[i[3]],a:5===s?17*Me[i[4]]:255}:7!==s&&9!==s||(r={r:Me[i[1]]<<4|Me[i[2]],g:Me[i[3]]<<4|Me[i[4]],b:Me[i[5]]<<4|Me[i[6]],a:9===s?Me[i[7]]<<4|Me[i[8]]:255})),n=r||function(e){Fe||(Fe=function(){const e={},t=Object.keys(je),n=Object.keys(He);let i,r,s,a,o;for(i=0;i<t.length;i++){for(a=o=t[i],r=0;r<n.length;r++)s=n[r],o=o.replace(s,He[s]);s=parseInt(je[a],16),e[o]=[s>>16&255,s>>8&255,255&s]}return e}(),Fe.transparent=[0,0,0,0]);const t=Fe[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||Ue(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=We(this._rgb);return e&&(e.a=we(e.a)),e}set rgb(e){this._rgb=qe(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${we(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?function(e){var t=(e=>Te(e.r)&&Te(e.g)&&Te(e.b)&&Te(e.a))(e)?Ae:Le;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=Pe(e),n=t[0],i=ke(t[1]),r=ke(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${r}%, ${we(e.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,i=e.rgb;let r;const s=t===r?.5:t,a=2*s-1,o=n.a-i.a,l=((a*o==-1?a:(a+o)/(1+a*o))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=s*n.a+(1-s)*i.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const i=Be(we(e.r)),r=Be(we(e.g)),s=Be(we(e.b));return{r:_e(ze(i+n*(Be(we(t.r))-i))),g:_e(ze(r+n*(Be(we(t.g))-r))),b:_e(ze(s+n*(Be(we(t.b))-s))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new $e(this.rgb)}alpha(e){return this._rgb.a=_e(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=ye(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Ve(this._rgb,2,e),this}darken(e){return Ve(this._rgb,2,-e),this}saturate(e){return Ve(this._rgb,1,e),this}desaturate(e){return Ve(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=Pe(e);n[0]=Ne(n[0]+t),n=Ie(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function Xe(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Ge(e){return Xe(e)?e:new $e(e)}function Ze(e){return Xe(e)?e:new $e(e).saturate(.5).darken(.1).hexString()}const Ke=["x","y","borderWidth","radius","tension"],Je=["color","borderColor","backgroundColor"],Qe=new Map;function et(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Qe.get(n);return i||(i=new Intl.NumberFormat(e,t),Qe.set(n,i)),i}(t,n).format(e)}const tt={values:e=>r(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const i=this.chart.options.locale;let r,s=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),s=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}(e,n)}const a=N(Math.abs(s)),o=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),et(e,i,l)},logarithmic(e,t,n){if(0===e)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(N(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?tt.numeric.call(this,e,t,n):""}};var nt={formatters:tt};const it=Object.create(null),rt=Object.create(null);function st(e,t){if(!t)return e;const n=t.split(".");for(let t=0,i=n.length;t<i;++t){const i=n[t];e=e[i]||(e[i]=Object.create(null))}return e}function at(e,t,n){return"string"==typeof t?v(st(e,t),n):v(st(e,""),t)}var ot=new class{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Ze(t.backgroundColor),this.hoverBorderColor=(e,t)=>Ze(t.borderColor),this.hoverColor=(e,t)=>Ze(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return at(this,e,t)}get(e){return st(this,e)}describe(e,t){return at(rt,e,t)}override(e,t){return at(it,e,t)}route(e,t,n,i){const r=st(this,e),a=st(this,n),o="_"+t;Object.defineProperties(r,{[o]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[o],t=a[i];return s(e)?Object.assign({},t,e):l(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach((e=>e(this)))}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:Je},numbers:{type:"number",properties:Ke}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:nt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function lt(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ct(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function ut(e,t,n){let i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}const dt=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function ht(e,t){return dt(e).getPropertyValue(t)}const ft=["top","right","bottom","left"];function pt(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=ft[r];i[s]=parseFloat(e[t+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function mt(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=dt(n),s="border-box"===r.boxSizing,a=pt(r,"padding"),o=pt(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:s}=i;let a,o,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(r,s,e.target))a=r,o=s;else{const e=t.getBoundingClientRect();a=i.clientX-e.left,o=i.clientY-e.top,l=!0}return{x:a,y:o,box:l}}(e,n),d=a.left+(u&&o.left),h=a.top+(u&&o.top);let{width:f,height:p}=t;return s&&(f-=a.width+o.width,p-=a.height+o.height),{x:Math.round((l-d)/f*n.width/i),y:Math.round((c-h)/p*n.height/i)}}const gt=e=>Math.round(10*e)/10;function vt(e,t,n,i){const r=dt(e),s=pt(r,"margin"),a=ut(r.maxWidth,e,"clientWidth")||E,o=ut(r.maxHeight,e,"clientHeight")||E,l=function(e,t,n){let i,r;if(void 0===t||void 0===n){const s=e&&ct(e);if(s){const e=s.getBoundingClientRect(),a=dt(s),o=pt(a,"border","width"),l=pt(a,"padding");t=e.width-l.width-o.width,n=e.height-l.height-o.height,i=ut(a.maxWidth,s,"clientWidth"),r=ut(a.maxHeight,s,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:i||E,maxHeight:r||E}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=pt(r,"border","width"),t=pt(r,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=gt(Math.min(c,a,l.maxWidth)),u=gt(Math.min(u,o,l.maxHeight)),c&&!u&&(u=gt(c/2)),(void 0!==t||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=gt(Math.floor(u*i))),{width:c,height:u}}function yt(e,t,n){const i=t||1,r=Math.floor(e.height*i),s=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==i||a.height!==r||a.width!==s)&&(e.currentDevicePixelRatio=i,a.height=r,a.width=s,e.ctx.setTransform(i,0,0,i,0,0),!0)}const bt=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};lt()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function xt(e,t){const n=ht(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function _t(e){return!e||i(e.size)||i(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function wt(e,t,n,i,r){let s=t[r];return s||(s=t[r]=e.measureText(r).width,n.push(r)),s>i&&(i=s),i}function kt(e,t,n,i){let s=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(s=i.data={},a=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let o=0;const l=n.length;let c,u,d,h,f;for(c=0;c<l;c++)if(h=n[c],null==h||r(h)){if(r(h))for(u=0,d=h.length;u<d;u++)f=h[u],null==f||r(f)||(o=wt(e,s,a,o,f))}else o=wt(e,s,a,o,h);e.restore();const p=a.length/2;if(p>n.length){for(c=0;c<p;c++)delete s[a[c]];a.splice(0,p)}return o}function Mt(e,t,n){const i=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*i)/i+r}function St(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function At(e,t,n,i){Lt(e,t,n,i,null)}function Lt(e,t,n,i,r){let s,a,o,l,c,u,d,h;const f=t.pointStyle,p=t.rotation,m=t.radius;let g=(p||0)*O;if(f&&"object"==typeof f&&(s=f.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return e.save(),e.translate(n,i),e.rotate(g),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:r?e.ellipse(n,i,r/2,m,0,0,C):e.arc(n,i,m,0,C),e.closePath();break;case"triangle":u=r?r/2:m,e.moveTo(n+Math.sin(g)*u,i-Math.cos(g)*m),g+=I,e.lineTo(n+Math.sin(g)*u,i-Math.cos(g)*m),g+=I,e.lineTo(n+Math.sin(g)*u,i-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+Y)*l,d=Math.cos(g+Y)*(r?r/2-c:l),o=Math.sin(g+Y)*l,h=Math.sin(g+Y)*(r?r/2-c:l),e.arc(n-d,i-o,c,g-T,g-P),e.arc(n+h,i-a,c,g-P,g),e.arc(n+d,i+o,c,g,g+P),e.arc(n-h,i+a,c,g+P,g+T),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,u=r?r/2:l,e.rect(n-u,i-l,2*u,2*l);break}g+=Y;case"rectRot":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,i-o),e.lineTo(n+h,i-a),e.lineTo(n+d,i+o),e.lineTo(n-h,i+a),e.closePath();break;case"crossRot":g+=Y;case"cross":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,i-o),e.lineTo(n+d,i+o),e.moveTo(n+h,i-a),e.lineTo(n-h,i+a);break;case"star":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,i-o),e.lineTo(n+d,i+o),e.moveTo(n+h,i-a),e.lineTo(n-h,i+a),g+=Y,d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,i-o),e.lineTo(n+d,i+o),e.moveTo(n+h,i-a),e.lineTo(n-h,i+a);break;case"line":a=r?r/2:Math.cos(g)*m,o=Math.sin(g)*m,e.moveTo(n-a,i-o),e.lineTo(n+a,i+o);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(g)*(r?r/2:m),i+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function Tt(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ct(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Dt(e){e.restore()}function Et(e,t,n,i,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else"after"===r!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Ot(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Pt(e,t,n,i,r){if(r.strikethrough||r.underline){const s=e.measureText(i),a=t-s.actualBoundingBoxLeft,o=t+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(a,u),e.lineTo(o,u),e.stroke()}}function Yt(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function It(e,t,n,s,a,o={}){const l=r(t)?t:[t],c=o.strokeWidth>0&&""!==o.strokeColor;let u,d;for(e.save(),e.font=a.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),i(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,o),u=0;u<l.length;++u)d=l[u],o.backdrop&&Yt(e,o.backdrop),c&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),i(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(d,n,s,o.maxWidth)),e.fillText(d,n,s,o.maxWidth),Pt(e,n,s,d,o),s+=Number(a.lineHeight);e.restore()}function Nt(e,t){const{x:n,y:i,w:r,h:s,radius:a}=t;e.arc(n+a.topLeft,i+a.topLeft,a.topLeft,1.5*T,T,!0),e.lineTo(n,i+s-a.bottomLeft),e.arc(n+a.bottomLeft,i+s-a.bottomLeft,a.bottomLeft,T,P,!0),e.lineTo(n+r-a.bottomRight,i+s),e.arc(n+r-a.bottomRight,i+s-a.bottomRight,a.bottomRight,P,0,!0),e.lineTo(n+r,i+a.topRight),e.arc(n+r-a.topRight,i+a.topRight,a.topRight,0,-P,!0),e.lineTo(n+a.topLeft,i)}function Ht(e,t=[""],n,i,r=()=>e[0]){const s=n||e;void 0===i&&(i=Xt("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:i,_getTarget:r,override:n=>Ht([n,...e],t,s,i)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,i)=>Bt(n,i,(()=>function(e,t,n,i){let r;for(const s of t)if(r=Xt(Rt(s,e),n),void 0!==r)return zt(e,r)?Ut(n,i,e,r):r}(i,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Gt(e).includes(t),ownKeys:e=>Gt(e),set(e,t,n){const i=e._storage||(e._storage=r());return e[t]=i[t]=n,delete e._keys,!0}})}function jt(e,t,n,i){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Ft(e,i),setContext:t=>jt(e,t,n,i),override:r=>jt(e.override(r),t,n,i)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Bt(e,t,(()=>function(e,t,n){const{_proxy:i,_context:a,_subProxy:o,_descriptors:l}=e;let c=i[t];return S(c)&&l.isScriptable(t)&&(c=function(e,t,n,i){const{_proxy:r,_context:s,_subProxy:a,_stack:o}=n;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e);let l=t(s,a||i);return o.delete(e),zt(e,l)&&(l=Ut(r._scopes,r,e,l)),l}(t,c,e,n)),r(c)&&c.length&&(c=function(e,t,n,i){const{_proxy:r,_context:a,_subProxy:o,_descriptors:l}=n;if(void 0!==a.index&&i(e))return t[a.index%t.length];if(s(t[0])){const n=t,i=r._scopes.filter((e=>e!==n));t=[];for(const s of n){const n=Ut(i,r,e,s);t.push(jt(n,a,o&&o[e],l))}}return t}(t,c,e,l.isIndexable)),zt(t,c)&&(c=jt(c,a,o&&o[t],l)),c}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,i)=>(e[n]=i,delete t[n],!0)})}function Ft(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:S(n)?n:()=>n,isIndexable:S(i)?i:()=>i}}const Rt=(e,t)=>e?e+k(t):t,zt=(e,t)=>s(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Bt(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const i=n();return e[t]=i,i}function Vt(e,t,n){return S(e)?e(t,n):e}const Wt=(e,t)=>!0===e?t:"string"==typeof e?w(t,e):void 0;function qt(e,t,n,i,r){for(const s of t){const t=Wt(n,s);if(t){e.add(t);const s=Vt(t._fallback,n,r);if(void 0!==s&&s!==n&&s!==i)return s}else if(!1===t&&void 0!==i&&n!==i)return null}return!1}function Ut(e,t,n,i){const a=t._rootScopes,o=Vt(t._fallback,n,i),l=[...e,...a],c=new Set;c.add(i);let u=$t(c,l,n,o||n,i);return null!==u&&(void 0===o||o===n||(u=$t(c,l,o,u,i),null!==u))&&Ht(Array.from(c),[""],a,o,(()=>function(e,t,n){const i=e._getTarget();t in i||(i[t]={});const a=i[t];return r(a)&&s(n)?n:a||{}}(t,n,i)))}function $t(e,t,n,i,r){for(;n;)n=qt(e,t,n,i,r);return n}function Xt(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function Gt(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function Zt(e,t,n,i){const{iScale:r}=e,{key:s="r"}=this._parsing,a=new Array(i);let o,l,c,u;for(o=0,l=i;o<l;++o)c=o+n,u=t[c],a[o]={r:r.parse(w(u,s),c)};return a}const Kt=Number.EPSILON||1e-14,Jt=(e,t)=>t<e.length&&!e[t].skip&&e[t],Qt=e=>"x"===e?"y":"x";function en(e,t,n,i){const r=e.skip?t:e,s=t,a=n.skip?t:n,o=X(s,r),l=X(a,s);let c=o/(o+l),u=l/(o+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:s.x-d*(a.x-r.x),y:s.y-d*(a.y-r.y)},next:{x:s.x+h*(a.x-r.x),y:s.y+h*(a.y-r.y)}}}function tn(e,t="x"){const n=Qt(t),i=e.length,r=Array(i).fill(0),s=Array(i);let a,o,l,c=Jt(e,0);for(a=0;a<i;++a)if(o=l,l=c,c=Jt(e,a+1),l){if(c){const e=c[t]-l[t];r[a]=0!==e?(c[n]-l[n])/e:0}s[a]=o?c?H(r[a-1])!==H(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(e,t,n){const i=e.length;let r,s,a,o,l,c=Jt(e,0);for(let u=0;u<i-1;++u)l=c,c=Jt(e,u+1),l&&c&&(j(t[u],0,Kt)?n[u]=n[u+1]=0:(r=n[u]/t[u],s=n[u+1]/t[u],o=Math.pow(r,2)+Math.pow(s,2),o<=9||(a=3/Math.sqrt(o),n[u]=r*a*t[u],n[u+1]=s*a*t[u])))}(e,r,s),function(e,t,n="x"){const i=Qt(n),r=e.length;let s,a,o,l=Jt(e,0);for(let c=0;c<r;++c){if(a=o,o=l,l=Jt(e,c+1),!o)continue;const r=o[n],u=o[i];a&&(s=(r-a[n])/3,o[`cp1${n}`]=r-s,o[`cp1${i}`]=u-s*t[c]),l&&(s=(l[n]-r)/3,o[`cp2${n}`]=r+s,o[`cp2${i}`]=u+s*t[c])}}(e,s,t)}function nn(e,t,n){return Math.max(Math.min(e,n),t)}function rn(e,t,n,i,r){let s,a,o,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)tn(e,r);else{let n=i?e[e.length-1]:e[0];for(s=0,a=e.length;s<a;++s)o=e[s],l=en(n,o,e[Math.min(s+1,a-(i?0:1))%a],t.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,n=o}t.capBezierPoints&&function(e,t){let n,i,r,s,a,o=Tt(e[0],t);for(n=0,i=e.length;n<i;++n)a=s,s=o,o=n<i-1&&Tt(e[n+1],t),s&&(r=e[n],a&&(r.cp1x=nn(r.cp1x,t.left,t.right),r.cp1y=nn(r.cp1y,t.top,t.bottom)),o&&(r.cp2x=nn(r.cp2x,t.left,t.right),r.cp2y=nn(r.cp2y,t.top,t.bottom)))}(e,n)}const sn=e=>0===e||1===e,an=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*C/n),on=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*C/n)+1,ln={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*P),easeOutSine:e=>Math.sin(e*P),easeInOutSine:e=>-.5*(Math.cos(T*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>sn(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>sn(e)?e:an(e,.075,.3),easeOutElastic:e=>sn(e)?e:on(e,.075,.3),easeInOutElastic(e){const t=.1125;return sn(e)?e:e<.5?.5*an(2*e,t,.45):.5+.5*on(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-ln.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*ln.easeInBounce(2*e):.5*ln.easeOutBounce(2*e-1)+.5};function cn(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function un(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:"middle"===i?n<.5?e.y:t.y:"after"===i?n<1?e.y:t.y:n>0?t.y:e.y}}function dn(e,t,n,i){const r={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},a=cn(e,r,n),o=cn(r,s,n),l=cn(s,t,n),c=cn(a,o,n),u=cn(o,l,n);return cn(c,u,n)}const hn=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,fn=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function pn(e,t){const n=(""+e).match(hn);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const mn=e=>+e||0;function gn(e,t){const n={},i=s(t),r=i?Object.keys(t):t,a=s(e)?i?n=>l(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=mn(a(e));return n}function vn(e){return gn(e,{top:"y",right:"x",bottom:"y",left:"x"})}function yn(e){return gn(e,["topLeft","topRight","bottomLeft","bottomRight"])}function bn(e){const t=vn(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function xn(e,t){e=e||{},t=t||ot.font;let n=l(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let i=l(e.style,t.style);i&&!(""+i).match(fn)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:l(e.family,t.family),lineHeight:pn(l(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:l(e.weight,t.weight),string:""};return r.string=_t(r),r}function _n(e,t,n,i){let s,a,o,l=!0;for(s=0,a=e.length;s<a;++s)if(o=e[s],void 0!==o&&(void 0!==t&&"function"==typeof o&&(o=o(t),l=!1),void 0!==n&&r(o)&&(o=o[n%o.length],l=!1),void 0!==o))return i&&!l&&(i.cacheable=!1),o}function wn(e,t,n){const{min:i,max:r}=e,s=u(t,(r-i)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(i,-Math.abs(s)),max:a(r,s)}}function kn(e,t){return Object.assign(Object.create(e),t)}function Mn(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function Sn(e,t){let n,i;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function An(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Ln(e){return"angle"===e?{between:K,compare:G,normalize:Z}:{between:ee,compare:(e,t)=>e-t,normalize:e=>e}}function Tn({start:e,end:t,count:n,loop:i,style:r}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n==0,style:r}}function Cn(e,t,n){if(!n)return[e];const{property:i,start:r,end:s}=n,a=t.length,{compare:o,between:l,normalize:c}=Ln(i),{start:u,end:d,loop:h,style:f}=function(e,t,n){const{property:i,start:r,end:s}=n,{between:a,normalize:o}=Ln(i),l=t.length;let c,u,{start:d,end:h,loop:f}=e;if(f){for(d+=l,h+=l,c=0,u=l;c<u&&a(o(t[d%l][i]),r,s);++c)d--,h--;d%=l,h%=l}return h<d&&(h+=l),{start:d,end:h,loop:f,style:e.style}}(e,t,n),p=[];let m,g,v,y=!1,b=null;for(let e=u,n=u;e<=d;++e)g=t[e%a],g.skip||(m=c(g[i]),m!==v&&(y=l(m,r,s),null===b&&(y||l(r,v,m)&&0!==o(r,v))&&(b=0===o(m,r)?e:n),null!==b&&(!y||0===o(s,m)||l(s,v,m))&&(p.push(Tn({start:b,end:e,loop:h,count:a,style:f})),b=null),n=e,v=m));return null!==b&&p.push(Tn({start:b,end:d,loop:h,count:a,style:f})),p}function Dn(e,t){const n=[],i=e.segments;for(let r=0;r<i.length;r++){const s=Cn(i[r],e.points,t);s.length&&n.push(...s)}return n}function En(e,t){const n=e.points,i=e.options.spanGaps,r=n.length;if(!r)return[];const s=!!e._loop,{start:a,end:o}=function(e,t,n,i){let r=0,s=t-1;if(n&&!i)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(s+=r);s>r&&e[s%t].skip;)s--;return s%=t,{start:r,end:s}}(n,r,s,i);return On(e,!0===i?[{start:a,end:o,loop:s}]:function(e,t,n,i){const r=e.length,s=[];let a,o=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?l.skip||(i=!1,s.push({start:t%r,end:(a-1)%r,loop:i}),t=o=n.stop?a:null):(o=a,l.skip&&(t=a)),l=n}return null!==o&&s.push({start:t%r,end:o%r,loop:i}),s}(n,a,o<a?o+r:o,!!e._fullLoop&&0===a&&o===r-1),n,t)}function On(e,t,n,i){return i&&i.setContext&&n?function(e,t,n,i){const r=e._chart.getContext(),s=Pn(e.options),{_datasetIndex:a,options:{spanGaps:o}}=e,l=n.length,c=[];let u=s,d=t[0].start,h=d;function f(e,t,i,r){const s=o?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=s;for(;n[t%l].skip;)t+=s;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:i,style:r}),u=r,d=t%l)}}for(const e of t){d=o?d:e.start;let t,s=n[d%l];for(h=d+1;h<=e.end;h++){const o=n[h%l];t=Pn(i.setContext(kn(r,{type:"segment",p0:s,p1:o,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),Yn(t,u)&&f(d,h-1,e.loop,u),s=o,u=t}d<h-1&&f(d,h-1,e.loop,u)}return c}(e,t,n,i):t}function Pn(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Yn(e,t){if(!t)return!1;const n=[],i=function(e,t){return Xe(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,i)!==JSON.stringify(t,i)}function In(e,t,n){return e.options.clip?e[n]:t[n]}function Nn(e,t){const n=t._clip;if(n.disabled)return!1;const i=function(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:In(n,t,"left"),right:In(n,t,"right"),top:In(i,t,"top"),bottom:In(i,t,"bottom")}:t}(t,e.chartArea);return{left:!1===n.left?0:i.left-(!0===n.left?0:n.left),right:!1===n.right?e.width:i.right+(!0===n.right?0:n.right),top:!1===n.top?0:i.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?e.height:i.bottom+(!0===n.bottom?0:n.bottom)}}var Hn=Object.freeze({__proto__:null,HALF_PI:P,INFINITY:E,PI:T,PITAU:D,QUARTER_PI:Y,RAD_PER_DEG:O,TAU:C,TWO_THIRDS_PI:I,_addGrace:wn,_alignPixel:Mt,_alignStartEnd:fe,_angleBetween:K,_angleDiff:G,_arrayUnique:le,_attachContext:jt,_bezierCurveTo:Ot,_bezierInterpolation:dn,_boundSegment:Cn,_boundSegments:Dn,_capitalize:k,_computeSegments:En,_createResolver:Ht,_decimalPlaces:U,_deprecated:function(e,t,n,i){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')},_descriptors:Ft,_elementsEqual:f,_factorize:R,_filterBetween:re,_getParentNode:ct,_getStartAndCountOfVisiblePoints:me,_int16Range:Q,_isBetween:ee,_isClickEvent:L,_isDomSupported:lt,_isPointInArea:Tt,_limitValue:J,_longestText:kt,_lookup:te,_lookupByKey:ne,_measureText:wt,_merger:g,_mergerIf:b,_normalizeAngle:Z,_parseObjectDataRadialScale:Zt,_pointInLine:cn,_readValueToProps:gn,_rlookupByKey:ie,_scaleRangesChanged:ge,_setMinAndMaxByKey:V,_splitKey:_,_steppedInterpolation:un,_steppedLineTo:Et,_textX:pe,_toLeftRightCenter:he,_updateBezierControlPoints:rn,addRoundedRectPath:Nt,almostEquals:j,almostWhole:B,callback:d,clearCanvas:St,clipArea:Ct,clone:p,color:Ge,createContext:kn,debounce:de,defined:M,distanceBetweenPoints:X,drawPoint:At,drawPointLegend:Lt,each:h,easingEffects:ln,finiteOrDefault:o,fontString:function(e,t,n){return t+" "+e+"px "+n},formatNumber:et,getAngleFromPoint:$,getDatasetClipArea:Nn,getHoverColor:Ze,getMaximumSize:vt,getRelativePosition:mt,getRtlAdapter:Mn,getStyle:ht,isArray:r,isFinite:a,isFunction:S,isNullOrUndef:i,isNumber:z,isObject:s,isPatternOrGradient:Xe,listenArrayEvents:ae,log10:N,merge:v,mergeIf:y,niceNum:F,noop:t,overrideTextDirection:Sn,readUsedSize:xt,renderText:It,requestAnimFrame:ce,resolve:_n,resolveObjectKey:w,restoreTextDirection:An,retinaScale:yt,setsEqual:A,sign:H,splineCurve:en,splineCurveMonotone:tn,supportsEventListenerOptions:bt,throttled:ue,toDegrees:q,toDimension:u,toFont:xn,toFontString:_t,toLineHeight:pn,toPadding:bn,toPercentage:c,toRadians:W,toTRBL:vn,toTRBLCorners:yn,uid:n,unclipArea:Dt,unlistenArrayEvents:oe,valueOrDefault:l});function jn(e,t,n,r){const{controller:s,data:a,_sorted:o}=e,l=s._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(l&&t===l.axis&&"r"!==t&&o&&a.length){const o=l._reversePixels?ie:ne;if(!r){const r=o(a,t,n);if(c){const{vScale:t}=s._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex((e=>!i(e[t.axis])));r.lo-=Math.max(0,a);const o=n.slice(r.hi).findIndex((e=>!i(e[t.axis])));r.hi+=Math.max(0,o)}return r}if(s._sharedOptions){const e=a[0],i="function"==typeof e.getRange&&e.getRange(t);if(i){const e=o(a,t,n-i),r=o(a,t,n+i);return{lo:e.lo,hi:r.hi}}}}return{lo:0,hi:a.length-1}}function Fn(e,t,n,i,r){const s=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=s.length;e<n;++e){const{index:n,data:o}=s[e],{lo:l,hi:c}=jn(s[e],t,a,r);for(let e=l;e<=c;++e){const t=o[e];t.skip||i(t,n,e)}}}function Rn(e,t,n,i,r){const s=[];return r||e.isPointInArea(t)?(Fn(e,n,t,(function(n,a,o){(r||Tt(n,e.chartArea,0))&&n.inRange(t.x,t.y,i)&&s.push({element:n,datasetIndex:a,index:o})}),!0),s):s}function zn(e,t,n,i,r,s){return s||e.isPointInArea(t)?"r"!==n||i?function(e,t,n,i,r,s){let a=[];const o=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){const r=t?Math.abs(e.x-i.x):0,s=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}(n);let l=Number.POSITIVE_INFINITY;return Fn(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!s&&!e.isPointInArea(h)&&!d)return;const f=o(t,h);f<l?(a=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&a.push({element:n,datasetIndex:c,index:u})})),a}(e,t,n,i,r,s):function(e,t,n,i){let r=[];return Fn(e,n,t,(function(e,n,s){const{startAngle:a,endAngle:o}=e.getProps(["startAngle","endAngle"],i),{angle:l}=$(e,{x:t.x,y:t.y});K(l,a,o)&&r.push({element:e,datasetIndex:n,index:s})})),r}(e,t,n,r):[]}function Bn(e,t,n,i,r){const s=[],a="x"===n?"inXRange":"inYRange";let o=!1;return Fn(e,n,t,((e,i,l)=>{e[a]&&e[a](t[n],r)&&(s.push({element:e,datasetIndex:i,index:l}),o=o||e.inRange(t.x,t.y,r))})),i&&!o?[]:s}var Vn={evaluateInteractionItems:Fn,modes:{index(e,t,n,i){const r=mt(t,e),s=n.axis||"x",a=n.includeInvisible||!1,o=n.intersect?Rn(e,r,s,i,a):zn(e,r,s,!1,i,a),l=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=o[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,i){const r=mt(t,e),s=n.axis||"xy",a=n.includeInvisible||!1;let o=n.intersect?Rn(e,r,s,i,a):zn(e,r,s,!1,i,a);if(o.length>0){const t=o[0].datasetIndex,n=e.getDatasetMeta(t).data;o=[];for(let e=0;e<n.length;++e)o.push({element:n[e],datasetIndex:t,index:e})}return o},point:(e,t,n,i)=>Rn(e,mt(t,e),n.axis||"xy",i,n.includeInvisible||!1),nearest(e,t,n,i){const r=mt(t,e),s=n.axis||"xy",a=n.includeInvisible||!1;return zn(e,r,s,n.intersect,i,a)},x:(e,t,n,i)=>Bn(e,mt(t,e),"x",n.intersect,i),y:(e,t,n,i)=>Bn(e,mt(t,e),"y",n.intersect,i)}};const Wn=["left","top","right","bottom"];function qn(e,t){return e.filter((e=>e.pos===t))}function Un(e,t){return e.filter((e=>-1===Wn.indexOf(e.pos)&&e.box.axis===t))}function $n(e,t){return e.sort(((e,n)=>{const i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function Xn(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function Gn(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Zn(e,t,n,i){const{pos:r,box:a}=n,o=e.maxPadding;if(!s(r)){n.size&&(e[r]-=n.size);const t=i[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[r]+=n.size}a.getPadding&&Gn(o,a.getPadding());const l=Math.max(0,t.outerWidth-Xn(o,e,"left","right")),c=Math.max(0,t.outerHeight-Xn(o,e,"top","bottom")),u=l!==e.w,d=c!==e.h;return e.w=l,e.h=c,n.horizontal?{same:u,other:d}:{same:d,other:u}}function Kn(e,t){const n=t.maxPadding;return function(e){const i={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{i[e]=Math.max(t[e],n[e])})),i}(e?["left","right"]:["top","bottom"])}function Jn(e,t,n,i){const r=[];let s,a,o,l,c,u;for(s=0,a=e.length,c=0;s<a;++s){o=e[s],l=o.box,l.update(o.width||t.w,o.height||t.h,Kn(o.horizontal,t));const{same:a,other:d}=Zn(t,n,o,i);c|=a&&r.length,u=u||d,l.fullSize||r.push(o)}return c&&Jn(r,t,n,i)||u}function Qn(e,t,n,i,r){e.top=n,e.left=t,e.right=t+i,e.bottom=n+r,e.width=i,e.height=r}function ei(e,t,n,i){const r=n.padding;let{x:s,y:a}=t;for(const o of e){const e=o.box,l=i[o.stack]||{count:1,placed:0,weight:1},c=o.stackWeight/l.weight||1;if(o.horizontal){const i=t.w*c,s=l.size||e.height;M(l.start)&&(a=l.start),e.fullSize?Qn(e,r.left,a,n.outerWidth-r.right-r.left,s):Qn(e,t.left+l.placed,a,i,s),l.start=a,l.placed+=i,a=e.bottom}else{const i=t.h*c,a=l.size||e.width;M(l.start)&&(s=l.start),e.fullSize?Qn(e,s,r.top,a,n.outerHeight-r.bottom-r.top):Qn(e,s,t.top+l.placed,a,i),l.start=s,l.placed+=i,s=e.right}}t.x=s,t.y=a}var ti={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const r=bn(e.options.layout.padding),s=Math.max(t-r.width,0),a=Math.max(n-r.height,0),o=function(e){const t=function(e){const t=[];let n,i,r,s,a,o;for(n=0,i=(e||[]).length;n<i;++n)r=e[n],({position:s,options:{stack:a,stackWeight:o=1}}=r),t.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&s+a,stackWeight:o});return t}(e),n=$n(t.filter((e=>e.box.fullSize)),!0),i=$n(qn(t,"left"),!0),r=$n(qn(t,"right")),s=$n(qn(t,"top"),!0),a=$n(qn(t,"bottom")),o=Un(t,"x"),l=Un(t,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(a).concat(o),chartArea:qn(t,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(a).concat(o)}}(e.boxes),l=o.vertical,c=o.horizontal;h(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},r);Gn(f,bn(i));const p=Object.assign({maxPadding:f,w:s,h:a,x:r.left,y:r.top},r),m=function(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:i,stackWeight:r}=n;if(!e||!Wn.includes(i))continue;const s=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=r}return t}(e),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let s,a,o;for(s=0,a=e.length;s<a;++s){o=e[s];const{fullSize:a}=o.box,l=n[o.stack],c=l&&o.stackWeight/l.weight;o.horizontal?(o.width=c?c*i:a&&t.availableWidth,o.height=r):(o.width=i,o.height=c?c*r:a&&t.availableHeight)}return n}(l.concat(c),d);Jn(o.fullSize,p,d,m),Jn(l,p,d,m),Jn(c,p,d,m)&&Jn(l,p,d,m),function(e){const t=e.maxPadding;function n(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(p),ei(o.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,ei(o.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},h(o.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class ni{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,i){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):n)}}isAttached(e){return!0}updateConfig(e){}}class ii extends ni{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ri="$chartjs",si={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ai=e=>null===e||""===e,oi=!!bt&&{passive:!0};function li(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,oi)}function ci(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function ui(e,t,n){const i=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||ci(n.addedNodes,i),t=t&&!ci(n.removedNodes,i);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function di(e,t,n){const i=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||ci(n.removedNodes,i),t=t&&!ci(n.addedNodes,i);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const hi=new Map;let fi=0;function pi(){const e=window.devicePixelRatio;e!==fi&&(fi=e,hi.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function mi(e,t,n){const i=e.canvas,r=i&&ct(i);if(!r)return;const s=ue(((e,t)=>{const i=r.clientWidth;n(e,t),i<r.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,i=t.contentRect.height;0===n&&0===i||s(n,i)}));return a.observe(r),function(e,t){hi.size||window.addEventListener("resize",pi),hi.set(e,t)}(e,s),a}function gi(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){hi.delete(e),hi.size||window.removeEventListener("resize",pi)}(e)}function vi(e,t,n){const i=e.canvas,r=ue((t=>{null!==e.ctx&&n(function(e,t){const n=si[e.type]||e.type,{x:i,y:r}=mt(e,t);return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,oi)}(i,t,r),r}class yi extends ni{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[ri]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ai(r)){const t=xt(e,"width");void 0!==t&&(e.width=t)}if(ai(i))if(""===e.style.height)e.height=e.width/(t||2);else{const t=xt(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[ri])return!1;const n=t[ri].initial;["height","width"].forEach((e=>{const r=n[e];i(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t[ri],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const i=e.$proxies||(e.$proxies={}),r={attach:ui,detach:di,resize:mi}[t]||vi;i[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),i=n[t];i&&(({attach:gi,detach:gi,resize:gi}[t]||li)(e,t,i),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,i){return vt(e,t,n,i)}isAttached(e){const t=e&&ct(e);return!(!t||!t.isConnected)}}function bi(e){return!lt()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?ii:yi}var xi=Object.freeze({__proto__:null,BasePlatform:ni,BasicPlatform:ii,DomPlatform:yi,_detectPlatform:bi});const _i="transparent",wi={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const i=Ge(e||_i),r=i.valid&&Ge(t||_i);return r&&r.valid?r.mix(i,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class ki{constructor(e,t,n,i){const r=t[n];i=_n([e.to,i,r,e.from]);const s=_n([e.from,r,i]);this._active=!0,this._fn=e.fn||wi[e.type||typeof s],this._easing=ln[e.easing]||ln.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,s=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=_n([e.to,t,i,e.from]),this._from=_n([e.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,i=this._prop,r=this._from,s=this._loop,a=this._to;let o;if(this._active=r!==a&&(s||t<n),!this._active)return this._target[i]=a,void this._notify(!0);t<0?this._target[i]=r:(o=t/n%2,o=s&&o>1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[i]=this._fn(r,a,o))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class Mi{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!s(e))return;const t=Object.keys(ot.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((i=>{const a=e[i];if(!s(a))return;const o={};for(const e of t)o[e]=a[e];(r(a.properties)&&a.properties||[i]).forEach((e=>{e!==i&&n.has(e)||n.set(e,o)}))}))}_animateOptions(e,t){const n=t.options,i=function(e,t){if(!t)return;let n=e.options;if(n)return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;e.options=t}(e,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(e,t){const n=[],i=Object.keys(t);for(let t=0;t<i.length;t++){const r=e[i[t]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,i=[],r=e.$animations||(e.$animations={}),s=Object.keys(t),a=Date.now();let o;for(o=s.length-1;o>=0;--o){const l=s[o];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(r[l]=u=new ki(d,e,l,c),i.push(u)):e[l]=c}return i}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(ve.add(this._chart,n),!0):void 0}}function Si(e,t){const n=e&&e.options||{},i=n.reverse,r=void 0===n.min?t:0,s=void 0===n.max?t:0;return{start:i?s:r,end:i?r:s}}function Ai(e,t){const n=[],i=e._getSortedDatasetMetas(t);let r,s;for(r=0,s=i.length;r<s;++r)n.push(i[r].index);return n}function Li(e,t,n,i={}){const r=e.keys,s="single"===i.mode;let o,l,c,u;if(null===t)return;let d=!1;for(o=0,l=r.length;o<l;++o){if(c=+r[o],c===n){if(d=!0,i.all)continue;break}u=e.values[c],a(u)&&(s||0===t||H(t)===H(u))&&(t+=u)}return d||i.all?t:0}function Ti(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Ci(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function Di(e,t,n,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function Ei(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:s,vScale:a,index:o}=i,l=s.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(s,a,i),d=t.length;let h;for(let e=0;e<d;++e){const n=t[e],{[l]:s,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Ci(r,u,s),h[o]=d,h._top=Di(h,a,!0,i.type),h._bottom=Di(h,a,!1,i.type),(h._visualValues||(h._visualValues={}))[o]=d}}function Oi(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function Pi(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[i]||void 0===t[i][n])return;delete t[i][n],void 0!==t[i]._visualValues&&void 0!==t[i]._visualValues[n]&&delete t[i]._visualValues[n]}}}const Yi=e=>"reset"===e||"none"===e,Ii=(e,t)=>t?e:Object.assign({},e);class Ni{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Ti(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Pi(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),i=(e,t,n,i)=>"x"===e?t:"r"===e?i:n,r=t.xAxisID=l(n.xAxisID,Oi(e,"x")),s=t.yAxisID=l(n.yAxisID,Oi(e,"y")),a=t.rAxisID=l(n.rAxisID,Oi(e,"r")),o=t.indexAxis,c=t.iAxisID=i(o,r,s,a),u=t.vAxisID=i(o,s,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(s),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&oe(this._data,this),e._stacked&&Pi(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(s(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:i}=t,r="x"===n.axis?"x":"y",s="x"===i.axis?"x":"y",a=Object.keys(e),o=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],o[l]={[r]:u,[s]:e[u]};return o}(t,e)}else if(n!==t){if(n){oe(n,this);const e=this._cachedMeta;Pi(e),e._parsed=[]}t&&Object.isExtensible(t)&&ae(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=t._stacked;t._stacked=Ti(t.vScale,t),t.stack!==n.stack&&(i=!0,Pi(t),t.stack=n.stack),this._resyncElements(e),(i||r!==t._stacked)&&(Ei(this,t._parsed),t._stacked=Ti(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:i}=this,{iScale:a,_stacked:o}=n,l=a.axis;let c,u,d,h=0===e&&t===i.length||n._sorted,f=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,d=i;else{d=r(i[e])?this.parseArrayData(n,i,e,t):s(i[e])?this.parseObjectData(n,i,e,t):this.parsePrimitiveData(n,i,e,t);const a=()=>null===u[l]||f&&u[l]<f[l];for(c=0;c<t;++c)n._parsed[c+e]=u=d[c],h&&(a()&&(h=!1),f=u);n._sorted=h}o&&Ei(this,d)}parsePrimitiveData(e,t,n,i){const{iScale:r,vScale:s}=e,a=r.axis,o=s.axis,l=r.getLabels(),c=r===s,u=new Array(i);let d,h,f;for(d=0,h=i;d<h;++d)f=d+n,u[d]={[a]:c||r.parse(l[f],f),[o]:s.parse(t[f],f)};return u}parseArrayData(e,t,n,i){const{xScale:r,yScale:s}=e,a=new Array(i);let o,l,c,u;for(o=0,l=i;o<l;++o)c=o+n,u=t[c],a[o]={x:r.parse(u[0],c),y:s.parse(u[1],c)};return a}parseObjectData(e,t,n,i){const{xScale:r,yScale:s}=e,{xAxisKey:a="x",yAxisKey:o="y"}=this._parsing,l=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=t[d],l[c]={x:r.parse(w(h,a),d),y:s.parse(w(h,o),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const i=this.chart,r=this._cachedMeta,s=t[e.axis];return Li({keys:Ai(i,!0),values:t._stacks[e.axis]._visualValues},s,r.index,{mode:n})}updateRangeFromParsed(e,t,n,i){const r=n[t.axis];let s=null===r?NaN:r;const a=i&&n._stacks[t.axis];i&&a&&(i.values=a,s=Li(i,r,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,t){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&e===n.iScale,s=i.length,o=this._getOtherScale(e),l=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Ai(n,!0),values:null})(t,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=function(e){const{min:t,max:n,minDefined:i,maxDefined:r}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(o);let h,f;function p(){f=i[h];const t=f[o.axis];return!a(f[e.axis])||u>t||d<t}for(h=0;h<s&&(p()||(this.updateRangeFromParsed(c,e,f,l),!r));++h);if(r)for(h=s-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(c,e,f,l);break}return c}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let i,r,s;for(i=0,r=t.length;i<r;++i)s=t[i][e.axis],a(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,i=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,i,r;return s(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r,disabled:!1===e}}(l(this.options.clip,function(e,t,n){if(!1===n)return!1;const i=Si(e,n),r=Si(t,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,i=n.data||[],r=t.chartArea,s=[],a=this._drawStart||0,o=this._drawCount||i.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,a,o),c=a;c<a+o;++c){const t=i[c];t.hidden||(t.active&&l?s.push(t):t.draw(e,r))}for(c=0;c<s.length;++c)s[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const i=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return kn(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return kn(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const i="active"===t,r=this._cachedDataOpts,s=e+"-"+t,a=r[s],o=this.enableOptionSharing&&M(n);if(a)return Ii(a,o);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=i?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(ot.elements[e]),f=l.resolveNamedOptions(d,h,(()=>this.getContext(n,i,t)),u);return f.$shared&&(f.$shared=o,r[s]=Object.freeze(Ii(f,o))),f}_resolveAnimations(e,t,n){const i=this.chart,r=this._cachedDataOpts,s=`animation-${t}`,a=r[s];if(a)return a;let o;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,t),s=i.getOptionScopes(this.getDataset(),r);o=i.createResolver(s,this.getContext(e,n,t))}const l=new Mi(i,o&&o.animations);return o&&o._cacheable&&(r[s]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||Yi(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),i=this._sharedOptions,r=this.getSharedOptions(n),s=this.includeOptions(t,r)||r!==i;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:s}}updateElement(e,t,n,i){Yi(i)?Object.assign(e,n):this._resolveAnimations(t,i).update(e,n)}updateSharedOptions(e,t,n){e&&!Yi(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,i){e.active=i;const r=this.getStyle(t,i);this._resolveAnimations(t,n,i).update(e,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const i=n.length,r=t.length,s=Math.min(r,i);s&&this.parse(0,s),r>i?this._insertElements(i,r-i,e):r<i&&this._removeElements(r,i-r)}_insertElements(e,t,n=!0){const i=this._cachedMeta,r=i.data,s=e+t;let a;const o=e=>{for(e.length+=t,a=e.length-1;a>=s;a--)e[a]=e[a-t]};for(o(r),a=e;a<s;++a)r[a]=new this.dataElementType;this._parsing&&o(i._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,i){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(e,t);n._stacked&&Pi(n,i)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,i]=e;this[t](n,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}class Hi{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return z(this.x)&&z(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const i={};return e.forEach((e=>{i[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),i}}function ji(e,t){const n=e.options.ticks,r=function(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(i,r))}(e),s=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?function(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}(t):[],o=a.length,l=a[0],c=a[o-1],u=[];if(o>s)return function(e,t,n,i){let r,s=0,a=n[0];for(i=Math.ceil(i),r=0;r<e.length;r++)r===a&&(t.push(e[r]),s++,a=n[s*i])}(t,u,a,o/s),u;const d=function(e,t,n){const i=function(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}(e),r=t.length/n;if(!i)return Math.max(r,1);const s=R(i);for(let e=0,t=s.length-1;e<t;e++){const t=s[e];if(t>r)return t}return Math.max(r,1)}(a,t,s);if(o>0){let e,n;const r=o>1?Math.round((c-l)/(o-1)):null;for(Fi(t,u,d,i(r)?0:l-r,l),e=0,n=o-1;e<n;e++)Fi(t,u,d,a[e],a[e+1]);return Fi(t,u,d,c,i(r)?t.length:c+r),u}return Fi(t,u,d),u}function Fi(e,t,n,i,r){const s=l(i,0),a=Math.min(l(r,e.length),e.length);let o,c,u,d=0;for(n=Math.ceil(n),r&&(o=r-i,n=o/Math.floor(o/n)),u=s;u<0;)d++,u=Math.round(s+d*n);for(c=Math.max(s,0);c<a;c++)c===u&&(t.push(e[c]),d++,u=Math.round(s+d*n))}const Ri=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,zi=(e,t)=>Math.min(t||e,e);function Bi(e,t){const n=[],i=e.length/t,r=e.length;let s=0;for(;s<r;s+=i)n.push(e[Math.floor(s)]);return n}function Vi(e,t,n){const i=e.ticks.length,r=Math.min(t,i-1),s=e._startPixel,a=e._endPixel,o=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-s,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<s-o||c>a+o)))return c}function Wi(e){return e.drawTicks?e.tickLength:0}function qi(e,t){if(!e.display)return 0;const n=xn(e.font,t),i=bn(e.padding);return(r(e.text)?e.text.length:1)*n.lineHeight+i.height}function Ui(e,t,n){let i=he(e);return(n&&"right"!==t||!n&&"right"===t)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class $i extends Hi{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:i}=this;return e=o(e,Number.POSITIVE_INFINITY),t=o(t,Number.NEGATIVE_INFINITY),n=o(n,Number.POSITIVE_INFINITY),i=o(i,Number.NEGATIVE_INFINITY),{min:o(e,n),max:o(t,i),minDefined:a(e),maxDefined:a(t)}}getMinMax(e){let t,{min:n,max:i,minDefined:r,maxDefined:s}=this.getUserBounds();if(r&&s)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let o=0,l=a.length;o<l;++o)t=a[o].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),s||(i=Math.max(i,t.max));return n=s&&n>i?i:n,i=r&&n>i?n:i,{min:o(n,o(i,n)),max:o(i,o(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){d(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:i,grace:r,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=wn(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=a<this.ticks.length;this._convertTicksToLabels(o?Bi(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=ji(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),o&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){d(this.options.afterUpdate,[this])}beforeSetDimensions(){d(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){d(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),d(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){d(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,i,r;for(n=0,i=e.length;n<i;n++)r=e[n],r.label=d(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){d(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){d(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=zi(this.ticks.length,e.ticks.maxTicksLimit),i=t.minRotation||0,r=t.maxRotation;let s,a,o,l=i;if(!this._isVisible()||!t.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=J(this.chart.width-u,0,this.maxWidth);s=e.offset?this.maxWidth/n:h/(n-1),u+6>s&&(s=h/(n-(e.offset?.5:1)),a=this.maxHeight-Wi(e.grid)-t.padding-qi(e.title,this.chart.options.font),o=Math.sqrt(u*u+d*d),l=q(Math.min(Math.asin(J((c.highest.height+6)/s,-1,1)),Math.asin(J(a/o,-1,1))-Math.asin(J(d/o,-1,1)))),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){d(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){d(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:i,grid:r}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const s=qi(i,t.options.font);if(a?(e.width=this.maxWidth,e.height=Wi(r)+s):(e.height=this.maxHeight,e.width=Wi(r)+s),n.display&&this.ticks.length){const{first:t,last:i,widest:r,highest:s}=this._getLabelSizes(),o=2*n.padding,l=W(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*r.width+c*s.height;e.height=Math.min(this.maxHeight,e.height+t+o)}else{const t=n.mirror?0:c*r.width+u*s.height;e.width=Math.min(this.maxWidth,e.width+t+o)}this._calculatePadding(t,i,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,i){const{ticks:{align:r,padding:s},position:a}=this.options,o=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;o?l?(u=i*e.width,d=n*t.height):(u=n*e.height,d=i*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+s)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+s)*this.width/(this.width-c),0)}else{let n=t.height/2,i=e.height/2;"start"===r?(n=0,i=e.height):"end"===r&&(n=t.height,i=0),this.paddingTop=n+s,this.paddingBottom=i+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){d(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)i(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=Bi(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:s,_longestTextCache:a}=this,o=[],l=[],c=Math.floor(t/zi(t,n));let u,d,f,p,m,g,v,y,b,x,_,w=0,k=0;for(u=0;u<t;u+=c){if(p=e[u].label,m=this._resolveTickFontOptions(u),s.font=g=m.string,v=a[g]=a[g]||{data:{},gc:[]},y=m.lineHeight,b=x=0,i(p)||r(p)){if(r(p))for(d=0,f=p.length;d<f;++d)_=p[d],i(_)||r(_)||(b=wt(s,v.data,v.gc,b,_),x+=y)}else b=wt(s,v.data,v.gc,b,p),x=y;o.push(b),l.push(x),w=Math.max(b,w),k=Math.max(x,k)}!function(e,t){h(e,(e=>{const n=e.gc,i=n.length/2;let r;if(i>t){for(r=0;r<i;++r)delete e.data[n[r]];n.splice(0,i)}}))}(a,t);const M=o.indexOf(w),S=l.indexOf(k),A=e=>({width:o[e]||0,height:l[e]||0});return{first:A(0),last:A(t-1),widest:A(M),highest:A(S),widths:o,heights:l}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return Q(this._alignToPixels?Mt(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return kn(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=kn(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=W(this.labelRotation),n=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),r=this._getLabelSizes(),s=e.autoSkipPadding||0,a=r?r.widest.width+s:0,o=r?r.highest.height+s:0;return this.isHorizontal()?o*n>a*i?a/n:o/i:o*i<a*n?o/n:a/i}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,i=this.options,{grid:r,position:a,border:o}=i,c=r.offset,u=this.isHorizontal(),d=this.ticks.length+(c?1:0),h=Wi(r),f=[],p=o.setContext(this.getContext()),m=p.display?p.width:0,g=m/2,v=function(e){return Mt(n,e,m)};let y,b,x,_,w,k,M,S,A,L,T,C;if("top"===a)y=v(this.bottom),k=this.bottom-h,S=y-g,L=v(e.top)+g,C=e.bottom;else if("bottom"===a)y=v(this.top),L=e.top,C=v(e.bottom)-g,k=y+g,S=this.top+h;else if("left"===a)y=v(this.right),w=this.right-h,M=y-g,A=v(e.left)+g,T=e.right;else if("right"===a)y=v(this.left),A=e.left,T=v(e.right)-g,w=y+g,M=this.left+h;else if("x"===t){if("center"===a)y=v((e.top+e.bottom)/2+.5);else if(s(a)){const e=Object.keys(a)[0],t=a[e];y=v(this.chart.scales[e].getPixelForValue(t))}L=e.top,C=e.bottom,k=y+g,S=k+h}else if("y"===t){if("center"===a)y=v((e.left+e.right)/2);else if(s(a)){const e=Object.keys(a)[0],t=a[e];y=v(this.chart.scales[e].getPixelForValue(t))}w=y-g,M=w-h,A=e.left,T=e.right}const D=l(i.ticks.maxTicksLimit,d),E=Math.max(1,Math.ceil(d/D));for(b=0;b<d;b+=E){const e=this.getContext(b),t=r.setContext(e),i=o.setContext(e),s=t.lineWidth,a=t.color,l=i.dash||[],d=i.dashOffset,h=t.tickWidth,p=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;x=Vi(this,b,c),void 0!==x&&(_=Mt(n,x,s),u?w=M=A=T=_:k=S=L=C=_,f.push({tx1:w,ty1:k,tx2:M,ty2:S,x1:A,y1:L,x2:T,y2:C,width:s,color:a,borderDash:l,borderDashOffset:d,tickWidth:h,tickColor:p,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=d,this._borderValue=y,f}_computeLabelItems(e){const t=this.axis,n=this.options,{position:i,ticks:a}=n,o=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:u,padding:d,mirror:h}=a,f=Wi(n.grid),p=f+d,m=h?-d:p,g=-W(this.labelRotation),v=[];let y,b,x,_,w,k,M,S,A,L,T,C,D="middle";if("top"===i)k=this.bottom-m,M=this._getXAxisLabelAlignment();else if("bottom"===i)k=this.top+m,M=this._getXAxisLabelAlignment();else if("left"===i){const e=this._getYAxisLabelAlignment(f);M=e.textAlign,w=e.x}else if("right"===i){const e=this._getYAxisLabelAlignment(f);M=e.textAlign,w=e.x}else if("x"===t){if("center"===i)k=(e.top+e.bottom)/2+p;else if(s(i)){const e=Object.keys(i)[0],t=i[e];k=this.chart.scales[e].getPixelForValue(t)+p}M=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===i)w=(e.left+e.right)/2-p;else if(s(i)){const e=Object.keys(i)[0],t=i[e];w=this.chart.scales[e].getPixelForValue(t)}M=this._getYAxisLabelAlignment(f).textAlign}"y"===t&&("start"===c?D="top":"end"===c&&(D="bottom"));const E=this._getLabelSizes();for(y=0,b=l.length;y<b;++y){x=l[y],_=x.label;const e=a.setContext(this.getContext(y));S=this.getPixelForTick(y)+a.labelOffset,A=this._resolveTickFontOptions(y),L=A.lineHeight,T=r(_)?_.length:1;const t=T/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,f=M;if(o?(w=S,"inner"===M&&(f=y===b-1?this.options.reverse?"left":"right":0===y?this.options.reverse?"right":"left":"center"),C="top"===i?"near"===u||0!==g?-T*L+L/2:"center"===u?-E.highest.height/2-t*L+L:-E.highest.height+L/2:"near"===u||0!==g?L/2:"center"===u?E.highest.height/2-t*L:E.highest.height-T*L,h&&(C*=-1),0===g||e.showLabelBackdrop||(w+=L/2*Math.sin(g))):(k=S,C=(1-T)*L/2),e.showLabelBackdrop){const t=bn(e.backdropPadding),n=E.heights[y],i=E.widths[y];let r=C-t.top,s=0-t.left;switch(D){case"middle":r-=n/2;break;case"bottom":r-=n}switch(M){case"center":s-=i/2;break;case"right":s-=i;break;case"inner":y===b-1?s-=i:y>0&&(s-=i/2)}d={left:s,top:r,width:i+t.width,height:n+t.height,color:e.backdropColor}}v.push({label:_,font:A,textOffset:C,options:{rotation:g,color:n,strokeColor:s,strokeWidth:c,textAlign:f,textBaseline:D,translation:[w,k],backdrop:d}})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-W(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,s=e+r,a=this._getLabelSizes().widest.width;let o,l;return"left"===t?i?(l=this.right+r,"near"===n?o="left":"center"===n?(o="center",l+=a/2):(o="right",l+=a)):(l=this.right-s,"near"===n?o="right":"center"===n?(o="center",l-=a/2):(o="left",l=this.left)):"right"===t?i?(l=this.left+r,"near"===n?o="right":"center"===n?(o="center",l-=a/2):(o="left",l-=a)):(l=this.left+s,"near"===n?o="left":"center"===n?(o="center",l+=a/2):(o="right",l=this.right)):o="right",{textAlign:o,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:i,width:r,height:s}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,i,r,s),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const t=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,s;const a=(e,t,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,s=i.length;r<s;++r){const e=i[r];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),s=n.display?r.width:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Mt(e,this.left,s)-s/2,c=Mt(e,this.right,a)+a/2,u=d=o):(u=Mt(e,this.top,s)-s/2,d=Mt(e,this.bottom,a)+a/2,l=c=o),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&Ct(t,n);const i=this.getLabelItems(e);for(const e of i){const n=e.options,i=e.font;It(t,e.label,0,e.textOffset,i,n)}n&&Dt(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:i}}=this;if(!n.display)return;const a=xn(n.font),o=bn(n.padding),l=n.align;let c=a.lineHeight/2;"bottom"===t||"center"===t||s(t)?(c+=o.bottom,r(n.text)&&(c+=a.lineHeight*(n.text.length-1))):c+=o.top;const{titleX:u,titleY:d,maxWidth:h,rotation:f}=function(e,t,n,i){const{top:r,left:a,bottom:o,right:l,chart:c}=e,{chartArea:u,scales:d}=c;let h,f,p,m=0;const g=o-r,v=l-a;if(e.isHorizontal()){if(f=fe(i,a,l),s(n)){const e=Object.keys(n)[0],i=n[e];p=d[e].getPixelForValue(i)+g-t}else p="center"===n?(u.bottom+u.top)/2+g-t:Ri(e,n,t);h=l-a}else{if(s(n)){const e=Object.keys(n)[0],i=n[e];f=d[e].getPixelForValue(i)-v+t}else f="center"===n?(u.left+u.right)/2-v+t:Ri(e,n,t);p=fe(i,o,r),m="left"===n?-P:P}return{titleX:f,titleY:p,maxWidth:h,rotation:m}}(this,c,t,l);It(e,n.text,0,0,a,{color:n.color,maxWidth:h,rotation:f,textAlign:Ui(l,t,i),textBaseline:"middle",translation:[u,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=l(e.grid&&e.grid.z,-1),i=l(e.border&&e.border.z,0);return this._isVisible()&&this.draw===$i.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,s;for(r=0,s=t.length;r<s;++r){const s=t[r];s[n]!==this.id||e&&s.type!==e||i.push(s)}return i}_resolveTickFontOptions(e){return xn(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Xi{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const i=this.items,r=e.id,s=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in i||(i[r]=e,function(e,t,n){const i=v(Object.create(null),[n?ot.get(n):{},ot.get(t),e.defaults]);ot.set(t,i),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const i=n.split("."),r=i.pop(),s=[e].concat(i).join("."),a=t[n].split("."),o=a.pop(),l=a.join(".");ot.route(s,r,l,o)}))}(t,e.defaultRoutes),e.descriptors&&ot.describe(t,e.descriptors)}(e,s,n),this.override&&ot.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,i=this.scope;n in t&&delete t[n],i&&n in ot[i]&&(delete ot[i][n],this.override&&delete it[n])}}var Gi=new class{constructor(){this.controllers=new Xi(Ni,"datasets",!0),this.elements=new Xi(Hi,"elements"),this.plugins=new Xi(Object,"plugins"),this.scales=new Xi($i,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const i=n||this._getRegistryForType(t);n||i.isForType(t)||i===this.plugins&&t.id?this._exec(e,i,t):h(t,(t=>{const i=n||this._getRegistryForType(t);this._exec(e,i,t)}))}))}_exec(e,t,n){const i=k(e);d(n["before"+i],[],n),t[e](n),d(n["after"+i],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const i=t.get(e);if(void 0===i)throw new Error('"'+e+'" is not a registered '+n+".");return i}};class Zi{constructor(){this._init=[]}notify(e,t,n,i){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=i?this._descriptors(e).filter(i):this._descriptors(e),s=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,t,n,i){i=i||{};for(const r of e){const e=r.plugin;if(!1===d(e[n],[t,i,r.options],e)&&i.cancelable)return!1}return!0}invalidate(){i(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,i=l(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],i=Object.keys(Gi.plugins.items);for(let e=0;e<i.length;e++)n.push(Gi.getPlugin(i[e]));const r=e.plugins||[];for(let e=0;e<r.length;e++){const i=r[e];-1===n.indexOf(i)&&(n.push(i),t[i.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==i||t?function(e,{plugins:t,localIds:n},i,r){const s=[],a=e.getContext();for(const o of t){const t=o.id,l=Ki(i[t],r);null!==l&&s.push({plugin:o,options:Ji(e.config,{plugin:o,local:n[t]},l,a)})}return s}(e,r,i,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,i=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(i(t,n),e,"stop"),this._notify(i(n,t),e,"start")}}function Ki(e,t){return t||!1!==e?!0===e?{}:e:null}function Ji(e,{plugin:t,local:n},i,r){const s=e.pluginScopeKeys(t),a=e.getOptionScopes(i,s);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Qi(e,t){const n=ot.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function er(e){if("x"===e||"y"===e||"r"===e)return e}function tr(e,...t){if(er(e))return e;for(const i of t){const t=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.length>1&&er(e[0].toLowerCase());if(t)return t}var n;throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function nr(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function ir(e){const t=e.options||(e.options={});t.plugins=l(t.plugins,{}),t.scales=function(e,t){const n=it[e.type]||{scales:{}},i=t.scales||{},r=Qi(e.type,t),a=Object.create(null);return Object.keys(i).forEach((t=>{const o=i[t];if(!s(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const l=tr(t,o,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return nr(e,"x",n[0])||nr(e,"y",n[0])}return{}}(t,e),ot.scales[o.type]),c=function(e,t){return e===t?"_index_":"_value_"}(l,r),u=n.scales||{};a[t]=y(Object.create(null),[{axis:l},o,u[l],u[c]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,s=n.indexAxis||Qi(r,t),o=(it[r]||{}).scales||{};Object.keys(o).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),r=n[t+"AxisID"]||t;a[r]=a[r]||Object.create(null),y(a[r],[{axis:t},i[r],o[e]])}))})),Object.keys(a).forEach((e=>{const t=a[e];y(t,[ot.scales[t.type],ot.scale])})),a}(e,t)}function rr(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const sr=new Map,ar=new Set;function or(e,t){let n=sr.get(e);return n||(n=t(),sr.set(e,n),ar.add(n)),n}const lr=(e,t,n)=>{const i=w(t,n);void 0!==i&&e.add(i)};class cr{constructor(e){this._config=function(e){return(e=e||{}).data=rr(e.data),ir(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=rr(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),ir(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return or(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return or(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return or(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return or(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let i=n.get(e);return i&&!t||(i=new Map,n.set(e,i)),i}getOptionScopes(e,t,n){const{options:i,type:r}=this,s=this._cachedScopes(e,n),a=s.get(t);if(a)return a;const o=new Set;t.forEach((t=>{e&&(o.add(e),t.forEach((t=>lr(o,e,t)))),t.forEach((e=>lr(o,i,e))),t.forEach((e=>lr(o,it[r]||{},e))),t.forEach((e=>lr(o,ot,e))),t.forEach((e=>lr(o,rt,e)))}));const l=Array.from(o);return 0===l.length&&l.push(Object.create(null)),ar.has(t)&&s.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,it[t]||{},ot.datasets[t]||{},{type:t},ot,rt]}resolveNamedOptions(e,t,n,i=[""]){const s={$shared:!0},{resolver:a,subPrefixes:o}=ur(this._resolverCache,e,i);let l=a;(function(e,t){const{isScriptable:n,isIndexable:i}=Ft(e);for(const s of t){const t=n(s),a=i(s),o=(a||t)&&e[s];if(t&&(S(o)||dr(o))||a&&r(o))return!0}return!1})(a,t)&&(s.$shared=!1,l=jt(a,n=S(n)?n():n,this.createResolver(e,n,o)));for(const e of t)s[e]=l[e];return s}createResolver(e,t,n=[""],i){const{resolver:r}=ur(this._resolverCache,e,n);return s(t)?jt(r,t,void 0,i):r}}function ur(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let s=i.get(r);return s||(s={resolver:Ht(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},i.set(r,s)),s}const dr=e=>s(e)&&Object.getOwnPropertyNames(e).some((t=>S(e[t]))),hr=["top","bottom","left","right","chartArea"];function fr(e,t){return"top"===e||"bottom"===e||-1===hr.indexOf(e)&&"x"===t}function pr(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function mr(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),d(n&&n.onComplete,[e],t)}function gr(e){const t=e.chart,n=t.options.animation;d(n&&n.onProgress,[e],t)}function vr(e){return lt()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const yr={},br=e=>{const t=vr(e);return Object.values(yr).filter((e=>e.canvas===t)).pop()};function xr(e,t,n){const i=Object.keys(e);for(const r of i){const i=+r;if(i>=t){const s=e[r];delete e[r],(n>0||i>t)&&(e[i+n]=s)}}}class _r{static defaults=ot;static instances=yr;static overrides=it;static registry=Gi;static version="4.4.9";static getChart=br;static register(...e){Gi.add(...e),wr()}static unregister(...e){Gi.remove(...e),wr()}constructor(e,t){const i=this.config=new cr(t),r=vr(e),s=br(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||bi(r)),this.platform.updateConfig(i);const o=this.platform.acquireContext(r,a.aspectRatio),l=o&&o.canvas,c=l&&l.height,u=l&&l.width;this.id=n(),this.ctx=o,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Zi,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=de((e=>this.update(e)),a.resizeDelay||0),this._dataChanges=[],yr[this.id]=this,o&&l?(ve.listen(this,"complete",mr),ve.listen(this,"progress",gr),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:s}=this;return i(e)?t&&s?s:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Gi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():yt(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return St(this.canvas,this.ctx),this}stop(){return ve.stop(this),this}resize(e,t){ve.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,yt(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),d(n.onResize,[this,s],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){h(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,i=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],i=tr(e,n),r="r"===i,s="x"===i;return{options:n,dposition:r?"chartArea":s?"bottom":"left",dtype:r?"radialLinear":s?"category":"linear"}})))),h(r,(t=>{const r=t.options,s=r.id,a=tr(s,r),o=l(r.type,t.dtype);void 0!==r.position&&fr(r.position,a)===fr(t.dposition)||(r.position=t.dposition),i[s]=!0;let c=null;s in n&&n[s].type===o?c=n[s]:(c=new(Gi.getScale(o))({id:s,type:o,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(r,e)})),h(i,((e,t)=>{e||delete n[t]})),h(n,(e=>{ti.configure(this,e,e.options),ti.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(pr("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=t.length;n<i;n++){const i=t[n];let r=this.getDatasetMeta(n);const s=i.type||this.config.type;if(r.type&&r.type!==s&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=s,r.indexAxis=i.indexAxis||Qi(s,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=Gi.getController(s),{datasetElementType:i,dataElementType:a}=ot.datasets[s];Object.assign(t,{dataElementType:Gi.getElement(a),datasetElementType:i&&Gi.getElement(i)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){h(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!i&&-1===r.indexOf(t);t.buildOrUpdateElements(n),s=Math.max(+t.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),i||h(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(pr("z","_idx"));const{_active:a,_lastEvent:o}=this;o?this._eventHandler(o,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){h(this.scales,(e=>{ti.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);A(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of t)xr(e,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),i=n(0);for(let e=1;e<t;e++)if(!A(i,n(e)))return;return Array.from(i).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ti.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],h(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,S(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),i={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(t),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(ve.has(this)?this.attached&&!ve.running(this)&&ve.start(this):(this.draw(),mr({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let i,r;for(i=0,r=t.length;i<r;++i){const r=t[i];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n={meta:e,index:e.index,cancelable:!0},i=Nn(this,e);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(i&&Ct(t,i),e.controller.draw(),i&&Dt(t),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(e){return Tt(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,i){const r=Vn.modes[t];return"function"==typeof r?r(this,e,n,i):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let i=n.filter((e=>e&&e._dataset===t)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=kn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const i=n?"show":"hide",r=this.getDatasetMeta(e),s=r.controller._resolveAnimations(void 0,i);M(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?i:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),ve.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),St(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete yr[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,i)=>{t.addEventListener(this,n,i),e[n]=i},i=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};h(this.options.events,(e=>n(e,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,i)=>{t.addEventListener(this,n,i),e[n]=i},i=(n,i)=>{e[n]&&(t.removeEventListener(this,n,i),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",s)};s=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():s()}unbindEvents(){h(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},h(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const i=n?"set":"remove";let r,s,a,o;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),a=0,o=e.length;a<o;++a){s=e[a];const t=s&&this.getDatasetMeta(s.datasetIndex).controller;t&&t[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!f(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const i=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),s=r(t,e),a=n?e:r(e,t);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},i=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:i=[],options:r}=this,s=t,a=this._getActiveElements(e,i,n,s),o=L(e),l=function(e,t,n,i){return n&&"mouseout"!==e.type?i?t:e:null}(e,this._lastEvent,n,o);n&&(this._lastEvent=null,d(r.onHover,[e,a,this],this),o&&d(r.onClick,[e,a,this],this));const c=!f(a,i);return(c||t)&&(this._active=a,this._updateHoverStyles(a,i,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,i){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,i)}}function wr(){return h(_r.instances,(e=>e._plugins.invalidate()))}function kr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Mr{static override(e){Object.assign(Mr.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return kr()}parse(){return kr()}format(){return kr()}add(){return kr()}diff(){return kr()}startOf(){return kr()}endOf(){return kr()}}var Sr={_date:Mr};function Ar(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let t=0,r=n.length;t<r;t++)i=i.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=le(i.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let i,r,s,a,o=t._length;const l=()=>{32767!==s&&-32768!==s&&(M(a)&&(o=Math.min(o,Math.abs(s-a)||o)),a=s)};for(i=0,r=n.length;i<r;++i)s=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,r=t.ticks.length;i<r;++i)s=t.getPixelForTick(i),l();return o}function Lr(e,t,n,i){return r(e)?function(e,t,n,i){const r=n.parse(e[0],i),s=n.parse(e[1],i),a=Math.min(r,s),o=Math.max(r,s);let l=a,c=o;Math.abs(a)>Math.abs(o)&&(l=o,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:s,min:a,max:o}}(e,t,n,i):t[n.axis]=n.parse(e,i),t}function Tr(e,t,n,i){const r=e.iScale,s=e.vScale,a=r.getLabels(),o=r===s,l=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=t[c],d={},d[r.axis]=o||r.parse(a[c],c),l.push(Lr(h,d,s,c));return l}function Cr(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function Dr(e,t,n,i){let r=t.borderSkipped;const s={};if(!r)return void(e.borderSkipped=s);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:o,reverse:l,top:c,bottom:u}=function(e){let t,n,i,r,s;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(r="end",s="start"):(r="start",s="end"),{start:n,end:i,reverse:t,top:r,bottom:s}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(s[Er(u,a,o,l)]=!0,r=c)),s[Er(r,a,o,l)]=!0,e.borderSkipped=s}function Er(e,t,n,i){var r,s,a;return i?(a=n,e=Or(e=(r=e)===(s=t)?a:r===a?s:r,n,t)):e=Or(e,t,n),e}function Or(e,t,n){return"start"===e?t:"end"===e?n:e}function Pr(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class Yr extends Ni{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:i}}=e.legend.options;return t.labels.map(((t,r)=>{const s=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:i,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let r,a,o=e=>+n[e];if(s(n[e])){const{key:e="value"}=this._parsing;o=t=>+w(n[t],e)}for(r=e,a=e+t;r<a;++r)i._parsed[r]=o(r)}}_getRotation(){return W(this.options.rotation-90)}_getCircumference(){return W(this.options.circumference)}_getRotationExtents(){let e=C,t=-C;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,r=i._getRotation(),s=i._getCircumference();e=Math.min(e,r),t=Math.max(t,r+s)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,i=this._cachedMeta,r=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-s)/2,0),o=Math.min(c(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:d,rotation:h}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:m,offsetY:g}=function(e,t,n){let i=1,r=1,s=0,a=0;if(t<C){const o=e,l=o+t,c=Math.cos(o),u=Math.sin(o),d=Math.cos(l),h=Math.sin(l),f=(e,t,i)=>K(e,o,l,!0)?1:Math.max(t,t*n,i,i*n),p=(e,t,i)=>K(e,o,l,!0)?-1:Math.min(t,t*n,i,i*n),m=f(0,c,d),g=f(P,u,h),v=p(T,c,d),y=p(T+P,u,h);i=(m-v)/2,r=(g-y)/2,s=-(m+v)/2,a=-(g+y)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:a}}(h,d,o),v=(n.width-s)/f,y=(n.height-s)/p,b=Math.max(Math.min(v,y)/2,0),x=u(this.options.radius,b),_=(x-Math.max(x*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=g*x,i.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*l,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,i=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*r/C)}updateElements(e,t,n,i){const r="reset"===i,s=this.chart,a=s.chartArea,o=s.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=r&&o.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(t,i);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,r);for(m=t;m<t+n;++m){const t=this._circumference(m,r),n=e[m],s={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:h,innerRadius:d};p&&(s.options=f||this.resolveDataElementOptions(m,n.active?"active":i)),g+=t,this.updateElement(n,m,s,i)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,i=0;for(n=0;n<t.length;n++){const r=e._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||t[n].hidden||(i+=Math.abs(r))}return i}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?C*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=et(t._parsed[e],n.options.locale);return{label:i[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let i,r,s,a,o;if(!e)for(i=0,r=n.data.datasets.length;i<r;++i)if(n.isDatasetVisible(i)){s=n.getDatasetMeta(i),e=s.data,a=s.controller;break}if(!e)return 0;for(i=0,r=e.length;i<r;++i)o=a.resolveDataElementOptions(i),"inner"!==o.borderAlign&&(t=Math.max(t,o.borderWidth||0,o.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,i=e.length;n<i;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(l(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Ir extends Ni{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:i}}=e.legend.options;return t.labels.map(((t,r)=>{const s=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:i,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=et(t._parsed[e].r,n.options.locale);return{label:i[e]||"",value:r}}parseObjectData(e,t,n,i){return Zt.bind(this)(e,t,n,i)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<t.min&&(t.min=i),i>t.max&&(t.max=i))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,i=Math.min(t.right-t.left,t.bottom-t.top),r=Math.max(i/2,0),s=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(e,t,n,i){const r="reset"===i,s=this.chart,a=s.options.animation,o=this._cachedMeta.rScale,l=o.xCenter,c=o.yCenter,u=o.getIndexAngle(0)-.5*T;let d,h=u;const f=360/this.countVisibleElements();for(d=0;d<t;++d)h+=this._computeAngle(d,i,f);for(d=t;d<t+n;d++){const t=e[d];let n=h,p=h+this._computeAngle(d,i,f),m=s.getDataVisibility(d)?o.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=p,r&&(a.animateScale&&(m=0),a.animateRotate&&(n=p=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(d,t.active?"active":i)};this.updateElement(t,d,g,i)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?W(this.resolveDataElementOptions(e,t).angle||n):0}}var Nr=Object.freeze({__proto__:null,BarController:class extends Ni{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,i){return Tr(e,t,n,i)}parseArrayData(e,t,n,i){return Tr(e,t,n,i)}parseObjectData(e,t,n,i){const{iScale:r,vScale:s}=e,{xAxisKey:a="x",yAxisKey:o="y"}=this._parsing,l="x"===r.axis?a:o,c="x"===s.axis?a:o,u=[];let d,h,f,p;for(d=n,h=n+i;d<h;++d)p=t[d],f={},f[r.axis]=r.parse(w(p,l),d),u.push(Lr(w(p,c),f,s,d));return u}updateRangeFromParsed(e,t,n,i){super.updateRangeFromParsed(e,t,n,i);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:i}=t,r=this.getParsed(e),s=r._custom,a=Cr(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){const s="reset"===r,{index:a,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),c=o.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(t,r);for(let f=t;f<t+n;f++){const t=this.getParsed(f),n=s||i(t[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,u),m=(t._stacks||{})[o.axis],g={horizontal:c,base:n.base,enableBorderRadius:!m||Cr(t._custom)||a===m._top||a===m._bottom,x:c?n.head:p.center,y:c?p.center:n.head,height:c?p.size:Math.abs(n.size),width:c?Math.abs(n.size):p.size};h&&(g.options=d||this.resolveDataElementOptions(f,e[f].active?"active":r));const v=g.options||e[f].options;Dr(g,v,m,a),Pr(g,v,u.ratio),this.updateElement(e[f],f,g,r)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),s=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),l=o&&o[n.axis],c=e=>{const t=e._parsed.find((e=>e[n.axis]===l)),r=t&&t[e.vScale.axis];if(i(r)||isNaN(r))return!0};for(const n of r)if((void 0===t||!c(n))&&((!1===s||-1===a.indexOf(n.stack)||void 0===s&&void 0===n.stack)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const i=this._getStacks(e,n),r=void 0!==t?i.indexOf(t):-1;return-1===r?i.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,i=[];let r,s;for(r=0,s=t.data.length;r<s;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||Ar(t),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:s,minBarLength:a}}=this,o=s||0,l=this.getParsed(e),c=l._custom,u=Cr(c);let d,h,f=l[t.axis],p=0,m=n?this.applyStack(t,l,n):f;m!==f&&(p=m-f,m=f),u&&(f=c.barStart,m=c.barEnd-c.barStart,0!==f&&H(f)!==H(c.barEnd)&&(p=0),p+=f);const g=i(s)||u?p:s;let v=t.getPixelForValue(g);if(d=this.chart.getDataVisibility(e)?t.getPixelForValue(p+m):v,h=d-v,Math.abs(h)<a){h=function(e,t,n){return 0!==e?H(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(h,t,o)*a,f===o&&(v-=h/2);const e=t.getPixelForDecimal(0),i=t.getPixelForDecimal(1),s=Math.min(e,i),c=Math.max(e,i);v=Math.max(Math.min(v,c),s),d=v+h,n&&!u&&(l._stacks[t.axis]._visualValues[r]=t.getValueForPixel(d)-t.getValueForPixel(v))}if(v===t.getPixelForValue(o)){const e=H(h)*t.getLineWidthForValue(o)/2;v+=e,h-=e}return{size:h,base:v,head:d,center:d+h/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,s=r.skipNull,a=l(r.maxBarThickness,1/0);let o,c;if(t.grouped){const n=s?this._getStackCount(e):t.stackCount,l="flex"===r.barThickness?function(e,t,n,i){const r=t.pixels,s=r[e];let a=e>0?r[e-1]:null,o=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===a&&(a=s-(null===o?t.end-t.start:o-s)),null===o&&(o=s+s-a);const c=s-(s-Math.min(a,o))/2*l;return{chunk:Math.abs(o-a)/2*l/i,ratio:n.barPercentage,start:c}}(e,t,r,n):function(e,t,n,r){const s=n.barThickness;let a,o;return i(s)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=s*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}(e,t,r,n),u=this._getStackIndex(this.index,this._cachedMeta.stack,s?e:void 0);o=l.start+l.chunk*u+l.chunk/2,c=Math.min(a,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(e)[n.axis],e),c=Math.min(a,t.min*t.ratio);return{base:o-c/2,head:o+c/2,center:o,size:c}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[t.axis]||n[r].hidden||n[r].draw(this._ctx)}},BubbleController:class extends Ni{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,i){const r=super.parsePrimitiveData(e,t,n,i);for(let e=0;e<r.length;e++)r[e]._custom=this.resolveDataElementOptions(e+n).radius;return r}parseArrayData(e,t,n,i){const r=super.parseArrayData(e,t,n,i);for(let e=0;e<r.length;e++){const i=t[n+e];r[e]._custom=l(i[2],this.resolveDataElementOptions(e+n).radius)}return r}parseObjectData(e,t,n,i){const r=super.parseObjectData(e,t,n,i);for(let e=0;e<r.length;e++){const i=t[n+e];r[e]._custom=l(i&&i.r&&+i.r,this.resolveDataElementOptions(e+n).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=t,s=this.getParsed(e),a=i.getLabelForValue(s.x),o=r.getLabelForValue(s.y),l=s._custom;return{label:n[e]||"",value:"("+a+", "+o+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,i){const r="reset"===i,{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(t,i),c=s.axis,u=a.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!r&&this.getParsed(d),h={},f=h[c]=r?s.getPixelForDecimal(.5):s.getPixelForValue(n[c]),p=h[u]=r?a.getBasePixel():a.getPixelForValue(n[u]);h.skip=isNaN(f)||isNaN(p),l&&(h.options=o||this.resolveDataElementOptions(d,t.active?"active":i),r&&(h.options.radius=0)),this.updateElement(t,d,h,i)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let i=super.resolveDataElementOptions(e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const r=i.radius;return"active"!==t&&(i.radius=0),i.radius+=l(n&&n._custom,r),i}},DoughnutController:Yr,LineController:class extends Ni{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:i=[],_dataset:r}=t,s=this.chart._animationsDisabled;let{start:a,count:o}=me(t,i,s);this._drawStart=a,this._drawCount=o,ge(t)&&(a=0,o=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=i;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:l},e),this.updateElements(i,a,o,e)}updateElements(e,t,n,r){const s="reset"===r,{iScale:a,vScale:o,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r),h=a.axis,f=o.axis,{spanGaps:p,segment:m}=this.options,g=z(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||s||"none"===r,y=t+n,b=e.length;let x=t>0&&this.getParsed(t-1);for(let n=0;n<b;++n){const p=e[n],b=v?p:{};if(n<t||n>=y){b.skip=!0;continue}const _=this.getParsed(n),w=i(_[f]),k=b[h]=a.getPixelForValue(_[h],n),M=b[f]=s||w?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,_,l):_[f],n);b.skip=isNaN(k)||isNaN(M)||w,b.stop=n>0&&Math.abs(_[h]-x[h])>g,m&&(b.parsed=_,b.raw=c.data[n]),d&&(b.options=u||this.resolveDataElementOptions(n,p.active?"active":r)),v||this.updateElement(p,n,b,r),x=_}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,i=e.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},PieController:class extends Yr{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:Ir,RadarController:class extends Ni{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,i){return Zt.bind(this)(e,t,n,i)}update(e){const t=this._cachedMeta,n=t.dataset,i=t.data||[],r=t.iScale.getLabels();if(n.points=i,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const s={_loop:!0,_fullLoop:r.length===i.length,options:t};this.updateElement(n,void 0,s,e)}this.updateElements(i,0,i.length,e)}updateElements(e,t,n,i){const r=this._cachedMeta.rScale,s="reset"===i;for(let a=t;a<t+n;a++){const t=e[a],n=this.resolveDataElementOptions(a,t.active?"active":i),o=r.getPointPositionForValue(a,this.getParsed(a).r),l=s?r.xCenter:o.x,c=s?r.yCenter:o.y,u={x:l,y:c,angle:o.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,a,u,i)}}},ScatterController:class extends Ni{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=t,s=this.getParsed(e),a=i.getLabelForValue(s.x),o=r.getLabelForValue(s.y);return{label:n[e]||"",value:"("+a+", "+o+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,i=this.chart._animationsDisabled;let{start:r,count:s}=me(t,n,i);if(this._drawStart=r,this._drawCount=s,ge(t)&&(r=0,s=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:s}=t;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=n;const a=this.resolveDatasetElementOptions(e);a.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:a},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(n,r,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,r){const s="reset"===r,{iScale:a,vScale:o,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(t,r),d=this.getSharedOptions(u),h=this.includeOptions(r,d),f=a.axis,p=o.axis,{spanGaps:m,segment:g}=this.options,v=z(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||s||"none"===r;let b=t>0&&this.getParsed(t-1);for(let u=t;u<t+n;++u){const t=e[u],n=this.getParsed(u),m=y?t:{},x=i(n[p]),_=m[f]=a.getPixelForValue(n[f],u),w=m[p]=s||x?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,n,l):n[p],u);m.skip=isNaN(_)||isNaN(w)||x,m.stop=u>0&&Math.abs(n[f]-b[f])>v,g&&(m.parsed=n,m.raw=c.data[u]),h&&(m.options=d||this.resolveDataElementOptions(u,t.active?"active":r)),y||this.updateElement(t,u,m,r),b=n}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,i=n.options&&n.options.borderWidth||0;if(!t.length)return i;const r=t[0].size(this.resolveDataElementOptions(0)),s=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(i,r,s)/2}}});function Hr(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function jr(e,t,n,i,r,s){const{x:a,y:o,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+i+n-c,0),h=u>0?u+i+n+c:0;let f=0;const p=r-l;if(i){const e=((u>0?u-i:0)+(d>0?d-i:0))/2;f=(p-(0!==e?p*e/(e+i):p))/2}const m=(p-Math.max(.001,p*d-n/T)/d)/2,g=l+m+f,v=r-m-f,{outerStart:y,outerEnd:b,innerStart:x,innerEnd:_}=function(e,t,n,i){const r=gn(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),s=(n-t)/2,a=Math.min(s,i*t/2),o=e=>{const t=(n-Math.min(s,e))*i/2;return J(e,0,Math.min(s,t))};return{outerStart:o(r.outerStart),outerEnd:o(r.outerEnd),innerStart:J(r.innerStart,0,a),innerEnd:J(r.innerEnd,0,a)}}(t,h,d,v-g),w=d-y,k=d-b,M=g+y/w,S=v-b/k,A=h+x,L=h+_,C=g+x/A,D=v-_/L;if(e.beginPath(),s){const t=(M+S)/2;if(e.arc(a,o,d,M,t),e.arc(a,o,d,t,S),b>0){const t=Hr(k,S,a,o);e.arc(t.x,t.y,b,S,v+P)}const n=Hr(L,v,a,o);if(e.lineTo(n.x,n.y),_>0){const t=Hr(L,D,a,o);e.arc(t.x,t.y,_,v+P,D+Math.PI)}const i=(v-_/h+(g+x/h))/2;if(e.arc(a,o,h,v-_/h,i,!0),e.arc(a,o,h,i,g+x/h,!0),x>0){const t=Hr(A,C,a,o);e.arc(t.x,t.y,x,C+Math.PI,g-P)}const r=Hr(w,g,a,o);if(e.lineTo(r.x,r.y),y>0){const t=Hr(w,M,a,o);e.arc(t.x,t.y,y,g-P,M)}}else{e.moveTo(a,o);const t=Math.cos(M)*d+a,n=Math.sin(M)*d+o;e.lineTo(t,n);const i=Math.cos(S)*d+a,r=Math.sin(S)*d+o;e.lineTo(i,r)}e.closePath()}function Fr(e,t,n=t){e.lineCap=l(n.borderCapStyle,t.borderCapStyle),e.setLineDash(l(n.borderDash,t.borderDash)),e.lineDashOffset=l(n.borderDashOffset,t.borderDashOffset),e.lineJoin=l(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=l(n.borderWidth,t.borderWidth),e.strokeStyle=l(n.borderColor,t.borderColor)}function Rr(e,t,n){e.lineTo(n.x,n.y)}function zr(e,t,n={}){const i=e.length,{start:r=0,end:s=i-1}=n,{start:a,end:o}=t,l=Math.max(r,a),c=Math.min(s,o),u=r<a&&s<a||r>o&&s>o;return{count:i,start:l,loop:t.loop,ilen:c<l&&!u?i+c-l:c-l}}function Br(e,t,n,i){const{points:r,options:s}=t,{count:a,start:o,loop:l,ilen:c}=zr(r,n,i),u=function(e){return e.stepped?Et:e.tension||"monotone"===e.cubicInterpolationMode?Ot:Rr}(s);let d,h,f,{move:p=!0,reverse:m}=i||{};for(d=0;d<=c;++d)h=r[(o+(m?c-d:d))%a],h.skip||(p?(e.moveTo(h.x,h.y),p=!1):u(e,f,h,m,s.stepped),f=h);return l&&(h=r[(o+(m?c:0))%a],u(e,f,h,m,s.stepped)),!!l}function Vr(e,t,n,i){const r=t.points,{count:s,start:a,ilen:o}=zr(r,n,i),{move:l=!0,reverse:c}=i||{};let u,d,h,f,p,m,g=0,v=0;const y=e=>(a+(c?o-e:e))%s,b=()=>{f!==p&&(e.lineTo(g,p),e.lineTo(g,f),e.lineTo(g,m))};for(l&&(d=r[y(0)],e.moveTo(d.x,d.y)),u=0;u<=o;++u){if(d=r[y(u)],d.skip)continue;const t=d.x,n=d.y,i=0|t;i===h?(n<f?f=n:n>p&&(p=n),g=(v*g+t)/++v):(b(),e.lineTo(t,n),h=i,v=0,f=p=n),m=n}b()}function Wr(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n?Br:Vr}const qr="function"==typeof Path2D;class Ur extends Hi{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;rn(this._points,n,e,i,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=En(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,i=e[t],r=this.points,s=Dn(this,{property:t,start:i,end:i});if(!s.length)return;const a=[],o=function(e){return e.stepped?un:e.tension||"monotone"===e.cubicInterpolationMode?dn:cn}(n);let l,c;for(l=0,c=s.length;l<c;++l){const{start:c,end:u}=s[l],d=r[c],h=r[u];if(d===h){a.push(d);continue}const f=o(d,h,Math.abs((i-d[t])/(h[t]-d[t])),n.stepped);f[t]=e[t],a.push(f)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return Wr(this)(e,this,t,n)}path(e,t,n){const i=this.segments,r=Wr(this);let s=this._loop;t=t||0,n=n||this.points.length-t;for(const a of i)s&=r(e,this,a,{start:t,end:t+n-1});return!!s}draw(e,t,n,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),function(e,t,n,i){qr&&!t.options.segment?function(e,t,n,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,i)&&r.closePath()),Fr(e,t.options),e.stroke(r)}(e,t,n,i):function(e,t,n,i){const{segments:r,options:s}=t,a=Wr(t);for(const o of r)Fr(e,s,o.style),e.beginPath(),a(e,t,o,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}(e,t,n,i)}(e,this,n,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function $r(e,t,n,i){const r=e.options,{[n]:s}=e.getProps([n],i);return Math.abs(t-s)<r.radius+r.hitRadius}function Xr(e,t){const{x:n,y:i,base:r,width:s,height:a}=e.getProps(["x","y","base","width","height"],t);let o,l,c,u,d;return e.horizontal?(d=a/2,o=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=s/2,o=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:o,top:c,right:l,bottom:u}}function Gr(e,t,n,i){return e?0:J(t,n,i)}function Zr(e){const t=Xr(e),n=t.right-t.left,i=t.bottom-t.top,r=function(e,t,n){const i=e.options.borderWidth,r=e.borderSkipped,s=vn(i);return{t:Gr(r.top,s.top,0,n),r:Gr(r.right,s.right,0,t),b:Gr(r.bottom,s.bottom,0,n),l:Gr(r.left,s.left,0,t)}}(e,n/2,i/2),a=function(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,a=yn(r),o=Math.min(t,n),l=e.borderSkipped,c=i||s(r);return{topLeft:Gr(!c||l.top||l.left,a.topLeft,0,o),topRight:Gr(!c||l.top||l.right,a.topRight,0,o),bottomLeft:Gr(!c||l.bottom||l.left,a.bottomLeft,0,o),bottomRight:Gr(!c||l.bottom||l.right,a.bottomRight,0,o)}}(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:a},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,a.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(r.b,r.r))}}}}function Kr(e,t,n,i){const r=null===t,s=null===n,a=e&&!(r&&s)&&Xr(e,i);return a&&(r||ee(t,a.left,a.right))&&(s||ee(n,a.top,a.bottom))}function Jr(e,t){e.rect(t.x,t.y,t.w,t.h)}function Qr(e,t,n={}){const i=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,s=(e.x+e.w!==n.x+n.w?t:0)-i,a=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+i,y:e.y+r,w:e.w+s,h:e.h+a,radius:e.radius}}var es=Object.freeze({__proto__:null,ArcElement:class extends Hi{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const i=this.getProps(["x","y"],n),{angle:r,distance:s}=$(i,{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=(this.options.spacing+this.options.borderWidth)/2,f=l(d,o-a),p=K(r,a,o)&&a!==o,m=f>=C||p,g=ee(s,c+h,u+h);return m&&g}getCenterPoint(e){const{x:t,y:n,startAngle:i,endAngle:r,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:o,spacing:l}=this.options,c=(i+r)/2,u=(s+a+l+o)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,i=(t.offset||0)/4,r=(t.spacing||0)/2,s=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>C?Math.floor(n/C):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*i,Math.sin(a)*i);const o=i*(1-Math.sin(Math.min(T,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,i,r){const{fullCircles:s,startAngle:a,circumference:o}=t;let l=t.endAngle;if(s){jr(e,t,n,i,l,r);for(let t=0;t<s;++t)e.fill();isNaN(o)||(l=a+(o%C||C))}jr(e,t,n,i,l,r),e.fill()}(e,this,o,r,s),function(e,t,n,i,r){const{fullCircles:s,startAngle:a,circumference:o,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,f="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=h,f?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let p=t.endAngle;if(s){jr(e,t,n,i,p,r);for(let t=0;t<s;++t)e.stroke();isNaN(o)||(p=a+(o%C||C))}f&&function(e,t,n){const{startAngle:i,pixelMargin:r,x:s,y:a,outerRadius:o,innerRadius:l}=t;let c=r/o;e.beginPath(),e.arc(s,a,o,i-c,n+c),l>r?(c=r/l,e.arc(s,a,l,n+c,i-c,!0)):e.arc(s,a,r,n+P,i-P),e.closePath(),e.clip()}(e,t,p),s||(jr(e,t,n,i,p,r),e.stroke())}(e,this,o,r,s),e.restore()}},BarElement:class extends Hi{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:s}=Zr(this),a=(o=s.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?Nt:Jr;var o;e.save(),s.w===r.w&&s.h===r.h||(e.beginPath(),a(e,Qr(s,t,r)),e.clip(),a(e,Qr(r,-t,s)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,Qr(r,t)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,t,n){return Kr(this,e,t,n)}inXRange(e,t){return Kr(this,e,null,t)}inYRange(e,t){return Kr(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+i)/2:t,y:r?n:(n+i)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}},LineElement:Ur,PointElement:class extends Hi{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const i=this.options,{x:r,y:s}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(e,t){return $r(this,e,"x",t)}inYRange(e,t){return $r(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;return t=Math.max(t,t&&e.hoverRadius||0),2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!Tt(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,At(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}});function ts(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function ns(e,t,{horizontal:n,minRotation:i}){const r=W(i),s=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/s,a)}class is extends $i{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return i(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const s=e=>i=t?i:e,a=e=>r=n?r:e;if(e){const e=H(i),t=H(r);e<0&&t<0?a(0):e>0&&t>0&&s(0)}if(i===r){let t=0===r?1:Math.abs(.05*r);a(r+t),e||s(i-t)}this.min=i,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:i}=e;return i?(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function(e,t){const n=[],{bounds:r,step:s,min:a,max:o,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=e,f=s||1,p=u-1,{min:m,max:g}=t,v=!i(a),y=!i(o),b=!i(c),x=(g-m)/(d+1);let _,w,k,M,S=F((g-m)/p/f)*f;if(S<1e-14&&!v&&!y)return[{value:m},{value:g}];M=Math.ceil(g/S)-Math.floor(m/S),M>p&&(S=F(M*S/p/f)*f),i(l)||(_=Math.pow(10,l),S=Math.ceil(S*_)/_),"ticks"===r?(w=Math.floor(m/S)*S,k=Math.ceil(g/S)*S):(w=m,k=g),v&&y&&s&&B((o-a)/s,S/1e3)?(M=Math.round(Math.min((o-a)/S,u)),S=(o-a)/M,w=a,k=o):b?(w=v?a:w,k=y?o:k,M=c-1,S=(k-w)/M):(M=(k-w)/S,M=j(M,Math.round(M),S/1e3)?Math.round(M):Math.ceil(M));const A=Math.max(U(S),U(w));_=Math.pow(10,i(l)?A:l),w=Math.round(w*_)/_,k=Math.round(k*_)/_;let L=0;for(v&&(h&&w!==a?(n.push({value:a}),w<a&&L++,j(Math.round((w+L*S)*_)/_,a,ns(a,x,e))&&L++):w<a&&L++);L<M;++L){const e=Math.round((w+L*S)*_)/_;if(y&&e>o)break;n.push({value:e})}return y&&h&&k!==o?n.length&&j(n[n.length-1].value,o,ns(o,x,e))?n[n.length-1].value=o:n.push({value:o}):y&&k!==o||n.push({value:k}),n}({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&V(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const i=(n-t)/Math.max(e.length-1,1)/2;t-=i,n+=i}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return et(e,this.chart.options.locale,this.options.ticks.format)}}class rs extends is{static id="linear";static defaults={ticks:{callback:nt.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=a(e)?e:0,this.max=a(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=W(this.options.ticks.minRotation),i=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/i))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const ss=e=>Math.floor(N(e)),as=(e,t)=>Math.pow(10,ss(e)+t);function os(e){return 1==e/Math.pow(10,ss(e))}function ls(e,t,n){const i=Math.pow(10,n),r=Math.floor(e/i);return Math.ceil(t/i)-r}class cs extends $i{static id="logarithmic";static defaults={ticks:{callback:nt.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=is.prototype.parse.apply(this,[e,t]);if(0!==n)return a(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=a(e)?Math.max(0,e):null,this.max=a(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!a(this._userMin)&&(this.min=e===as(this.min,0)?as(this.min,-1):as(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,i=this.max;const r=t=>n=e?n:t,s=e=>i=t?i:e;n===i&&(n<=0?(r(1),s(10)):(r(as(n,-1)),s(as(i,1)))),n<=0&&r(as(i,-1)),i<=0&&s(as(n,1)),this.min=n,this.max=i}buildTicks(){const e=this.options,t=function(e,{min:t,max:n}){t=o(e.min,t);const i=[],r=ss(t);let s=function(e,t){let n=ss(t-e);for(;ls(e,t,n)>10;)n++;for(;ls(e,t,n)<10;)n--;return Math.min(n,ss(e))}(t,n),a=s<0?Math.pow(10,Math.abs(s)):1;const l=Math.pow(10,s),c=r>s?Math.pow(10,r):0,u=Math.round((t-c)*a)/a,d=Math.floor((t-c)/l/10)*l*10;let h=Math.floor((u-d)/Math.pow(10,s)),f=o(e.min,Math.round((c+d+h*Math.pow(10,s))*a)/a);for(;f<n;)i.push({value:f,major:os(f),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(s++,h=2,a=s>=0?1:a),f=Math.round((c+d+h*Math.pow(10,s))*a)/a;const p=o(e.max,f);return i.push({value:p,major:os(p),significand:h}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&V(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":et(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=N(e),this._valueRange=N(this.max)-N(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(N(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function us(e){const t=e.ticks;if(t.display&&e.display){const e=bn(t.backdropPadding);return l(t.font&&t.font.size,ot.font.size)+e.height}return 0}function ds(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function hs(e,t,n,i,r){const s=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let o=0,l=0;i.start<t.l?(o=(t.l-i.start)/s,e.l=Math.min(e.l,t.l-o)):i.end>t.r&&(o=(i.end-t.r)/s,e.r=Math.max(e.r,t.r+o)),r.start<t.t?(l=(t.t-r.start)/a,e.t=Math.min(e.t,t.t-l)):r.end>t.b&&(l=(r.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function fs(e,t,n){const i=e.drawingArea,{extra:r,additionalAngle:s,padding:a,size:o}=n,l=e.getPointPosition(t,i+r+a,s),c=Math.round(q(Z(l.angle+P))),u=function(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}(l.y,o.h,c),d=function(e){return 0===e||180===e?"center":e<180?"left":"right"}(c),h=function(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}(l.x,o.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+o.w,bottom:u+o.h}}function ps(e,t){if(!t)return!0;const{left:n,top:i,right:r,bottom:s}=e;return!(Tt({x:n,y:i},t)||Tt({x:n,y:s},t)||Tt({x:r,y:i},t)||Tt({x:r,y:s},t))}function ms(e,t,n){const{left:r,top:s,right:a,bottom:o}=n,{backdropColor:l}=t;if(!i(l)){const n=yn(t.borderRadius),i=bn(t.backdropPadding);e.fillStyle=l;const c=r-i.left,u=s-i.top,d=a-r+i.width,h=o-s+i.height;Object.values(n).some((e=>0!==e))?(e.beginPath(),Nt(e,{x:c,y:u,w:d,h:h,radius:n}),e.fill()):e.fillRect(c,u,d,h)}}function gs(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,C);else{let n=e.getPointPosition(0,t);r.moveTo(n.x,n.y);for(let s=1;s<i;s++)n=e.getPointPosition(s,t),r.lineTo(n.x,n.y)}}class vs extends is{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:nt.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=bn(us(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=a(e)&&!isNaN(e)?e:0,this.max=a(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/us(this.options))}generateTickLabels(e){is.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=d(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?function(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],s=[],a=e._pointLabels.length,o=e.options.pointLabels,l=o.centerPointLabels?T/a:0;for(let h=0;h<a;h++){const a=o.setContext(e.getPointLabelContext(h));s[h]=a.padding;const f=e.getPointPosition(h,e.drawingArea+s[h],l),p=xn(a.font),m=(c=e.ctx,u=p,d=r(d=e._pointLabels[h])?d:[d],{w:kt(c,u.string,d),h:d.length*u.lineHeight});i[h]=m;const g=Z(e.getIndexAngle(h)+l),v=Math.round(q(g));hs(n,t,g,ds(v,f.x,m.w,0,180),ds(v,f.y,m.h,90,270))}var c,u,d;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const i=[],r=e._pointLabels.length,s=e.options,{centerPointLabels:a,display:o}=s.pointLabels,l={extra:us(s)/2,additionalAngle:a?T/r:0};let c;for(let s=0;s<r;s++){l.padding=n[s],l.size=t[s];const r=fs(e,s,l);i.push(r),"auto"===o&&(r.visible=ps(r,c),r.visible&&(c=r))}return i}(e,i,s)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,i){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,i))}getIndexAngle(e){return Z(e*(C/(this._pointLabels.length||1))+W(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(i(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(i(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return kn(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t,n=0){const i=this.getIndexAngle(e)-P+n;return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter,angle:i}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:i,bottom:r}=this._pointLabelItems[e];return{left:t,top:n,right:i,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),gs(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:i,border:r}=t,s=this._pointLabels.length;let a,o,l;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let r=t-1;r>=0;r--){const t=e._pointLabelItems[r];if(!t.visible)continue;const s=i.setContext(e.getPointLabelContext(r));ms(n,s,t);const a=xn(s.font),{x:o,y:l,textAlign:c}=t;It(n,e._pointLabels[r],o,l+a.lineHeight/2,a,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),i.display&&this.ticks.forEach(((e,t)=>{if(0!==t||0===t&&this.min<0){o=this.getDistanceFromCenterForValue(e.value);const n=this.getContext(t),a=i.setContext(n),l=r.setContext(n);!function(e,t,n,i,r){const s=e.ctx,a=t.circular,{color:o,lineWidth:l}=t;!a&&!i||!o||!l||n<0||(s.save(),s.strokeStyle=o,s.lineWidth=l,s.setLineDash(r.dash||[]),s.lineDashOffset=r.dashOffset,s.beginPath(),gs(e,n,a,i),s.closePath(),s.stroke(),s.restore())}(this,a,o,s,l)}})),n.display){for(e.save(),a=s-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:r,lineWidth:s}=i;s&&r&&(e.lineWidth=s,e.strokeStyle=r,e.setLineDash(i.borderDash),e.lineDashOffset=i.borderDashOffset,o=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),l=this.getPointPosition(a,o),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let r,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((i,a)=>{if(0===a&&this.min>=0&&!t.reverse)return;const o=n.setContext(this.getContext(a)),l=xn(o.font);if(r=this.getDistanceFromCenterForValue(this.ticks[a].value),o.showLabelBackdrop){e.font=l.string,s=e.measureText(i.label).width,e.fillStyle=o.backdropColor;const t=bn(o.backdropPadding);e.fillRect(-s/2-t.left,-r-l.size/2-t.top,s+t.width,l.size+t.height)}It(e,i.label,0,-r,l,{color:o.color,strokeColor:o.textStrokeColor,strokeWidth:o.textStrokeWidth})})),e.restore()}drawTitle(){}}const ys={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bs=Object.keys(ys);function xs(e,t){return e-t}function _s(e,t){if(i(t))return null;const n=e._adapter,{parser:r,round:s,isoWeekday:o}=e._parseOpts;let l=t;return"function"==typeof r&&(l=r(l)),a(l)||(l="string"==typeof r?n.parse(l,r):n.parse(l)),null===l?null:(s&&(l="week"!==s||!z(o)&&!0!==o?n.startOf(l,s):n.startOf(l,"isoWeek",o)),+l)}function ws(e,t,n,i){const r=bs.length;for(let s=bs.indexOf(e);s<r-1;++s){const e=ys[bs[s]],r=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(r*e.size))<=i)return bs[s]}return bs[r-1]}function ks(e,t,n){if(n){if(n.length){const{lo:i,hi:r}=te(n,t);e[n[i]>=t?n[i]:n[r]]=!0}}else e[t]=!0}function Ms(e,t,n){const i=[],r={},s=t.length;let a,o;for(a=0;a<s;++a)o=t[a],r[o]=a,i.push({value:o,major:!1});return 0!==s&&n?function(e,t,n,i){const r=e._adapter,s=+r.startOf(t[0].value,i),a=t[t.length-1].value;let o,l;for(o=s;o<=a;o=+r.add(o,1,i))l=n[o],l>=0&&(t[l].major=!0);return t}(e,i,r,n):i}class Ss extends $i{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const n=e.time||(e.time={}),i=this._adapter=new Sr._date(e.adapters.date);i.init(t),y(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:_s(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:i,max:r,minDefined:s,maxDefined:o}=this.getUserBounds();function l(e){s||isNaN(e.min)||(i=Math.min(i,e.min)),o||isNaN(e.max)||(r=Math.max(r,e.max))}s&&o||(l(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||l(this.getMinMax(!1))),i=a(i)&&!isNaN(i)?i:+t.startOf(Date.now(),n),r=a(r)&&!isNaN(r)?r:+t.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,s=re(i,r,this.max);return this._unit=t.unit||(n.autoSkip?ws(t.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(e,t,n,i,r){for(let s=bs.length-1;s>=bs.indexOf(n);s--){const n=bs[s];if(ys[n].common&&e._adapter.diff(r,i,n)>=t-1)return n}return bs[n?bs.indexOf(n):0]}(this,s.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=bs.indexOf(e)+1,n=bs.length;t<n;++t)if(ys[bs[t]].common)return bs[t]}(this._unit):void 0,this.initOffsets(i),e.reverse&&s.reverse(),Ms(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(e=[]){let t,n,i=0,r=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),i=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),r=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;i=J(i,0,s),r=J(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){const e=this._adapter,t=this.min,n=this.max,i=this.options,r=i.time,s=r.unit||ws(r.minUnit,t,n,this._getLabelCapacity(t)),a=l(i.ticks.stepSize,1),o="week"===s&&r.isoWeekday,c=z(o)||!0===o,u={};let d,h,f=t;if(c&&(f=+e.startOf(f,"isoWeek",o)),f=+e.startOf(f,c?"day":s),e.diff(n,t,s)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+s);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=f,h=0;d<n;d=+e.add(d,a,s),h++)ks(u,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||ks(u,d,p),Object.keys(u).sort(xs).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,i=this._unit,r=t||n[i];return this._adapter.format(e,r)}_tickFormatFunction(e,t,n,i){const r=this.options,s=r.ticks.callback;if(s)return d(s,[e,t,n],this);const a=r.time.displayFormats,o=this._unit,l=this._majorUnit,c=o&&a[o],u=l&&a[l],h=n[t],f=l&&u&&h&&h.major;return this._adapter.format(e,i||(f?u:c))}generateTickLabels(e){let t,n,i;for(t=0,n=e.length;t<n;++t)i=e[t],i.label=this._tickFormatFunction(i.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,i=W(this.isHorizontal()?t.maxRotation:t.minRotation),r=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:n*r+a*s,h:n*s+a*r}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,i=n[t.unit]||n.millisecond,r=this._tickFormatFunction(e,0,Ms(this,[e],this._majorUnit),i),s=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(e=0,t=i.length;e<t;++e)n=n.concat(i[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const i=this.getLabels();for(t=0,n=i.length;t<n;++t)e.push(_s(this,i[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return le(e.sort(xs))}}function As(e,t,n){let i,r,s,a,o=0,l=e.length-1;n?(t>=e[o].pos&&t<=e[l].pos&&({lo:o,hi:l}=ne(e,"pos",t)),({pos:i,time:s}=e[o]),({pos:r,time:a}=e[l])):(t>=e[o].time&&t<=e[l].time&&({lo:o,hi:l}=ne(e,"time",t)),({time:i,pos:s}=e[o]),({time:r,pos:a}=e[l]));const c=r-i;return c?s+(a-s)*(t-i)/c:s}var Ls=Object.freeze({__proto__:null,CategoryScale:class extends $i{static id="category";static defaults={ticks:{callback:ts}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:i}of t)e[n]===i&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(i(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:J(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:function(e,t,n,i){const r=e.indexOf(t);return-1===r?((e,t,n,i)=>("string"==typeof t?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,i):r!==e.lastIndexOf(t)?n:r}(n,e,l(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)i.push({value:n});return i}getLabelForValue(e){return ts.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:rs,LogarithmicScale:cs,RadialLinearScale:vs,TimeScale:Ss,TimeSeriesScale:class extends Ss{static id="timeseries";static defaults=Ss.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=As(t,this.min),this._tableRange=As(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,i=[],r=[];let s,a,o,l,c;for(s=0,a=e.length;s<a;++s)l=e[s],l>=t&&l<=n&&i.push(l);if(i.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(s=0,a=i.length;s<a;++s)c=i[s+1],o=i[s-1],l=i[s],Math.round((c+o)/2)!==l&&r.push({time:l,pos:s/(a-1)});return r}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return n.includes(e)&&n.length||n.splice(0,0,e),n.includes(t)&&1!==n.length||n.push(t),n.sort(((e,t)=>e-t))}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(As(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return As(this._table,n*this._tableRange+this._minPos,!0)}}});const Ts=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Cs=Ts.map((e=>e.replace("rgb(","rgba(").replace(")",", 0.5)")));function Ds(e){return Ts[e%Ts.length]}function Es(e){return Cs[e%Cs.length]}function Os(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var Ps={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:i},options:r}=e.config,{elements:s}=r,a=Os(i)||(o=r)&&(o.borderColor||o.backgroundColor)||s&&Os(s)||"rgba(0,0,0,0.1)"!==ot.borderColor||"rgba(0,0,0,0.1)"!==ot.backgroundColor;var o;if(!n.forceOverride&&a)return;const l=function(e){let t=0;return(n,i)=>{const r=e.getDatasetMeta(i).controller;r instanceof Yr?t=function(e,t){return e.backgroundColor=e.data.map((()=>Ds(t++))),t}(n,t):r instanceof Ir?t=function(e,t){return e.backgroundColor=e.data.map((()=>Es(t++))),t}(n,t):r&&(t=function(e,t){return e.borderColor=Ds(t),e.backgroundColor=Es(t),++t}(n,t))}}(e);i.forEach(l)}};function Ys(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Is(e){e.data.datasets.forEach((e=>{Ys(e)}))}var Ns={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void Is(e);const r=e.width;e.data.datasets.forEach(((t,s)=>{const{_data:a,indexAxis:o}=t,l=e.getDatasetMeta(s),c=a||t.data;if("y"===_n([o,e.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type)return;if(e.options.parsing)return;let d,{start:h,count:f}=function(e,t){const n=t.length;let i,r=0;const{iScale:s}=e,{min:a,max:o,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(r=J(ne(t,s.axis,a).lo,0,n-1)),i=c?J(ne(t,s.axis,o).hi+1,r,n)-r:n-r,{start:r,count:i}}(l,c);if(f<=(n.threshold||4*r))Ys(t);else{switch(i(a)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":d=function(e,t,n,i,r){const s=r.samples||i;if(s>=n)return e.slice(t,t+n);const a=[],o=(n-2)/(s-2);let l=0;const c=t+n-1;let u,d,h,f,p,m=t;for(a[l++]=e[m],u=0;u<s-2;u++){let i,r=0,s=0;const c=Math.floor((u+1)*o)+1+t,g=Math.min(Math.floor((u+2)*o)+1,n)+t,v=g-c;for(i=c;i<g;i++)r+=e[i].x,s+=e[i].y;r/=v,s/=v;const y=Math.floor(u*o)+1+t,b=Math.min(Math.floor((u+1)*o)+1,n)+t,{x:x,y:_}=e[m];for(h=f=-1,i=y;i<b;i++)f=.5*Math.abs((x-r)*(e[i].y-_)-(x-e[i].x)*(s-_)),f>h&&(h=f,d=e[i],p=i);a[l++]=d,m=p}return a[l++]=e[c],a}(c,h,f,r,n);break;case"min-max":d=function(e,t,n,r){let s,a,o,l,c,u,d,h,f,p,m=0,g=0;const v=[],y=t+n-1,b=e[t].x,x=e[y].x-b;for(s=t;s<t+n;++s){a=e[s],o=(a.x-b)/x*r,l=a.y;const t=0|o;if(t===c)l<f?(f=l,u=s):l>p&&(p=l,d=s),m=(g*m+a.x)/++g;else{const n=s-1;if(!i(u)&&!i(d)){const t=Math.min(u,d),i=Math.max(u,d);t!==h&&t!==n&&v.push({...e[t],x:m}),i!==h&&i!==n&&v.push({...e[i],x:m})}s>0&&n!==h&&v.push(e[n]),v.push(a),c=t,g=0,f=p=l,u=d=h=s}}return v}(c,h,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=d}}))},destroy(e){Is(e)}};function Hs(e,t,n,i){if(i)return;let r=t[e],s=n[e];return"angle"===e&&(r=Z(r),s=Z(s)),{property:e,start:r,end:s}}function js(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Fs(e,t,n,i){return e&&t?i(e[n],t[n]):e?e[n]:t?t[n]:0}function Rs(e,t){let n=[],i=!1;return r(e)?(i=!0,n=e):n=function(e,t){const{x:n=null,y:i=null}=e||{},r=t.points,s=[];return t.segments.forEach((({start:e,end:t})=>{t=js(e,t,r);const a=r[e],o=r[t];null!==i?(s.push({x:a.x,y:i}),s.push({x:o.x,y:i})):null!==n&&(s.push({x:n,y:a.y}),s.push({x:n,y:o.y}))})),s}(e,t),n.length?new Ur({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function zs(e){return e&&!1!==e.fill}function Bs(e,t,n){let i=e[t].fill;const r=[t];let s;if(!n)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!a(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;r.push(i),i=s.fill}return!1}function Vs(e,t,n){const i=function(e){const t=e.options,n=t.fill;let i=l(n&&n.target,n);return void 0===i&&(i=!!t.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(e);if(s(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return a(r)&&Math.floor(r)===r?function(e,t,n,i){return"-"!==e&&"+"!==e||(n=t+n),!(n===t||n<0||n>=i)&&n}(i[0],t,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Ws(e,t,n){const i=[];for(let r=0;r<n.length;r++){const s=n[r],{first:a,last:o,point:l}=qs(s,t,"x");if(!(!l||a&&o))if(a)i.unshift(l);else if(e.push(l),!o)break}e.push(...i)}function qs(e,t,n){const i=e.interpolate(t,n);if(!i)return{};const r=i[n],s=e.segments,a=e.points;let o=!1,l=!1;for(let e=0;e<s.length;e++){const t=s[e],i=a[t.start][n],c=a[t.end][n];if(ee(r,i,c)){o=r===i,l=r===c;break}}return{first:o,last:l,point:i}}class Us{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:i,y:r,radius:s}=this;return t=t||{start:0,end:C},e.arc(i,r,s,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:i}=this,r=e.angle;return{x:t+Math.cos(r)*i,y:n+Math.sin(r)*i,angle:r}}}function $s(e){const{chart:t,fill:n,line:i}=e;if(a(n))return function(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:i}=e,r=[],s=i.segments,a=i.points,o=function(e,t){const n=[],i=e.getMatchingVisibleMetas("line");for(let e=0;e<i.length;e++){const r=i[e];if(r.index===t)break;r.hidden||n.unshift(r.dataset)}return n}(t,n);o.push(Rs({x:null,y:t.bottom},i));for(let e=0;e<s.length;e++){const t=s[e];for(let e=t.start;e<=t.end;e++)Ws(r,a[e],o)}return new Ur({points:r,options:{}})}(e);if("shape"===n)return!0;const r=function(e){return(e.scale||{}).getPointPositionForValue?function(e){const{scale:t,fill:n}=e,i=t.options,r=t.getLabels().length,a=i.reverse?t.max:t.min,o=function(e,t,n){let i;return i="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:s(e)?e.value:t.getBaseValue(),i}(n,t,a),l=[];if(i.grid.circular){const e=t.getPointPositionForValue(0,a);return new Us({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(o)})}for(let e=0;e<r;++e)l.push(t.getPointPositionForValue(e,o));return l}(e):function(e){const{scale:t={},fill:n}=e,i=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:s(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if(a(i)){const e=t.isHorizontal();return{x:e?i:null,y:e?null:i}}return null}(e)}(e);return r instanceof Us?r:Rs(r,i)}function Xs(e,t,n){const i=$s(t),{chart:r,index:s,line:a,scale:o,axis:l}=t,c=a.options,u=c.fill,d=c.backgroundColor,{above:h=d,below:f=d}=u||{},p=r.getDatasetMeta(s),m=Nn(r,p);i&&a.points.length&&(Ct(e,n),function(e,t){const{line:n,target:i,above:r,below:s,area:a,scale:o,clip:l}=t,c=n._loop?"angle":t.axis;e.save(),"x"===c&&s!==r&&(Gs(e,i,a.top),Zs(e,{line:n,target:i,color:r,scale:o,property:c,clip:l}),e.restore(),e.save(),Gs(e,i,a.bottom)),Zs(e,{line:n,target:i,color:s,scale:o,property:c,clip:l}),e.restore()}(e,{line:a,target:i,above:h,below:f,area:n,scale:o,axis:l,clip:m}),Dt(e))}function Gs(e,t,n){const{segments:i,points:r}=t;let s=!0,a=!1;e.beginPath();for(const o of i){const{start:i,end:l}=o,c=r[i],u=r[js(i,l,r)];s?(e.moveTo(c.x,c.y),s=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,o,{move:a}),a?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Zs(e,t){const{line:n,target:i,property:r,color:s,scale:a,clip:o}=t,l=function(e,t,n){const i=e.segments,r=e.points,s=t.points,a=[];for(const e of i){let{start:i,end:o}=e;o=js(i,o,r);const l=Hs(n,r[i],r[o],e.loop);if(!t.segments){a.push({source:e,target:l,start:r[i],end:r[o]});continue}const c=Dn(t,l);for(const t of c){const i=Hs(n,s[t.start],s[t.end],t.loop),o=Cn(e,r,i);for(const e of o)a.push({source:e,target:t,start:{[n]:Fs(l,i,"start",Math.max)},end:{[n]:Fs(l,i,"end",Math.min)}})}}return a}(n,i,r);for(const{source:t,target:c,start:u,end:d}of l){const{style:{backgroundColor:l=s}={}}=t,h=!0!==i;e.save(),e.fillStyle=l,Ks(e,a,o,h&&Hs(r,u,d)),e.beginPath();const f=!!n.pathSegment(e,t);let p;if(h){f?e.closePath():Js(e,i,d,r);const t=!!i.pathSegment(e,c,{move:f,reverse:!0});p=f&&t,p||Js(e,i,u,r)}e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function Ks(e,t,n,i){const r=t.chart.chartArea,{property:s,start:a,end:o}=i||{};if("x"===s||"y"===s){let t,i,l,c;"x"===s?(t=a,i=r.top,l=o,c=r.bottom):(t=r.left,i=a,l=r.right,c=o),e.beginPath(),n&&(t=Math.max(t,n.left),l=Math.min(l,n.right),i=Math.max(i,n.top),c=Math.min(c,n.bottom)),e.rect(t,i,l-t,c-i),e.clip()}}function Js(e,t,n,i){const r=t.interpolate(n,i);r&&e.lineTo(r.x,r.y)}var Qs={id:"filler",afterDatasetsUpdate(e,t,n){const i=(e.data.datasets||[]).length,r=[];let s,a,o,l;for(a=0;a<i;++a)s=e.getDatasetMeta(a),o=s.dataset,l=null,o&&o.options&&o instanceof Ur&&(l={visible:e.isDatasetVisible(a),index:a,fill:Vs(o,a,i),chart:e,axis:s.controller.options.indexAxis,scale:s.vScale,line:o}),s.$filler=l,r.push(l);for(a=0;a<i;++a)l=r[a],l&&!1!==l.fill&&(l.fill=Bs(r,a,n.propagate))},beforeDraw(e,t,n){const i="beforeDraw"===n.drawTime,r=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let t=r.length-1;t>=0;--t){const n=r[t].$filler;n&&(n.line.updateControlPoints(s,n.axis),i&&n.fill&&Xs(e.ctx,n,s))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=e.getSortedVisibleDatasetMetas();for(let t=i.length-1;t>=0;--t){const n=i[t].$filler;zs(n)&&Xs(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){const i=t.meta.$filler;zs(i)&&"beforeDatasetDraw"===n.drawTime&&Xs(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ea=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}};class ta extends Hi{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=d(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,i=xn(n.font),r=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:o}=ea(n,r);let l,c;t.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(s,r,a,o)+10):(c=this.maxHeight,l=this._fitCols(s,i,a,o)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,i){const{ctx:r,maxWidth:s,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+a;let u=e;r.textAlign="left",r.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((e,f)=>{const p=n+t/2+r.measureText(e.text).width;(0===f||l[l.length-1]+p+2*a>s)&&(u+=c,l[l.length-(f>0?0:1)]=0,h+=c,d++),o[f]={left:0,top:h,row:d,width:p,height:i},l[l.length-1]+=p+a})),u}_fitCols(e,t,n,i){const{ctx:r,maxHeight:s,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-e;let u=a,d=0,h=0,f=0,p=0;return this.legendItems.forEach(((e,s)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,i,r){const s=function(e,t,n,i){let r=e.text;return r&&"string"!=typeof r&&(r=r.reduce(((e,t)=>e.length>t.length?e:t))),t+n.size/2+i.measureText(r).width}(i,e,t,n),a=function(e,t,n){let i=e;return"string"!=typeof t.text&&(i=na(t,n)),i}(r,i,t.lineHeight);return{itemWidth:s,itemHeight:a}}(n,t,r,e,i);s>0&&h+g+2*a>c&&(u+=d+a,l.push({width:d,height:h}),f+=d+a,p++,d=h=0),o[s]={left:f,top:h,col:p,width:m,height:g},d=Math.max(d,m),h+=g+a})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:i},rtl:r}}=this,s=Mn(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=fe(n,this.left+i,this.right-this.lineWidths[r]);for(const o of t)r!==o.row&&(r=o.row,a=fe(n,this.left+i,this.right-this.lineWidths[r])),o.top+=this.top+e+i,o.left=s.leftForLtr(s.x(a),o.width),a+=o.width+i}else{let r=0,a=fe(n,this.top+e+i,this.bottom-this.columnSizes[r].height);for(const o of t)o.col!==r&&(r=o.col,a=fe(n,this.top+e+i,this.bottom-this.columnSizes[r].height)),o.top=a,o.left+=this.left+i,o.left=s.leftForLtr(s.x(o.left),o.width),a+=o.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;Ct(e,this),this._draw(),Dt(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:i}=this,{align:r,labels:s}=e,a=ot.color,o=Mn(e.rtl,this.left,this.width),c=xn(s.font),{padding:u}=s,d=c.size,h=d/2;let f;this.drawTitle(),i.textAlign=o.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:p,boxHeight:m,itemHeight:g}=ea(s,d),v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:fe(r,this.left+u,this.right-n[0]),y:this.top+u+y,line:0}:{x:this.left+u,y:fe(r,this.top+y+u,this.bottom-t[0].height),line:0},Sn(this.ctx,e.textDirection);const b=g+u;this.legendItems.forEach(((x,_)=>{i.strokeStyle=x.fontColor,i.fillStyle=x.fontColor;const w=i.measureText(x.text).width,k=o.textAlign(x.textAlign||(x.textAlign=s.textAlign)),M=p+h+w;let S=f.x,A=f.y;if(o.setWidth(this.width),v?_>0&&S+M+u>this.right&&(A=f.y+=b,f.line++,S=f.x=fe(r,this.left+u,this.right-n[f.line])):_>0&&A+b>this.bottom&&(S=f.x=S+t[f.line].width+u,f.line++,A=f.y=fe(r,this.top+y+u,this.bottom-t[f.line].height)),function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;i.save();const r=l(n.lineWidth,1);if(i.fillStyle=l(n.fillStyle,a),i.lineCap=l(n.lineCap,"butt"),i.lineDashOffset=l(n.lineDashOffset,0),i.lineJoin=l(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=l(n.strokeStyle,a),i.setLineDash(l(n.lineDash,[])),s.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=o.xPlus(e,p/2);Lt(i,a,l,t+h,s.pointStyleWidth&&p)}else{const s=t+Math.max((d-m)/2,0),a=o.leftForLtr(e,p),l=yn(n.borderRadius);i.beginPath(),Object.values(l).some((e=>0!==e))?Nt(i,{x:a,y:s,w:p,h:m,radius:l}):i.rect(a,s,p,m),i.fill(),0!==r&&i.stroke()}i.restore()}(o.x(S),A,x),S=pe(k,S+p+h,v?S+M:this.right,e.rtl),function(e,t,n){It(i,n.text,e,t+g/2,c,{strikethrough:n.hidden,textAlign:o.textAlign(n.textAlign)})}(o.x(S),A,x),v)f.x+=M+u;else if("string"!=typeof x.text){const e=c.lineHeight;f.y+=na(x,e)+u}else f.y+=b})),An(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=xn(t.font),i=bn(t.padding);if(!t.display)return;const r=Mn(e.rtl,this.left,this.width),s=this.ctx,a=t.position,o=n.size/2,l=i.top+o;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=fe(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+fe(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const h=fe(a,u,u+d);s.textAlign=r.textAlign(he(a)),s.textBaseline="middle",s.strokeStyle=t.color,s.fillStyle=t.color,s.font=n.string,It(s,t.text,h,c,n)}_computeTitleHeight(){const e=this.options.title,t=xn(e.font),n=bn(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,i,r;if(ee(e,this.left,this.right)&&ee(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(i=r[n],ee(e,i.left,i.left+i.width)&&ee(t,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){return!("mousemove"!==e&&"mouseout"!==e||!t.onHover&&!t.onLeave)||!(!t.onClick||"click"!==e&&"mouseup"!==e)}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const s=this._hoveredItem,a=(r=n,null!==(i=s)&&null!==r&&i.datasetIndex===r.datasetIndex&&i.index===r.index);s&&!a&&d(t.onLeave,[e,s,this],this),this._hoveredItem=n,n&&!a&&d(t.onHover,[e,n,this],this)}else n&&d(t.onClick,[e,n,this],this);var i,r}}function na(e,t){return t*(e.text?e.text.length:0)}var ia={id:"legend",_element:ta,start(e,t,n){const i=e.legend=new ta({ctx:e.ctx,options:n,chart:e});ti.configure(e,i,n),ti.addBox(e,i)},stop(e){ti.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;ti.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:s,useBorderRadius:a,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=bn(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:s,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:i||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:a&&(o||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ra extends Hi{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const i=r(n.text)?n.text.length:1;this._padding=bn(n.padding);const s=i*xn(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:i,right:r,options:s}=this,a=s.align;let o,l,c,u=0;return this.isHorizontal()?(l=fe(a,n,r),c=t+e,o=r-n):("left"===s.position?(l=n+e,c=fe(a,i,t),u=-.5*T):(l=r-e,c=fe(a,t,i),u=.5*T),o=i-t),{titleX:l,titleY:c,maxWidth:o,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=xn(t.font),i=n.lineHeight/2+this._padding.top,{titleX:r,titleY:s,maxWidth:a,rotation:o}=this._drawArgs(i);It(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:o,textAlign:he(t.align),textBaseline:"middle",translation:[r,s]})}}var sa={id:"title",_element:ra,start(e,t,n){!function(e,t){const n=new ra({ctx:e.ctx,options:t,chart:e});ti.configure(e,n,t),ti.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;ti.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;ti.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const aa=new WeakMap;var oa={id:"subtitle",start(e,t,n){const i=new ra({ctx:e.ctx,options:n,chart:e});ti.configure(e,i,n),ti.addBox(e,i),aa.set(e,i)},stop(e){ti.removeBox(e,aa.get(e)),aa.delete(e)},beforeUpdate(e,t,n){const i=aa.get(e);ti.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const la={average(e){if(!e.length)return!1;let t,n,i=new Set,r=0,s=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();i.add(e.x),r+=e.y,++s}}return 0!==s&&0!==i.size&&{x:[...i].reduce(((e,t)=>e+t))/i.size,y:r/s}},nearest(e,t){if(!e.length)return!1;let n,i,r,s=t.x,a=t.y,o=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){const i=e[n].element;if(i&&i.hasValue()){const e=X(t,i.getCenterPoint());e<o&&(o=e,r=i)}}if(r){const e=r.tooltipPosition();s=e.x,a=e.y}return{x:s,y:a}}};function ca(e,t){return t&&(r(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ua(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function da(e,t){const{element:n,datasetIndex:i,index:r}=t,s=e.getDatasetMeta(i).controller,{label:a,value:o}=s.getLabelAndValue(r);return{chart:e,label:a,parsed:s.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:o,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function ha(e,t){const n=e.chart.ctx,{body:i,footer:r,title:s}=e,{boxWidth:a,boxHeight:o}=t,l=xn(t.bodyFont),c=xn(t.titleFont),u=xn(t.footerFont),d=s.length,f=r.length,p=i.length,m=bn(t.padding);let g=m.height,v=0,y=i.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);y+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y&&(g+=p*(t.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(y-p)*l.lineHeight+(y-1)*t.bodySpacing),f&&(g+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let b=0;const x=function(e){v=Math.max(v,n.measureText(e).width+b)};return n.save(),n.font=c.string,h(e.title,x),n.font=l.string,h(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?a+2+t.boxPadding:0,h(i,(e=>{h(e.before,x),h(e.lines,x),h(e.after,x)})),b=0,n.font=u.string,h(e.footer,x),n.restore(),v+=m.width,{width:v,height:g}}function fa(e,t,n,i){const{x:r,width:s}=n,{width:a,chartArea:{left:o,right:l}}=e;let c="center";return"center"===i?c=r<=(o+l)/2?"left":"right":r<=s/2?c="left":r>=a-s/2&&(c="right"),function(e,t,n,i){const{x:r,width:s}=i,a=n.caretSize+n.caretPadding;return"left"===e&&r+s+a>t.width||"right"===e&&r-s-a<0||void 0}(c,e,t,n)&&(c="center"),c}function pa(e,t,n){const i=n.yAlign||t.yAlign||function(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||fa(e,t,n,i),yAlign:i}}function ma(e,t,n,i){const{caretSize:r,caretPadding:s,cornerRadius:a}=e,{xAlign:o,yAlign:l}=n,c=r+s,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=yn(a);let p=function(e,t){let{x:n,width:i}=e;return"right"===t?n-=i:"center"===t&&(n-=i/2),n}(t,o);const m=function(e,t,n){let{y:i,height:r}=e;return"top"===t?i+=n:i-="bottom"===t?r+n:r/2,i}(t,l,c);return"center"===l?"left"===o?p+=c:"right"===o&&(p-=c):"left"===o?p-=Math.max(u,h)+r:"right"===o&&(p+=Math.max(d,f)+r),{x:J(p,0,i.width-t.width),y:J(m,0,i.height-t.height)}}function ga(e,t,n){const i=bn(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-i.right:e.x+i.left}function va(e){return ca([],ua(e))}function ya(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const ba={beforeTitle:t,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:t,beforeBody:t,beforeLabel:t,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return i(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:t,afterBody:t,beforeFooter:t,footer:t,afterFooter:t};function xa(e,t,n,i){const r=e[t].call(n,i);return void 0===r?ba[t].call(n,i):r}class _a extends Hi{static positioners=la;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&t.options.animation&&n.animations,r=new Mi(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=kn(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(e,t){const{callbacks:n}=t,i=xa(n,"beforeTitle",this,e),r=xa(n,"title",this,e),s=xa(n,"afterTitle",this,e);let a=[];return a=ca(a,ua(i)),a=ca(a,ua(r)),a=ca(a,ua(s)),a}getBeforeBody(e,t){return va(xa(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,i=[];return h(e,(e=>{const t={before:[],lines:[],after:[]},r=ya(n,e);ca(t.before,ua(xa(r,"beforeLabel",this,e))),ca(t.lines,xa(r,"label",this,e)),ca(t.after,ua(xa(r,"afterLabel",this,e))),i.push(t)})),i}getAfterBody(e,t){return va(xa(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,i=xa(n,"beforeFooter",this,e),r=xa(n,"footer",this,e),s=xa(n,"afterFooter",this,e);let a=[];return a=ca(a,ua(i)),a=ca(a,ua(r)),a=ca(a,ua(s)),a}_createItems(e){const t=this._active,n=this.chart.data,i=[],r=[],s=[];let a,o,l=[];for(a=0,o=t.length;a<o;++a)l.push(da(this.chart,t[a]));return e.filter&&(l=l.filter(((t,i,r)=>e.filter(t,i,r,n)))),e.itemSort&&(l=l.sort(((t,i)=>e.itemSort(t,i,n)))),h(l,(t=>{const n=ya(e.callbacks,t);i.push(xa(n,"labelColor",this,t)),r.push(xa(n,"labelPointStyle",this,t)),s.push(xa(n,"labelTextColor",this,t))})),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=s,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),i=this._active;let r,s=[];if(i.length){const e=la[n.position].call(this,i,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const t=this._size=ha(this,n),a=Object.assign({},e,t),o=pa(this.chart,n,a),l=ma(n,a,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=s,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,i){const r=this.getCaretPosition(e,n,i);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:i,yAlign:r}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:o,topRight:l,bottomLeft:c,bottomRight:u}=yn(a),{x:d,y:h}=e,{width:f,height:p}=t;let m,g,v,y,b,x;return"center"===r?(b=h+p/2,"left"===i?(m=d,g=m-s,y=b+s,x=b-s):(m=d+f,g=m+s,y=b-s,x=b+s),v=m):(g="left"===i?d+Math.max(o,c)+s:"right"===i?d+f-Math.max(l,u)-s:this.caretX,"top"===r?(y=h,b=y-s,m=g-s,v=g+s):(y=h+p,b=y+s,m=g+s,v=g-s),x=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:x}}drawTitle(e,t,n){const i=this.title,r=i.length;let s,a,o;if(r){const l=Mn(n.rtl,this.x,this.width);for(e.x=ga(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",s=xn(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=s.string,o=0;o<r;++o)t.fillText(i[o],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,o+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,i,r){const a=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=r,u=xn(r.bodyFont),d=ga(this,"left",r),h=i.x(d),f=l<u.lineHeight?(u.lineHeight-l)/2:0,p=t.y+f;if(r.usePointStyle){const t={radius:Math.min(c,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=i.leftForLtr(h,c)+c/2,s=p+l/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,At(e,t,n,s),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,At(e,t,n,s)}else{e.lineWidth=s(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const t=i.leftForLtr(h,c),n=i.leftForLtr(i.xPlus(h,1),c-2),o=yn(a.borderRadius);Object.values(o).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Nt(e,{x:t,y:p,w:c,h:l,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Nt(e,{x:n,y:p+1,w:c-2,h:l-2,radius:o}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,p,c,l),e.strokeRect(t,p,c,l),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:i}=this,{bodySpacing:r,bodyAlign:s,displayColors:a,boxHeight:o,boxWidth:l,boxPadding:c}=n,u=xn(n.bodyFont);let d=u.lineHeight,f=0;const p=Mn(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+r},g=p.textAlign(s);let v,y,b,x,_,w,k;for(t.textAlign=s,t.textBaseline="middle",t.font=u.string,e.x=ga(this,g,n),t.fillStyle=n.bodyColor,h(this.beforeBody,m),f=a&&"right"!==g?"center"===s?l/2+c:l+2+c:0,x=0,w=i.length;x<w;++x){for(v=i[x],y=this.labelTextColors[x],t.fillStyle=y,h(v.before,m),b=v.lines,a&&b.length&&(this._drawColorBox(t,e,x,p,n),d=Math.max(u.lineHeight,o)),_=0,k=b.length;_<k;++_)m(b[_]),d=u.lineHeight;h(v.after,m)}f=0,d=u.lineHeight,h(this.afterBody,m),e.y-=r}drawFooter(e,t,n){const i=this.footer,r=i.length;let s,a;if(r){const o=Mn(n.rtl,this.x,this.width);for(e.x=ga(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=o.textAlign(n.footerAlign),t.textBaseline="middle",s=xn(n.footerFont),t.fillStyle=n.footerColor,t.font=s.string,a=0;a<r;++a)t.fillText(i[a],o.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+n.footerSpacing}}drawBackground(e,t,n,i){const{xAlign:r,yAlign:s}=this,{x:a,y:o}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=yn(i.cornerRadius);t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.beginPath(),t.moveTo(a+u,o),"top"===s&&this.drawCaret(e,t,n,i),t.lineTo(a+l-d,o),t.quadraticCurveTo(a+l,o,a+l,o+d),"center"===s&&"right"===r&&this.drawCaret(e,t,n,i),t.lineTo(a+l,o+c-f),t.quadraticCurveTo(a+l,o+c,a+l-f,o+c),"bottom"===s&&this.drawCaret(e,t,n,i),t.lineTo(a+h,o+c),t.quadraticCurveTo(a,o+c,a,o+c-h),"center"===s&&"left"===r&&this.drawCaret(e,t,n,i),t.lineTo(a,o+u),t.quadraticCurveTo(a,o,a+u,o),t.closePath(),t.fill(),i.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=la[e.position].call(this,this._active,this._eventPosition);if(!n)return;const s=this._size=ha(this,e),a=Object.assign({},n,this._size),o=pa(t,e,a),l=ma(e,a,o,t);i._to===l.x&&r._to===l.y||(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=s.width,this.height=s.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=bn(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,i,t),Sn(e,t.textDirection),r.y+=s.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),An(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,i=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),r=!f(n,i),s=this._positionChanged(i,t);(r||s)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],s=this._getActiveElements(e,r,t,n),a=this._positionChanged(s,e),o=t||!f(s,r)||a;return o&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),o}_getActiveElements(e,t,n,i){const r=this.options;if("mouseout"===e.type)return[];if(!i)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const s=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&s.reverse(),s}_positionChanged(e,t){const{caretX:n,caretY:i,options:r}=this,s=la[r.position].call(this,e,t);return!1!==s&&(n!==s.x||i!==s.y)}}var wa={id:"tooltip",_element:_a,positioners:la,afterInit(e,t,n){n&&(e.tooltip=new _a({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ba},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};return _r.register(Nr,Ls,es,e),_r.helpers={...Hn},_r._adapters=Sr,_r.Animation=ki,_r.Animations=Mi,_r.animator=ve,_r.controllers=Gi.controllers.items,_r.DatasetController=Ni,_r.Element=Hi,_r.elements=es,_r.Interaction=Vn,_r.layouts=ti,_r.platforms=xi,_r.Scale=$i,_r.Ticks=nt,Object.assign(_r,Nr,Ls,es,e,xi),_r.Chart=_r,"undefined"!=typeof window&&(window.Chart=_r),_r})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).countUp={})}(this,(function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.apply(this,arguments)},n=function(){function e(e,n,i){var r=this;this.endVal=n,this.options=i,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){r.startTime||(r.startTime=e);var t=e-r.startTime;r.remaining=r.duration-t,r.useEasing?r.countDown?r.frameVal=r.startVal-r.easingFn(t,0,r.startVal-r.endVal,r.duration):r.frameVal=r.easingFn(t,r.startVal,r.endVal-r.startVal,r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(t/r.duration);var n=r.countDown?r.frameVal<r.endVal:r.frameVal>r.endVal;r.frameVal=n?r.endVal:r.frameVal,r.frameVal=Number(r.frameVal.toFixed(r.options.decimalPlaces)),r.printValue(r.frameVal),t<r.duration?r.rAF=requestAnimationFrame(r.count):null!==r.finalEndVal?r.update(r.finalEndVal):r.options.onCompleteCallback&&r.options.onCompleteCallback()},this.formatNumber=function(e){var t,n,i,s,a=e<0?"-":"";t=Math.abs(e).toFixed(r.options.decimalPlaces);var o=(t+="").split(".");if(n=o[0],i=o.length>1?r.options.decimal+o[1]:"",r.options.useGrouping){s="";for(var l=3,c=0,u=0,d=n.length;u<d;++u)r.options.useIndianSeparators&&4===u&&(l=2,c=1),0!==u&&c%l==0&&(s=r.options.separator+s),c++,s=n[d-u-1]+s;n=s}return r.options.numerals&&r.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(e){return r.options.numerals[+e]})),i=i.replace(/[0-9]/g,(function(e){return r.options.numerals[+e]}))),a+r.options.prefix+n+i+r.options.suffix},this.easeOutExpo=function(e,t,n,i){return n*(1-Math.pow(2,-10*e/i))*1024/1023+t},this.options=t(t({},this.defaults),i),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof e?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return r.handleScroll(r)})),window.onscroll=function(){window.onScrollFns.forEach((function(e){return e()}))},this.handleScroll(this)))}return e.prototype.handleScroll=function(e){if(e&&window&&!e.once){var t=window.innerHeight+window.scrollY,n=e.el.getBoundingClientRect(),i=n.top+window.pageYOffset,r=n.top+n.height+window.pageYOffset;r<t&&r>window.scrollY&&e.paused?(e.paused=!1,setTimeout((function(){return e.start()}),e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>r||i>t)&&!e.paused&&e.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var n=this.countDown?1:-1;this.endVal=e+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var n=this.formattingFn(e);(null===(t=this.options.plugin)||void 0===t?void 0:t.render)?this.options.plugin.render(this.el,n):"INPUT"===this.el.tagName?this.el.value=n:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();e.CountUp=n,Object.defineProperty(e,"__esModule",{value:!0})})),function(e){function t(){for(var e=0;e<w.length;e++)w[e][0](w[e][1]);w=[],m=!1}function n(e,n){w.push([e,n]),m||(m=!0,_(t,0))}function i(e){var t=(n=e.owner).state_,n=n.data_,i=e[t];if(e=e.then,"function"==typeof i){t=y;try{n=i(n)}catch(t){o(e,t)}}r(e,n)||(t===y&&s(e,n),t===b&&o(e,n))}function r(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var i=t.then;if("function"==typeof i)return i.call(t,(function(i){n||(n=!0,t!==i?s(e,i):a(e,i))}),(function(t){n||(n=!0,o(e,t))})),!0}}catch(t){return n||o(e,t),!0}return!1}function s(e,t){e!==t&&r(e,t)||a(e,t)}function a(e,t){e.state_===g&&(e.state_=v,e.data_=t,n(c,e))}function o(e,t){e.state_===g&&(e.state_=v,e.data_=t,n(u,e))}function l(e){var t=e.then_;for(e.then_=void 0,e=0;e<t.length;e++)i(t[e])}function c(e){e.state_=y,l(e)}function u(e){e.state_=b,l(e)}function d(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(!1==this instanceof d)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(e,t){function n(e){o(t,e)}try{e((function(e){s(t,e)}),n)}catch(e){n(e)}}(e,this)}var h,f=e.Promise,p=f&&"resolve"in f&&"reject"in f&&"all"in f&&"race"in f&&(new f((function(e){h=e})),"function"==typeof h);"undefined"!=typeof exports&&exports?(exports.Promise=p?f:d,exports.Polyfill=d):"function"==typeof define&&define.amd?define((function(){return p?f:d})):p||(e.Promise=d);var m,g="pending",v="sealed",y="fulfilled",b="rejected",x=function(){},_="undefined"!=typeof setImmediate?setImmediate:setTimeout,w=[];d.prototype={constructor:d,state_:g,then_:null,data_:void 0,then:function(e,t){var r={owner:this,then:new this.constructor(x),fulfilled:e,rejected:t};return this.state_===y||this.state_===b?n(i,r):this.then_.push(r),r.then},catch:function(e){return this.then(null,e)}},d.all=function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to Promise.all().");return new this((function(t,n){function i(e){return a++,function(n){s[e]=n,--a||t(s)}}for(var r,s=[],a=0,o=0;o<e.length;o++)(r=e[o])&&"function"==typeof r.then?r.then(i(o),n):s[o]=r;a||t(s)}))},d.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to Promise.race().");return new this((function(t,n){for(var i,r=0;r<e.length;r++)(i=e[r])&&"function"==typeof i.then?i.then(t,n):t(i)}))},d.resolve=function(e){return e&&"object"==typeof e&&e.constructor===this?e:new this((function(t){t(e)}))},d.reject=function(e){return new this((function(t,n){n(e)}))}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Sweetalert2=t()}(this,(function(){"use strict";function e(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function t(t,n){return t.get(e(t,n))}const n={},i="swal2-",r=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce(((e,t)=>(e[t]=i+t,e)),{}),s=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=i+t,e)),{}),a="SweetAlert2:",o=e=>e.charAt(0).toUpperCase()+e.slice(1),l=e=>{console.warn(`${a} ${"object"==typeof e?e.join(" "):e}`)},c=e=>{console.error(`${a} ${e}`)},u=[],d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n;n=`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`,u.includes(n)||(u.push(n),l(n))},h=e=>"function"==typeof e?e():e,f=e=>e&&"function"==typeof e.toPromise,p=e=>f(e)?e.toPromise():Promise.resolve(e),m=e=>e&&Promise.resolve(e)===e,g=()=>document.body.querySelector(`.${r.container}`),v=e=>{const t=g();return t?t.querySelector(e):null},y=e=>v(`.${e}`),b=()=>y(r.popup),x=()=>y(r.icon),_=()=>y(r.title),w=()=>y(r["html-container"]),k=()=>y(r.image),M=()=>y(r["progress-steps"]),S=()=>y(r["validation-message"]),A=()=>v(`.${r.actions} .${r.confirm}`),L=()=>v(`.${r.actions} .${r.cancel}`),T=()=>v(`.${r.actions} .${r.deny}`),C=()=>v(`.${r.loader}`),D=()=>y(r.actions),E=()=>y(r.footer),O=()=>y(r["timer-progress-bar"]),P=()=>y(r.close),Y=()=>{const e=b();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),i=parseInt(t.getAttribute("tabindex")||"0");return n>i?1:n<i?-1:0})),i=e.querySelectorAll('\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n'),r=Array.from(i).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(n.concat(r))].filter((e=>J(e)))},I=()=>j(document.body,r.shown)&&!j(document.body,r["toast-shown"])&&!j(document.body,r["no-backdrop"]),N=()=>{const e=b();return!!e&&j(e,r.toast)},H=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach((t=>{e.appendChild(t)}));const r=n.querySelector("body");r&&Array.from(r.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},j=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t<n.length;t++)if(!e.classList.contains(n[t]))return!1;return!0},F=(e,t,n)=>{if(((e,t)=>{Array.from(e.classList).forEach((n=>{Object.values(r).includes(n)||Object.values(s).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))})(e,t),!t.customClass)return;const i=t.customClass[n];i&&("string"==typeof i||i.forEach?V(e,i):l(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof i}"`))},R=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${r.popup} > .${r[t]}`);case"checkbox":return e.querySelector(`.${r.popup} > .${r.checkbox} input`);case"radio":return e.querySelector(`.${r.popup} > .${r.radio} input:checked`)||e.querySelector(`.${r.popup} > .${r.radio} input:first-child`);case"range":return e.querySelector(`.${r.popup} > .${r.range} input`);default:return e.querySelector(`.${r.popup} > .${r.input}`)}},z=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},B=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},V=(e,t)=>{B(e,t,!0)},W=(e,t)=>{B(e,t,!1)},q=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++){const i=n[e];if(i instanceof HTMLElement&&j(i,t))return i}},U=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},X=e=>{e&&(e.style.display="none")},G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((()=>{K(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},Z=(e,t,n,i)=>{const r=e.querySelector(t);r&&r.style.setProperty(n,i)},K=function(e,t){t?$(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):X(e)},J=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Q=e=>!!(e.scrollHeight>e.clientHeight),ee=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),i=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||i>0},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=O();n&&J(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},ne=`\n <div aria-labelledby="${r.title}" aria-describedby="${r["html-container"]}" class="${r.popup}" tabindex="-1">\n   <button type="button" class="${r.close}"></button>\n   <ul class="${r["progress-steps"]}"></ul>\n   <div class="${r.icon}"></div>\n   <img class="${r.image}" />\n   <h2 class="${r.title}" id="${r.title}"></h2>\n   <div class="${r["html-container"]}" id="${r["html-container"]}"></div>\n   <input class="${r.input}" id="${r.input}" />\n   <input type="file" class="${r.file}" />\n   <div class="${r.range}">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="${r.select}" id="${r.select}"></select>\n   <div class="${r.radio}"></div>\n   <label class="${r.checkbox}">\n     <input type="checkbox" id="${r.checkbox}" />\n     <span class="${r.label}"></span>\n   </label>\n   <textarea class="${r.textarea}" id="${r.textarea}"></textarea>\n   <div class="${r["validation-message"]}" id="${r["validation-message"]}"></div>\n   <div class="${r.actions}">\n     <div class="${r.loader}"></div>\n     <button type="button" class="${r.confirm}"></button>\n     <button type="button" class="${r.deny}"></button>\n     <button type="button" class="${r.cancel}"></button>\n   </div>\n   <div class="${r.footer}"></div>\n   <div class="${r["timer-progress-bar-container"]}">\n     <div class="${r["timer-progress-bar"]}"></div>\n   </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ie=()=>{n.currentInstance.resetValidationMessage()},re=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?se(e,t):e&&H(t,e)},se=(e,t)=>{e.jquery?ae(t,e):H(t,e.toString())},ae=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))};function oe(e){const t=window.getComputedStyle(e),n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-outline",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function le(e,t,n){const i=o(t);K(e,n[`show${i}Button`],"inline-block"),H(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=r[t],F(e,n,`${t}Button`)}var ce={innerParams:new WeakMap,domCache:new WeakMap};const ue=["input","file","range","select","radio","checkbox","textarea"],de=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},he=(e,t,n)=>{if(n.inputLabel){const i=document.createElement("label"),s=r["input-label"];i.setAttribute("for",e.id),i.className=s,"object"==typeof n.customClass&&V(i,n.customClass.inputLabel),i.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",i)}},fe=e=>{const t=b();if(t)return q(t,r[e]||r.input)},pe=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:m(t)||l(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},me={};me.text=me.email=me.password=me.number=me.tel=me.url=me.search=me.date=me["datetime-local"]=me.time=me.week=me.month=(e,t)=>(pe(e,t.inputValue),he(e,e,t),de(e,t),e.type=t.input,e),me.file=(e,t)=>(he(e,e,t),de(e,t),e),me.range=(e,t)=>{const n=e.querySelector("input"),i=e.querySelector("output");return pe(n,t.inputValue),n.type=t.input,pe(i,t.inputValue),he(n,e,t),e},me.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");H(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return he(e,e,t),e},me.radio=e=>(e.textContent="",e),me.checkbox=(e,t)=>{const n=R(b(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const i=e.querySelector("span");return H(i,t.inputPlaceholder||t.inputLabel),n},me.textarea=(e,t)=>(pe(e,t.inputValue),de(e,t),he(e,e,t),setTimeout((()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(b()).width);new MutationObserver((()=>{if(!document.body.contains(e))return;const i=e.offsetWidth+(r=e,parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight));var r;i>n?b().style.width=`${i}px`:U(b(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e);const ge=(e,t)=>{const n=w();n&&(G(n),F(n,t,"htmlContainer"),t.html?(re(t.html,n),$(n,"block")):t.text?(n.textContent=t.text,$(n,"block")):X(n),((e,t)=>{const n=b();if(!n)return;const i=ce.innerParams.get(e),s=!i||t.input!==i.input;ue.forEach((e=>{const i=q(n,r[e]);i&&(((e,t)=>{const n=b();if(!n)return;const i=R(n,e);if(i){(e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}})(i);for(const e in t)i.setAttribute(e,t[e])}})(e,t.inputAttributes),i.className=r[e],s&&X(i))})),t.input&&(s&&(e=>{if(!e.input)return;if(!me[e.input])return void c(`Unexpected type of input! Expected ${Object.keys(me).join(" | ")}, got "${e.input}"`);const t=fe(e.input);if(!t)return;const n=me[e.input](t,e);$(t),e.inputAutoFocus&&setTimeout((()=>{z(n)}))})(t),(e=>{if(!e.input)return;const t=fe(e.input);t&&F(t,e,"input")})(t))})(e,t))},ve=(e,t)=>{for(const[n,i]of Object.entries(s))t.icon!==n&&W(e,i);V(e,t.icon&&s[t.icon]),xe(e,t),ye(),F(e,t,"icon")},ye=()=>{const e=b();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},be=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,i="";t.iconHtml?i=_e(t.iconHtml):"success"===t.icon?(i='\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n',n=n.replace(/ style=".*?"/g,"")):"error"===t.icon?i='\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n':t.icon&&(i=_e({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==i.trim()&&H(e,i)},xe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Z(e,n,"background-color",t.iconColor);Z(e,".swal2-success-ring","border-color",t.iconColor)}},_e=e=>`<div class="${r["icon-content"]}">${e}</div>`;let we=!1,ke=0,Me=0,Se=0,Ae=0;const Le=e=>{const t=b();if(e.target===t||x().contains(e.target)){we=!0;const n=De(e);ke=n.clientX,Me=n.clientY,Se=parseInt(t.style.insetInlineStart)||0,Ae=parseInt(t.style.insetBlockStart)||0,V(t,"swal2-dragging")}},Te=e=>{const t=b();if(we){let{clientX:n,clientY:i}=De(e);t.style.insetInlineStart=`${Se+(n-ke)}px`,t.style.insetBlockStart=`${Ae+(i-Me)}px`}},Ce=()=>{const e=b();we=!1,W(e,"swal2-dragging")},De=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=e.clientX,n=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,n=e.touches[0].clientY),{clientX:t,clientY:n}},Ee=(e,t)=>{const n=t.showClass||{};e.className=`${r.popup} ${J(e)?n.popup:""}`,t.toast?(V([document.documentElement,document.body],r["toast-shown"]),V(e,r.toast)):V(e,r.modal),F(e,t,"popup"),"string"==typeof t.customClass&&V(e,t.customClass),t.icon&&V(e,r[`icon-${t.icon}`])},Oe=(e,t)=>{((e,t)=>{const n=g(),i=b();if(n&&i){if(t.toast){U(n,"width",t.width),i.style.width="100%";const e=C();e&&i.insertBefore(e,x())}else U(i,"width",t.width);U(i,"padding",t.padding),t.color&&(i.style.color=t.color),t.background&&(i.style.background=t.background),X(S()),Ee(i,t),t.draggable&&!t.toast?(V(i,r.draggable),(e=>{e.addEventListener("mousedown",Le),document.body.addEventListener("mousemove",Te),e.addEventListener("mouseup",Ce),e.addEventListener("touchstart",Le),document.body.addEventListener("touchmove",Te),e.addEventListener("touchend",Ce)})(i)):(W(i,r.draggable),(e=>{e.removeEventListener("mousedown",Le),document.body.removeEventListener("mousemove",Te),e.removeEventListener("mouseup",Ce),e.removeEventListener("touchstart",Le),document.body.removeEventListener("touchmove",Te),e.removeEventListener("touchend",Ce)})(i))}})(0,t),((e,t)=>{const n=g();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||V([document.documentElement,document.body],r["no-backdrop"])}(n,t.backdrop),function(e,t){t&&(t in r?V(e,r[t]):(l('The "position" parameter is not valid, defaulting to "center"'),V(e,r.center)))}(n,t.position),function(e,t){t&&V(e,r[`grow-${t}`])}(n,t.grow),F(n,t,"container"))})(0,t),((e,t)=>{const n=M();if(!n)return;const{progressSteps:i,currentProgressStep:s}=t;i&&0!==i.length&&void 0!==s?($(n),n.textContent="",s>=i.length&&l("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.forEach(((e,a)=>{const o=(e=>{const t=document.createElement("li");return V(t,r["progress-step"]),H(t,e),t})(e);if(n.appendChild(o),a===s&&V(o,r["active-progress-step"]),a!==i.length-1){const e=(e=>{const t=document.createElement("li");return V(t,r["progress-step-line"]),e.progressStepsDistance&&U(t,"width",e.progressStepsDistance),t})(t);n.appendChild(e)}}))):X(n)})(0,t),((e,t)=>{const n=ce.innerParams.get(e),i=x();if(i){if(n&&t.icon===n.icon)return be(i,t),void ve(i,t);if(t.icon||t.iconHtml)return t.icon&&-1===Object.keys(s).indexOf(t.icon)?(c(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void X(i)):($(i),be(i,t),ve(i,t),V(i,t.showClass&&t.showClass.icon),void window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ye));X(i)}})(e,t),((e,t)=>{const n=k();n&&(t.imageUrl?($(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),U(n,"width",t.imageWidth),U(n,"height",t.imageHeight),n.className=r.image,F(n,t,"image")):X(n))})(0,t),((e,t)=>{const n=_();n&&(G(n),K(n,t.title||t.titleText,"block"),t.title&&re(t.title,n),t.titleText&&(n.innerText=t.titleText),F(n,t,"title"))})(0,t),((e,t)=>{const n=P();n&&(H(n,t.closeButtonHtml||""),F(n,t,"closeButton"),K(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),ge(e,t),((e,t)=>{const n=D(),i=C();n&&i&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?$(n):X(n),F(n,t,"actions"),function(e,t,n){const i=A(),s=T(),a=L();i&&s&&a&&(le(i,"confirm",n),le(s,"deny",n),le(a,"cancel",n),function(e,t,n,i){i.buttonsStyling?(V([e,t,n],r.styled),i.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",i.confirmButtonColor),i.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",i.denyButtonColor),i.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",i.cancelButtonColor),oe(e),oe(t),oe(n)):W([e,t,n],r.styled)}(i,s,a,n),n.reverseButtons&&(n.toast?(e.insertBefore(a,i),e.insertBefore(s,i)):(e.insertBefore(a,t),e.insertBefore(s,t),e.insertBefore(i,t))))}(n,i,t),H(i,t.loaderHtml||""),F(i,t,"loader"))})(0,t),((e,t)=>{const n=E();n&&(G(n),K(n,t.footer,"block"),t.footer&&re(t.footer,n),F(n,t,"footer"))})(0,t);const i=b();"function"==typeof t.didRender&&i&&t.didRender(i),n.eventEmitter.emit("didRender",i)},Pe=()=>{var e;return null===(e=A())||void 0===e?void 0:e.click()},Ye=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ie=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Ne=(e,t)=>{var n;const i=Y();if(i.length)return-2===(e+=t)&&(e=i.length-1),e===i.length?e=0:-1===e&&(e=i.length-1),void i[e].focus();null===(n=b())||void 0===n||n.focus()},He=["ArrowRight","ArrowDown"],je=["ArrowLeft","ArrowUp"],Fe=(e,t)=>{if(!h(t.allowEnterKey))return;const n=R(b(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Pe(),e.preventDefault()}},Re=e=>{const t=e.target,n=Y();let i=-1;for(let e=0;e<n.length;e++)if(t===n[e]){i=e;break}e.shiftKey?Ne(i,-1):Ne(i,1),e.stopPropagation(),e.preventDefault()},ze=e=>{const t=D(),n=A(),i=T(),r=L();if(!(t&&n&&i&&r))return;const s=[n,i,r];if(document.activeElement instanceof HTMLElement&&!s.includes(document.activeElement))return;const a=He.includes(e)?"nextElementSibling":"previousElementSibling";let o=document.activeElement;if(o){for(let e=0;e<t.children.length;e++){if(o=o[a],!o)return;if(o instanceof HTMLButtonElement&&J(o))break}o instanceof HTMLButtonElement&&o.focus()}},Be=(e,t,n)=>{h(t.allowEscapeKey)&&(e.preventDefault(),n(Ye.esc))};var Ve={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const We=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},qe="undefined"!=typeof window&&!!window.GestureEvent,Ue=e=>{const t=e.target,n=g(),i=w();return!(!n||!i||$e(e)||Xe(e)||t!==n&&(Q(n)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||Q(i)&&i.contains(t)))},$e=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Xe=e=>e.touches&&e.touches.length>1;let Ge=null;function Ze(e,t,i,s){N()?rt(e,s):((e=>new Promise((t=>{if(!e)return t();const i=window.scrollX,r=window.scrollY;n.restoreFocusTimeout=setTimeout((()=>{n.previousActiveElement instanceof HTMLElement?(n.previousActiveElement.focus(),n.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(i,r)})))(i).then((()=>rt(e,s))),Ie(n)),qe?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),I()&&(null!==Ge&&(document.body.style.paddingRight=`${Ge}px`,Ge=null),(()=>{if(j(document.body,r.iosfix)){const e=parseInt(document.body.style.top,10);W(document.body,r.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),We()),W([document.documentElement,document.body],[r.shown,r["height-auto"],r["no-backdrop"],r["toast-shown"]])}function Ke(e){e=tt(e);const t=Ve.swalPromiseResolve.get(this),n=Je(this);this.isAwaitingPromise?e.isDismissed||(et(this),t(e)):n&&t(e)}const Je=e=>{const t=b();if(!t)return!1;const n=ce.innerParams.get(e);if(!n||j(t,n.hideClass.popup))return!1;W(t,n.showClass.popup),V(t,n.hideClass.popup);const i=g();return W(i,n.showClass.backdrop),V(i,n.hideClass.backdrop),nt(e,t,n),!0};function Qe(e){const t=Ve.swalPromiseReject.get(this);et(this),t&&t(e)}const et=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,ce.innerParams.get(e)||e._destroy())},tt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),nt=(e,t,i)=>{var r;const s=g(),a=ee(t);"function"==typeof i.willClose&&i.willClose(t),null===(r=n.eventEmitter)||void 0===r||r.emit("willClose",t),a?it(e,t,s,i.returnFocus,i.didClose):Ze(e,s,i.returnFocus,i.didClose)},it=(e,t,i,r,s)=>{n.swalCloseEventFinishedCallback=Ze.bind(null,e,i,r,s);const a=function(e){var i;e.target===t&&(null===(i=n.swalCloseEventFinishedCallback)||void 0===i||i.call(n),delete n.swalCloseEventFinishedCallback,t.removeEventListener("animationend",a),t.removeEventListener("transitionend",a))};t.addEventListener("animationend",a),t.addEventListener("transitionend",a)},rt=(e,t)=>{setTimeout((()=>{var i;"function"==typeof t&&t.bind(e.params)(),null===(i=n.eventEmitter)||void 0===i||i.emit("didClose"),e._destroy&&e._destroy()}))},st=e=>{let t=b();if(t||new kn,t=b(),!t)return;const n=C();N()?X(x()):at(t,e),$(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},at=(e,t)=>{const n=D(),i=C();n&&i&&(!t&&J(A())&&(t=A()),$(n),t&&(X(t),i.setAttribute("data-button-to-replace",t.className),n.insertBefore(i,t)),V([e,n],r.loading))},ot=(e,t)=>{const n=b();if(!n)return;const i=e=>{"select"===t.input?function(e,t,n){const i=q(e,r.select);if(!i)return;const s=(e,t,i)=>{const r=document.createElement("option");r.value=i,H(r,t),r.selected=ct(i,n.inputValue),e.appendChild(r)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,i.appendChild(e),n.forEach((t=>s(e,t[1],t[0])))}else s(i,n,t)})),i.focus()}(n,lt(e),t):"radio"===t.input&&function(e,t,n){const i=q(e,r.radio);if(!i)return;t.forEach((e=>{const t=e[0],s=e[1],a=document.createElement("input"),o=document.createElement("label");a.type="radio",a.name=r.radio,a.value=t,ct(t,n.inputValue)&&(a.checked=!0);const l=document.createElement("span");H(l,s),l.className=r.label,o.appendChild(a),o.appendChild(l),i.appendChild(o)}));const s=i.querySelectorAll("input");s.length&&s[0].focus()}(n,lt(e),t)};f(t.inputOptions)||m(t.inputOptions)?(st(A()),p(t.inputOptions).then((t=>{e.hideLoading(),i(t)}))):"object"==typeof t.inputOptions?i(t.inputOptions):c("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},lt=e=>{const t=[];return e instanceof Map?e.forEach(((e,n)=>{let i=e;"object"==typeof i&&(i=lt(i)),t.push([n,i])})):Object.keys(e).forEach((n=>{let i=e[n];"object"==typeof i&&(i=lt(i)),t.push([n,i])})),t},ct=(e,t)=>!!t&&t.toString()===e.toString(),ut=(e,t)=>{const n=ce.innerParams.get(e);if(!n.input)return void c(`The "input" parameter is needed to be set when using returnInputValueOn${o(t)}`);const i=e.getInput(),r=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return(e=>e.checked?1:0)(n);case"radio":return(e=>e.checked?e.value:null)(n);case"file":return(e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null)(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,n);n.inputValidator?dt(e,r,t):i&&!i.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||i.validationMessage)):"deny"===t?ht(e,r):mt(e,r)},dt=(e,t,n)=>{const i=ce.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>p(i.inputValidator(t,i.validationMessage)))).then((i=>{e.enableButtons(),e.enableInput(),i?e.showValidationMessage(i):"deny"===n?ht(e,t):mt(e,t)}))},ht=(e,t)=>{const n=ce.innerParams.get(e||void 0);n.showLoaderOnDeny&&st(T()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((()=>p(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),et(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((t=>pt(e||void 0,t)))):e.close({isDenied:!0,value:t})},ft=(e,t)=>{e.close({isConfirmed:!0,value:t})},pt=(e,t)=>{e.rejectPromise(t)},mt=(e,t)=>{const n=ce.innerParams.get(e||void 0);n.showLoaderOnConfirm&&st(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((()=>p(n.preConfirm(t,n.validationMessage)))).then((n=>{J(S())||!1===n?(e.hideLoading(),et(e)):ft(e,void 0===n?t:n)})).catch((t=>pt(e||void 0,t)))):ft(e,t)};function gt(){const e=ce.innerParams.get(this);if(!e)return;const t=ce.domCache.get(this);X(t.loader),N()?e.icon&&$(x()):vt(t),W([t.popup,t.actions],r.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const vt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?$(t[0],"inline-block"):J(A())||J(T())||J(L())||X(e.actions)};function yt(){const e=ce.innerParams.get(this),t=ce.domCache.get(this);return t?R(t.popup,e.input):null}function bt(e,t,n){const i=ce.domCache.get(e);t.forEach((e=>{i[e].disabled=n}))}function xt(e,t){const n=b();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${r.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function _t(){bt(this,["confirmButton","denyButton","cancelButton"],!1)}function wt(){bt(this,["confirmButton","denyButton","cancelButton"],!0)}function kt(){xt(this.getInput(),!1)}function Mt(){xt(this.getInput(),!0)}function St(e){const t=ce.domCache.get(this),n=ce.innerParams.get(this);H(t.validationMessage,e),t.validationMessage.className=r["validation-message"],n.customClass&&n.customClass.validationMessage&&V(t.validationMessage,n.customClass.validationMessage),$(t.validationMessage);const i=this.getInput();i&&(i.setAttribute("aria-invalid","true"),i.setAttribute("aria-describedby",r["validation-message"]),z(i),V(i,r.inputerror))}function At(){const e=ce.domCache.get(this);e.validationMessage&&X(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),W(t,r.inputerror))}const Lt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Tt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Ct={allowEnterKey:void 0},Dt=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Et=e=>Object.prototype.hasOwnProperty.call(Lt,e),Ot=e=>-1!==Tt.indexOf(e),Pt=e=>Ct[e],Yt=e=>{Et(e)||l(`Unknown parameter "${e}"`)},It=e=>{Dt.includes(e)&&l(`The parameter "${e}" is incompatible with toasts`)},Nt=e=>{const t=Pt(e);t&&d(e,t)},Ht=e=>{!1===e.backdrop&&e.allowOutsideClick&&l('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","borderless","embed-iframe"].includes(e.theme)&&l(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "borderless", or "embed-iframe"`);for(const t in e)Yt(t),e.toast&&It(t),Nt(t)};function jt(e){const t=g(),n=b(),i=ce.innerParams.get(this);if(!n||j(n,i.hideClass.popup))return void l("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=Ft(e),s=Object.assign({},i,r);Ht(s),t.dataset.swal2Theme=s.theme,Oe(this,s),ce.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Ft=e=>{const t={};return Object.keys(e).forEach((n=>{Ot(n)?t[n]=e[n]:l(`Invalid parameter to update: ${n}`)})),t};function Rt(){const e=ce.domCache.get(this),t=ce.innerParams.get(this);t?(e.popup&&n.swalCloseEventFinishedCallback&&(n.swalCloseEventFinishedCallback(),delete n.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),n.eventEmitter.emit("didDestroy"),zt(this)):Bt(this)}const zt=e=>{Bt(e),delete e.params,delete n.keydownHandler,delete n.keydownTarget,delete n.currentInstance},Bt=e=>{e.isAwaitingPromise?(Vt(ce,e),e.isAwaitingPromise=!0):(Vt(Ve,e),Vt(ce,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Vt=(e,t)=>{for(const n in e)e[n].delete(t)};var Wt=Object.freeze({__proto__:null,_destroy:Rt,close:Ke,closeModal:Ke,closePopup:Ke,closeToast:Ke,disableButtons:wt,disableInput:Mt,disableLoading:gt,enableButtons:_t,enableInput:kt,getInput:yt,handleAwaitingPromise:et,hideLoading:gt,rejectPromise:Qe,resetValidationMessage:At,showValidationMessage:St,update:jt});const qt=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let Ut=!1;const $t=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e),Xt=()=>{if(n.timeout)return(()=>{const e=O();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`})(),n.timeout.stop()},Gt=()=>{if(n.timeout){const e=n.timeout.start();return te(e),e}};let Zt=!1;const Kt={},Jt=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Kt){const n=t.getAttribute(e);if(n)return void Kt[e].fire({template:n})}};n.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){var n=this;const i=function(){n.removeListener(e,i);for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];t.apply(n,s)};this.on(e,i)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this._getHandlersByEventName(e).forEach((e=>{try{e.apply(this,n)}catch(e){console.error(e)}}))}removeListener(e,t){const n=this._getHandlersByEventName(e),i=n.indexOf(t);i>-1&&n.splice(i,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var Qt=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||$t(e[0])?["title","html","icon"].forEach(((n,i)=>{const r=e[i];"string"==typeof r||$t(r)?t[n]=r:void 0!==r&&c(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)})):Object.assign(t,e[0]),t},bindClickHandler:function(){Kt[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Zt||(document.body.addEventListener("click",Jt),Zt=!0)},clickCancel:()=>{var e;return null===(e=L())||void 0===e?void 0:e.click()},clickConfirm:Pe,clickDeny:()=>{var e;return null===(e=T())||void 0===e?void 0:e.click()},enableLoading:st,fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},getActions:D,getCancelButton:L,getCloseButton:P,getConfirmButton:A,getContainer:g,getDenyButton:T,getFocusableElements:Y,getFooter:E,getHtmlContainer:w,getIcon:x,getIconContent:()=>y(r["icon-content"]),getImage:k,getInputLabel:()=>y(r["input-label"]),getLoader:C,getPopup:b,getProgressSteps:M,getTimerLeft:()=>n.timeout&&n.timeout.getTimerLeft(),getTimerProgressBar:O,getTitle:_,getValidationMessage:S,increaseTimer:e=>{if(n.timeout){const t=n.timeout.increase(e);return te(t,!0),t}},isDeprecatedParameter:Pt,isLoading:()=>{const e=b();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!n.timeout||!n.timeout.isRunning()),isUpdatableParameter:Ot,isValidParameter:Et,isVisible:()=>J(b()),mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},off:(e,t)=>{e?t?n.eventEmitter.removeListener(e,t):n.eventEmitter.removeAllListeners(e):n.eventEmitter.reset()},on:(e,t)=>{n.eventEmitter.on(e,t)},once:(e,t)=>{n.eventEmitter.once(e,t)},resumeTimer:Gt,showLoading:st,stopTimer:Xt,toggleTimer:()=>{const e=n.timeout;return e&&(e.running?Xt():Gt())}});class en{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const tn=["swal-title","swal-html","swal-footer"],nn=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&l([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},rn=e=>{const t=g(),i=b();"function"==typeof e.willOpen&&e.willOpen(i),n.eventEmitter.emit("willOpen",i);const s=window.getComputedStyle(document.body).overflowY;ln(t,i,e),setTimeout((()=>{an(t,i)}),10),I()&&(on(t,e.scrollbarPadding,s),(()=>{const e=g();Array.from(document.body.children).forEach((t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))})()),N()||n.previousActiveElement||(n.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(i))),n.eventEmitter.emit("didOpen",i),W(t,r["no-transition"])},sn=e=>{const t=b();if(e.target!==t)return;const n=g();t.removeEventListener("animationend",sn),t.removeEventListener("transitionend",sn),n.style.overflowY="auto"},an=(e,t)=>{ee(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",sn),t.addEventListener("transitionend",sn)):e.style.overflowY="auto"},on=(e,t,n)=>{(()=>{if(qe&&!j(document.body,r.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",V(document.body,r.iosfix),(()=>{const e=g();if(!e)return;let t;e.ontouchstart=e=>{t=Ue(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}})()}})(),t&&"hidden"!==n&&(e=>{null===Ge&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(Ge=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ge+(()=>{const e=document.createElement("div");e.className=r["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)})(n),setTimeout((()=>{e.scrollTop=0}))},ln=(e,t,n)=>{V(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),$(t,"grid"),setTimeout((()=>{V(t,n.showClass.popup),t.style.removeProperty("opacity")}),10)):$(t,"grid"),V([document.documentElement,document.body],r.shown),n.heightAuto&&n.backdrop&&!n.toast&&V([document.documentElement,document.body],r["height-auto"])};var cn=(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),un=(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL");function dn(e){!function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=cn),"url"===e.input&&(e.inputValidator=un))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&l("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(l('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),(e=>{const t=(()=>{const e=g();return!!e&&(e.remove(),W([document.documentElement,document.body],[r["no-backdrop"],r["toast-shown"],r["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void c("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=r.container,t&&V(n,r["no-transition"]),H(n,ne),n.dataset.swal2Theme=e.theme;const i="string"==typeof(s=e.target)?document.querySelector(s):s;var s;i.appendChild(n),(e=>{const t=b();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&V(g(),r.rtl)})(i),(()=>{const e=b(),t=q(e,r.input),n=q(e,r.file),i=e.querySelector(`.${r.range} input`),s=e.querySelector(`.${r.range} output`),a=q(e,r.select),o=e.querySelector(`.${r.checkbox} input`),l=q(e,r.textarea);t.oninput=ie,n.onchange=ie,a.onchange=ie,o.onchange=ie,l.oninput=ie,i.oninput=()=>{ie(),s.value=i.value},i.onchange=()=>{ie(),s.value=i.value}})()})(e)}let hn;var fn=new WeakMap;class pn{constructor(){if(function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,fn,void 0),"undefined"==typeof window)return;hn=this;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r=Object.freeze(this.constructor.argsToParams(n));var s,a;this.params=r,this.isAwaitingPromise=!1,s=fn,a=this._main(hn.params),s.set(e(s,this),a)}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ht(Object.assign({},t,e)),n.currentInstance){const e=Ve.swalPromiseResolve.get(n.currentInstance),{isAwaitingPromise:t}=n.currentInstance;n.currentInstance._destroy(),t||e({isDismissed:!0}),I()&&We()}n.currentInstance=hn;const i=gn(e,t);dn(i),Object.freeze(i),n.timeout&&(n.timeout.stop(),delete n.timeout),clearTimeout(n.restoreFocusTimeout);const r=vn(hn);return Oe(hn,i),ce.innerParams.set(hn,i),mn(hn,r,i)}then(e){return t(fn,this).then(e)}finally(e){return t(fn,this).finally(e)}}const mn=(e,t,i)=>new Promise(((r,s)=>{const a=t=>{e.close({isDismissed:!0,dismiss:t})};Ve.swalPromiseResolve.set(e,r),Ve.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{(e=>{const t=ce.innerParams.get(e);e.disableButtons(),t.input?ut(e,"confirm"):mt(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=ce.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?ut(e,"deny"):ht(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(Ye.cancel)})(e,a)},t.closeButton.onclick=()=>{a(Ye.close)},((e,t,n)=>{e.toast?((e,t,n)=>{t.popup.onclick=()=>{e&&(qt(e)||e.timer||e.input)||n(Ye.close)}})(e,t,n):((e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(Ut=!0)}}})(t),(e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(Ut=!0)}}})(t),((e,t,n)=>{t.container.onclick=i=>{Ut?Ut=!1:i.target===t.container&&h(e.allowOutsideClick)&&n(Ye.backdrop)}})(e,t,n))})(i,t,a),((e,t,n)=>{Ie(e),t.toast||(e.keydownHandler=e=>((e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Fe(t,e):"Tab"===t.key?Re(t):[...He,...je].includes(t.key)?ze(t.key):"Escape"===t.key&&Be(t,e,n)))})(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:b(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(n,i,a),((e,t)=>{"select"===t.input||"radio"===t.input?ot(e,t):["text","email","number","tel","textarea"].some((e=>e===t.input))&&(f(t.inputValue)||m(t.inputValue))&&(st(A()),((e,t)=>{const n=e.getInput();n&&(X(n),p(t.inputValue).then((i=>{n.value="number"===t.input?`${parseFloat(i)||0}`:`${i}`,$(n),n.focus(),e.hideLoading()})).catch((t=>{c(`Error in inputValue promise: ${t}`),n.value="",$(n),n.focus(),e.hideLoading()})))})(e,t))})(e,i),rn(i),yn(n,i,a),bn(t,i),setTimeout((()=>{t.container.scrollTop=0}))})),gn=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return(e=>{const t=tn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||l(`Unrecognized element <${n}>`)}))})(n),Object.assign((e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{nn(e,["name","value"]);const n=e.getAttribute("name"),i=e.getAttribute("value");n&&i&&(t[n]="boolean"==typeof Lt[n]?"false"!==i:"object"==typeof Lt[n]?JSON.parse(i):i)})),t})(n),(e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=e.getAttribute("name"),i=e.getAttribute("value");n&&i&&(t[n]=new Function(`return ${i}`)())})),t})(n),(e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{nn(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t[`${n}ButtonText`]=e.innerHTML,t[`show${o(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label")))})),t})(n),(e=>{const t={},n=e.querySelector("swal-image");return n&&(nn(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t})(n),(e=>{const t={},n=e.querySelector("swal-icon");return n&&(nn(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t})(n),(e=>{const t={},n=e.querySelector("swal-input");n&&(nn(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const i=Array.from(e.querySelectorAll("swal-input-option"));return i.length&&(t.inputOptions={},i.forEach((e=>{nn(e,["value"]);const n=e.getAttribute("value");if(!n)return;const i=e.innerHTML;t.inputOptions[n]=i}))),t})(n),((e,t)=>{const n={};for(const i in t){const r=t[i],s=e.querySelector(r);s&&(nn(s,[]),n[r.replace(/^swal-/,"")]=s.innerHTML.trim())}return n})(n,tn))})(e),i=Object.assign({},Lt,t,n,e);return i.showClass=Object.assign({},Lt.showClass,i.showClass),i.hideClass=Object.assign({},Lt.hideClass,i.hideClass),!1===i.animation&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},vn=e=>{const t={popup:b(),container:g(),actions:D(),confirmButton:A(),denyButton:T(),cancelButton:L(),loader:C(),closeButton:P(),validationMessage:S(),progressSteps:M()};return ce.domCache.set(e,t),t},yn=(e,t,n)=>{const i=O();X(i),t.timer&&(e.timeout=new en((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&($(i),F(i,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&te(t.timer)}))))},bn=(e,t)=>{if(!t.toast)return h(t.allowEnterKey)?void(xn(e)||_n(e,t)||Ne(-1,1)):(d("allowEnterKey"),void wn())},xn=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&J(e))return e.focus(),!0;return!1},_n=(e,t)=>t.focusDeny&&J(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&J(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!J(e.confirmButton)||(e.confirmButton.focus(),0)),wn=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}pn.prototype.disableButtons=wt,pn.prototype.enableButtons=_t,pn.prototype.getInput=yt,pn.prototype.disableInput=Mt,pn.prototype.enableInput=kt,pn.prototype.hideLoading=gt,pn.prototype.disableLoading=gt,pn.prototype.showValidationMessage=St,pn.prototype.resetValidationMessage=At,pn.prototype.close=Ke,pn.prototype.closePopup=Ke,pn.prototype.closeModal=Ke,pn.prototype.closeToast=Ke,pn.prototype.rejectPromise=Qe,pn.prototype.update=jt,pn.prototype._destroy=Rt,Object.assign(pn,Qt),Object.keys(Wt).forEach((e=>{pn[e]=function(){return hn&&hn[e]?hn[e](...arguments):null}})),pn.DismissReason=Ye,pn.version="11.19.1";const kn=pn;return kn.default=kn,kn})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),swal.mixin({width:400,heightAuto:!1,padding:"2.5rem",buttonsStyling:!1,confirmButtonClass:"btn btn-success",confirmButtonColor:null,cancelButtonClass:"btn btn-secondary",cancelButtonColor:null});