Files
sibedas/resources/js/vendor.min.js
2025-01-16 17:16:14 +07:00

1 line
1.0 MiB
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()})(this,function(){let n=new Map,R={set(t,e,i){n.has(t)||n.set(t,new Map),(t=n.get(t)).has(e)||0===t.size?t.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(t.keys())[0]}.`)},get(t,e){return n.has(t)&&n.get(t).get(e)||null},remove(t,e){var i;n.has(t)&&((i=n.get(t)).delete(e),0===i.size)&&n.delete(t)}},F="transitionend",j=t=>t&&window.CSS&&window.CSS.escape?t.replace(/#([^\s"#']+)/g,(t,e)=>"#"+CSS.escape(e)):t,z=t=>{t.dispatchEvent(new Event(F))},o=t=>!(!t||"object"!=typeof t)&&void 0!==(t=void 0!==t.jquery?t[0]:t).nodeType,r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&0<t.length?document.querySelector(j(t)):null,a=t=>{if(!o(t)||0===t.getClientRects().length)return!1;var e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(i&&i!==t){if((t=t.closest("summary"))&&t.parentNode!==i)return!1;if(null===t)return!1}return e},s=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),B=t=>{var e;return document.documentElement.attachShadow?"function"==typeof t.getRootNode?(e=t.getRootNode())instanceof ShadowRoot?e:null:t instanceof ShadowRoot?t:t.parentNode?B(t.parentNode):null:null},H=()=>{},Y=t=>{t.offsetHeight},X=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,W=[],l=()=>"rtl"===document.documentElement.dir,t=n=>{var t=()=>{let i=X();if(i){let t=n.NAME,e=i.fn[t];i.fn[t]=n.jQueryInterface,i.fn[t].Constructor=n,i.fn[t].noConflict=()=>(i.fn[t]=e,n.jQueryInterface)}};"loading"===document.readyState?(W.length||document.addEventListener("DOMContentLoaded",()=>{for(var t of W)t()}),W.push(t)):t()},c=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,q=(n,r,t=!0)=>{if(t){t=(t=>{if(!r)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(r);var t=Number.parseFloat(e),n=Number.parseFloat(i);return t||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})()+5;let e=!1,i=({target:t})=>{t===r&&(e=!0,r.removeEventListener(F,i),c(n))};r.addEventListener(F,i),setTimeout(()=>{e||z(r)},t)}else c(n)},G=(t,e,i,n)=>{let r=t.length,o=t.indexOf(e);return-1===o?!i&&n?t[r-1]:t[0]:(o+=i?1:-1,n&&(o=(o+r)%r),t[Math.max(0,Math.min(o,r-1))])},V=/[^.]*(?=\..*)\.|.*/,U=/\..*/,Z=/::\d+$/,$={},K=1,Q={mouseenter:"mouseover",mouseleave:"mouseout"},J=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 tt(t,e){return e&&e+"::"+K++||t.uidEvent||K++}function et(t){var e=tt(t);return t.uidEvent=e,$[e]=$[e]||{},$[e]}function it(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function nt(t,e,i){var n="string"==typeof e,e=!n&&e||i,i=at(t);return[n,e,J.has(i)?i:t]}function rt(n,r,o,a,s){if("string"==typeof r&&n){let[t,e,i]=nt(r,o,a);r in Q&&(e=(l=e,function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return l.call(this,t)}));var l,c,h,u,d,f,p=it(a=(a=et(n))[i]||(a[i]={}),e,t?o:null);p?p.oneOff=p.oneOff&&s:(p=tt(e,r.replace(V,"")),(r=t?(u=n,d=o,f=e,function e(i){var n=u.querySelectorAll(d);for(let t=i.target;t&&t!==this;t=t.parentNode)for(var r of n)if(r===t)return st(i,{delegateTarget:t}),e.oneOff&&g.off(u,i.type,d,f),f.apply(t,[i])}):(c=n,h=e,function t(e){return st(e,{delegateTarget:c}),t.oneOff&&g.off(c,e.type,h),h.apply(c,[e])})).delegationSelector=t?o:null,r.callable=e,r.oneOff=s,a[r.uidEvent=p]=r,n.addEventListener(i,r,t))}}function ot(t,e,i,n,r){(n=it(e[i],n,r))&&(t.removeEventListener(i,n,Boolean(r)),delete e[i][n.uidEvent])}function at(t){return t=t.replace(U,""),Q[t]||t}let g={on(t,e,i,n){rt(t,e,i,n,!1)},one(t,e,i,n){rt(t,e,i,n,!0)},off(t,e,i,n){if("string"==typeof e&&t){var r,o,[n,a,s]=nt(e,i,n),l=s!==e,c=et(t),h=c[s]||{},u=e.startsWith(".");if(void 0!==a)return Object.keys(h).length?void ot(t,c,s,a,n?i:null):void 0;if(u)for(var d of Object.keys(c)){var f,p=f=void 0,g=t,m=c,b=d,v=e.slice(1),d=m[b]||{};for([f,p]of Object.entries(d))f.includes(v)&&ot(g,m,b,p.callable,p.delegationSelector)}for([r,o]of Object.entries(h)){var y=r.replace(Z,"");l&&!e.includes(y)||ot(t,c,s,o.callable,o.delegationSelector)}}},trigger(t,e,i){if("string"!=typeof e||!t)return null;var n=X();let r=null,o=!0,a=!0,s=!1;return e!==at(e)&&n&&(r=n.Event(e,i),n(t).trigger(r),o=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),s=r.isDefaultPrevented()),n=st(new Event(e,{bubbles:o,cancelable:!0}),i),s&&n.preventDefault(),a&&t.dispatchEvent(n),n.defaultPrevented&&r&&r.preventDefault(),n}};function st(i,n={}){for(let[t,e]of Object.entries(n))try{i[t]=e}catch(n){Object.defineProperty(i,t,{configurable:!0,get(){return e}})}return i}function lt(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 ct(t){return t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}let h={setDataAttribute(t,e,i){t.setAttribute("data-bs-"+ct(e),i)},removeDataAttribute(t,e){t.removeAttribute("data-bs-"+ct(e))},getDataAttributes(e){if(!e)return{};var i,n={};for(i of Object.keys(e.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"))){let t=i.replace(/^bs/,"");n[t=t.charAt(0).toLowerCase()+t.slice(1,t.length)]=lt(e.dataset[i])}return n},getDataAttribute(t,e){return lt(t.getAttribute("data-bs-"+ct(e)))}};class ht{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){var i=o(e)?h.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(e)?h.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(var[i,n]of Object.entries(e)){var r=t[i],r=o(r)?"element":null==r?""+r:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(r))throw new TypeError(this.constructor.NAME.toUpperCase()+`: Option "${i}" provided type "${r}" but expected type "${n}".`)}}}class e extends ht{constructor(t,e){super(),(t=r(t))&&(this._element=t,this._config=this._getConfig(e),R.set(this._element,this.constructor.DATA_KEY,this))}dispose(){R.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY);for(var t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){q(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return R.get(r(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}static eventName(t){return""+t+this.EVENT_KEY}}let ut=e=>{let i=e.getAttribute("data-bs-target");if(!i||"#"===i){let t=e.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t="#"+t.split("#")[1]),i=t&&"#"!==t?t.trim():null}return i?i.split(",").map(t=>j(t)).join(","):null},u={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(t=>t.matches(e))},parents(t,e){let i=[],n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){var e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>t+':not([tabindex^="-"])').join(",");return this.find(e,t).filter(t=>!s(t)&&a(t))},getSelectorFromElement(t){return(t=ut(t))&&u.findOne(t)?t:null},getElementFromSelector(t){return(t=ut(t))?u.findOne(t):null},getMultipleElementsFromSelector(t){return(t=ut(t))?u.find(t):[]}},dt=(e,i="hide")=>{let t="click.dismiss"+e.EVENT_KEY,n=e.NAME;g.on(document,t,`[data-bs-dismiss="${n}"]`,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),s(this)||(t=u.getElementFromSelector(this)||this.closest("."+n),e.getOrCreateInstance(t)[i]())})};class ft extends e{static get NAME(){return"alert"}close(){var t;g.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),t=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,t))}_destroyElement(){this._element.remove(),g.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each(function(){var t=ft.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)}})}}dt(ft,"close"),t(ft);let pt='[data-bs-toggle="button"]';class gt extends e{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){var t=gt.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}g.on(document,"click.bs.button.data-api",pt,t=>{t.preventDefault(),t=t.target.closest(pt),gt.getOrCreateInstance(t).toggle()}),t(gt);let i=".bs.swipe",mt=(i,i,i,i,i,{endCallback:null,leftCallback:null,rightCallback:null}),bt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class vt extends ht{constructor(t,e){super(),(this._element=t)&&vt.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return mt}static get DefaultType(){return bt}static get NAME(){return"swipe"}dispose(){g.off(this._element,i)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),c(this._config.endCallback)}_move(t){this._deltaX=t.touches&&1<t.touches.length?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){var t=Math.abs(this._deltaX);t<=40||(t/=this._deltaX,this._deltaX=0,t&&c(0<t?this._config.rightCallback:this._config.leftCallback))}_initEvents(){this._supportPointerEvents?(g.on(this._element,"pointerdown.bs.swipe",t=>this._start(t)),g.on(this._element,"pointerup.bs.swipe",t=>this._end(t)),this._element.classList.add("pointer-event")):(g.on(this._element,"touchstart.bs.swipe",t=>this._start(t)),g.on(this._element,"touchmove.bs.swipe",t=>this._move(t)),g.on(this._element,"touchend.bs.swipe",t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||0<navigator.maxTouchPoints}}let yt="next",d="prev",f="left",xt="right",wt="slid.bs.carousel",kt="carousel",At="active",St=".active",Ct=".carousel-item",_t=(St,Ct,{ArrowLeft:xt,ArrowRight:f}),Et={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ot={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Tt extends e{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=u.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===kt&&this.cycle()}static get Default(){return Et}static get DefaultType(){return Ot}static get NAME(){return"carousel"}next(){this._slide(yt)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(d)}pause(){this._isSliding&&z(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?g.one(this._element,wt,()=>this.cycle()):this.cycle())}to(t){var e,i=this._getItems();t>i.length-1||t<0||(this._isSliding?g.one(this._element,wt,()=>this.to(t)):(e=this._getItemIndex(this._getActive()))!==t&&(e=e<t?yt:d,this._slide(e,i[t])))}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&g.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(g.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),g.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&vt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(var t of u.find(".carousel-item img",this._element))g.on(t,"dragstart.bs.carousel",t=>t.preventDefault());var e={leftCallback:()=>this._slide(this._directionToOrder(f)),rightCallback:()=>this._slide(this._directionToOrder(xt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new vt(this._element,e)}_keydown(t){var e;/input|textarea/i.test(t.target.tagName)||(e=_t[t.key])&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){var e;this._indicatorsElement&&((e=u.findOne(St,this._indicatorsElement)).classList.remove(At),e.removeAttribute("aria-current"),e=u.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement))&&(e.classList.add(At),e.setAttribute("aria-current","true"))}_updateInterval(){var t=this._activeElement||this._getActive();t&&(t=Number.parseInt(t.getAttribute("data-bs-interval"),10),this._config.interval=t||this._config.defaultInterval)}_slide(e,s=null){if(!this._isSliding){let r=this._getActive(),o=e===yt,a=s||G(this._getItems(),r,o,this._config.wrap);if(a!==r){let i=this._getItemIndex(a),n=t=>g.trigger(this._element,t,{relatedTarget:a,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:i});if(!(s=n("slide.bs.carousel")).defaultPrevented&&r&&a){s=Boolean(this._interval),this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=a;let t=o?"carousel-item-start":"carousel-item-end",e=o?"carousel-item-next":"carousel-item-prev";a.classList.add(e),Y(a),r.classList.add(t),a.classList.add(t),this._queueCallback(()=>{a.classList.remove(t,e),a.classList.add(At),r.classList.remove(At,e,t),this._isSliding=!1,n(wt)},r,this._isAnimated()),s&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return u.findOne(".active.carousel-item",this._element)}_getItems(){return u.find(Ct,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return l()?t===f?d:yt:t===f?yt:d}_orderToDirection(t){return l()?t===d?f:xt:t===d?xt:f}static jQueryInterface(e){return this.each(function(){var t=Tt.getOrCreateInstance(this,e);if("number"==typeof e)t.to(e);else if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}g.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(t){var e=u.getElementFromSelector(this);e&&e.classList.contains(kt)&&(t.preventDefault(),t=Tt.getOrCreateInstance(e),(e=this.getAttribute("data-bs-slide-to"))?t.to(e):"next"===h.getDataAttribute(this,"slide")?t.next():t.prev(),t._maybeEnableCycle())}),g.on(window,"load.bs.carousel.data-api",()=>{var t;for(t of u.find('[data-bs-ride="carousel"]'))Tt.getOrCreateInstance(t)}),t(Tt);let Lt="show",p="collapse",Mt="collapsing",Pt=(p,p,'[data-bs-toggle="collapse"]'),It={parent:null,toggle:!0},Nt={parent:"(null|element)",toggle:"boolean"};class Dt extends e{constructor(t,e){var i;super(t,e),this._isTransitioning=!1,this._triggerArray=[];for(i of u.find(Pt)){var n=u.getSelectorFromElement(i),r=u.find(n).filter(t=>t===this._element);null!==n&&r.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return It}static get DefaultType(){return Nt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){var e=[];if(!((e=this._config.parent?this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>Dt.getOrCreateInstance(t,{toggle:!1})):e).length&&e[0]._isTransitioning||g.trigger(this._element,"show.bs.collapse").defaultPrevented)){for(var i of e)i.hide();let t=this._getDimension();this._element.classList.remove(p),this._element.classList.add(Mt),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0,e="scroll"+(t[0].toUpperCase()+t.slice(1)),this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Mt),this._element.classList.add(p,Lt),this._element.style[t]="",g.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[t]=this._element[e]+"px"}}}hide(){if(!this._isTransitioning&&this._isShown()&&!g.trigger(this._element,"hide.bs.collapse").defaultPrevented){var t,e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",Y(this._element),this._element.classList.add(Mt),this._element.classList.remove(p,Lt);for(t of this._triggerArray){var i=u.getElementFromSelector(t);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Mt),this._element.classList.add(p),g.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}_isShown(t=this._element){return t.classList.contains(Lt)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=r(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){var t;if(this._config.parent)for(t of this._getFirstLevelChildren(Pt)){var e=u.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(t){let e=u.find(":scope .collapse .collapse",this._config.parent);return u.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(var i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(e){let i={};return"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),this.each(function(){var t=Dt.getOrCreateInstance(this,i);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}g.on(document,"click.bs.collapse.data-api",Pt,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(var e of u.getMultipleElementsFromSelector(this))Dt.getOrCreateInstance(e,{toggle:!1}).toggle()}),t(Dt);var Rt,E="top",O="bottom",T="right",L="left",Ft="auto",M=[E,O,T,L],P="start",y="end",jt="clippingParents",zt="viewport",Bt="popper",Ht="reference",Yt=M.reduce(function(t,e){return t.concat([e+"-"+P,e+"-"+y])},[]),Xt=[].concat(M,[Ft]).reduce(function(t,e){return t.concat([e,e+"-"+P,e+"-"+y])},[]),Wt="afterRead",qt="beforeMain",Gt="afterMain",Vt="beforeWrite",Ut="afterWrite",Zt=[Rt="beforeRead","read",Wt,qt,"main",Gt,Vt,"write",Ut];function v(t){return t?(t.nodeName||"").toLowerCase():null}function x(t){var e;return null==t?window:"[object Window]"!==t.toString()?(e=t.ownerDocument)&&e.defaultView||window:t}function w(t){return t instanceof x(t).Element||t instanceof Element}function k(t){return t instanceof x(t).HTMLElement||t instanceof HTMLElement}function $t(t){return"undefined"!=typeof ShadowRoot&&(t instanceof x(t).ShadowRoot||t instanceof ShadowRoot)}var Kt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var r=t.state;Object.keys(r.elements).forEach(function(t){var e=r.styles[t]||{},i=r.attributes[t]||{},n=r.elements[t];k(n)&&v(n)&&(Object.assign(n.style,e),Object.keys(i).forEach(function(t){var e=i[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow),function(){Object.keys(n.elements).forEach(function(t){var e=n.elements[t],i=n.attributes[t]||{},t=Object.keys((n.styles.hasOwnProperty(t)?n.styles:r)[t]).reduce(function(t,e){return t[e]="",t},{});k(e)&&v(e)&&(Object.assign(e.style,t),Object.keys(i).forEach(function(t){e.removeAttribute(t)}))})}},requires:["computeStyles"]};function I(t){return t.split("-")[0]}var _=Math.max,Qt=Math.min,Jt=Math.round;function te(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ee(){return!/^((?!chrome|android).)*safari/i.test(te())}function ie(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),r=1,o=1;return e&&k(t)&&(r=0<t.offsetWidth&&Jt(n.width)/t.offsetWidth||1,o=0<t.offsetHeight&&Jt(n.height)/t.offsetHeight||1),e=(w(t)?x(t):window).visualViewport,t=!ee()&&i,i=(n.left+(t&&e?e.offsetLeft:0))/r,t=(n.top+(t&&e?e.offsetTop:0))/o,{width:e=n.width/r,height:r=n.height/o,top:t,right:i+e,bottom:t+r,left:i,x:i,y:t}}function ne(t){var e=ie(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function re(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&$t(i)){var n=e;do{if(n&&t.isSameNode(n))return!0}while(n=n.parentNode||n.host)}return!1}function A(t){return x(t).getComputedStyle(t)}function S(t){return((w(t)?t.ownerDocument:t.document)||window.document).documentElement}function oe(t){return"html"===v(t)?t:t.assignedSlot||t.parentNode||($t(t)?t.host:null)||S(t)}function ae(t){return k(t)&&"fixed"!==A(t).position?t.offsetParent:null}function se(t){for(var e,i=x(t),n=ae(t);n&&(e=n,0<=["table","td","th"].indexOf(v(e)))&&"static"===A(n).position;)n=ae(n);return(!n||"html"!==v(n)&&("body"!==v(n)||"static"!==A(n).position))&&(n||(t=>{var e=/firefox/i.test(te());if(!/Trident/i.test(te())||!k(t)||"fixed"!==A(t).position){var i=oe(t);for($t(i)&&(i=i.host);k(i)&&["html","body"].indexOf(v(i))<0;){var n=A(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}}return null})(t))||i}function le(t){return 0<=["top","bottom"].indexOf(t)?"x":"y"}function ce(t,e,i){return _(t,Qt(e,i))}function he(){return{top:0,right:0,bottom:0,left:0}}function ue(t){return Object.assign({},he(),t)}function de(i,t){return t.reduce(function(t,e){return t[e]=i,t},{})}var fe={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i,n,r,o=t.state,a=t.name,t=t.options,s=o.elements.arrow,l=o.modifiersData.popperOffsets,c=le(h=I(o.placement)),h=0<=[L,T].indexOf(h)?"height":"width";s&&l&&(i=ue("number"!=typeof(t="function"==typeof(t=t.padding)?t(Object.assign({},o.rects,{placement:o.placement})):t)?t:de(t,M)),t=ne(s),r="y"===c?E:L,n="y"===c?O:T,e=o.rects.reference[h]+o.rects.reference[c]-l[c]-o.rects.popper[h],l=l[c]-o.rects.reference[c],s=(s=se(s))?"y"===c?s.clientHeight||0:s.clientWidth||0:0,r=i[r],i=s-t[h]-i[n],r=ce(r,n=s/2-t[h]/2+(e/2-l/2),i),o.modifiersData[a]=((s={})[c]=r,s.centerOffset=r-n,s))},effect:function(t){var e=t.state;null!=(t=void 0===(t=t.options.element)?"[data-popper-arrow]":t)&&("string"!=typeof t||(t=e.elements.popper.querySelector(t)))&&re(e.elements.popper,t)&&(e.elements.arrow=t)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pe(t){return t.split("-")[1]}var ge={top:"auto",right:"auto",bottom:"auto",left:"auto"};function me(t){var e,i=t.popper,n=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,t=t.isFixed,u=void 0===(u=a.x)?0:u,d=void 0===(d=a.y)?0:d,f=(u=(f="function"==typeof h?h({x:u,y:d}):{x:u,y:d}).x,d=f.y,a.hasOwnProperty("x")),a=a.hasOwnProperty("y"),p=L,g=E,m=window,b=(c&&(b="clientHeight",e="clientWidth",(v=se(i))===x(i)&&"static"!==A(v=S(i)).position&&"absolute"===s&&(b="scrollHeight",e="scrollWidth"),r!==E&&(r!==L&&r!==T||o!==y)||(g=O,d=(d-((t&&v===m&&m.visualViewport?m.visualViewport.height:v[b])-n.height))*(l?1:-1)),r!==L&&(r!==E&&r!==O||o!==y)||(p=T,u=(u-((t&&v===m&&m.visualViewport?m.visualViewport.width:v[e])-n.width))*(l?1:-1))),Object.assign({position:s},c&&ge)),v=!0===h?(r={x:u,y:d},o=x(i),t=r.x,r=r.y,o=o.devicePixelRatio||1,{x:Jt(t*o)/o||0,y:Jt(r*o)/o||0}):{x:u,y:d},u=v.x,d=v.y;return l?Object.assign({},b,((e={})[g]=a?"0":"",e[p]=f?"0":"",e.transform=(m.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",e)):Object.assign({},b,((n={})[g]=a?d+"px":"",n[p]=f?u+"px":"",n.transform="",n))}var be={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=void 0===(i=(t=t.options).gpuAcceleration)||i,n=void 0===(n=t.adaptive)||n,t=void 0===(t=t.roundOffsets)||t,i={placement:I(e.placement),variation:pe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,me(Object.assign({},i,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:n,roundOffsets:t})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,me(Object.assign({},i,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:t})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ve={passive:!0},ye={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=(t=t.options).scroll,r=void 0===n||n,o=void 0===(n=t.resize)||n,a=x(e.elements.popper),s=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&s.forEach(function(t){t.addEventListener("scroll",i.update,ve)}),o&&a.addEventListener("resize",i.update,ve),function(){r&&s.forEach(function(t){t.removeEventListener("scroll",i.update,ve)}),o&&a.removeEventListener("resize",i.update,ve)}},data:{}},xe={left:"right",right:"left",bottom:"top",top:"bottom"};function we(t){return t.replace(/left|right|bottom|top/g,function(t){return xe[t]})}var ke={start:"end",end:"start"};function Ae(t){return t.replace(/start|end/g,function(t){return ke[t]})}function Se(t){return{scrollLeft:(t=x(t)).pageXOffset,scrollTop:t.pageYOffset}}function Ce(t){return ie(S(t)).left+Se(t).scrollLeft}function _e(t){var e=(t=A(t)).overflow;return/auto|scroll|overlay|hidden/.test(e+t.overflowY+t.overflowX)}function Ee(t,e){void 0===e&&(e=[]);var t=(n=function t(e){return 0<=["html","body","#document"].indexOf(v(e))?e.ownerDocument.body:k(e)&&_e(e)?e:t(oe(e))}(t))===(null==(t=t.ownerDocument)?void 0:t.body),i=x(n),i=t?[i].concat(i.visualViewport||[],_e(n)?n:[]):n,n=e.concat(i);return t?n:n.concat(Ee(oe(i)))}function Oe(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Te(t,e,i){return e===zt?Oe((r=i,a=x(n=t),s=S(n),a=a.visualViewport,l=s.clientWidth,s=s.clientHeight,h=c=0,a&&(l=a.width,s=a.height,(o=ee())||!o&&"fixed"===r)&&(c=a.offsetLeft,h=a.offsetTop),{width:l,height:s,x:c+Ce(n),y:h})):w(e)?((r=ie(o=e,!1,"fixed"===(r=i))).top=r.top+o.clientTop,r.left=r.left+o.clientLeft,r.bottom=r.top+o.clientHeight,r.right=r.left+o.clientWidth,r.width=o.clientWidth,r.height=o.clientHeight,r.x=r.left,r.y=r.top,r):Oe((a=S(t),l=S(a),s=Se(a),c=null==(c=a.ownerDocument)?void 0:c.body,n=_(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=_(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),a=-s.scrollLeft+Ce(a),s=-s.scrollTop,"rtl"===A(c||l).direction&&(a+=_(l.clientWidth,c?c.clientWidth:0)-n),{width:n,height:h,x:a,y:s}));var n,r,o,a,s,l,c,h}function Le(t){var e,i=t.reference,n=t.element,r=(t=t.placement)?I(t):null,t=t?pe(t):null,o=i.x+i.width/2-n.width/2,a=i.y+i.height/2-n.height/2;switch(r){case E:e={x:o,y:i.y-n.height};break;case O:e={x:o,y:i.y+i.height};break;case T:e={x:i.x+i.width,y:a};break;case L:e={x:i.x-n.width,y:a};break;default:e={x:i.x,y:i.y}}var s=r?le(r):null;if(null!=s){var l="y"===s?"height":"width";switch(t){case P:e[s]=e[s]-(i[l]/2-n[l]/2);break;case y:e[s]=e[s]+(i[l]/2-n[l]/2)}}return e}function Me(t,e){var n,i,r,o,a,s,l,c,h=void 0===(h=(e=void 0===e?{}:e).placement)?t.placement:h,u=void 0===(u=e.strategy)?t.strategy:u,d=void 0===(d=e.boundary)?jt:d,f=void 0===(f=e.rootBoundary)?zt:f,p=void 0===(p=e.elementContext)?Bt:p,g=void 0!==(g=e.altBoundary)&&g,e=ue("number"!=typeof(e=void 0===(e=e.padding)?0:e)?e:de(e,M)),m=t.rects.popper,g=t.elements[g?p===Bt?Ht:Bt:p],g=(i=w(g)?g:g.contextElement||S(t.elements.popper),o=f,a=u,l="clippingParents"===(r=d)?(c=Ee(oe(l=i)),w(s=0<=["absolute","fixed"].indexOf(A(l).position)&&k(l)?se(l):l)?c.filter(function(t){return w(t)&&re(t,s)&&"body"!==v(t)}):[]):[].concat(r),r=(c=[].concat(l,[o]))[0],(o=c.reduce(function(t,e){return e=Te(i,e,a),t.top=_(e.top,t.top),t.right=Qt(e.right,t.right),t.bottom=Qt(e.bottom,t.bottom),t.left=_(e.left,t.left),t},Te(i,r,a))).width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o),f=Le({reference:d=ie(t.elements.reference),element:m,strategy:"absolute",placement:h}),u=Oe(Object.assign({},m,f)),b={top:g.top-(m=p===Bt?u:d).top+e.top,bottom:m.bottom-g.bottom+e.bottom,left:g.left-m.left+e.left,right:m.right-g.right+e.right},f=t.modifiersData.offset;return p===Bt&&f&&(n=f[h],Object.keys(b).forEach(function(t){var e=0<=[T,O].indexOf(t)?1:-1,i=0<=[E,O].indexOf(t)?"y":"x";b[t]+=n[i]*e})),b}var Pe={name:"flip",enabled:!0,phase:"main",fn:function(t){var u=t.state,e=t.options,t=t.name;if(!u.modifiersData[t]._skip){for(var i=void 0===(r=e.mainAxis)||r,n=void 0===(r=e.altAxis)||r,r=e.fallbackPlacements,d=e.padding,f=e.boundary,p=e.rootBoundary,o=e.altBoundary,a=e.flipVariations,g=void 0===a||a,m=e.allowedAutoPlacements,e=I(a=u.options.placement),r=r||(e!==a&&g?I(r=a)===Ft?[]:(e=we(r),[Ae(r),e,Ae(e)]):[we(a)]),s=[a].concat(r).reduce(function(t,e){return t.concat(I(e)===Ft?(i=u,n=(t={placement:e,boundary:f,rootBoundary:p,padding:d,flipVariations:g,allowedAutoPlacements:m}).placement,r=t.boundary,o=t.rootBoundary,a=t.padding,s=t.flipVariations,l=void 0===(t=t.allowedAutoPlacements)?Xt:t,t=(c=pe(n))?s?Yt:Yt.filter(function(t){return pe(t)===c}):M,h=(n=0===(n=t.filter(function(t){return 0<=l.indexOf(t)})).length?t:n).reduce(function(t,e){return t[e]=Me(i,{placement:e,boundary:r,rootBoundary:o,padding:a})[I(e)],t},{}),Object.keys(h).sort(function(t,e){return h[t]-h[e]})):e);var i,n,r,o,a,s,l,c,h},[]),l=u.rects.reference,c=u.rects.popper,h=new Map,b=!0,v=s[0],y=0;y<s.length;y++){var x=s[y],w=I(x),k=pe(x)===P,A=(C=0<=[E,O].indexOf(w))?"width":"height",S=Me(u,{placement:x,boundary:f,rootBoundary:p,altBoundary:o,padding:d}),C=C?k?T:L:k?O:E,k=(l[A]>c[A]&&(C=we(C)),we(C)),A=[];if(i&&A.push(S[w]<=0),n&&A.push(S[C]<=0,S[k]<=0),A.every(function(t){return t})){v=x,b=!1;break}h.set(x,A)}if(b)for(var _=g?3:1;0<_&&"break"!==(e=>{var t=s.find(function(t){if(t=h.get(t))return t.slice(0,e).every(function(t){return t})});if(t)return v=t,"break"})(_);_--);u.placement!==v&&(u.modifiersData[t]._skip=!0,u.placement=v,u.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ie(t,e,i){return{top:t.top-e.height-(i=void 0===i?{x:0,y:0}:i).y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Ne(e){return[E,T,O,L].some(function(t){return 0<=e[t]})}var De={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,t=t.name,i=e.rects.reference,n=e.rects.popper,r=e.modifiersData.preventOverflow,o=Me(e,{elementContext:"reference"}),a=Me(e,{altBoundary:!0}),o=Ie(o,i),i=Ie(a,n,r),a=Ne(o),n=Ne(i);e.modifiersData[t]={referenceClippingOffsets:o,popperEscapeOffsets:i,isReferenceHidden:a,hasPopperEscaped:n},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":n})}},Re={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var a=t.state,e=t.name,s=void 0===(t=t.options.offset)?[0,0]:t,i=(n=(t=Xt.reduce(function(t,e){var i,n,r,o;return t[e]=(i=a.rects,n=s,r=I(e),o=0<=[L,E].indexOf(r)?-1:1,e=(i="function"==typeof n?n(Object.assign({},i,{placement:e})):n)[0]||0,n=(i[1]||0)*o,0<=[L,T].indexOf(r)?{x:n,y:e}:{x:e,y:n}),t},{}))[a.placement]).x,n=n.y;null!=a.modifiersData.popperOffsets&&(a.modifiersData.popperOffsets.x+=i,a.modifiersData.popperOffsets.y+=n),a.modifiersData[e]=t}},Fe={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=Le({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e,i,n,r,o,a,s,l,c,h=t.state,u=t.options,t=t.name,d=void 0===(d=u.mainAxis)||d,f=void 0!==(f=u.altAxis)&&f,p=void 0===(p=u.tether)||p,g=void 0===(g=u.tetherOffset)?0:g,u=Me(h,{boundary:u.boundary,rootBoundary:u.rootBoundary,padding:u.padding,altBoundary:u.altBoundary}),m=I(h.placement),b=pe(h.placement),v=!b,y=le(m),x="x"===y?"y":"x",w=h.modifiersData.popperOffsets,k=h.rects.reference,A=h.rects.popper,g="number"==typeof(g="function"==typeof g?g(Object.assign({},h.rects,{placement:h.placement})):g)?{mainAxis:g,altAxis:g}:Object.assign({mainAxis:0,altAxis:0},g),S=h.modifiersData.offset?h.modifiersData.offset[h.placement]:null,C={x:0,y:0};w&&(d&&(d="y"===y?"height":"width",a=(s=w[y])+u[i="y"===y?E:L],l=s-u[c="y"===y?O:T],e=p?-A[d]/2:0,r=(b===P?k:A)[d],b=b===P?-A[d]:-k[d],o=h.elements.arrow,o=p&&o?ne(o):{width:0,height:0},i=(n=h.modifiersData["arrow#persistent"]?h.modifiersData["arrow#persistent"].padding:he())[i],n=n[c],c=ce(0,k[d],o[d]),o=v?k[d]/2-e-c-i-g.mainAxis:r-c-i-g.mainAxis,r=v?-k[d]/2+e+c+n+g.mainAxis:b+c+n+g.mainAxis,v=(i=h.elements.arrow&&se(h.elements.arrow))?"y"===y?i.clientTop||0:i.clientLeft||0:0,b=s+r-(e=null!=(d=null==S?void 0:S[y])?d:0),c=ce(p?Qt(a,s+o-e-v):a,s,p?_(l,b):l),w[y]=c,C[y]=c-s),f&&(n="y"==x?"height":"width",r=(i=w[x])+u["x"===y?E:L],d=i-u["x"===y?O:T],o=-1!==[E,L].indexOf(m),v=null!=(e=null==S?void 0:S[x])?e:0,a=o?r:i-k[n]-A[n]-v+g.altAxis,b=o?i+k[n]+A[n]-v-g.altAxis:d,s=p&&o?(l=ce(l=a,i,c=b),c<l?c:l):ce(p?a:r,i,p?b:d),w[x]=s,C[x]=s-i),h.modifiersData[t]=C)},requiresIfExists:["offset"]},ze={placement:"bottom",modifiers:[],strategy:"absolute"};function Be(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function He(t){var e=(t=void 0===t?{}:t).defaultModifiers,u=void 0===e?[]:e,g=void 0===(e=t.defaultOptions)?ze:e;return function(s,l,e){void 0===e&&(e=g);var i,n,d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ze,g),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},c=[],f=!1,p={state:d,setOptions:function(t){var i,e,n,r,o,a,t="function"==typeof t?t(d.options):t,t=(h(),d.options=Object.assign({},g,d.options,t),d.scrollParents={reference:w(s)?Ee(s):s.contextElement?Ee(s.contextElement):[],popper:Ee(l)},t=[].concat(u,d.options.modifiers),e=t.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),n=t=Object.keys(e).map(function(t){return e[t]}),r=new Map,o=new Set,a=[],n.forEach(function(t){r.set(t.name,t)}),n.forEach(function(t){o.has(t.name)||!function e(t){o.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){o.has(t)||(t=r.get(t))&&e(t)}),a.push(t)}(t)}),i=a,Zt.reduce(function(t,e){return t.concat(i.filter(function(t){return t.phase===e}))},[]));return d.orderedModifiers=t.filter(function(t){return t.enabled}),d.orderedModifiers.forEach(function(t){var e=t.name,i=t.options;"function"==typeof(t=t.effect)&&(t=t({state:d,name:e,instance:p,options:void 0===i?{}:i}),c.push(t||function(){}))}),p.update()},forceUpdate:function(){if(!f){var t=d.elements,e=t.reference;if(Be(e,t=t.popper)){d.rects={reference:(a=se(t),s="fixed"===d.options.strategy,l=k(a),c=k(a)&&(u=(c=a).getBoundingClientRect(),h=Jt(u.width)/c.offsetWidth||1,u=Jt(u.height)/c.offsetHeight||1,1!==h||1!==u),h=S(a),u=ie(e,c,s),e={scrollLeft:0,scrollTop:0},c={x:0,y:0},!l&&s||("body"===v(a)&&!_e(h)||(e=(l=a)!==x(l)&&k(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:Se(l)),k(a)?((c=ie(a,!0)).x+=a.clientLeft,c.y+=a.clientTop):h&&(c.x=Ce(h))),{x:u.left+e.scrollLeft-c.x,y:u.top+e.scrollTop-c.y,width:u.width,height:u.height}),popper:ne(t)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(t){return d.modifiersData[t.name]=Object.assign({},t.data)});for(var i,n,r,o=0;o<d.orderedModifiers.length;o++)!0===d.reset?(d.reset=!1,o=-1):(n=(i=d.orderedModifiers[o]).fn,r=i.options,"function"==typeof n&&(d=n({state:d,options:void 0===r?{}:r,name:i.name,instance:p})||d))}}var a,s,l,c,h,u},update:(i=function(){return new Promise(function(t){p.forceUpdate(),t(d)})},function(){return n=n||new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(i())})})}),destroy:function(){h(),f=!0}};return Be(s,l)&&p.setOptions(e).then(function(t){!f&&e.onFirstUpdate&&e.onFirstUpdate(t)}),p;function h(){c.forEach(function(t){return t()}),c=[]}}}var Ye=He({defaultModifiers:[ye,Fe,be,Kt,Re,Pe,je,fe,De]});let Xe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Gt,afterRead:Wt,afterWrite:Ut,applyStyles:Kt,arrow:fe,auto:Ft,basePlacements:M,beforeMain:qt,beforeRead:Rt,beforeWrite:Vt,bottom:O,clippingParents:jt,computeStyles:be,createPopper:Ye,createPopperBase:He(),createPopperLite:He({defaultModifiers:[ye,Fe,be,Kt]}),detectOverflow:Me,end:y,eventListeners:ye,flip:Pe,hide:De,left:L,main:"main",modifierPhases:Zt,offset:Re,placements:Xt,popper:Bt,popperGenerator:He,popperOffsets:Fe,preventOverflow:je,read:"read",reference:Ht,right:T,start:P,top:E,variationPlacements:Yt,viewport:zt,write:"write"},Symbol.toStringTag,{value:"Module"})),We="dropdown",qe="ArrowDown",Ge=(Ut="click"+(Gt=".bs.dropdown")+(Wt=".data-api"),fe="keydown"+Gt+Wt,"show"),m='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ve=(m,".dropdown-menu"),Ue=l()?"top-end":"top-start",Ze=l()?"top-start":"top-end",$e=l()?"bottom-end":"bottom-start",Ke=l()?"bottom-start":"bottom-end",Qe=l()?"left-start":"right-start",Je=l()?"right-start":"left-start",ti={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ei={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class b extends e{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=u.next(this._element,Ve)[0]||u.prev(this._element,Ve)[0]||u.findOne(Ve,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ti}static get DefaultType(){return ei}static get NAME(){return We}toggle(){return this._isShown()?this.hide():this.show()}show(){if(!s(this._element)&&!this._isShown()){var t={relatedTarget:this._element};if(!g.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(var e of[].concat(...document.body.children))g.on(e,"mouseover",H);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ge),this._element.classList.add(Ge),g.trigger(this._element,"shown.bs.dropdown",t)}}}hide(){var t;!s(this._element)&&this._isShown()&&(t={relatedTarget:this._element},this._completeHide(t))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!g.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(var e of[].concat(...document.body.children))g.off(e,"mouseover",H);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ge),this._element.classList.remove(Ge),this._element.setAttribute("aria-expanded","false"),h.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,"hidden.bs.dropdown",t)}}_getConfig(t){if("object"!=typeof(t=super._getConfig(t)).reference||o(t.reference)||"function"==typeof t.reference.getBoundingClientRect)return t;throw new TypeError(We.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.')}_createPopper(){if(void 0===Xe)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);var e=this._getPopperConfig();this._popper=Ye(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ge)}_getPlacement(){var t,e=this._parent;return e.classList.contains("dropend")?Qe:e.classList.contains("dropstart")?Je:e.classList.contains("dropup-center")?"top":e.classList.contains("dropdown-center")?"bottom":(t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(),e.classList.contains("dropup")?t?Ze:Ue:t?Ke:$e)}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){let e=this._config.offset;return"string"==typeof e?e.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){var t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return!this._inNavbar&&"static"!==this._config.display||(h.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...c(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){var i=u.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>a(t));i.length&&G(i,e,t===qe,!i.includes(e)).focus()}static jQueryInterface(e){return this.each(function(){var t=b.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(t){var e;if(2!==t.button&&("keyup"!==t.type||"Tab"===t.key))for(e of u.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show')){var i,n,r=b.getInstance(e);r&&!1!==r._config.autoClose&&(i=(n=t.composedPath()).includes(r._menu),n.includes(r._element)||"inside"===r._config.autoClose&&!i||"outside"===r._config.autoClose&&i||r._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName))||(n={relatedTarget:r._element},"click"===t.type&&(n.clickEvent=t),r._completeHide(n)))}}static dataApiKeydownHandler(t){var e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=["ArrowUp",qe].includes(t.key);!n&&!i||e&&!i||(t.preventDefault(),e=this.matches(m)?this:u.prev(this,m)[0]||u.next(this,m)[0]||u.findOne(m,t.delegateTarget.parentNode),i=b.getOrCreateInstance(e),n?(t.stopPropagation(),i.show(),i._selectMenuItem(t)):i._isShown()&&(t.stopPropagation(),i.hide(),e.focus()))}}g.on(document,fe,m,b.dataApiKeydownHandler),g.on(document,fe,Ve,b.dataApiKeydownHandler),g.on(document,Ut,b.clearMenus),g.on(document,"keyup.bs.dropdown.data-api",b.clearMenus),g.on(document,Ut,m,function(t){t.preventDefault(),b.getOrCreateInstance(this).toggle()}),t(b);let ii="backdrop",ni="mousedown.bs."+ii,ri={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},oi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ai extends ht{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ri}static get DefaultType(){return oi}static get NAME(){return ii}show(t){var e;this._config.isVisible?(this._append(),e=this._getElement(),this._config.isAnimated&&Y(e),e.classList.add("show"),this._emulateAnimation(()=>{c(t)})):c(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),c(t)})):c(t)}dispose(){this._isAppended&&(g.off(this._element,ni),this._element.remove(),this._isAppended=!1)}_getElement(){var t;return this._element||((t=document.createElement("div")).className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t),this._element}_configAfterMerge(t){return t.rootElement=r(t.rootElement),t}_append(){var t;this._isAppended||(t=this._getElement(),this._config.rootElement.append(t),g.on(t,ni,()=>{c(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(t){q(t,this._getElement(),this._config.isAnimated)}}let si=".bs.focustrap",li=(si,si,"backward"),ci={autofocus:!0,trapElement:null},hi={autofocus:"boolean",trapElement:"element"};class ui extends ht{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ci}static get DefaultType(){return hi}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),g.off(document,si),g.on(document,"focusin.bs.focustrap",t=>this._handleFocusin(t)),g.on(document,"keydown.tab.bs.focustrap",t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,g.off(document,si))}_handleFocusin(t){var e=this._config.trapElement;t.target===document||t.target===e||e.contains(t.target)||(0===(t=u.focusableChildren(e)).length?e:this._lastTabNavDirection===li?t[t.length-1]:t[0]).focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?li:"forward")}}let di=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",fi=".sticky-top",pi="padding-right",gi="margin-right";class mi{constructor(){this._element=document.body}getWidth(){var t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,pi,t=>t+e),this._setElementAttributes(di,pi,t=>t+e),this._setElementAttributes(fi,gi,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,pi),this._resetElementAttributes(di,pi),this._resetElementAttributes(fi,gi)}isOverflowing(){return 0<this.getWidth()}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,i,n){let r=this.getWidth();this._applyManipulationCallback(t,t=>{var e;t!==this._element&&window.innerWidth>t.clientWidth+r||(this._saveInitialAttribute(t,i),e=window.getComputedStyle(t).getPropertyValue(i),t.style.setProperty(i,n(Number.parseFloat(e))+"px"))})}_saveInitialAttribute(t,e){var i=t.style.getPropertyValue(e);i&&h.setDataAttribute(t,e,i)}_resetElementAttributes(t,i){this._applyManipulationCallback(t,t=>{var e=h.getDataAttribute(t,i);null===e?t.style.removeProperty(i):(h.removeDataAttribute(t,i),t.style.setProperty(i,e))})}_applyManipulationCallback(t,e){if(o(t))e(t);else for(var i of u.find(t,this._element))e(i)}}let C=".bs.modal",bi=(C,C,"hidden"+C),vi="show"+C,yi=(C,C,C,C,C,C,"modal-open"),xi="modal-static",wi={backdrop:!0,focus:!0,keyboard:!0},ki={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ai extends e{constructor(t,e){super(t,e),this._dialog=u.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new mi,this._addEventListeners()}static get Default(){return wi}static get DefaultType(){return ki}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,vi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(yi),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||g.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){g.off(window,C),g.off(this._dialog,C),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ai({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ui({trapElement:this._element})}_showElement(t){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;var e=u.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Y(this._element),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,g.trigger(this._element,"shown.bs.modal",{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){g.on(this._element,"keydown.dismiss.bs.modal",t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),g.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),g.on(this._element,"mousedown.dismiss.bs.modal",e=>{g.one(this._element,"click.dismiss.bs.modal",t=>{this._element===e.target&&this._element===t.target&&("static"===this._config.backdrop?this._triggerBackdropTransition():this._config.backdrop&&this.hide())})})}_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(yi),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,bi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){var e;if(!g.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented){e=this._element.scrollHeight>document.documentElement.clientHeight;let t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(xi)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(xi),this._queueCallback(()=>{this._element.classList.remove(xi),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var t,e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),n=0<i;n&&!e&&(t=l()?"paddingLeft":"paddingRight",this._element.style[t]=i+"px"),!n&&e&&(t=l()?"paddingRight":"paddingLeft",this._element.style[t]=i+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,i){return this.each(function(){var t=Ai.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](i)}})}}g.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(t){let e=u.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),g.one(e,vi,t=>{t.defaultPrevented||g.one(e,bi,()=>{a(this)&&this.focus()})}),(t=u.findOne(".modal.show"))&&Ai.getInstance(t).hide(),Ai.getOrCreateInstance(e).toggle(this)}),dt(Ai),t(Ai);let Si="showing",Ci=".offcanvas.show",_i="hidePrevented"+(qt=".bs.offcanvas"),Ei="hidden"+qt,Oi={backdrop:!0,keyboard:!0,scroll:!1},Ti={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class N extends e{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Oi}static get DefaultType(){return Ti}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||g.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new mi).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Si),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(Si),g.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&!g.trigger(this._element,"hide.bs.offcanvas").defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new mi).reset(),g.trigger(this._element,Ei)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var t=Boolean(this._config.backdrop);return new ai({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"===this._config.backdrop?g.trigger(this._element,_i):this.hide()}:null})}_initializeFocusTrap(){return new ui({trapElement:this._element})}_addEventListeners(){g.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():g.trigger(this._element,_i))})}static jQueryInterface(e){return this.each(function(){var t=N.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)}})}}g.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(t){var e=u.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),s(this)||(g.one(e,Ei,()=>{a(this)&&this.focus()}),(t=u.findOne(Ci))&&t!==e&&N.getInstance(t).hide(),N.getOrCreateInstance(e).toggle(this))}),g.on(window,"load.bs.offcanvas.data-api",()=>{for(var t of u.find(Ci))N.getOrCreateInstance(t).show()}),g.on(window,"resize.bs.offcanvas",()=>{for(var t of u.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&N.getOrCreateInstance(t).hide()}),dt(N),t(N),Rt={"*":["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:[]};let Li=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Mi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Pi={allowList:Rt,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ii={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ni={entry:"(string|element|function|null)",selector:"(string|element)"};class Di extends ht{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Pi}static get DefaultType(){return Ii}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return 0<this.getContent().length}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){var t,e,i=document.createElement("div");i.innerHTML=this._maybeSanitize(this._config.template);for([t,e]of Object.entries(this._config.content))this._setContent(i,e,t);var n=i.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(var[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Ni)}_setContent(t,e,i){(i=u.findOne(i,t))&&((e=this._resolvePossibleFunction(e))?o(e)?this._putElementInTemplate(r(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){if(this._config.sanitize){var e=t,i=this._config.allowList,n=this._config.sanitizeFn;if(!e.length)return e;if(n&&"function"==typeof n)return n(e);var r,n=(new window.DOMParser).parseFromString(e,"text/html");for(r of[].concat(...n.body.querySelectorAll("*"))){var o=r.nodeName.toLowerCase();if(Object.keys(i).includes(o)){var a,s=[].concat(...r.attributes),l=[].concat(i["*"]||[],i[o]||[]);for(a of s)((t,e)=>{let i=t.nodeName.toLowerCase();return e.includes(i)?!Li.has(i)||Boolean(Mi.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))})(a,l)||r.removeAttribute(a.nodeName)}else r.remove()}return n.body.innerHTML}return t}_resolvePossibleFunction(t){return c(t,[this])}_putElementInTemplate(t,e){this._config.html?(e.innerHTML="",e.append(t)):e.textContent=t.textContent}}let Ri=new Set(["sanitize","allowList","sanitizeFn"]),Fi="fade",ji="show",zi="hide.bs.modal",Bi="hover",Hi="focus",Yi={AUTO:"auto",TOP:"top",RIGHT:l()?"left":"right",BOTTOM:"bottom",LEFT:l()?"right":"left"},Xi={allowList:Rt,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"},Wi={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 qi extends e{constructor(t,e){if(void 0===Xe)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),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 Xi}static get DefaultType(){return Wi}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),g.off(this._element.closest(".modal"),zi,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){var t=g.trigger(this._element,this.constructor.eventName("show")),e=(B(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!t.defaultPrevented&&e){if(this._disposePopper(),t=this._getTipElement(),this._element.setAttribute("aria-describedby",t.getAttribute("id")),e=this._config.container,this._element.ownerDocument.documentElement.contains(this.tip)||(e.append(t),g.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(t),t.classList.add(ji),"ontouchstart"in document.documentElement)for(var i of[].concat(...document.body.children))g.on(i,"mouseover",H);this._queueCallback(()=>{g.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}hide(){if(this._isShown()&&!g.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ji),"ontouchstart"in document.documentElement)for(var t of[].concat(...document.body.children))g.off(t,"mouseover",H);this._activeTrigger.click=!1,this._activeTrigger[Hi]=!1,this._activeTrigger[Bi]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),g.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(t){if(!(t=this._getTemplateFactory(t).toHtml()))return null;t.classList.remove(Fi,ji),t.classList.add(`bs-${this.constructor.NAME}-auto`);var e=(t=>{for(;t+=Math.floor(1e6*Math.random()),document.getElementById(t););return t})(this.constructor.NAME).toString();return t.setAttribute("id",e),this._isAnimated()&&t.classList.add(Fi),t}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Di({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Fi)}_isShown(){return this.tip&&this.tip.classList.contains(ji)}_createPopper(t){var e=c(this._config.placement,[this,t,this._element]),e=Yi[e.toUpperCase()];return Ye(this._element,t,this._getPopperConfig(e))}_getOffset(){let e=this._config.offset;return"string"==typeof e?e.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(t){return c(t,[this._element])}_getPopperConfig(t){return{...t={placement:t,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:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]},...c(this._config.popperConfig,[t])}}_setListeners(){var t,e,i;for(t of this._config.trigger.split(" "))"click"===t?g.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{this._initializeOnDelegatedTarget(t).toggle()}):"manual"!==t&&(e=t===Bi?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===Bi?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout"),g.on(this._element,e,this._config.selector,t=>{var e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Hi:Bi]=!0,e._enter()}),g.on(this._element,i,this._config.selector,t=>{var e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Hi:Bi]=e._element.contains(t.relatedTarget),e._leave()}));this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(".modal"),zi,this._hideModalHandler)}_fixTitle(){var t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){var e,i=h.getDataAttributes(this._element);for(e of Object.keys(i))Ri.has(e)&&delete i[e];return t={...i,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:r(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){var t,e,i={};for([t,e]of Object.entries(this._config))this.constructor.Default[t]!==e&&(i[t]=e);return i.selector=!1,i.trigger="manual",i}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){var t=qi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}t(qi);let Gi={...qi.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"},Vi={...qi.DefaultType,content:"(null|string|element|function)"};class Ui extends qi{static get Default(){return Gi}static get DefaultType(){return Vi}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){var t=Ui.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}t(Ui);let Zi="click.bs.scrollspy",$i="active",Ki="[href]",Qi={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ji={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class tn extends e{constructor(t,e){super(t,e),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 Qi}static get DefaultType(){return Ji}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(var t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=r(t.target)||document.body,t.rootMargin=t.offset?t.offset+"px 0px -30%":t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(g.off(this._config.target,Zi),g.on(this._config.target,Zi,Ki,t=>{var e=this._observableSections.get(t.target.hash);e&&(t.preventDefault(),t=this._rootElement||window,e=e.offsetTop-this._element.offsetTop,t.scrollTo?t.scrollTo({top:e,behavior:"smooth"}):t.scrollTop=e)}))}_getNewObserver(){var t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){let e=t=>this._targetLinks.get("#"+t.target.id);var i,n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},r=(this._rootElement||document.documentElement).scrollTop,o=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(i of t)if(i.isIntersecting){var a=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(n(i),r)continue;return}o||a||n(i)}else this._activeTarget=null,this._clearActiveClass(e(i))}_initializeTargetsAndObservables(){var t,e;this._targetLinks=new Map,this._observableSections=new Map;for(t of u.find(Ki,this._config.target))t.hash&&!s(t)&&(e=u.findOne(decodeURI(t.hash),this._element),a(e))&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),(this._activeTarget=t).classList.add($i),this._activateParents(t),g.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))u.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add($i);else for(var e of u.parents(t,".nav, .list-group"))for(var i of u.prev(e,".nav-link, .nav-item > .nav-link, .list-group-item"))i.classList.add($i)}_clearActiveClass(t){var e;t.classList.remove($i);for(e of u.find(Ki+"."+$i,t))e.classList.remove($i)}static jQueryInterface(e){return this.each(function(){var t=tn.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]()}})}}g.on(window,"load.bs.scrollspy.data-api",()=>{for(var t of u.find('[data-bs-spy="scroll"]'))tn.getOrCreateInstance(t)}),t(tn);let en="ArrowRight",nn="ArrowDown",rn="Home",D="active",on="show",an=".dropdown-toggle",sn=(an,'.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), '+(be='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]'));D,D,D;class ln extends e{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),g.on(this._element,"keydown.bs.tab",t=>this._keydown(t)))}static get NAME(){return"tab"}show(){var t,e,i=this._element;this._elemIsActive(i)||(e=(t=this._getActiveElem())?g.trigger(t,"hide.bs.tab",{relatedTarget:i}):null,g.trigger(i,"show.bs.tab",{relatedTarget:t}).defaultPrevented)||e&&e.defaultPrevented||(this._deactivate(t,i),this._activate(i,t))}_activate(t,e){t&&(t.classList.add(D),this._activate(u.getElementFromSelector(t)),this._queueCallback(()=>{"tab"!==t.getAttribute("role")?t.classList.add(on):(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),g.trigger(t,"shown.bs.tab",{relatedTarget:e}))},t,t.classList.contains("fade")))}_deactivate(t,e){t&&(t.classList.remove(D),t.blur(),this._deactivate(u.getElementFromSelector(t)),this._queueCallback(()=>{"tab"!==t.getAttribute("role")?t.classList.remove(on):(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),g.trigger(t,"hidden.bs.tab",{relatedTarget:e}))},t,t.classList.contains("fade")))}_keydown(t){var e,i;["ArrowLeft",en,"ArrowUp",nn,rn,"End"].includes(t.key)&&(t.stopPropagation(),t.preventDefault(),i=this._getChildren().filter(t=>!s(t)),i=[rn,"End"].includes(t.key)?i[t.key===rn?0:i.length-1]:(e=[en,nn].includes(t.key),G(i,t.target,e,!0)))&&(i.focus({preventScroll:!0}),ln.getOrCreateInstance(i).show())}_getChildren(){return u.find(sn,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(var i of e)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);var e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){var e=u.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id)&&this._setAttributeIfNotExists(e,"aria-labelledby",""+t.id)}_toggleDropDown(t,i){let n=this._getOuterElement(t);n.classList.contains("dropdown")&&((t=(t,e)=>{(t=u.findOne(t,n))&&t.classList.toggle(e,i)})(an,D),t(".dropdown-menu",on),n.setAttribute("aria-expanded",i))}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(D)}_getInnerElement(t){return t.matches(sn)?t:u.findOne(sn,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(e){return this.each(function(){var t=ln.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}g.on(document,"click.bs.tab",be,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),s(this)||ln.getOrCreateInstance(this).show()}),g.on(window,"load.bs.tab",()=>{for(var t of u.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))ln.getOrCreateInstance(t)}),t(ln);let cn="show",hn="showing",un={animation:"boolean",autohide:"boolean",delay:"number"},dn={animation:!0,autohide:!0,delay:5e3};class fn extends e{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return dn}static get DefaultType(){return un}static get NAME(){return"toast"}show(){g.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),Y(this._element),this._element.classList.add(cn,hn),this._queueCallback(()=>{this._element.classList.remove(hn),g.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&!g.trigger(this._element,"hide.bs.toast").defaultPrevented&&(this._element.classList.add(hn),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(hn,cn),g.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(cn),super.dispose()}isShown(){return this._element.classList.contains(cn)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}e?this._clearTimeout():this._element===(t=t.relatedTarget)||this._element.contains(t)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),g.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),g.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),g.on(this._element,"focusout.bs.toast",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){var t=fn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return dt(fn),t(fn),{Alert:ft,Button:gt,Carousel:Tt,Collapse:Dt,Dropdown:b,Modal:Ai,Offcanvas:N,Popover:Ui,ScrollSpy:tn,Tab:ln,Toast:fn,Tooltip:qi}}),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()})(this,function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(t,e){return t(e={exports:{}},e.exports),e.exports}function F(t){return t&&t.Math==Math&&t}function j(e,i){try{G(m,e,{value:i,configurable:!0,writable:!0})}catch(t){m[e]=i}return i}function l(t){try{return!!t()}catch(t){return!0}}function z(t){if(null==t)throw K("Can't call method on "+t);return t}function B(t){return Q(z(t))}function H(t){return"Symbol("+(void 0===t?"":t)+")_"+it(++tt+et,36)}function Y(t,e){return arguments.length<2?(i=m[t],k(i)?i:void 0):m[t]&&m[t][e];var i}function c(t){var e;return b(at,t)&&(rt||"string"==typeof at[t])||(e="Symbol."+t,rt&&b(st,t)?at[t]=st[t]:at[t]=(ot&&lt?lt:ct)(e)),at[t]}function X(t){return ut?ht.createElement(t):{}}function W(t){return t=((t,e)=>{if(!u(t)||vt(t))return t;var i,n,r=At(t,_t);if(r){if(r=v(r,t,e=void 0===e?"default":e),!u(r)||vt(r))return r;throw Ct("Can't convert object to primitive value")}if(r=t,"string"===(t=e=void 0===e?"number":e)&&k(i=r.toString)&&!u(n=v(i,r)))return n;if(k(i=r.valueOf)&&!u(n=v(i,r)))return n;if("string"!==t&&k(i=r.toString)&&!u(n=v(i,r)))return n;throw St("Can't convert object to primitive value")})(t,"string"),vt(t)?t:t+""}function q(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}var m=F("object"==typeof globalThis&&globalThis)||F("object"==typeof window&&window)||F("object"==typeof self&&self)||F("object"==typeof t&&t)||function(){return this}()||Function("return this")(),G=Object.defineProperty,i=m["__core-js_shared__"]||j("__core-js_shared__",{}),V=R(function(t){(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.6",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})}),U=!l(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),e=(n=Function.prototype).bind,Z=n.call,$=U&&e.bind(Z,Z),h=U?function(t){return t&&$(t)}:function(t){return t&&function(){return Z.apply(t,arguments)}},K=m.TypeError,Q=m.Object,J=h({}.hasOwnProperty),b=Object.hasOwn||function(t,e){return J(B(t),e)},tt=0,et=Math.random(),it=h(1..toString),k=function(t){return"function"==typeof t},n=Y("navigator","userAgent")||"",e=m.process,r=m.Deno,nt=a=!(a=(r=(e=e&&e.versions||r&&r.version)&&e.v8)?0<(o=r.split("."))[0]&&o[0]<4?1:+(o[0]+o[1]):a)&&n&&(!(o=n.match(/Edge\/(\d+)/))||74<=o[1])&&(o=n.match(/Chrome\/(\d+)/))?+o[1]:a,rt=!!Object.getOwnPropertySymbols&&!l(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41}),ot=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=V("wks"),st=m.Symbol,lt=st&&st.for,ct=ot?st:st&&st.withoutSetter||H,r=((e={})[c("toStringTag")]="z","[object z]"===String(e)),d=!l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),u=function(t){return"object"==typeof t?null!==t:k(t)},ht=m.document,ut=u(ht)&&u(ht.createElement),dt=!d&&!l(function(){return 7!=Object.defineProperty(X("div"),"a",{get:function(){return 7}}).a}),n=d&&l(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ft=m.String,pt=m.TypeError,A=function(t){if(u(t))return t;throw pt(ft(t)+" is not an object")},gt=Function.prototype.call,v=U?gt.bind(gt):function(){return gt.apply(gt,arguments)},mt=h({}.isPrototypeOf),bt=m.Object,vt=ot?function(t){return"symbol"==typeof t}:function(t){var e=Y("Symbol");return k(e)&&mt(e.prototype,bt(t))},yt=m.String,xt=function(t){try{return yt(t)}catch(t){return"Object"}},wt=m.TypeError,kt=function(t){if(k(t))return t;throw wt(xt(t)+" is not a function")},At=function(t,e){return null==(t=t[e])?void 0:kt(t)},St=m.TypeError,Ct=m.TypeError,_t=c("toPrimitive"),Et=m.TypeError,Ot=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,y={f:d?n?function(t,e,i){var n;return A(t),e=W(e),A(i),"function"==typeof t&&"prototype"===e&&"value"in i&&"writable"in i&&!i.writable&&(n=Tt(t,e))&&n.writable&&(t[e]=i.value,i={configurable:("configurable"in i?i:n).configurable,enumerable:("enumerable"in i?i:n).enumerable,writable:!1}),Ot(t,e,i)}:Ot:function(t,e,i){if(A(t),e=W(e),A(i),dt)try{return Ot(t,e,i)}catch(t){}if("get"in i||"set"in i)throw Et("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},x=d?function(t,e,i){return y.f(t,e,q(1,i))}:function(t,e,i){return t[e]=i,t},o=Function.prototype,a=d&&Object.getOwnPropertyDescriptor,Lt={EXISTS:e=b(o,"name"),PROPER:e&&"something"===function(){}.name,CONFIGURABLE:e&&(!d||a(o,"name").configurable)},Mt=h(Function.toString);function Pt(t){return $t[t]||($t[t]=H(t))}function w(t,e,i,n){var r=(n=n||{}).enumerable,o=void 0!==n.name?n.name:e;k(i)&&Jt(i,o,n),n.global?r?t[e]=i:j(e,i):(n.unsafe?t[e]&&(r=!0):delete t[e],r?t[e]=i:x(t,e,i))}function f(t){return ee(te(t),8,-1)}function It(t,e){return kt(t),void 0===e?t:U?se(t,e):function(){return t.apply(e,arguments)}}function Nt(t){return me(t.length)}function Dt(){}function Rt(t){if(!k(t))return!1;try{return ye(Dt,ve,t),!0}catch(t){return!1}}function Ft(t){if(!k(t))return!1;switch(oe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ke||!!we(xe,Zt(t))}catch(t){return!0}}function jt(t,e){return new(void 0===(i=be(t)&&(i=t.constructor,Ae(i)&&(i===Ce||be(i.prototype))||u(i)&&null===(i=i[Se]))?void 0:i)?Ce:i)(0===e?0:e);var i}function s(d){var f=1==d,p=2==d,g=3==d,m=4==d,b=6==d,v=7==d,y=5==d||b;return function(t,e,i,n){for(var r,o,a=B(t),s=he(a),l=It(e,i),c=Nt(s),h=0,e=n||jt,u=f?e(t,c):p||v?e(t,0):void 0;h<c;h++)if((y||h in s)&&(o=l(r=s[h],h,a),d))if(f)u[h]=o;else if(o)switch(d){case 3:return!0;case 5:return r;case 6:return h;case 2:_e(u,r)}else switch(d){case 4:return!1;case 7:_e(u,r)}return b?-1:g||m?m:u}}function zt(t,e){var i=[][t];return!!i&&l(function(){i.call(null,e||function(){return 1},1)})}function Bt(e){if(e&&e.forEach!==Oe)try{x(e,"forEach",Oe)}catch(t){e.forEach=Oe}}k(i.inspectSource)||(i.inspectSource=function(t){return Mt(t)});var p,Ht,Yt,Xt,Wt,qt,Gt,Vt,Ut,Zt=i.inspectSource,e=m.WeakMap,a=k(e)&&/native code/.test(Zt(e)),$t=V("keys"),Kt={},Qt=m.TypeError,o=m.WeakMap,g=(Gt=a||i.state?(p=i.state||(i.state=new o),Ht=h(p.get),Yt=h(p.has),Xt=h(p.set),Wt=function(t,e){if(Yt(p,t))throw new Qt("Object already initialized");return e.facade=t,Xt(p,t,e),e},qt=function(t){return Ht(p,t)||{}},function(t){return Yt(p,t)}):(Vt=Pt("state"),Kt[Vt]=!0,Wt=function(t,e){if(b(t,Vt))throw new Qt("Object already initialized");return e.facade=t,x(t,Vt,e),e},qt=function(t){return b(t,Vt)?t[Vt]:{}},function(t){return b(t,Vt)}),{set:Wt,get:qt,has:Gt,enforce:function(t){return Gt(t)?qt(t):Wt(t,{})},getterFor:function(e){return function(t){if(u(t)&&(t=qt(t)).type===e)return t;throw Qt("Incompatible receiver, "+e+" required")}}}),Jt=R(function(t){var n=Lt.CONFIGURABLE,r=g.enforce,e=g.get,o=Object.defineProperty,a=d&&!l(function(){return 8!==o(function(){},"length",{value:8}).length}),s=String(String).split("String"),t=t.exports=function(t,e,i){if("Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!b(t,"name")||n&&t.name!==e)&&o(t,"name",{value:e,configurable:!0}),a&&i&&b(i,"arity")&&t.length!==i.arity&&o(t,"length",{value:i.arity}),i&&b(i,"constructor")&&i.constructor){if(d)try{o(t,"prototype",{writable:!1})}catch(t){}}else t.prototype=void 0;return i=r(t),b(i,"source")||(i.source=s.join("string"==typeof e?e:"")),t};Function.prototype.toString=t(function(){return k(this)&&e(this).source||Zt(this)},"toString")}),te=h({}.toString),ee=h("".slice),ie=c("toStringTag"),ne=m.Object,re="Arguments"==f(function(){return arguments}()),oe=r?f:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=((t,e)=>{try{return t[e]}catch(t){}})(t=ne(t),ie))?e:re?f(t):"Object"==(e=f(t))&&k(t.callee)?"Arguments":e},ae=(r||w(Object.prototype,"toString",r?{}.toString:function(){return"[object "+oe(this)+"]"},{unsafe:!0}),{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}),r=(o=(e=X("span").classList)&&e.constructor&&e.constructor.prototype)===Object.prototype?void 0:o,se=h(h.bind),le=m.Object,ce=h("".split),he=l(function(){return!le("z").propertyIsEnumerable(0)})?function(t){return"String"==f(t)?ce(t,""):le(t)}:le,ue=Math.ceil,de=Math.floor,fe=Math.trunc||function(t){return(0<(t=+t)?de:ue)(t)},pe=function(t){return(t=+t)!=t||0==t?0:fe(t)},ge=Math.min,me=function(t){return 0<t?ge(pe(t),9007199254740991):0},be=Array.isArray||function(t){return"Array"==f(t)},ve=[],ye=Y("Reflect","construct"),xe=/^\s*(?:class|function)\b/,we=h(xe.exec),ke=!xe.exec(Dt),Ae=(Ft.sham=!0,!ye||l(function(){var t;return Rt(Rt.call)||!Rt(Object)||!Rt(function(){t=!0})||t})?Ft:Rt),Se=c("species"),Ce=m.Array,_e=h([].push),Ee=(e={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}).forEach,Oe=zt("forEach")?[].forEach:function(t){return Ee(this,t,1<arguments.length?arguments[1]:void 0)};for(Ut in ae)ae[Ut]&&Bt(m[Ut]&&m[Ut].prototype);function Te(t){return he(z(t))}function Le(t,e){return(t=pe(t))<0?Be(t+e,0):He(t,e)}function Me(s){return function(t,e,i){var n,r=Te(t),o=Nt(r),a=Le(i,o);if(s&&e!=e){for(;a<o;)if((n=r[a++])!=n)return!0}else for(;a<o;a++)if((s||a in r)&&r[a]===e)return s||a||0;return!s&&-1}}function Pe(t,e){var i,n=Te(t),r=0,o=[];for(i in n)!b(Kt,i)&&b(n,i)&&Xe(o,i);for(;e.length>r;)b(n,i=e[r++])&&!~Ye(o,i)&&Xe(o,i);return o}function Ie(t,e){return(t=Qe[Ke(t)])==ti||t!=Je&&(k(e)?l(e):!!e)}function S(t,e){var i,n,r,o,a=t.target,s=t.global,l=t.stat;if(i=s?m:l?m[a]||j(a,{}):(m[a]||{}).prototype)for(n in e){if(r=e[n],o=t.dontCallGetSet?(o=ii(i,n))&&o.value:i[n],!ei(s?n:a+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;for(var c,h=r,u=(p=f=d=void 0,Ze(c=o)),d=y.f,f=ze.f,p=0;p<u.length;p++){var g=u[p];b(h,g)||d(h,g,f(c,g))}}(t.sham||o&&o.sham)&&x(r,"sham",!0),w(i,n,r,t)}}function C(t){if("Symbol"===oe(t))throw TypeError("Cannot convert a Symbol value to a string");return ni(t)}function Ne(e){return function(t){return t=C(z(t)),1&e&&(t=ri(t,oi,"")),2&e?ri(t,ai,""):t}}Bt(r);var De=!("undefined"==typeof window||!window.document||!window.document.createElement),o={}.propertyIsEnumerable,Re=Object.getOwnPropertyDescriptor,Fe={f:Re&&!o.call({1:2},1)?function(t){return!!(t=Re(this,t))&&t.enumerable}:o},je=Object.getOwnPropertyDescriptor,ze={f:d?je:function(t,e){if(t=Te(t),e=W(e),dt)try{return je(t,e)}catch(t){}if(b(t,e))return q(!v(Fe.f,t,e),t[e])}},Be=Math.max,He=Math.min,Ye=(Me(!0),Me(!1)),Xe=h([].push),We=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qe=We.concat("length","prototype"),Ge={f:Object.getOwnPropertyNames||function(t){return Pe(t,qe)}},Ve={f:Object.getOwnPropertySymbols},Ue=h([].concat),Ze=Y("Reflect","ownKeys")||function(t){var e=Ge.f(A(t)),i=Ve.f;return i?Ue(e,i(t)):e},$e=/#|\.prototype\./,Ke=Ie.normalize=function(t){return String(t).replace($e,".").toLowerCase()},Qe=Ie.data={},Je=Ie.NATIVE="N",ti=Ie.POLYFILL="P",ei=Ie,ii=ze.f,ni=m.String,o="\t\n\v\f\r    \u2028\u2029\ufeff",ri=h("".replace),_="["+o+"]",oi=RegExp("^"+_+_+"*"),ai=RegExp(_+_+"*$"),si=(Ne(1),Ne(2),Ne(3)),li=m.parseInt,ci=(_=m.Symbol)&&_.iterator,hi=/^[+-]?0x/i,ui=h(hi.exec),_=8!==li(o+"08")||22!==li(o+"0x16")||ci&&!l(function(){li(Object(ci))})?function(t,e){return t=si(C(t)),li(t,e>>>0||(ui(hi,t)?16:10))}:li,di=(S({global:!0,forced:parseInt!=_},{parseInt:_}),Object.keys||function(t){return Pe(t,We)}),fi=Object.assign,pi=Object.defineProperty,gi=h([].concat),o=!fi||l(function(){var t,e,i;return d&&1!==fi({b:1},fi(pi({},"a",{enumerable:!0,get:function(){pi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(e={},(t={})[i=Symbol()]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!=fi({},t)[i])||"abcdefghijklmnopqrst"!=di(fi({},e)).join("")})?function(t,e){for(var i=B(t),n=arguments.length,r=1,o=Ve.f,a=Fe.f;r<n;)for(var s,l=he(arguments[r++]),c=o?gi(di(l),o(l)):di(l),h=c.length,u=0;u<h;)s=c[u++],d&&!v(a,l,s)||(i[s]=l[s]);return i}:fi,mi=(S({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o}),c("species")),bi=e.filter;function vi(){}function yi(t){return"<script>"+t+"<\/script>"}S({target:"Array",proto:!0,forced:!(_=51<=nt||!l(function(){var t=[];return(t.constructor={})[mi]=function(){return{foo:1}},1!==t.filter(Boolean).foo}))},{filter:function(t){return bi(this,t,1<arguments.length?arguments[1]:void 0)}});var xi,wi={f:d&&!n?Object.defineProperties:function(t,e){A(t);for(var i,n=Te(e),r=di(e),o=r.length,a=0;a<o;)y.f(t,i=r[a++],n[i]);return t}},ki=Y("document","documentElement"),Ai=Pt("IE_PROTO"),Si=function(){try{xi=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;Si="undefined"==typeof document||document.domain&&xi?((e=xi).write(yi("")),e.close(),i=e.parentWindow.Object,e=null,i):((e=X("iframe")).style.display="none",ki.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(yi("document.F=Object")),t.close(),t.F);for(var n=We.length;n--;)delete Si.prototype[We[n]];return Si()},Ci=(Kt[Ai]=!0,Object.create||function(t,e){var i;return null!==t?(vi.prototype=A(t),i=new vi,vi.prototype=null,i[Ai]=t):i=Si(),void 0===e?i:wi.f(i,e)}),o=y.f,_i=c("unscopables"),Ei=Array.prototype;function Oi(t){Ei[_i][t]=!0}function Ti(t,e,i){(t=t&&!i?t.prototype:t)&&!b(t,Hi)&&Bi(t,Hi,{configurable:!0,value:e})}function Li(){return this}function Mi(){return this}function Pi(t,e,i,n,r,o,a){function s(t){if(t===r&&p)return p;if(!Zi&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}}l=e+" Iterator",(g=i).prototype=Ci(Yi,{next:q(1,n)}),Ti(g,l,!1),Ni[l]=Li;var l,c,h,n=e+" Iterator",u=!1,d=t.prototype,f=d[$i]||d["@@iterator"]||r&&d[r],p=!Zi&&f||s(r),g="Array"==e&&d.entries||f;if(g&&(l=ji(g.call(new t)))!==Object.prototype&&l.next&&(ji(l)!==Ui&&(qi?qi(l,Ui):k(l[$i])||w(l,$i,Mi)),Ti(l,n,!0)),Gi&&"values"==r&&f&&"values"!==f.name&&(Vi?x(d,"name","values"):(u=!0,p=function(){return v(f,this)})),r)if(c={values:s("values"),keys:o?p:s("keys"),entries:s("entries")},a)for(h in c)!Zi&&!u&&h in d||w(d,h,c[h]);else S({target:e,proto:!0,forced:Zi||u},c);return d[$i]!==p&&w(d,$i,p,{name:r}),Ni[e]=p,c}null==Ei[_i]&&o(Ei,_i,{configurable:!0,value:Ci(null)});var Ii,Ni={},_=!l(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Di=Pt("IE_PROTO"),Ri=m.Object,Fi=Ri.prototype,ji=_?Ri.getPrototypeOf:function(t){var e,t=B(t);return b(t,Di)?t[Di]:(e=t.constructor,k(e)&&t instanceof e?e.prototype:t instanceof Ri?Fi:null)},zi=c("iterator"),n=!1,o=([].keys&&("next"in(o=[].keys())?(_=ji(ji(o)))!==Object.prototype&&(Ii=_):n=!0),null!=Ii&&!l(function(){var t={};return Ii[zi].call(t)!==t})||(Ii={}),k(Ii[zi])||w(Ii,zi,function(){return this}),{IteratorPrototype:Ii,BUGGY_SAFARI_ITERATORS:n}),Bi=y.f,Hi=c("toStringTag"),Yi=o.IteratorPrototype,Xi=m.String,Wi=m.TypeError,qi=Object.setPrototypeOf||("__proto__"in{}?(()=>{var n,r=!1,t={};try{(n=h(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(t,[]),r=t instanceof Array}catch(n){}return function(t,e){A(t);var i=e;if("object"==typeof i||k(i))return r?n(t,e):t.__proto__=e,t;throw Wi("Can't set "+Xi(i)+" as a prototype")}})():void 0),Gi=Lt.PROPER,Vi=Lt.CONFIGURABLE,Ui=o.IteratorPrototype,Zi=o.BUGGY_SAFARI_ITERATORS,$i=c("iterator"),_=y.f,Ki=g.set,Qi=g.getterFor("Array Iterator"),Ji=Pi(Array,"Array",function(t,e){Ki(this,{type:"Array Iterator",target:Te(t),index:0,kind:e})},function(){var t=Qi(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?{value:t.target=void 0,done:!0}:"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),n=Ni.Arguments=Ni.Array;if(Oi("keys"),Oi("values"),Oi("entries"),d&&"values"!==n.name)try{_(n,"name",{value:"values"})}catch(t){}function tn(r){return function(t,e){var i,t=C(z(t)),e=pe(e),n=t.length;return e<0||n<=e?r?"":void 0:(i=cn(t,e))<55296||56319<i||e+1===n||(n=cn(t,e+1))<56320||57343<n?r?ln(t,e):i:r?hn(t,e,e+2):n-56320+(i-55296<<10)+65536}}function en(t,e,i){for(var n in e)w(t,n,e[n],i)}function nn(t){if(null!=t)return At(t,Cn)||At(t,"@@iterator")||Ni[oe(t)]}function rn(t,e,i){var n,r;A(t);try{if(!(n=At(t,"return"))){if("throw"===e)throw i;return}n=v(n,t)}catch(t){r=!0,n=t}if("throw"===e)throw i;if(r)throw n;A(n)}function on(t,e){this.stopped=t,this.result=e}function an(t,e,i){function n(t){return o&&rn(o,"normal",t),new on(!0,t)}function r(t){return d?(A(t),p?g(t[0],t[1],n):g(t[0],t[1])):p?g(t,n):g(t)}var o,a,s,l,c,h,u=i&&i.that,d=!(!i||!i.AS_ENTRIES),f=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),g=It(e,u);if(f)o=t;else{if(!(i=nn(t)))throw En(xt(t)+" is not iterable");if(void 0!==i&&(Ni.Array===i||Sn[An]===i)){for(a=0,s=Nt(t);a<s;a++)if((l=r(t[a]))&&mt(On,l))return;return}o=function(t,e){if(e=arguments.length<2?nn(t):e,kt(e))return A(v(e,t));throw _n(xt(t)+" is not iterable")}(t,i)}for(c=o.next;!(h=v(c,o)).done;){try{l=r(h.value)}catch(t){rn(o,"throw",t)}if("object"==typeof l&&l&&mt(On,l))return}}function sn(t,e){if(!mt(e,t))throw Tn("Incorrect invocation")}var ln=h("".charAt),cn=h("".charCodeAt),hn=h("".slice),un=(o={codeAt:tn(!1),charAt:tn(!0)}).charAt,dn=g.set,fn=g.getterFor("String Iterator"),pn=(Pi(String,"String",function(t){dn(this,{type:"String Iterator",string:C(t),index:0})},function(){var t=fn(this),e=t.string,i=t.index;return i>=e.length?{value:void 0,done:!0}:(e=un(e,i),t.index+=e.length,{value:e,done:!1})}),m.Array),gn=Math.max,mn=Ge.f,bn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vn={f:function(t){if(!bn||"Window"!=f(t))return mn(Te(t));var e=t;try{return mn(e)}catch(e){for(var i,n,r,o=bn,a=Le(void 0,t=Nt(o)),s=Le(t,t),l=pn(gn(s-a,0)),c=0;a<s;a++,c++)i=l,r=c,n=o[a],(r=W(r))in i?y.f(i,r,q(0,n)):i[r]=n;return l.length=c,l}}},yn=l(function(){var t;"function"==typeof ArrayBuffer&&(t=new ArrayBuffer(8),Object.isExtensible(t))&&Object.defineProperty(t,"a",{value:8})}),xn=Object.isExtensible,wn=l(function(){xn(1)})||yn?function(t){return!!u(t)&&(!yn||"ArrayBuffer"!=f(t))&&(!xn||xn(t))}:xn,kn=!l(function(){return Object.isExtensible(Object.preventExtensions({}))}),An=((_=R(function(t){function i(t){e(t,a,{value:{objectID:"O"+r++,weakData:{}}})}var e=y.f,n=!1,a=H("meta"),r=0,s=t.exports={enable:function(){s.enable=function(){},n=!0;var r=Ge.f,o=h([].splice),t={};t[a]=1,r(t).length&&(Ge.f=function(t){for(var e=r(t),i=0,n=e.length;i<n;i++)if(e[i]===a){o(e,i,1);break}return e},S({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:vn.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!b(t,a)){if(!wn(t))return"F";if(!e)return"E";i(t)}return t[a].objectID},getWeakData:function(t,e){if(!b(t,a)){if(!wn(t))return!0;if(!e)return!1;i(t)}return t[a].weakData},onFreeze:function(t){return kn&&n&&wn(t)&&!b(t,a)&&i(t),t}};Kt[a]=!0})).enable,c("iterator")),Sn=Array.prototype,Cn=c("iterator"),_n=m.TypeError,En=m.TypeError,On=on.prototype,Tn=m.TypeError,Ln=c("iterator"),Mn=!1;try{var Pn=0;(tr={next:function(){return{done:!!Pn++}},return:function(){Mn=!0}})[Ln]=function(){return this},Array.from(tr,function(){throw 2})}catch(t){}function In(t){return t.frozen||(t.frozen=new Nn)}function Nn(){this.entries=[]}function Dn(t,e){return zn(t.entries,function(t){return t[0]===e})}var Rn=_.getWeakData,Fn=g.set,jn=g.getterFor,zn=e.find,Bn=e.findIndex,Hn=h([].splice),Yn=0;function Xn(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}Nn.prototype={get:function(t){if(t=Dn(this,t))return t[1]},has:function(t){return!!Dn(this,t)},set:function(t,e){var i=Dn(this,t);i?i[1]=e:this.entries.push([t,e])},delete:function(e){var t=Bn(this.entries,function(t){return t[0]===e});return~t&&Hn(this.entries,t,1),!!~t}};var Wn,qn,Gn,E,Vn,O,Un,T,Zn,$n,Kn,Qn,n={getConstructor:function(t,i,n,r){function o(t,e,i){var n=s(t),r=Rn(A(e),!0);return!0===r?In(n).set(e,i):r[n.id]=i,t}var a=(t=t(function(t,e){sn(t,a),Fn(t,{type:i,id:Yn++,frozen:void 0}),null!=e&&an(e,t[r],{that:t,AS_ENTRIES:n})})).prototype,s=jn(i);return en(a,{delete:function(t){var e,i=s(this);return!!u(t)&&(!0===(e=Rn(t))?In(i).delete(t):e&&b(e,i.id)&&delete e[i.id])},has:function(t){var e,i=s(this);return!!u(t)&&(!0===(e=Rn(t))?In(i).has(t):e&&b(e,i.id))}}),en(a,n?{get:function(t){var e,i=s(this);if(u(t))return!0===(e=Rn(t))?In(i).get(t):e?e[i.id]:void 0},set:function(t,e){return o(this,t,e)}}:{add:function(t){return o(this,t,!0)}}),t}},Jn=g.enforce,tr=!m.ActiveXObject&&"ActiveXObject"in m,er=(e=Xn,M=n,Gn=-1!==(P="WeakMap").indexOf("Map"),E=-1!==P.indexOf("Weak"),Vn=Gn?"set":"add",O=m[P],Un=O&&O.prototype,L={},ei(P,!k(T=O)||!(E||Un.forEach&&!l(function(){(new O).entries().next()})))?(T=M.getConstructor(e,P,Gn,Vn),_.enable()):ei(P,!0)&&(Or=(qn=new T)[Vn](E?{}:-0,1)!=qn,fr=l(function(){qn.has(1)}),er=(()=>{if(!Mn)return!1;var t=!1;try{var e={};e[Ln]=function(){return{next:function(){return{done:t=!0}}}},new O(e)}catch(t){}return t})(),pr=!E&&l(function(){for(var t=new O,e=5;e--;)t[Vn](e,e);return!t.has(-0)}),er||(((T=e(function(t,e){sn(t,Un),i=new O,n=T,qi&&k(t=t.constructor)&&t!==n&&u(t=t.prototype)&&t!==n.prototype&&qi(i,t);var i,n=i;return null!=e&&an(e,n[Vn],{that:n,AS_ENTRIES:Gn}),n})).prototype=Un).constructor=T),(fr||pr)&&(ir("delete"),ir("has"),Gn)&&ir("get"),(pr||Or)&&ir(Vn),E)&&Un.clear&&delete Un.clear,S({global:!0,constructor:!0,forced:(L[P]=T)!=O},L),Ti(T,P),E||M.setStrong(T,P,Gn),T);function ir(t){var i=h(Un[t]);w(Un,t,"add"==t?function(t){return i(this,0===t?0:t),this}:"delete"==t?function(t){return!(E&&!u(t))&&i(this,0===t?0:t)}:"get"==t?function(t){return E&&!u(t)?void 0:i(this,0===t?0:t)}:"has"==t?function(t){return!(E&&!u(t))&&i(this,0===t?0:t)}:function(t,e){return i(this,0===t?0:t,e),this})}function nr(t,e){if(t){if(t[or]!==sr)try{x(t,or,sr)}catch(e){t[or]=sr}if(t[ar]||x(t,ar,e),ae[e])for(var i in Ji)if(t[i]!==Ji[i])try{x(t,i,Ji[i])}catch(e){t[i]=Ji[i]}}}a&&tr&&(Wn=n.getConstructor(Xn,"WeakMap",!0),_.enable(),e=er.prototype,Zn=h(e.delete),$n=h(e.has),Kn=h(e.get),Qn=h(e.set),en(e,{delete:function(t){var e;return u(t)&&!wn(t)?((e=Jn(this)).frozen||(e.frozen=new Wn),Zn(this,t)||e.frozen.delete(t)):Zn(this,t)},has:function(t){var e;return u(t)&&!wn(t)?((e=Jn(this)).frozen||(e.frozen=new Wn),$n(this,t)||e.frozen.has(t)):$n(this,t)},get:function(t){var e;return!u(t)||wn(t)||((e=Jn(this)).frozen||(e.frozen=new Wn),$n(this,t))?Kn(this,t):e.frozen.get(t)},set:function(t,e){var i;return!u(t)||wn(t)||((i=Jn(this)).frozen||(i.frozen=new Wn),$n(this,t))?Qn(this,t,e):i.frozen.set(t,e),this}}));var rr,or=c("iterator"),ar=c("toStringTag"),sr=Ji.values;for(rr in ae)nr(m[rr]&&m[rr].prototype,rr);nr(r,"DOMTokenList");var lr=/^\s+|\s+$/g,cr=/^[-+]0x[0-9a-f]+$/i,hr=/^0b[01]+$/i,ur=/^0o[0-7]+$/i,dr=parseInt,fr="object"==typeof t&&t&&t.Object===Object&&t,pr="object"==typeof self&&self&&self.Object===Object&&self,gr=fr||pr||Function("return this")(),mr=Object.prototype.toString,br=Math.max,vr=Math.min,yr=function(){return gr.Date.now()};function xr(t){var e=typeof t;return t&&("object"==e||"function"==e)}function wr(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==mr.call(e))return NaN;if("string"!=typeof(t=xr(t)?xr(e="function"==typeof t.valueOf?t.valueOf():t)?e+"":e:t))return 0===t?t:+t;t=t.replace(lr,"");var e=hr.test(t);return e||ur.test(t)?dr(t.slice(2),e?2:8):cr.test(t)?NaN:+t}function kr(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");xr(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r);var o,a,s,l,c,h,u=t,d=e,i={leading:n,maxWait:e,trailing:r},f=0,p=!1,g=!1,m=!0;if("function"!=typeof u)throw new TypeError("Expected a function");function b(t){var e=o,i=a;return o=a=void 0,f=t,l=u.apply(i,e)}function v(t){var e=t-h;return void 0===h||d<=e||e<0||g&&s<=t-f}function y(){var t,e=yr();if(v(e))return x(e);c=setTimeout(y,(t=d-(e-h),g?vr(t,s-(e-f)):t))}function x(t){return c=void 0,m&&o?b(t):(o=a=void 0,l)}function w(){var t=yr(),e=v(t);if(o=arguments,a=this,h=t,e){if(void 0===c)return f=t=h,c=setTimeout(y,d),p?b(t):l;if(g)return c=setTimeout(y,d),b(h)}return void 0===c&&(c=setTimeout(y,d)),l}return d=wr(d)||0,xr(i)&&(p=!!i.leading,s=(g="maxWait"in i)?br(wr(i.maxWait)||0,d):s,m="trailing"in i?!!i.trailing:m),w.cancel=function(){void 0!==c&&clearTimeout(c),o=h=a=c=void(f=0)},w.flush=function(){return void 0===c?l:x(yr())},w}var Ar=/^\s+|\s+$/g,Sr=/^[-+]0x[0-9a-f]+$/i,Cr=/^0b[01]+$/i,_r=/^0o[0-7]+$/i,Er=parseInt,Or="object"==typeof t&&t&&t.Object===Object&&t,L="object"==typeof self&&self&&self.Object===Object&&self,Tr=Or||L||Function("return this")(),Lr=Object.prototype.toString,Mr=Math.max,Pr=Math.min,Ir=function(){return Tr.Date.now()};function Nr(t){var e=typeof t;return t&&("object"==e||"function"==e)}function Dr(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==Lr.call(e))return NaN;if("string"!=typeof(t=Nr(t)?Nr(e="function"==typeof t.valueOf?t.valueOf():t)?e+"":e:t))return 0===t?t:+t;t=t.replace(Ar,"");var e=Cr.test(t);return e||_r.test(t)?Er(t.slice(2),e?2:8):Sr.test(t)?NaN:+t}function Rr(n,i,t){var r,o,a,s,l,c,h=0,u=!1,d=!1,e=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function f(t){var e=r,i=o;return r=o=void 0,h=t,s=n.apply(i,e)}function p(t){var e=t-c;return void 0===c||i<=e||e<0||d&&a<=t-h}function g(){var t,e=Ir();if(p(e))return m(e);l=setTimeout(g,(t=i-(e-c),d?Pr(t,a-(e-h)):t))}function m(t){return l=void 0,e&&r?f(t):(r=o=void 0,s)}function b(){var t=Ir(),e=p(t);if(r=arguments,o=this,c=t,e){if(void 0===l)return h=t=c,l=setTimeout(g,i),u?f(t):s;if(d)return l=setTimeout(g,i),f(c)}return void 0===l&&(l=setTimeout(g,i)),s}return i=Dr(i)||0,Nr(t)&&(u=!!t.leading,a=(d="maxWait"in t)?Mr(Dr(t.maxWait)||0,i):a,e="trailing"in t?!!t.trailing:e),b.cancel=function(){void 0!==l&&clearTimeout(l),r=c=o=l=void(h=0)},b.flush=function(){return void 0===l?s:m(Ir())},b}var Fr=/^\[object .+?Constructor\]$/,M="object"==typeof t&&t&&t.Object===Object&&t,P="object"==typeof self&&self&&self.Object===Object&&self,a=M||P||Function("return this")(),tr=Array.prototype,n=Function.prototype,_=Object.prototype,e=a["__core-js_shared__"],jr=(r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",zr=n.toString,Br=_.hasOwnProperty,Hr=_.toString,Yr=RegExp("^"+zr.call(Br).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xr=tr.splice,Wr=Kr(a,"Map"),qr=Kr(Object,"create");function Gr(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Vr(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Ur(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Zr(t,e){for(var i,n=t.length;n--;)if((i=t[n][0])===e||i!=i&&e!=e)return n;return-1}function $r(t,e){var i,t=t.__data__;return("string"==(i=typeof e)||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==e:null===e)?t["string"==typeof e?"string":"hash"]:t.map}function Kr(t,e){return!Jr(e=t=null==t?void 0:t[e])||jr&&jr in e||!("[object Function]"==(i=Jr(e)?Hr.call(e):"")||"[object GeneratorFunction]"==i||(t=>{var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e})(e)?Yr:Fr).test((t=>{if(null!=t){try{return zr.call(t)}catch(t){}try{return t+""}catch(t){}}return""})(e))?void 0:t;var i}function Qr(n,r){if("function"!=typeof n||r&&"function"!=typeof r)throw new TypeError("Expected a function");function o(){var t=arguments,e=r?r.apply(this,t):t[0],i=o.cache;return i.has(e)?i.get(e):(t=n.apply(this,t),o.cache=i.set(e,t),t)}return o.cache=new(Qr.Cache||Ur),o}function Jr(t){var e=typeof t;return t&&("object"==e||"function"==e)}Gr.prototype.clear=function(){this.__data__=qr?qr(null):{}},Gr.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Gr.prototype.get=function(t){var e,i=this.__data__;return qr?"__lodash_hash_undefined__"===(e=i[t])?void 0:e:Br.call(i,t)?i[t]:void 0},Gr.prototype.has=function(t){var e=this.__data__;return qr?void 0!==e[t]:Br.call(e,t)},Gr.prototype.set=function(t,e){return this.__data__[t]=qr&&void 0===e?"__lodash_hash_undefined__":e,this},Vr.prototype.clear=function(){this.__data__=[]},Vr.prototype.delete=function(t){var e=this.__data__;return!((t=Zr(e,t))<0||(t==e.length-1?e.pop():Xr.call(e,t,1),0))},Vr.prototype.get=function(t){var e=this.__data__;return(t=Zr(e,t))<0?void 0:e[t][1]},Vr.prototype.has=function(t){return-1<Zr(this.__data__,t)},Vr.prototype.set=function(t,e){var i=this.__data__,n=Zr(i,t);return n<0?i.push([t,e]):i[n][1]=e,this},Ur.prototype.clear=function(){this.__data__={hash:new Gr,map:new(Wr||Vr),string:new Gr}},Ur.prototype.delete=function(t){return $r(this,t).delete(t)},Ur.prototype.get=function(t){return $r(this,t).get(t)},Ur.prototype.has=function(t){return $r(this,t).has(t)},Ur.prototype.set=function(t,e){return $r(this,t).set(t,e),this},Qr.Cache=Ur;var to,eo=Qr,io=[],no="ResizeObserver loop completed with undelivered notifications.";function ro(t,e){this.inlineSize=t,this.blockSize=e,mo(this)}function oo(t){var e;return t instanceof Element||(e=null==(e=null==t?void 0:t.ownerDocument)?void 0:e.defaultView)&&t instanceof e.Element}function ao(t){return void 0===t&&(t=0),Date.now()+t}function so(t){!Lo&&0<t&&No.start(),(Lo+=t)||No.stop()}function lo(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e}function co(t,e){for(var i=0;i<t.length;i+=1)if(t[i].target===e)return i;return-1}function ho(c){return function(t,e,i,n){kt(e);var r=B(t),o=he(r),a=Nt(r),s=c?a-1:0,l=c?-1:1;if(i<2)for(;;){if(s in o){n=o[s],s+=l;break}if(s+=l,c?s<0:a<=s)throw zo("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=l)s in o&&(n=e(n,o[s],s,r));return n}}function uo(i){io.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(t){t.isActive()&&(Oo(t.target)>i?e.activeTargets:e.skippedTargets).push(t)})})}function fo(t,e,i){var n=(t=Eo(t,i)).borderBoxSize,r=t.contentBoxSize,o=t.devicePixelContentBoxSize;switch(e){case to.DEVICE_PIXEL_CONTENT_BOX:return o;case to.BORDER_BOX:return n;default:return r}}function po(t){var e=Eo(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=mo([e.borderBoxSize]),this.contentBoxSize=mo([e.contentBoxSize]),this.devicePixelContentBoxSize=mo([e.devicePixelContentBoxSize])}(L=to=to||{}).BORDER_BOX="border-box",L.CONTENT_BOX="content-box",L.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var go,mo=function(t){return Object.freeze(t)},bo=(qo.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},qo.fromRect=function(t){return new qo(t.x,t.y,t.width,t.height)},qo),vo=function(t){return t instanceof SVGElement&&"getBBox"in t},yo=function(t){var e;return vo(t)?!(e=t.getBBox()).width&&!e.height:!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},xo="undefined"!=typeof window?window:{},wo=new WeakMap,ko=/auto|scroll/,Ao=/^tb|vertical/,So=/msie|trident/i.test(xo.navigator&&xo.navigator.userAgent),I=function(t){return parseFloat(t||"0")},Co=function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=0),new ro(((i=void 0!==i&&i)?e:t)||0,(i?t:e)||0)},_o=mo({devicePixelContentBoxSize:Co(),borderBoxSize:Co(),contentBoxSize:Co(),contentRect:new bo(0,0,0,0)}),Eo=function(t,e){var i,n,r,o,a,s,l,c,h,u,d,f;return void 0===e&&(e=!1),wo.has(t)&&!e?wo.get(t):yo(t)?(wo.set(t,_o),_o):(e=getComputedStyle(t),f=vo(t)&&t.ownerSVGElement&&t.getBBox(),l=!So&&"border-box"===e.boxSizing,i=Ao.test(e.writingMode||""),c=!f&&ko.test(e.overflowY||""),h=!f&&ko.test(e.overflowX||""),n=f?0:I(e.paddingTop),u=f?0:I(e.paddingRight),o=f?0:I(e.paddingBottom),r=f?0:I(e.paddingLeft),a=f?0:I(e.borderTopWidth),d=f?0:I(e.borderRightWidth),s=f?0:I(e.borderBottomWidth),u=r+u,o=n+o,d=(f?0:I(e.borderLeftWidth))+d,a+=s,s=h?t.offsetHeight-a-t.clientHeight:0,h=c?t.offsetWidth-d-t.clientWidth:0,c=l?u+d:0,l=l?o+a:0,u=(c=f?f.width:I(e.width)-c-h)+u+h+d,d=(h=f?f.height:I(e.height)-l-s)+o+s+a,f=mo({devicePixelContentBoxSize:Co(Math.round(c*devicePixelRatio),Math.round(h*devicePixelRatio),i),borderBoxSize:Co(u,d,i),contentBoxSize:Co(c,h,i),contentRect:new bo(r,n,c,h)}),wo.set(t,f),f)},Oo=function(t){if(yo(t))return 1/0;for(var e=0,i=t.parentNode;i;)e+=1,i=i.parentNode;return e},To=[],Lo=0,Mo={attributes:!0,characterData:!0,childList:!0,subtree:!0},Po=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Io=!1,No=(Wo.prototype.run=function(e){var i,t,n,r,o,a=this;void 0===e&&(e=250),Io||(Io=!0,i=ao(e),t=function(){var t=!1;try{t=(()=>{var t,e=0;for(uo(e);io.some(function(t){return 0<t.activeTargets.length});)uo(e=(()=>{var r=1/0,e=[];io.forEach(function(t){var n;0!==t.activeTargets.length&&(n=[],t.activeTargets.forEach(function(t){var e=new po(t.target),i=Oo(t.target);n.push(e),t.lastReportedSize=fo(t.target,t.observedBox),i<r&&(r=i)}),e.push(function(){t.callback.call(t.observer,n,t.observer)}),t.activeTargets.splice(0,t.activeTargets.length))});for(var t=0,i=e;t<i.length;t++)(0,i[t])();return r})());return io.some(function(t){return 0<t.skippedTargets.length})&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:no}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=no),window.dispatchEvent(t)),0<e})()}finally{if(Io=!1,e=i-ao(),!Lo)return;t?a.run(1e3):0<e?a.run(e):a.start()}},n=function(){requestAnimationFrame(t)},go||(r=0,o=document.createTextNode(""),new MutationObserver(function(){return To.splice(0).forEach(function(t){return t()})}).observe(o,{characterData:!0}),go=function(){o.textContent=""+(r?r--:r++)}),To.push(n),go())},Wo.prototype.schedule=function(){this.stop(),this.run()},Wo.prototype.observe=function(){function t(){return e.observer&&e.observer.observe(document.body,Mo)}var e=this;document.body?t():xo.addEventListener("DOMContentLoaded",t)},Wo.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Po.forEach(function(t){return xo.addEventListener(t,e.listener,!0)}))},Wo.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Po.forEach(function(t){return xo.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},new Wo),Do=(Xo.prototype.isActive=function(){var t=fo(this.target,this.observedBox,!0),e=this.target;return vo(e)||(t=>{switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return 1}})(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},Xo),Ro=new WeakMap,Fo=(Yo.connect=function(t,e){e=new lo(t,e),Ro.set(t,e)},Yo.observe=function(t,e,i){var n=0===(t=Ro.get(t)).observationTargets.length;co(t.observationTargets,e)<0&&(n&&io.push(t),t.observationTargets.push(new Do(e,i&&i.box)),so(1),No.schedule())},Yo.unobserve=function(t,e){var e=co((t=Ro.get(t)).observationTargets,e),i=1===t.observationTargets.length;0<=e&&(i&&io.splice(io.indexOf(t),1),t.observationTargets.splice(e,1),so(-1))},Yo.disconnect=function(e){var i=this,t=Ro.get(e);t.observationTargets.slice().forEach(function(t){return i.unobserve(e,t.target)}),t.activeTargets.splice(0,t.activeTargets.length)},Yo),jo=(Ho.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!oo(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Fo.observe(this,t,e)},Ho.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!oo(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Fo.unobserve(this,t)},Ho.prototype.disconnect=function(){Fo.disconnect(this)},Ho.toString=function(){return"function ResizeObserver () { [polyfill code] }"},Ho),zo=m.TypeError,M={left:ho(!1),right:ho(!0)},P="process"==f(m.process),Bo=M.left;function Ho(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Fo.connect(this,t)}function Yo(){}function Xo(t,e){this.target=t,this.observedBox=e||to.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}function Wo(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}function qo(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,mo(this)}function Go(){var t=A(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}function Vo(i,t,e,n){var a,r=c(i),s=!l(function(){var t={};return t[r]=function(){return 7},7!=""[i](t)}),o=s&&!l(function(){var t=!1,e=/a/;return"split"===i&&((e={}).constructor={},e.constructor[da]=function(){return e},e.flags="",e[r]=/./[r]),e.exec=function(){return t=!0,null},e[r](""),!t});s&&o&&!e||(a=h(/./[r]),o=t(r,""[i],function(t,e,i,n,r){var t=h(t),o=e.exec;return o===ua||o===fa.exec?s&&!r?{done:!0,value:a(e,i,n)}:{done:!0,value:t(i,e,n)}:{done:!1}}),w(String.prototype,i,o[0]),w(fa,r,o[1])),n&&x(fa[r],"sham",!0)}function Uo(t,e,i){return e+(i?pa(t,e).length:1)}function Zo(t,e){var i=t.exec;if(k(i))return null!==(i=v(i,t,e))&&A(i),i;if("RegExp"===f(t))return v(ua,t,e);throw ga("RegExp#exec called on incompatible receiver")}function $o(t){return Array.prototype.reduce.call(t,function(t,e){var i=e.name.match(/data-simplebar-(.+)/);if(i){var n=i[1].replace(/\W+(.)/g,function(t,e){return e.toUpperCase()});switch(e.value){case"true":t[n]=!0;break;case"false":t[n]=!1;break;case void 0:t[n]=!0;break;default:t[n]=e.value}}return t},{})}S({target:"Array",proto:!0,forced:!(e=zt("reduce"))||!P&&79<nt&&nt<83},{reduce:function(t){var e=arguments.length;return Bo(this,t,e,1<e?arguments[1]:void 0)}});var Ko=m.RegExp,n=(r=l(function(){var t=Ko("a","y");return t.lastIndex=2,null!=t.exec("abcd")}))||l(function(){return!Ko("a","y").sticky}),_={BROKEN_CARET:r||l(function(){var t=Ko("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),MISSED_STICKY:n,UNSUPPORTED_Y:r},Qo=m.RegExp,tr=l(function(){var t=Qo(".","s");return!t.dotAll||!t.exec("\n")||"s"!==t.flags}),Jo=m.RegExp,a=l(function(){var t=Jo("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}),ta=g.get,ea=V("native-string-replace",String.prototype.replace),ia=RegExp.prototype.exec,na=ia,ra=h("".charAt),oa=h("".indexOf),aa=h("".replace),sa=h("".slice),la=(L=/b*/g,v(ia,M=/a/,"a"),v(ia,L,"a"),0!==M.lastIndex||0!==L.lastIndex),ca=_.BROKEN_CARET,ha=void 0!==/()??/.exec("")[1],ua=na=la||ha||ca||tr||a?function(t){var e,i,n,r,o,a,s=this,l=ta(s),t=C(t);if(h=l.raw)return h.lastIndex=s.lastIndex,u=v(na,h,t),s.lastIndex=h.lastIndex,u;var c=l.groups,h=ca&&s.sticky,u=v(Go,s),l=s.source,d=0,f=t;if(h&&(u=aa(u,"y",""),-1===oa(u,"g")&&(u+="g"),f=sa(t,s.lastIndex),0<s.lastIndex&&(!s.multiline||(s.multiline,"\n"!==ra(t,s.lastIndex-1)))&&(l="(?: "+l+")",f=" "+f,d++),e=new RegExp("^(?:"+l+")",u)),ha&&(e=new RegExp("^"+l+"$(?!\\s)",u)),la&&(i=s.lastIndex),n=v(ia,h?e:s,f),h?n?(n.input=sa(n.input,d),n[0]=sa(n[0],d),n.index=s.lastIndex,s.lastIndex+=n[0].length):s.lastIndex=0:la&&n&&(s.lastIndex=s.global?n.index+n[0].length:i),ha&&n&&1<n.length&&v(ea,n[0],e,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(n[r]=void 0)}),n&&c)for(n.groups=o=Ci(null),r=0;r<c.length;r++)o[(a=c[r])[0]]=n[a[1]];return n}:na,da=(S({target:"RegExp",proto:!0,forced:/./.exec!==ua},{exec:ua}),c("species")),fa=RegExp.prototype,pa=o.charAt,ga=m.TypeError,e=(Vo("match",function(n,s,l){return[function(t){var e=z(this),i=null==t?void 0:At(t,n);return i?v(i,t,e):new RegExp(t)[n](C(e))},function(t){var e=A(this),i=C(t);if((t=l(s,e,i)).done)return t.value;if(!e.global)return Zo(e,i);for(var n=e.unicode,r=[],o=e.lastIndex=0;null!==(a=Zo(e,i));){var a=C(a[0]);""===(r[o]=a)&&(e.lastIndex=Uo(i,me(e.lastIndex),n)),o++}return 0===o?null:r}]}),Lt.EXISTS),P=y.f,n=Function.prototype,ma=h(n.toString),ba=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,va=h(ba.exec),ya=(d&&!e&&P(n,"name",{configurable:!0,get:function(){try{return va(ba,ma(this))[1]}catch(t){return""}}}),(r=Function.prototype).apply),xa=r.call,wa="object"==typeof Reflect&&Reflect.apply||(U?xa.bind(ya):function(){return xa.apply(ya,arguments)}),ka=Math.floor,Aa=h("".charAt),Sa=h("".replace),Ca=h("".slice),_a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ea=/\$([$&'`]|\d{1,2})/g,Oa=c("replace"),Ta=Math.max,La=Math.min,Ma=h([].concat),Pa=h([].push),Ia=h("".indexOf),Na=h("".slice),V="$0"==="a".replace(/./,"$0"),Da=!!/./[Oa]&&""===/./[Oa]("a","$0");function Ra(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function Fa(t){return t&&t.ownerDocument?t.ownerDocument:document}Vo("replace",function(t,y,x){var w=Da?"$":"$0";return[function(t,e){var i=z(this),n=null==t?void 0:At(t,Oa);return n?v(n,t,i,e):v(y,C(i),t,e)},function(t,e){var i=A(this),n=C(t);if("string"==typeof e&&-1===Ia(e,w)&&-1===Ia(e,"$<")&&(t=x(y,i,n,e)).done)return t.value;var r,o=k(e),a=(o||(e=C(e)),i.global);a&&(r=i.unicode,i.lastIndex=0);for(var s=[];;){var l=Zo(i,n);if(null===l)break;if(Pa(s,l),!a)break;""===C(l[0])&&(i.lastIndex=Uo(n,me(i.lastIndex),r))}for(var c,h="",u=0,d=0;d<s.length;d++){for(var f=C((l=s[d])[0]),p=Ta(La(pe(l.index),n.length),0),g=[],m=1;m<l.length;m++)Pa(g,void 0===(c=l[m])?c:String(c));var b=l.groups,v=o?(v=Ma([f],g,p,n),void 0!==b&&Pa(v,b),C(wa(e,void 0,v))):((o,a,s,l,c,t)=>{var h=s+o.length,u=l.length,e=Ea;return void 0!==c&&(c=B(c),e=_a),Sa(t,e,function(t,e){var i;switch(Aa(e,0)){case"$":return"$";case"&":return o;case"`":return Ca(a,0,s);case"'":return Ca(a,h);case"<":i=c[Ca(e,1,-1)];break;default:var n,r=+e;if(0==r)return t;if(u<r)return 0!==(n=ka(r/10))&&n<=u?void 0===l[n-1]?Aa(e,1):l[n-1]+Aa(e,1):t;i=l[r-1]}return void 0===i?"":i})})(f,n,p,g,b,e);u<=p&&(h+=Na(n,u,p)+v,u=p+f.length)}return h+Na(n,u)}]},!!l(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!V||Da);var ja=null,za=null;function Ba(t){if(null===ja){if(void 0===(t=Fa(t)))return ja=0;var e=t.body,i=((t=t.createElement("div")).classList.add("simplebar-hide-scrollbar"),e.appendChild(t),t.getBoundingClientRect().right);e.removeChild(t),ja=i}return ja}De&&window.addEventListener("resize",function(){za!==window.devicePixelRatio&&(za=window.devicePixelRatio,ja=null)}),D.getRtlHelpers=function(){(t=document.createElement("div")).innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var t=t.firstElementChild,e=(document.body.appendChild(t),t.firstElementChild),i=(t.scrollLeft=0,D.getOffset(t)),n=D.getOffset(e),t=(t.scrollLeft=999,D.getOffset(e));return{isRtlScrollingInverted:i.left!==n.left&&n.left-t.left!=0,isRtlScrollbarInverted:i.left!==n.left}},D.getOffset=function(t){var e=t.getBoundingClientRect(),i=Fa(t),t=Ra(t);return{top:e.top+(t.pageYOffset||i.documentElement.scrollTop),left:e.left+(t.pageXOffset||i.documentElement.scrollLeft)}},(M=D.prototype).init=function(){D.instances.set(this.el,this),De&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},M.initDOM=function(){var t,e,i=this;if(Array.prototype.filter.call(this.el.children,function(t){return t.classList.contains(i.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}this.axis.x.track.el&&this.axis.y.track.el||(t=document.createElement("div"),e=document.createElement("div"),t.classList.add(this.classNames.track),e.classList.add(this.classNames.scrollbar),t.appendChild(e),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)),this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},M.setAccessibilityAttributes=function(){var t=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",t)},M.initListeners=function(){var e=this,t=Ra(this.el),i=(this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(t){e.el.addEventListener(t,e.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize),!1),n=null,r=t.ResizeObserver||jo;this.resizeObserver=new r(function(){i&&null===n&&(n=t.requestAnimationFrame(function(){e.recalculate(),n=null}))}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame(function(){i=!0}),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},M.recalculate=function(){var t=Ra(this.el),t=(this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction,this.heightAutoObserverEl.offsetHeight<=1),e=this.heightAutoObserverEl.offsetWidth<=1,i=this.contentEl.offsetWidth,n=this.contentWrapperEl.offsetWidth,r=this.elStyles.overflowX,o=this.elStyles.overflowY,a=(this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft,this.contentEl.scrollHeight),s=this.contentEl.scrollWidth,t=(this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=e?i+"px":"auto",this.placeholderEl.style.height=a+"px",this.contentWrapperEl.offsetHeight),e=(this.axis.x.isOverflowing=i<s,this.axis.y.isOverflowing=t<a,this.axis.x.isOverflowing="hidden"!==r&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar(),this.axis.x.isOverflowing?this.scrollbarWidth:0),i=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&n-i<s,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&t-e<a,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},M.getScrollbarSize=function(t){var e;return this.axis[t=void 0===t?"y":t].isOverflowing?(e=this.contentEl[this.axis[t].scrollSizeAttr],t=this.axis[t].track.el[this.axis[t].offsetSizeAttr],e=Math.max(~~(t/e*t),this.options.scrollbarMinSize),this.options.scrollbarMaxSize?Math.min(e,this.options.scrollbarMaxSize):e):0},M.positionScrollbar=function(t){var e,i,n,r,o;this.axis[t=void 0===t?"y":t].isOverflowing&&(o=this.contentWrapperEl[this.axis[t].scrollSizeAttr],e=this.axis[t].track.el[this.axis[t].offsetSizeAttr],i=parseInt(this.elStyles[this.axis[t].sizeAttr],10),n=this.axis[t].scrollbar,r=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],r=("x"===t&&this.isRtl&&D.getRtlHelpers().isRtlScrollingInverted?-r:r)/(o-i),o=~~((e-n.size)*r),o="x"===t&&this.isRtl&&D.getRtlHelpers().isRtlScrollbarInverted?o+(e-n.size):o,n.el.style.transform="x"===t?"translate3d("+o+"px, 0, 0)":"translate3d(0, "+o+"px, 0)")},M.toggleTrackVisibility=function(t){var e=this.axis[t=void 0===t?"y":t].track.el,i=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?i.style.display="block":i.style.display="none"},M.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},M.onMouseMoveForAxis=function(t){this.axis[t=void 0===t?"y":t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)},M.onMouseLeaveForAxis=function(t){this.axis[t=void 0===t?"y":t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)},M.showScrollbar=function(t){var e=this.axis[t=void 0===t?"y":t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},M.onDragStart=function(t,e){void 0===e&&(e="y");var i=Fa(this.el),n=Ra(this.el),r=this.axis[e].scrollbar,t="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=t-r.rect[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(n.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},M.onTrackClick=function(t,i){var n,e,r,o,a,s,l=this;void 0===i&&(i="y"),this.options.clickOnTrack&&(n=Ra(this.el),this.axis[i].scrollbar.rect=this.axis[i].scrollbar.el.getBoundingClientRect(),e=this.axis[i].scrollbar.rect[this.axis[i].offsetAttr],r=parseInt(this.elStyles[this.axis[i].sizeAttr],10),o=this.contentWrapperEl[this.axis[i].scrollOffsetAttr],a=("y"===i?this.mouseY-e:this.mouseX-e)<0?-1:1,s=-1==a?o-r:o+r,function t(){var e;-1==a?s<o&&(o-=l.options.clickOnTrackSpeed,l.contentWrapperEl.scrollTo(((e={})[l.axis[i].offsetAttr]=o,e)),n.requestAnimationFrame(t)):o<s&&(o+=l.options.clickOnTrackSpeed,l.contentWrapperEl.scrollTo(((e={})[l.axis[i].offsetAttr]=o,e)),n.requestAnimationFrame(t))}())},M.getContentElement=function(){return this.contentEl},M.getScrollElement=function(){return this.contentWrapperEl},M.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ba(this.el)}catch(t){return Ba(this.el)}},M.removeListeners=function(){var e=this,t=Ra(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(t){e.el.removeEventListener(t,e.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(t){e.el.removeEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},M.unMount=function(){this.removeListeners(),D.instances.delete(this.el)},M.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height};var N=D;function D(t,e){var a=this;this.onScroll=function(){var t=Ra(a.el);a.scrollXTicking||(t.requestAnimationFrame(a.scrollX),a.scrollXTicking=!0),a.scrollYTicking||(t.requestAnimationFrame(a.scrollY),a.scrollYTicking=!0)},this.scrollX=function(){a.axis.x.isOverflowing&&(a.showScrollbar("x"),a.positionScrollbar("x")),a.scrollXTicking=!1},this.scrollY=function(){a.axis.y.isOverflowing&&(a.showScrollbar("y"),a.positionScrollbar("y")),a.scrollYTicking=!1},this.onMouseEnter=function(){a.showScrollbar("x"),a.showScrollbar("y")},this.onMouseMove=function(t){a.mouseX=t.clientX,a.mouseY=t.clientY,(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseMoveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseMoveForAxis("y")},this.onMouseLeave=function(){a.onMouseMove.cancel(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseLeaveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseLeaveForAxis("y"),a.mouseX=-1,a.mouseY=-1},this.onWindowResize=function(){a.scrollbarWidth=a.getScrollbarWidth(),a.hideNativeScrollbar()},this.hideScrollbars=function(){a.axis.x.track.rect=a.axis.x.track.el.getBoundingClientRect(),a.axis.y.track.rect=a.axis.y.track.el.getBoundingClientRect(),a.isWithinBounds(a.axis.y.track.rect)||(a.axis.y.scrollbar.el.classList.remove(a.classNames.visible),a.axis.y.isVisible=!1),a.isWithinBounds(a.axis.x.track.rect)||(a.axis.x.scrollbar.el.classList.remove(a.classNames.visible),a.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,i;a.axis.x.track.rect=a.axis.x.track.el.getBoundingClientRect(),a.axis.y.track.rect=a.axis.y.track.el.getBoundingClientRect(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&(e=a.isWithinBounds(a.axis.x.track.rect)),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&(i=a.isWithinBounds(a.axis.y.track.rect)),(e||i)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type)&&(e&&(a.axis.x.scrollbar.rect=a.axis.x.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.x.scrollbar.rect)?a.onDragStart(t,"x"):a.onTrackClick(t,"x")),i)&&(a.axis.y.scrollbar.rect=a.axis.y.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.y.scrollbar.rect)?a.onDragStart(t,"y"):a.onTrackClick(t,"y"))},this.drag=function(t){var e=a.axis[a.draggedAxis].track,i=e.rect[a.axis[a.draggedAxis].sizeAttr],n=a.axis[a.draggedAxis].scrollbar,r=a.contentWrapperEl[a.axis[a.draggedAxis].scrollSizeAttr],o=parseInt(a.elStyles[a.axis[a.draggedAxis].sizeAttr],10),t=(t.preventDefault(),t.stopPropagation(),(("y"===a.draggedAxis?t.pageY:t.pageX)-e.rect[a.axis[a.draggedAxis].offsetAttr]-a.axis[a.draggedAxis].dragOffset)/(i-n.size)*(r-o));"x"===a.draggedAxis&&(t=a.isRtl&&D.getRtlHelpers().isRtlScrollbarInverted?t-(i+n.size):t,t=a.isRtl&&D.getRtlHelpers().isRtlScrollingInverted?-t:t),a.contentWrapperEl[a.axis[a.draggedAxis].scrollOffsetAttr]=t},this.onEndDrag=function(t){var e=Fa(a.el),i=Ra(a.el);t.preventDefault(),t.stopPropagation(),a.el.classList.remove(a.classNames.dragging),e.removeEventListener("mousemove",a.drag,!0),e.removeEventListener("mouseup",a.onEndDrag,!0),a.removePreventClickId=i.setTimeout(function(){e.removeEventListener("click",a.preventClick,!0),e.removeEventListener("dblclick",a.preventClick,!0),a.removePreventClickId=null})},this.preventClick=function(t){t.preventDefault(),t.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},D.defaultOptions,e),this.classNames=Object.assign({},D.defaultOptions.classNames,this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,D.instances.has(this.el)||(this.recalculate=kr(this.recalculate.bind(this),64),this.onMouseMove=kr(this.onMouseMove.bind(this),64),this.hideScrollbars=Rr(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Rr(this.onWindowResize.bind(this),64,{leading:!0}),D.getRtlHelpers=eo(D.getRtlHelpers),this.init())}return N.defaultOptions={autoHide:!0,forceVisible:!(M.findChild=function(t,e){var i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(t){return i.call(t,e)})[0]}),clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},N.instances=new WeakMap,N.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(t){"init"===t.getAttribute("data-simplebar")||N.instances.has(t)||new N(t,$o(t.attributes))})},N.removeObserver=function(){this.globalObserver.disconnect()},N.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(N.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},N.handleMutations=function(t){t.forEach(function(t){Array.prototype.forEach.call(t.addedNodes,function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!N.instances.has(t)&&document.documentElement.contains(t)&&new N(t,$o(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll("[data-simplebar]"),function(t){"init"!==t.getAttribute("data-simplebar")&&!N.instances.has(t)&&document.documentElement.contains(t)&&new N(t,$o(t.attributes))}))}),Array.prototype.forEach.call(t.removedNodes,function(t){1===t.nodeType&&("init"===t.getAttribute("data-simplebar")?N.instances.has(t)&&!document.documentElement.contains(t)&&N.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar="init"]'),function(t){N.instances.has(t)&&!document.documentElement.contains(t)&&N.instances.get(t).unMount()}))})})},N.getOptions=$o,De&&N.initHtmlApi(),N}),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).ApexCharts=e()})(this,function(){function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function D(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,q(n.key),n)}}function t(t,e,i){e&&R(t.prototype,e),i&&R(t,i),Object.defineProperty(t,"prototype",{writable:!1})}function L(t,e){var i,n,r,o,a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(t)},n:function(){var t=a.next();return n=t.done,t},e:function(t){r=!0,i=t},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw i}}};if(Array.isArray(t)||(a=G(t))||e&&t&&"number"==typeof t.length)return a&&(t=a),o=0,{s:e=function(){},n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(i){var n=z();return function(){var t,e=F(i),e=(t=n?(t=F(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),this);if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return D(e)}}function d(t,e,i){return(e=q(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function F(t){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&X(t,e)}function z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(z=function(){return!!t})()}function Y(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function M(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(i),!0).forEach(function(t){d(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Y(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function X(t,e){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function W(t,e){return(t=>{if(Array.isArray(t))return t})(t)||((t,e)=>{var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}})(t,e)||G(t,e)||(()=>{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 A(t){return(t=>{if(Array.isArray(t))return N(t)})(t)||(()=>{if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)})()||G(t)||(()=>{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 q(t){return"symbol"==typeof(t=(t=>{if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0===e)return String(t);if("object"!=typeof(e=e.call(t,"string")))return e;throw new TypeError("@@toPrimitive must return a primitive value.")})(t))?t:t+""}function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function G(t,e){var i;if(t)return"string"==typeof t?N(t,e):"Map"===(i="Object"===(i={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?N(t,e):void 0}t(o,[{key:"shadeRGBColor",value:function(t,e){var e=e.split(","),i=t<0?0:255,t=t<0?-1*t:t,n=parseInt(e[0].slice(4),10),r=parseInt(e[1],10),e=parseInt(e[2],10);return"rgb("+(Math.round((i-n)*t)+n)+","+(Math.round((i-r)*t)+r)+","+(Math.round((i-e)*t)+e)+")"}},{key:"shadeHexColor",value:function(t,e){var i=t<0?0:255,t=t<0?-1*t:t,n=(e=parseInt(e.slice(1),16))>>16,r=e>>8&255,e=255&e;return"#"+(16777216+65536*(Math.round((i-n)*t)+n)+256*(Math.round((i-r)*t)+r)+(Math.round((i-e)*t)+e)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,e){return o.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(t,e)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===y(t)&&!Array.isArray(t)&&null!=t}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"listToArray",value:function(t){for(var e=[],i=0;i<t.length;i++)e[i]=t[i];return e}},{key:"extend",value:function(e,i){var n=this,r=("function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}),Object.assign({},e));return this.isObject(e)&&this.isObject(i)&&Object.keys(i).forEach(function(t){n.isObject(i[t])&&t in e?r[t]=n.extend(e[t],i[t]):Object.assign(r,d({},t,i[t]))}),r}},{key:"extendArray",value:function(t,e){var i=[];return t.map(function(t){i.push(o.extend(e,t))}),i}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(t){if(o.is("Array",t)){for(var e=[],i=0;i<t.length;i++)e[i]=this.clone(t[i]);return e}if(o.is("Null",t))return null;if(o.is("Date",t))return t;if("object"!==y(t))return t;var n,r={};for(n in t)t.hasOwnProperty(n)&&(r[n]=this.clone(t[n]));return r}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return null===t?t:parseFloat(t)}},{key:"stripNumber",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1===e.length)return e[0];var i="",t=t<0?"-":"",n=e[0].replace(".",""),r=Number(e[1])+1;if(r<0){for(i=t+"0.";r++;)i+="0";return i+n.replace(/^-/,"")}for(r-=n.length;r--;)i+="0";return n+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,t=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce(function(t,e){return Array.isArray(e)&&(e=e.reduce(function(t,e){return t.length>e.length?t:e})),t.length>e.length?t:e},0)}},{key:"hexToRgba",value:function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"#999999",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.6,i=(i=(t="#"!==t.substring(0,1)?"#999999":t).replace("#","")).match(new RegExp("(.{"+i.length/3+"})","g")),n=0;n<i.length;n++)i[n]=parseInt(1===i[n].length?i[n]+i[n]:i[n],16);return void 0!==e&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,e){for(var i=[],n=2*Math.PI/e,r=0;r<e;r++){var o={};o.x=t*Math.sin(r*n),o.y=-t*Math.cos(r*n),i.push(o)}return i}},{key:"polarToCartesian",value:function(t,e,i,n){return n=(n-90)*Math.PI/180,{x:t+i*Math.cos(n),y:e+i*Math.sin(n)}}},{key:"escapeString",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"x",t=t.toString().slice();return t.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var n=i-t.length+1;n--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"preciseAddition",value:function(t,e){var i=(String(t).split(".")[1]||"").length,n=(String(e).split(".")[1]||"").length,i=Math.pow(10,Math.max(i,n));return(Math.round(t*i)+Math.round(e*i))/i}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return-1<navigator.userAgent.toLowerCase().indexOf("firefox")}},{key:"isMsEdge",value:function(){var t=window.navigator.userAgent,e=t.indexOf("Edge/");return 0<e&&parseInt(t.substring(e+5,t.indexOf(".",e)),10)}},{key:"getGCD",value:function(t,e){var i=Math.pow(10,(2<arguments.length&&void 0!==arguments[2]?arguments[2]:7)-Math.floor(Math.log10(Math.max(t,e))));for(t=Math.round(Math.abs(t)*i),e=Math.round(Math.abs(e)*i);e;){var n=e;e=t%e,t=n}return t/i}},{key:"getPrimeFactors",value:function(t){for(var e=[],i=2;2<=t;)t%i==0?(e.push(i),t/=i):i++;return e}},{key:"mod",value:function(t,e){var i=Math.pow(10,(2<arguments.length&&void 0!==arguments[2]?arguments[2]:7)-Math.floor(Math.log10(Math.max(t,e))));return(t=Math.round(Math.abs(t)*i))%(e=Math.round(Math.abs(e)*i))/i}}]);var B=o,S=(t(st,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":default:t="<>";break;case"swing":t=function(t){return--t*t*(2.70158*t+1.70158)+1};break;case"bounce":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-.075)/.3)+1}}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,n){t.attr(e).animate(n).attr(i)}},{key:"animateMarker",value:function(t,e,i,n){t.attr({opacity:0}).animate(e,i).attr({opacity:1}).afterAll(function(){n()})}},{key:"animateRect",value:function(t,e,i,n,r){t.attr(e).animate(n).attr(i).afterAll(function(){return r()})}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=this.w,n=0;i.config.chart.animations.animateGradually.enabled&&(n=i.config.chart.animations.animateGradually.delay),i.config.chart.animations.dynamicAnimation.enabled&&i.globals.dataChanged&&"bar"!==i.config.chart.type&&(n=0),this.morphSVG(e,t.realIndex,t.j,"line"!==i.config.chart.type||i.globals.comboCharts?t.fill:"stroke",t.pathFrom,t.pathTo,t.speed,t.delay*n)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(t){(t=t.el).classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,n,r,o,a,s){function l(){return"radar"===h.config.chart.type&&(a=1),"M 0 ".concat(h.globals.gridHeight)}var c=this,h=this.w;r=r||t.attr("pathFrom"),o=o||t.attr("pathTo"),(!r||-1<r.indexOf("undefined")||-1<r.indexOf("NaN"))&&(r=l()),(!o||-1<o.indexOf("undefined")||-1<o.indexOf("NaN"))&&(o=l()),h.globals.shouldAnimate||(a=1),t.plot(r).animate(1,h.globals.easing,s).plot(r).animate(a,h.globals.easing,s).plot(o).afterAll(function(){B.isNumber(i)?i===h.globals.series[h.globals.maxValsInArrayIndex].length-2&&h.globals.shouldAnimate&&c.animationCompleted(t):"none"!==n&&h.globals.shouldAnimate&&(!h.globals.comboCharts&&e===h.globals.series.length-1||h.globals.comboCharts)&&c.animationCompleted(t),c.showDelayedElements()})}}]),st),P=(t(at,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,i,e){var n=this,r=this.w,o=e.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(t){var e=r.config.chart.dropShadow;(e.enabled?n.addShadow(t,i,e):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:o}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,i,e){var n=this,r=this.w,o=e.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(t){var e=r.config.chart.dropShadow;(e.enabled?n.addShadow(t,i,e):t).componentTransfer({rgb:{type:"linear",slope:o}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:n});break;case"darken":this.addDarkenFilter(t,e,{intensity:n})}}},{key:"addShadow",value:function(t,e,i){var n,r=this.w,o=i.blur,a=i.top,s=i.left,l=i.color,i=i.opacity;return 0<(null==(n=r.config.chart.dropShadow.enabledOnSeries)?void 0:n.length)&&-1===r.config.chart.dropShadow.enabledOnSeries.indexOf(e)?t:(n=t.flood(Array.isArray(l)?l[e]:l,i).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(o).merge(t.source),t.blend(t.source,n))}},{key:"dropShadow",value:function(t,e){var i,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,r=e.top,o=e.left,a=e.blur,s=e.color,l=e.opacity,e=e.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),B.isMsEdge()&&"radialBar"===c.config.chart.type||0<(null==(i=c.config.chart.dropShadow.enabledOnSeries)?void 0:i.length)&&-1===(null==(i=c.config.chart.dropShadow.enabledOnSeries)?void 0:i.indexOf(n))||(s=Array.isArray(s)?s[n]:s,t.filter(function(t){var e=B.isSafari()||B.isFirefox()||B.isMsEdge()?t.flood(s,l).composite(t.sourceAlpha,"in").offset(o,r).gaussianBlur(a):t.flood(s,l).composite(t.sourceAlpha,"in").offset(o,r).gaussianBlur(a).merge(t.source);t.blend(t.source,e)}),e||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var n=this.w;void 0!==n.globals.selectedDataPoints[e]&&-1<n.globals.selectedDataPoints[e].indexOf(i)&&(t.node.setAttribute("selected",!0),"none"!==(i=n.config.states.active.filter))&&this.applyFilter(t,e,i.type,i.value)}},{key:"_scaleFilterSize",value:function(t){var e,i={width:"200%",height:"200%",x:"-50%",y:"-50%"};for(e in i)i.hasOwnProperty(e)&&t.setAttribute(e,i[e])}}]),at),H=(t(ot,[{key:"roundPathCorners",value:function(t,e){function i(t,e,i){var n=e.x-t.x,r=e.y-t.y,n=Math.sqrt(n*n+r*r);return o(t,e,Math.min(1,i/n))}function o(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function n(t,e){2<t.length&&(t[t.length-2]=e.x,t[t.length-1]=e.y)}function r(t){return{x:parseFloat(t[t.length-2]),y:parseFloat(t[t.length-1])}}var a=(t=-1<t.indexOf("NaN")?"":t).split(/[,\s]/).reduce(function(t,e){var i=e.match("([a-zA-Z])(.+)");return i?(t.push(i[1]),t.push(i[2])):t.push(e),t},[]).reduce(function(t,e){return parseFloat(e)==e&&t.length?t[t.length-1].push(e):t.push([e]),t},[]),s=[];if(1<a.length){var t=r(a[0]),l=null;"Z"==a[a.length-1][0]&&2<a[0].length&&(l=["L",t.x,t.y],a[a.length-1]=l),s.push(a[0]);for(var c=1;c<a.length;c++){var h,u,d=s[s.length-1],f=a[c],p=f==l?a[1]:a[c+1];p&&d&&2<d.length&&"L"==f[0]&&2<p.length&&"L"==p[0]?(d=r(d),h=r(f),p=r(p),d=i(h,d,e),p=i(h,p,e),n(f,d),f.origPoint=h,s.push(f),d=o(d,h,.5),u=o(h,p,.5),(d=["C",d.x,d.y,u.x,u.y,p.x,p.y]).origPoint=h,s.push(d)):s.push(f)}l&&(t=r(s[s.length-1]),s.push(["Z"]),n(s[0],t))}else s=a;return s.reduce(function(t,e){return t+e.join(" ")+" "},"")}},{key:"drawLine",value:function(t,e,i,n){var r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0,a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null,s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:n,stroke:r,"stroke-dasharray":o,"stroke-width":a,"stroke-linecap":s})}},{key:"drawRect",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:"#fefefe",a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:1,s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:null,l=8<arguments.length&&void 0!==arguments[8]?arguments[8]:null,c=9<arguments.length&&void 0!==arguments[9]?arguments[9]:0,h=this.w.globals.dom.Paper.rect();return h.attr({x:t,y:e,width:0<i?i:0,height:0<n?n:0,rx:r,ry:r,opacity:a,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),h.node.setAttribute("fill",o),h}},{key:"drawPolygon",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:n,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,t=this.w.globals.dom.Paper.circle(2*(t=t<0?0:t));return null!==e&&t.attr(e),t}},{key:"drawPath",value:function(t){var e=void 0===(e=t.d)?"":e,i=void 0===(i=t.stroke)?"#a8a8a8":i,n=void 0===(n=t.strokeWidth)?1:n,r=t.fill,o=void 0===(o=t.fillOpacity)?1:o,a=void 0===(a=t.strokeOpacity)?1:a,s=t.classes,l=void 0===(l=t.strokeLinecap)?null:l,t=void 0===(t=t.strokeDashArray)?0:t,c=this.w;return null===l&&(l=c.config.stroke.lineCap),(-1<e.indexOf("undefined")||-1<e.indexOf("NaN"))&&(e="M 0 ".concat(c.globals.gridHeight)),c.globals.dom.Paper.path(e).attr({fill:r,"fill-opacity":o,stroke:i,"stroke-opacity":a,"stroke-linecap":l,"stroke-width":n,"stroke-dasharray":t,class:s})}},{key:"group",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=null;return null===i?n=[" L",t,e].join(" "):"H"===i?n=[" H",t].join(" "):"V"===i&&(n=[" V",e].join(" ")),n}},{key:"curve",value:function(t,e,i,n,r,o){return["C",t,e,i,n,r,o].join(" ")}},{key:"quadraticCurve",value:function(t,e,i,n){return["Q",t,e,i,n].join(" ")}},{key:"arc",value:function(t,e,i,n,r,o,a){return[7<arguments.length&&void 0!==arguments[7]&&arguments[7]?"a":"A",t,e,i,n,r,o,a].join(" ")}},{key:"renderPaths",value:function(t){var e=t.j,i=t.realIndex,n=t.pathFrom,r=t.pathTo,o=t.stroke,a=t.strokeWidth,s=t.strokeLinecap,l=t.fill,c=t.animationDelay,h=t.initialSpeed,u=t.dataChangeSpeed,d=t.className,f=t.chartType,p=void 0===(p=t.shouldClipToGrid)||p,g=void 0===(g=t.bindEventsOnPaths)||g,t=void 0===(t=t.drawShadow)||t,m=this.w,b=new P(this.ctx),v=new S(this.ctx),y=this.w.config.chart.animations.enabled,x=y&&this.w.config.chart.animations.dynamicAnimation.enabled,w=!!(y&&!m.globals.resized||x&&m.globals.dataChanged&&m.globals.shouldAnimate),k=(w?A=n:(A=r,m.globals.animationEnded=!0),m.config.stroke.dashArray),k=Array.isArray(k)?k[i]:m.config.stroke.dashArray,A=this.drawPath({d:A,stroke:o,strokeWidth:a,fill:l,fillOpacity:1,classes:d,strokeLinecap:s,strokeDashArray:k}),d=(A.attr("index",i),p&&("bar"===f&&!m.globals.isHorizontal||m.globals.comboCharts?A.attr({"clip-path":"url(#gridRectBarMask".concat(m.globals.cuid,")")}):A.attr({"clip-path":"url(#gridRectMask".concat(m.globals.cuid,")")})),"none"!==m.config.states.normal.filter.type?b.getDefaultFilter(A,i):m.config.chart.dropShadow.enabled&&t&&(o=m.config.chart.dropShadow,b.dropShadow(A,o,i)),g&&(A.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,A)),A.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,A)),A.node.addEventListener("mousedown",this.pathMouseDown.bind(this,A))),A.attr({pathTo:r,pathFrom:n}),{el:A,j:e,realIndex:i,pathFrom:n,pathTo:r,fill:l,strokeWidth:a,delay:c});return!y||m.globals.resized||m.globals.dataChanged?!m.globals.resized&&m.globals.dataChanged||v.showDelayedElements():v.animatePathsGradually(M(M({},d),{},{speed:h})),m.globals.dataChanged&&x&&w&&v.animatePathsGradually(M(M({},d),{},{speed:u})),A}},{key:"drawPattern",value:function(e,i,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(i,n,function(t){"horizontalLines"===e?t.line(0,0,n,0).stroke({color:r,width:o+1}):"verticalLines"===e?t.line(0,0,0,i).stroke({color:r,width:o+1}):"slantedLines"===e?t.line(0,0,i,n).stroke({color:r,width:o}):"squares"===e?t.rect(i,n).fill("none").stroke({color:r,width:o}):"circles"===e&&t.circle(i).fill("none").stroke({color:r,width:o})})}},{key:"drawGradient",value:function(t,e,i,n,r){var o,a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,s=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null,l=7<arguments.length&&void 0!==arguments[7]?arguments[7]:null,c=8<arguments.length&&void 0!==arguments[8]?arguments[8]:0,h=this.w,u=(e.length<9&&0===e.indexOf("#")&&(e=B.hexToRgba(e,n)),i.length<9&&0===i.indexOf("#")&&(i=B.hexToRgba(i,r)),0),d=1,f=1,p=null,s=(null!==s&&(u=void 0!==s[0]?s[0]/100:0,d=void 0!==s[1]?s[1]/100:1,f=void 0!==s[2]?s[2]/100:1,p=void 0!==s[3]?s[3]/100:null),!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"polarArea"!==h.config.chart.type&&"bubble"!==h.config.chart.type)),g=null===l||0===l.length?h.globals.dom.Paper.gradient(s?"radial":"linear",function(t){t.at(u,e,n),t.at(d,i,r),t.at(f,i,r),null!==p&&t.at(p,e,n)}):h.globals.dom.Paper.gradient(s?"radial":"linear",function(e){(Array.isArray(l[c])?l[c]:l).forEach(function(t){e.at(t.offset/100,t.color,t.opacity)})});return s?(s=h.globals.gridWidth/2,o=h.globals.gridHeight/2,"bubble"!==h.config.chart.type?g.attr({gradientUnits:"userSpaceOnUse",cx:s,cy:o,r:a}):g.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})):"vertical"===t?g.from(0,0).to(0,1):"diagonal"===t?g.from(0,0).to(1,1):"horizontal"===t?g.from(0,1).to(1,1):"diagonal2"===t&&g.from(1,0).to(0,1),g}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,n=(t=this.getTextRects(e,t.fontSize,t.fontFamily)).width/e.length,n=Math.floor(i/n);return i<t.width?e.slice(0,n-3)+"...":e}},{key:"drawText",value:function(t){var i=this,e=t.x,n=t.y,r=t.text,o=t.foreColor,a=t.opacity,s=t.maxWidth,l=void 0===(l=t.cssClass)?"":l,c=void 0===(c=t.isPlainText)||c,h=void 0===(h=t.dominantBaseline)?"auto":h,u=this.w,d=r=void 0===r?"":r,f=t.textAnchor||"start",p=(o&&o.length||(o=u.config.chart.foreColor),t.fontFamily||u.config.chart.fontFamily),g=t.fontWeight||"regular",m={maxWidth:s,fontSize:t=t.fontSize||"11px",fontFamily:p};return(c=Array.isArray(r)?u.globals.dom.Paper.text(function(t){for(var e=0;e<r.length;e++)d=r[e],s&&(d=i.getTextBasedOnMaxWidth(M({text:r[e]},m))),0===e?t.tspan(d):t.tspan(d).newLine()}):(s&&(d=this.getTextBasedOnMaxWidth(M({text:r},m))),c?u.globals.dom.Paper.plain(r):u.globals.dom.Paper.text(function(t){return t.tspan(d)}))).attr({x:e,y:n,"text-anchor":f,"dominant-baseline":h,"font-size":t,"font-family":p,"font-weight":g,fill:o,class:"apexcharts-text "+l}),c.node.style.fontFamily=p,c.node.style.opacity=a,c}},{key:"getMarkerPath",value:function(t,e,i,n){var r="";switch(i){case"cross":r="M ".concat(t-(n/=1.4)," ").concat(e-n," L ").concat(t+n," ").concat(e+n," M ").concat(t-n," ").concat(e+n," L ").concat(t+n," ").concat(e-n);break;case"plus":r="M ".concat(t-(n/=1.12)," ").concat(e," L ").concat(t+n," ").concat(e," M ").concat(t," ").concat(e-n," L ").concat(t," ").concat(e+n);break;case"star":case"sparkle":var o=5;n*=1.15,"sparkle"===i&&(n/=1.1,o=4);for(var a=Math.PI/o,s=0;s<=2*o;s++){var l=s*a,c=s%2==0?n:n/2;r+=(0===s?"M":"L")+(t+c*Math.sin(l))+","+(e-c*Math.cos(l))}r+="Z";break;case"triangle":r="M ".concat(t," ").concat(e-n," \n L ").concat(t+n," ").concat(e+n," \n L ").concat(t-n," ").concat(e+n," \n Z");break;case"square":case"rect":r="M ".concat(t-(n/=1.125)," ").concat(e-n," \n L ").concat(t+n," ").concat(e-n," \n L ").concat(t+n," ").concat(e+n," \n L ").concat(t-n," ").concat(e+n," \n Z");break;case"diamond":n*=1.05,r="M ".concat(t," ").concat(e-n," \n L ").concat(t+n," ").concat(e," \n L ").concat(t," ").concat(e+n," \n L ").concat(t-n," ").concat(e," \n Z");break;case"line":r="M ".concat(t-(n/=1.1)," ").concat(e," \n L ").concat(t+n," ").concat(e);break;default:n*=2,r="M ".concat(t,", ").concat(e," \n m -").concat(n/2,", 0 \n a ").concat(n/2,",").concat(n/2," 0 1,0 ").concat(n,",0 \n a ").concat(n/2,",").concat(n/2," 0 1,0 -").concat(n,",0")}return r}},{key:"drawMarkerShape",value:function(t,e,i,n,r){return(i=this.drawPath({d:this.getMarkerPath(t,e,i,n,r),stroke:r.pointStrokeColor,strokeDashArray:r.pointStrokeDashArray,strokeWidth:r.pointStrokeWidth,fill:r.pointFillColor,fillOpacity:r.pointFillOpacity,strokeOpacity:r.pointStrokeOpacity})).attr({cx:t,cy:e,shape:r.shape,class:r.class||""}),i}},{key:"drawMarker",value:function(t,e,i){t=t||0;var n=i.pSize||0;return B.isNumber(e)||(e=n=0),this.drawMarkerShape(t,e,null==i?void 0:i.shape,n,M(M({},i),"line"===i.shape||"plus"===i.shape||"cross"===i.shape?{pointStrokeColor:i.pointFillColor,pointStrokeOpacity:i.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,n=new P(this.ctx),r=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"===i.config.states.hover.filter.type||i.globals.isTouchDevice||(e=i.config.states.hover.filter,n.applyFilter(t,r,e.type,e.value))}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,n=new P(this.ctx),r=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&n.getDefaultFilter(t,r)}},{key:"pathMouseDown",value:function(t,e){var i,n,r,o,a=this.w,s=new P(this.ctx),l=parseInt(t.node.getAttribute("index"),10),c=parseInt(t.node.getAttribute("j"),10),h="false";"true"===t.node.getAttribute("selected")?(t.node.setAttribute("selected","false"),-1<a.globals.selectedDataPoints[l].indexOf(c)&&(r=a.globals.selectedDataPoints[l].indexOf(c),a.globals.selectedDataPoints[l].splice(r,1))):(!a.config.states.active.allowMultipleDataPointsSelection&&0<a.globals.selectedDataPoints.length&&(a.globals.selectedDataPoints=[],r=a.globals.dom.Paper.select(".apexcharts-series path").members,i=a.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,(n=function(t){Array.prototype.forEach.call(t,function(t){t.node.setAttribute("selected","false"),s.getDefaultFilter(t,l)})})(r),n(i)),t.node.setAttribute("selected","true"),h="true",void 0===a.globals.selectedDataPoints[l]&&(a.globals.selectedDataPoints[l]=[]),a.globals.selectedDataPoints[l].push(c)),"true"===h?"none"!==(r=a.config.states.active.filter)?s.applyFilter(t,l,r.type,r.value):"none"===a.config.states.hover.filter||a.globals.isTouchDevice||(o=a.config.states.hover.filter,s.applyFilter(t,l,o.type,o.value)):"none"!==a.config.states.active.filter.type&&("none"===a.config.states.hover.filter.type||a.globals.isTouchDevice?s.getDefaultFilter(t,l):(o=a.config.states.hover.filter,s.applyFilter(t,l,o.type,o.value))),"function"==typeof a.config.chart.events.dataPointSelection&&a.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:a.globals.selectedDataPoints,seriesIndex:l,dataPointIndex:c,w:a}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:a.globals.selectedDataPoints,seriesIndex:l,dataPointIndex:c,w:a}])}},{key:"rotateAroundCenter",value:function(t){var e={};return{x:(e=t&&"function"==typeof t.getBBox?t.getBBox():e).x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,n){var r=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],o=this.w,t=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0}),e=(n&&t.attr("transform",n),o.globals.dom.Paper.add(t),t.bbox());return r||(e=t.node.getBoundingClientRect()),t.remove(),{width:e.width,height:e.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&0<(t.textContent=e).length&&t.getComputedTextLength()>=i/1.1){for(var n=e.length-3;0<n;n-=3)if(t.getSubStringLength(0,n)<=i/1.1)return void(t.textContent=e.substring(0,n)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),ot),I=(t(rt,[{key:"getStackedSeriesTotals",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=this.w,i=[];if(0!==e.globals.series.length)for(var n=0;n<e.globals.series[e.globals.maxValsInArrayIndex].length;n++){for(var r=0,o=0;o<e.globals.series.length;o++)void 0!==e.globals.series[o][n]&&-1===t.indexOf(o)&&(r+=e.globals.series[o][n]);i.push(r)}return i}},{key:"getSeriesTotalByIndex",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce(function(t,e){return t+e},0):this.w.globals.series[t].reduce(function(t,e){return t+e},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,r=this.w,o=[];return r.globals.seriesGroups.forEach(function(i){var n=[],t=(r.config.series.forEach(function(t,e){-1<i.indexOf(r.globals.seriesNames[e])&&n.push(e)}),r.globals.series.map(function(t,e){return-1===n.indexOf(e)?e:-1}).filter(function(t){return-1!==t}));o.push(e.getStackedSeriesTotals(t))}),o}},{key:"setSeriesYAxisMappings",value:function(){var t=this.w.globals,i=this.w.config,a=[],n=[],s=[],l=t.series.length>i.yaxis.length||i.yaxis.some(function(t){return Array.isArray(t.seriesName)}),c=(i.series.forEach(function(t,e){s.push(e),n.push(null)}),i.yaxis.forEach(function(t,e){a[e]=[]}),[]);i.yaxis.forEach(function(t,r){var e,o=!1;t.seriesName&&(e=[],Array.isArray(t.seriesName)?e=t.seriesName:e.push(t.seriesName),e.forEach(function(n){i.series.forEach(function(t,e){var i;t.name===n&&(r===(i=e)||l?!l||-1<s.indexOf(e)?a[r].push([r,e]):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."):(a[e].push([e,r]),i=r),o=!0,-1!==(i=s.indexOf(i)))&&s.splice(i,1)})})),o||c.push(r)});for(var a=a.map(function(t,e){var i=[];return t.forEach(function(t){n[t[1]]=t[0],i.push(t[1])}),i}),e=i.yaxis.length-1,r=0;r<c.length&&(a[e=c[r]]=[],s);r++){var o=s[0];s.shift(),a[e].push(o),n[o]=e}s.forEach(function(t){a[e].push(t),n[t]=e}),t.seriesYAxisMap=a.map(function(t){return t}),t.seriesYAxisReverseMap=n.map(function(t){return t}),t.seriesYAxisMap.forEach(function(t,e){t.forEach(function(t){i.series[t]&&void 0===i.series[t].group&&(i.series[t].group="apexcharts-axis-".concat(e.toString()))})})}},{key:"isSeriesNull",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter(function(t){return null!==t}):this.w.config.series[t].data.filter(function(t){return null!==t})).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every(function(t,e,i){return t===i[0]})}},{key:"getCategoryLabels",value:function(t){var i=this.w,e=t.slice();return i.config.xaxis.convertedCatToNumeric?t.map(function(t,e){return i.config.xaxis.labels.formatter(t-i.globals.minX+1)}):e}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,t.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach(function(t){e=Math.max(e,t)}),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach(function(t){e=Math.max(e,t.size)}),0<e&&(0<t.config.markers.hover.size?e=t.config.markers.hover.size:e+=t.config.markers.hover.sizeOffset),t.globals.markers.largestSize=e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map(function(t,e){var i=0;if(Array.isArray(t))for(var n=0;n<t.length;n++)i+=t[n];else i+=t;return i})}},{key:"getSeriesTotalsXRange",value:function(r,o){var a=this.w;return a.globals.series.map(function(t,e){for(var i=0,n=0;n<t.length;n++)a.globals.seriesX[e][n]>r&&a.globals.seriesX[e][n]<o&&(i+=t[n]);return i})}},{key:"getPercentSeries",value:function(){var s=this.w;s.globals.seriesPercent=s.globals.series.map(function(t,e){var i=[];if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=s.globals.stackedSeriesTotals[n],o=0;r&&(o=100*t[n]/r),i.push(o)}else{var a=100*t/s.globals.seriesTotals.reduce(function(t,e){return t+e},0);i.push(a)}return i})}},{key:"getCalculatedRatios",value:function(){var t,e,i,n,r=this,o=this.w,a=o.globals,s=[],l=[],c=.1,h=0;if(a.yRange=[],a.isMultipleYAxis)for(var u=0;u<a.minYArr.length;u++)a.yRange.push(Math.abs(a.minYArr[u]-a.maxYArr[u])),l.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var d=0;d<a.yRange.length;d++)s.push(a.yRange[d]/a.gridHeight);if(e=a.xRange/a.gridWidth,t=a.yRange/a.gridWidth,i=a.xRange/a.gridHeight,n=a.zRange/a.gridHeight*16||1,a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(a.hasNegs=!0),0<o.globals.seriesYAxisReverseMap.length){var f=function(t,e){var i=o.config.yaxis[o.globals.seriesYAxisReverseMap[e]],n=t<0?-1:1;return t=Math.abs(t),-n*(t=i.logarithmic?r.getBaseLog(i.logBase,t):t)/s[e]};if(a.isMultipleYAxis)for(var l=[],p=0;p<s.length;p++)l.push(f(a.minYArr[p],p));else(l=[]).push(f(a.minY,0)),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(c=-a.minY/t,h=a.minX/e)}else(l=[]).push(0),h=c=0;return{yRatio:s,invertedYRatio:t,zRatio:n,xRatio:e,invertedXRatio:i,baseLineInvertedY:c,baseLineY:l,baseLineX:h}}},{key:"getLogSeries",value:function(t){var n=this,r=this.w;return r.globals.seriesLog=t.map(function(t,e){var i=r.globals.seriesYAxisReverseMap[e];return r.config.yaxis[i]&&r.config.yaxis[i].logarithmic?t.map(function(t){return null===t?null:n.getLogVal(r.config.yaxis[i].logBase,t,e)}):t}),r.globals.invalidLogScale?t:r.globals.seriesLog}},{key:"getBaseLog",value:function(t,e){return Math.log(e)/Math.log(t)}},{key:"getLogVal",value:function(t,e,i){var n,r;return e<=0?0:(n=0===(r=this.w).globals.minYArr[i]?-1:this.getBaseLog(t,r.globals.minYArr[i]),r=(0===r.globals.maxYArr[i]?0:this.getBaseLog(t,r.globals.maxYArr[i]))-n,e<1?e/r:(this.getBaseLog(t,e)-n)/r)}},{key:"getLogYRatios",value:function(t){var o=this,a=this.w,s=this.w.globals;return s.yLogRatio=t.slice(),s.logYRange=s.yRange.map(function(t,e){var i,n,r=a.globals.seriesYAxisReverseMap[e];if(a.config.yaxis[r]&&o.w.config.yaxis[r].logarithmic)return i=-Number.MAX_VALUE,n=Number.MIN_VALUE,s.seriesLog.forEach(function(t,e){t.forEach(function(t){a.config.yaxis[e]&&a.config.yaxis[e].logarithmic&&(i=Math.max(t,i),n=Math.min(t,n))})}),r=Math.pow(s.yRange[e],Math.abs(n-i)/s.yRange[e]),s.yLogRatio[e]=r/s.gridHeight,r}),s.invalidLogScale?t.slice():s.yLogRatio}},{key:"drawSeriesByGroup",value:function(o,t,e,a){var s=this.w,l=[];return 0<o.series.length&&t.forEach(function(i){var n=[],r=[];o.i.forEach(function(t,e){s.config.series[t].group===i&&(n.push(o.series[e]),r.push(t))}),0<n.length&&l.push(a.draw(n,e,r))}),l}}],[{key:"checkComboSeries",value:function(t,e){var i=0,n=0;return void 0===e&&(e="line"),t.length&&void 0!==t[0].type&&t.forEach(function(t){"bar"!==t.type&&"column"!==t.type&&"candlestick"!==t.type&&"boxPlot"!==t.type||i++,void 0!==t.type&&t.type!==e&&n++}),{comboBarCount:i,comboCharts:0<n}}},{key:"extendArrayProps",value:function(t,e,i){var n;return null!=(n=e=null!=(n=e)&&n.yaxis?t.extendYAxis(e,i):e)&&n.annotations&&null!=(i=e=null!=(i=e=e.annotations.yaxis?t.extendYAxisAnnotations(e):e)&&null!=(n=i.annotations)&&n.xaxis?t.extendXAxisAnnotations(e):e)&&null!=(n=i.annotations)&&n.points?t.extendPointAnnotations(e):e}}]),rt),V=(t(nt,[{key:"setOrientations",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=this.w;"vertical"===t.label.orientation&&null!==(i=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(null!==e?e:0,"']")))&&(e=i.getBoundingClientRect(),i.setAttribute("x",parseFloat(i.getAttribute("x"))-e.height+4),t="top"===t.label.position?e.width:-e.width,i.setAttribute("y",parseFloat(i.getAttribute("y"))+t),t=(e=this.annoCtx.graphics.rotateAroundCenter(i)).x,e=e.y,i.setAttribute("transform","rotate(-90 ".concat(t," ").concat(e,")")))}},{key:"addBackgroundToAnno",value:function(t,e){var i,n,r,o,a,s,l=this.w;return t&&e.label.text&&String(e.label.text).trim()?(a=l.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),t=t.getBoundingClientRect(),r=(n=e.label.style.padding).left,o=n.right,i=n.top,n=n.bottom,"vertical"===e.label.orientation&&(i=(s=[r,o,i,n])[0],n=s[1],r=s[2],o=s[3]),s=t.left-a.left-r,a=t.top-a.top-i,s=this.annoCtx.graphics.drawRect(s-l.globals.barPadForNumericAxis,a,t.width+r+o,t.height+i+n,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0),e.id&&s.node.classList.add(e.id),s):null}},{key:"annotationsBackground",value:function(){function i(t,e,i){var n;(i=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(e,"']")))&&(e=i.parentNode,n=r.addBackgroundToAnno(i,t))&&(e.insertBefore(n.node,i),t.label.mouseEnter&&n.node.addEventListener("mouseenter",t.label.mouseEnter.bind(r,t)),t.label.mouseLeave&&n.node.addEventListener("mouseleave",t.label.mouseLeave.bind(r,t)),t.label.click)&&n.node.addEventListener("click",t.label.click.bind(r,t))}var r=this,o=this.w;o.config.annotations.xaxis.forEach(function(t,e){return i(t,e,"xaxis")}),o.config.annotations.yaxis.forEach(function(t,e){return i(t,e,"yaxis")}),o.config.annotations.points.forEach(function(t,e){return i(t,e,"point")})}},{key:"getY1Y2",value:function(t,e){var i,n,r,o=this.w,t="y1"===t?e.y:e.y2,a=!1;return this.annoCtx.invertAxis?(r=(n=o.config.xaxis.convertedCatToNumeric?o.globals.categoryLabels:o.globals.labels).indexOf(t),i=(i=o.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(r+1,")")))?parseFloat(i.getAttribute("y")):(o.globals.gridHeight/n.length-1)*(r+1)-o.globals.barHeight,void 0!==e.seriesIndex&&o.globals.barHeight&&(i-=o.globals.barHeight/2*(o.globals.series.length-1)-o.globals.barHeight*e.seriesIndex)):(n=o.globals.seriesYAxisMap[e.yAxisIndex][0],r=o.config.yaxis[e.yAxisIndex].logarithmic?new I(this.annoCtx.ctx).getLogVal(o.config.yaxis[e.yAxisIndex].logBase,t,n)/o.globals.yLogRatio[n]:(t-o.globals.minYArr[n])/(o.globals.yRange[n]/o.globals.gridHeight),i=o.globals.gridHeight-Math.min(Math.max(r,0),o.globals.gridHeight),a=r>o.globals.gridHeight||r<0,e.marker&&null==e.y&&(i=0),null!=(n=o.config.yaxis[e.yAxisIndex])&&n.reversed&&(i=r)),{yP:i="string"==typeof t&&t.includes("px")?parseFloat(t):i,clipped:a}}},{key:"getX1X2",value:function(t,e){var i=this.w,t="x1"===t?e.x:e.x2,n=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,r=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,o=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,a=!1,r=this.annoCtx.inversedReversedAxis?(r-t)/(o/i.globals.gridWidth):(t-n)/(o/i.globals.gridWidth);return"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||i.config.chart.sparkline.enabled||(r=this.getStringX(t)),"string"==typeof t&&t.includes("px")&&(r=parseFloat(t)),null==t&&e.marker&&(r=i.globals.gridWidth),void 0!==e.seriesIndex&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(r-=i.globals.barWidth/2*(i.globals.series.length-1)-i.globals.barWidth*e.seriesIndex),r>i.globals.gridWidth?(r=i.globals.gridWidth,a=!0):r<0&&(a=!(r=0)),{x:r,clipped:a}}},{key:"getStringX",value:function(t){var e=this.w,i=t,t=(e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1),e.globals.labels.map(function(t){return Array.isArray(t)?t.join(" "):t}).indexOf(t));return(e=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(t+1,")")))?parseFloat(e.getAttribute("x")):i}}]),nt),U=(t(it,[{key:"addXaxisAnnotation",value:function(t,e,i){var n,r,o=this.w,a=(s=this.helpers.getX1X2("x1",t)).x,s=s.clipped,l=!0,c=t.label.text,h=t.strokeDashArray;B.isNumber(a)&&(null==t.x2?s||(r=this.annoCtx.graphics.drawLine(a+t.offsetX,0+t.offsetY,a+t.offsetX,o.globals.gridHeight+t.offsetY,t.borderColor,h,t.borderWidth),e.appendChild(r.node),t.id&&r.node.classList.add(t.id)):(n=(r=this.helpers.getX1X2("x2",t)).x,l=r.clipped,s&&l||(n<a&&(r=a,a=n,n=r),(r=this.annoCtx.graphics.drawRect(a+t.offsetX,0+t.offsetY,n-a,o.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,h)).node.classList.add("apexcharts-annotation-rect"),r.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),e.appendChild(r.node),t.id&&r.node.classList.add(t.id))),s&&l||(n=this.annoCtx.graphics.getTextRects(c,parseFloat(t.label.style.fontSize)),h="top"===t.label.position?4:"center"===t.label.position?o.globals.gridHeight/2+("vertical"===t.label.orientation?n.width/2:0):o.globals.gridHeight,(r=this.annoCtx.graphics.drawText({x:a+t.label.offsetX,y:h+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?n.width/2-12:-n.width/2:0),text:c,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id||"")})).attr({rel:i}),e.appendChild(r.node),this.annoCtx.helpers.setOrientations(t,i)))}},{key:"drawXAxisAnnotations",value:function(){var i=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map(function(t,e){i.addXaxisAnnotation(t,n.node,e)}),n}}]),it),x=(t(et,[{key:"isValidDate",value:function(t){return"number"!=typeof t&&!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?(this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)):new Date(t)).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);return isNaN(e)?(e=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," ")),this.getTimeStamp(e)):this.getTimeStamp(t)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,n=this.w.config.xaxis.labels.datetimeUTC,r=["\0"].concat(A(i.months)),o=[""].concat(A(i.shortMonths)),a=[""].concat(A(i.days)),i=[""].concat(A(i.shortDays));function s(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var l,c=n?t.getUTCFullYear():t.getFullYear(),c=(e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c),(n?t.getUTCMonth():t.getMonth())+1),h=(e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+o[0])).replace(/(^|[^\\])MM/g,"$1"+s(c))).replace(/(^|[^\\])M/g,"$1"+c),n?t.getUTCDate():t.getDate()),u=(e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+a[0])).replace(/(^|[^\\])ddd/g,"$1"+i[0])).replace(/(^|[^\\])dd/g,"$1"+s(h))).replace(/(^|[^\\])d/g,"$1"+h),12<(h=n?t.getUTCHours():t.getHours())?h-12:0===h?12:h),u=(e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+s(h))).replace(/(^|[^\\])H/g,"$1"+h)).replace(/(^|[^\\])hh+/g,"$1"+s(u))).replace(/(^|[^\\])h/g,"$1"+u),n?t.getUTCMinutes():t.getMinutes()),u=(e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+s(u))).replace(/(^|[^\\])m/g,"$1"+u),n?t.getUTCSeconds():t.getSeconds()),u=(e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+s(u))).replace(/(^|[^\\])s/g,"$1"+u),n?t.getUTCMilliseconds():t.getMilliseconds()),h=(e=e.replace(/(^|[^\\])fff+/g,"$1"+s(u,3)),u=Math.round(u/10),e=e.replace(/(^|[^\\])ff/g,"$1"+s(u)),u=Math.round(u/10),h<12?"AM":"PM"),u=(e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+u)).replace(/(^|[^\\])TT+/g,"$1"+h)).replace(/(^|[^\\])T/g,"$1"+h.charAt(0)),h.toLowerCase()),h=(e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+u)).replace(/(^|[^\\])t/g,"$1"+u.charAt(0)),-t.getTimezoneOffset()),u=n||!h?"Z":0<h?"+":"-",h=(n||(l=(h=Math.abs(h))%60,u+=s(Math.floor(h/60))+":"+s(l)),e=e.replace(/(^|[^\\])K/g,"$1"+u),(n?t.getUTCDay():t.getDay())+1);return(e=(e=(e=(e=e.replace(new RegExp(a[0],"g"),a[h])).replace(new RegExp(i[0],"g"),i[h])).replace(new RegExp(r[0],"g"),r[c])).replace(new RegExp(o[0],"g"),o[c])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){void 0!==(n=this.w).config.xaxis.min&&(t=n.config.xaxis.min),void 0!==n.config.xaxis.max&&(e=n.config.xaxis.max);var n=this.getDate(t),t=this.getDate(e),e=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" "),n=this.formatDate(t,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(e[6],10),maxMillisecond:parseInt(n[6],10),minSecond:parseInt(e[5],10),maxSecond:parseInt(n[5],10),minMinute:parseInt(e[4],10),maxMinute:parseInt(n[4],10),minHour:parseInt(e[3],10),maxHour:parseInt(n[3],10),minDate:parseInt(e[2],10),maxDate:parseInt(n[2],10),minMonth:parseInt(e[1],10)-1,maxMonth:parseInt(n[1],10)-1,minYear:parseInt(e[0],10),maxYear:parseInt(n[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){return this.isLeapYear(t)?366:365}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){return i=this.daysCntOfYear[e]+i,1<e&&this.isLeapYear()&&i++,i}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;return t=B.monthMod(t),1==-1<this.months30.indexOf(t)?2===t&&(i=this.isLeapYear(e)?29:28):(this.months31.indexOf(t),i=31),i}}]),et),g=(t(tt,[{key:"xLabelFormat",value:function(t,e,i,n){var r,o=this.w;return"datetime"===o.config.xaxis.type&&void 0===o.config.xaxis.labels.formatter&&void 0===o.config.tooltip.x.formatter?(r=new x(this.ctx)).formatDate(r.getDate(e),o.config.tooltip.x.format):t(e,i,n)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map(function(t){return t}):t}},{key:"defaultYFormatter",value:function(t,e,i){var n=this.w;return B.isNumber(t)?0!==n.globals.yValueDecimal?t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:n.globals.yValueDecimal):(e=t.toFixed(0),t==e?e:t.toFixed(1)):t}},{key:"setLabelFormatters",value:function(){var n=this,r=this.w;return r.globals.xaxisTooltipFormatter=function(t){return n.defaultGeneralFormatter(t)},r.globals.ttKeyFormatter=function(t){return n.defaultGeneralFormatter(t)},r.globals.ttZFormatter=function(t){return t},r.globals.legendFormatter=function(t){return n.defaultGeneralFormatter(t)},void 0!==r.config.xaxis.labels.formatter?r.globals.xLabelFormatter=r.config.xaxis.labels.formatter:r.globals.xLabelFormatter=function(t){var e;return B.isNumber(t)?r.config.xaxis.convertedCatToNumeric||"numeric"!==r.config.xaxis.type?r.globals.isBarHorizontal&&r.globals.maxY-r.globals.minYArr<4?t.toFixed(1):t.toFixed(0):B.isNumber(r.config.xaxis.decimalsInFloat)?t.toFixed(r.config.xaxis.decimalsInFloat):0<(e=r.globals.maxX-r.globals.minX)&&e<100?t.toFixed(1):t.toFixed(0):t},"function"==typeof r.config.tooltip.x.formatter?r.globals.ttKeyFormatter=r.config.tooltip.x.formatter:r.globals.ttKeyFormatter=r.globals.xLabelFormatter,"function"==typeof r.config.xaxis.tooltip.formatter&&(r.globals.xaxisTooltipFormatter=r.config.xaxis.tooltip.formatter),!Array.isArray(r.config.tooltip.y)&&void 0===r.config.tooltip.y.formatter||(r.globals.ttVal=r.config.tooltip.y),void 0!==r.config.tooltip.z.formatter&&(r.globals.ttZFormatter=r.config.tooltip.z.formatter),void 0!==r.config.legend.formatter&&(r.globals.legendFormatter=r.config.legend.formatter),r.config.yaxis.forEach(function(e,i){void 0!==e.labels.formatter?r.globals.yLabelFormatters[i]=e.labels.formatter:r.globals.yLabelFormatters[i]=function(t){return r.globals.xyCharts?Array.isArray(t)?t.map(function(t){return n.defaultYFormatter(t,e,i)}):n.defaultYFormatter(t,e,i):t}}),r.globals}},{key:"heatmapLabelFormatters",value:function(){var t,e=this.w;"heatmap"===e.config.chart.type&&(e.globals.yAxisScale[0].result=e.globals.seriesNames.slice(),t=e.globals.seriesNames.reduce(function(t,e){return t.length>e.length?t:e},0),e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t)}}]),tt),C=(t(J,[{key:"getLabel",value:function(t,e,i,n){var r,o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[],a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:"12px",s=!(6<arguments.length&&void 0!==arguments[6])||arguments[6],l=this.w,c=p=void 0===t[n]?"":t[n],h=l.globals.xLabelFormatter,u=l.config.xaxis.labels.formatter,d=!1,f=new g(this.ctx),h=(s&&(c=f.xLabelFormat(h,p,p,{i:n,dateFormatter:new x(this.ctx).formatDate,w:l}),void 0!==u)&&(c=u(p,t[n],{i:n,dateFormatter:new x(this.ctx).formatDate,w:l})),0<e.length?(f=e[n].unit,r=null,e.forEach(function(t){"month"===t.unit?r="year":"day"===t.unit?r="month":"hour"===t.unit?r="day":"minute"===t.unit&&(r="hour")}),d=r===f,i=e[n].position,c=e[n].value):"datetime"===l.config.xaxis.type&&void 0===u&&(c=""),void 0===c&&(c=""),c=Array.isArray(c)?c:c.toString(),new H(this.ctx)),p=l.globals.rotateXLabels&&s?h.getTextRects(c,parseInt(a,10),null,"rotate(".concat(l.config.xaxis.labels.rotate," 0 0)"),!1):h.getTextRects(c,parseInt(a,10)),t=!l.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return{x:i,text:c=!Array.isArray(c)&&("NaN"===String(c)||0<=o.indexOf(c)&&t)?"":c,textRect:p,isBold:d}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var n=this.w,r=n.config.xaxis.tickAmount;return i<(r="dataPoints"===r?Math.round(n.globals.gridWidth/120):r)||t%Math.round(i/(r+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,n,r){var o=this.w;return 0===t&&o.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&o.globals.skipLastTimelinelabel&&(e.text=""),o.config.xaxis.labels.hideOverlappingLabels&&0<n.length&&(t=r[r.length-1],e.x<t.textRect.width/(o.globals.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+t.x)&&(e.text=""),e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"yAxisAllSeriesCollapsed",value:function(t){var e=this.w.globals;return!e.seriesYAxisMap[t].some(function(t){return-1===e.collapsedSeriesIndices.indexOf(t)})}},{key:"translateYAxisIndex",value:function(t){var e=(i=this.w).globals,i=i.config.yaxis;return e.series.length>i.length||i.some(function(t){return Array.isArray(t.seriesName)})?t:e.seriesYAxisReverseMap[t]}},{key:"isYAxisHidden",value:function(t){var e,i=this.w,n=i.config.yaxis[t];return!(n.show&&!this.yAxisAllSeriesCollapsed(t))||!n.showForNullSeries&&(n=i.globals.seriesYAxisMap[t],e=new I(this.ctx),n.every(function(t){return e.isSeriesNull(t)}))}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,n,r,o,a){var s=this.w,l=new H(this.ctx),c=s.globals.translateY+s.config.yaxis[r].labels.offsetY;if(s.globals.isBarHorizontal?c=0:"heatmap"===s.config.chart.type&&(c+=o/2),n.show&&0<e){!0===s.config.yaxis[r].opposite&&(t+=n.width);for(var h=e;0<=h;h--){var u=l.drawLine(t+i.offsetX-n.width+n.offsetX,c+n.offsetY,t+i.offsetX+n.offsetX,c+n.offsetY,n.color);a.add(u),c+=o}}}}]),J),Z=(t(Q,[{key:"addYaxisAnnotation",value:function(t,e,i){var n,r,o=this.w,a=t.strokeDashArray,s=this.helpers.getY1Y2("y1",t),l=s.yP,c=s.clipped,h=!1,u=t.label.text;null==t.y2?c||(h=!0,r=this.annoCtx.graphics.drawLine(0+t.offsetX,l+t.offsetY,this._getYAxisAnnotationWidth(t),l+t.offsetY,t.borderColor,a,t.borderWidth),e.appendChild(r.node),t.id&&r.node.classList.add(t.id)):(l<(n=(s=this.helpers.getY1Y2("y2",t)).yP)&&(r=l,l=n,n=r),c&&s.clipped||(h=!0,(r=this.annoCtx.graphics.drawRect(0+t.offsetX,n+t.offsetY,this._getYAxisAnnotationWidth(t),l-n,0,t.fillColor,t.opacity,1,t.borderColor,a)).node.classList.add("apexcharts-annotation-rect"),r.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),e.appendChild(r.node),t.id&&r.node.classList.add(t.id))),h&&(c="right"===t.label.position?o.globals.gridWidth:"center"===t.label.position?o.globals.gridWidth/2:0,(s=this.annoCtx.graphics.drawText({x:c+t.label.offsetX,y:(null!=n?n:l)+t.label.offsetY-3,text:u,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id||"")})).attr({rel:i}),e.appendChild(s.node))}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(-1<t.width.indexOf("%")?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var i=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.forEach(function(t,e){t.yAxisIndex=i.axesUtils.translateYAxisIndex(t.yAxisIndex),i.axesUtils.isYAxisHidden(t.yAxisIndex)&&i.axesUtils.yAxisAllSeriesCollapsed(t.yAxisIndex)||i.addYaxisAnnotation(t,n.node,e)}),n}}]),Q),$=(t(K,[{key:"addPointAnnotation",value:function(t,e,i){var n,r,o,a;-1<this.w.globals.collapsedSeriesIndices.indexOf(t.seriesIndex)||(n=(o=this.helpers.getX1X2("x1",t)).x,a=o.clipped,r=(o=this.helpers.getY1Y2("y1",t)).yP,o=o.clipped,!B.isNumber(n))||o||a||(o={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id||"")},a=this.annoCtx.graphics.drawMarker(n+t.marker.offsetX,r+t.marker.offsetY,o),e.appendChild(a.node),o=t.label.text||"",(o=this.annoCtx.graphics.drawText({x:n+t.label.offsetX,y:r+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:o,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id||"")})).attr({rel:i}),e.appendChild(o.node),t.customSVG.SVG&&((i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass})).attr({transform:"translate(".concat(n+t.customSVG.offsetX,", ").concat(r+t.customSVG.offsetY,")")}),i.node.innerHTML=t.customSVG.SVG,e.appendChild(i.node)),t.image.path&&(o=t.image.width||20,e=t.image.height||20,a=this.annoCtx.addImage({x:n+t.image.offsetX-o/2,y:r+t.image.offsetY-e/2,width:o,height:e,path:t.image.path,appendTo:".apexcharts-point-annotations"})),t.mouseEnter&&a.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&a.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&a.node.addEventListener("click",t.click.bind(this,t)))}},{key:"drawPointAnnotations",value:function(){var i=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(t,e){i.addPointAnnotation(t,n.node,e)}),n}}]),K);function K(t){n(this,K),this.w=t.w,this.annoCtx=t,this.helpers=new V(this.annoCtx)}function Q(t){n(this,Q),this.w=t.w,this.annoCtx=t,this.helpers=new V(this.annoCtx),this.axesUtils=new C(this.annoCtx)}function J(t){n(this,J),this.ctx=t,this.w=t.w}function tt(t){n(this,tt),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}function et(t){n(this,et),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]}function it(t){n(this,it),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new V(this.annoCtx)}function nt(t){n(this,nt),this.w=t.w,this.annoCtx=t}function rt(t){n(this,rt),this.ctx=t,this.w=t.w}function ot(t){n(this,ot),this.ctx=t,this.w=t.w}function at(t){n(this,at),this.ctx=t,this.w=t.w}function st(t){n(this,st),this.ctx=t,this.w=t.w,this.setEasingFunctions()}function o(){n(this,o)}function lt(t){var e=t.isTimeline,i=t.ctx,n=t.seriesIndex,r=t.dataPointIndex,o=t.y1,a=t.y2,s=(t=t.w).globals.seriesRangeStart[n][r],l=t.globals.seriesRangeEnd[n][r],c=t.globals.labels[r],h=t.config.series[n].name||"",u=t.globals.ttKeyFormatter,d={w:t,seriesIndex:n,dataPointIndex:r,start:s,end:l},f=("function"==typeof(f=t.config.tooltip.y.title.formatter)&&(h=f(h,d)),null!=(f=t.config.series[n].data[r])&&f.x&&(c=t.config.series[n].data[r].x),e||"datetime"===t.config.xaxis.type&&(c=new g(i).xLabelFormat(t.globals.ttKeyFormatter,c,c,{i:void 0,dateFormatter:new x(i).formatDate,w:t})),"function"==typeof u&&(c=u(c,d)),Number.isFinite(o)&&Number.isFinite(a)&&(s=o,l=a),""),e=t.globals.colors[n],r=void 0===t.config.tooltip.x.formatter?"datetime"===t.config.xaxis.type?(f=(u=new x(i)).formatDate(u.getDate(s),t.config.tooltip.x.format),u.formatDate(u.getDate(l),t.config.tooltip.x.format)):(f=s,l):(f=t.config.tooltip.x.formatter(s),t.config.tooltip.x.formatter(l));return{start:s,end:l,startVal:f,endVal:r,ylabel:c,color:e,seriesName:h}}function ct(t){var e=t.color,i=t.seriesName,n=t.ylabel,r=t.start,o=t.end,a=t.seriesIndex,s=t.dataPointIndex,r=(l=t.ctx.tooltip.tooltipLabels.getFormatters(a)).yLbFormatter(r),o=l.yLbFormatter(o),l=l.yLbFormatter(t.w.globals.series[a][s]),s='<span class="value start-value">\n '.concat(r,'\n </span> <span class="separator">-</span> <span class="value end-value">\n ').concat(o,"\n </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(i||"")+'</span></div><div> <span class="category">'+n+": </span> "+(t.w.globals.comboCharts&&"rangeArea"!==t.w.config.series[a].type&&"rangeBar"!==t.w.config.series[a].type?"<span>".concat(l,"</span>"):s)+" </div></div>"}var ht,ut,dt,ft,pt,gt={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"}}},u=(t(ei,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[gt],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},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},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},0)/t.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(t){return t},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(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},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(t){return null!==t?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),ei),mt=(t(ti,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts&&t.globals.dataPoints){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),n=this.pointsAnnotations.drawPointAnnotations(),r=t.config.chart.animations.enabled,o=[e,i,n],a=[i.node,e.node,n.node],s=0;s<3;s++)t.globals.dom.elGraphical.add(o[s]),!r||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&1<t.globals.dataPoints&&a[s].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:a[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var i=this;this.w.config.annotations.images.map(function(t,e){i.addImage(t,e)})}},{key:"drawTextAnnos",value:function(){var i=this;this.w.config.annotations.texts.map(function(t,e){i.addText(t,e)})}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,n=t.text,r=t.backgroundColor,o=t.borderWidth,a=t.strokeDashArray,s=t.borderRadius,l=t.borderColor,c=void 0===(c=t.appendTo)?".apexcharts-svg":c,h=void 0===(h=t.paddingLeft)?4:h,u=void 0===(u=t.paddingRight)?4:u,d=void 0===(d=t.paddingBottom)?2:d,f=void 0===(f=t.paddingTop)?2:f,p=this.w,i=this.graphics.drawText({x:i,y:t.y,text:n,textAnchor:t.textAnchor||"start",fontSize:t.fontSize||"12px",fontWeight:t.fontWeight||"regular",fontFamily:t.fontFamily||p.config.chart.fontFamily,foreColor:t.foreColor||p.config.chart.foreColor,cssClass:t.cssClass}),p=((t=p.globals.dom.baseEl.querySelector(c))&&t.appendChild(i.node),i.bbox());n&&(c=this.graphics.drawRect(p.x-h,p.y-f,p.width+h+u,p.height+d+f,s,r||"transparent",1,o,l,a),t.insertBefore(c.node,i.node))}},{key:"addImage",value:function(t,e){var i=this.w,n=t.path,r=void 0===(r=t.x)?0:r,o=void 0===(o=t.y)?0:o,a=void 0===(a=t.width)?20:a,s=void 0===(s=t.height)?20:s,t=void 0===(t=t.appendTo)?".apexcharts-svg":t;return(n=i.globals.dom.Paper.image(n)).size(a,s).move(r,o),(a=i.globals.dom.baseEl.querySelector(t))&&a.appendChild(n.node),n}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,n=t.context,r=t.type,t=t.contextMethod,o=n,a=o.w,s=a.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),l=s.childNodes.length+1,c=new u,c=Object.assign({},"xaxis"===r?c.xAxisAnnotation:"yaxis"===r?c.yAxisAnnotation:c.pointAnnotation),h=B.extend(c,e);switch(r){case"xaxis":this.addXaxisAnnotation(h,s,l);break;case"yaxis":this.addYaxisAnnotation(h,s,l);break;case"point":this.addPointAnnotation(h,s,l)}return c=a.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(l,"']")),(r=this.helpers.addBackgroundToAnno(c,h))&&s.insertBefore(r.node,c),i&&a.globals.memory.methodsToExec.push({context:o,id:h.id||B.randomId(),method:t,label:"addAnnotation",params:e}),n}},{key:"clearAnnotations",value:function(t){for(var e=t.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),i=e.globals.memory.methodsToExec.length-1;0<=i;i--)"addText"!==e.globals.memory.methodsToExec[i].label&&"addAnnotation"!==e.globals.memory.methodsToExec[i].label||e.globals.memory.methodsToExec.splice(i,1);t=B.listToArray(t),Array.prototype.forEach.call(t,function(t){for(;t.firstChild;)t.removeChild(t.firstChild)})}},{key:"removeAnnotation",value:function(t,i){var n=t.w;(t=n.globals.dom.baseEl.querySelectorAll(".".concat(i)))&&(n.globals.memory.methodsToExec.map(function(t,e){t.id===i&&n.globals.memory.methodsToExec.splice(e,1)}),Array.prototype.forEach.call(t,function(t){t.parentElement.removeChild(t)}))}}]),ti),s=(t(Je,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),B.extend(t,{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(t,e){return e=e.w.config.series[e.seriesIndex].name,null!==t?e+": "+t:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),M(M({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var i=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var e=t.seriesIndex;return i._getBoxTooltip(t.w,e,t.dataPointIndex,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var i=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var e=t.seriesIndex;return i._getBoxTooltip(t.w,e,t.dataPointIndex,["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(t,e){e.ctx;var i=e.seriesIndex,n=e.dataPointIndex;return(e=e.w).globals.comboCharts&&"rangeBar"!==e.config.series[i].type&&"rangeArea"!==e.config.series[i].type?t:(t=e.globals.seriesRangeStart[i][n],e.globals.seriesRangeEnd[i][n]-t)},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?(n=(i=lt(M(M({},e=t),{},{isTimeline:!0}))).color,r=i.seriesName,o=i.ylabel,a=i.startVal,i=i.endVal,ct(M(M({},e),{},{color:n,seriesName:r,ylabel:o,start:a,end:i}))):(r=(n=lt(e=t)).color,o=n.seriesName,a=n.ylabel,i=n.start,n=n.end,ct(M(M({},e),{},{color:r,seriesName:o,ylabel:a,start:i,end:n})));var e,i,n,r,o,a}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e;return null!=(e=t.plotOptions.bar)&&e.barHeight||(t.plotOptions.bar.barHeight=2),null!=(e=t.plotOptions.bar)&&e.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{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(t){return i=(e=lt(t)).color,n=e.seriesName,r=e.ylabel,o=e.start,e=e.end,ct(M(M({},t),{},{color:i,seriesName:n,ylabel:r,start:o,end:e}));var e,i,n,r,o}}}}},{key:"brush",value:function(t){return B.extend(t,{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(i){i.dataLabels=i.dataLabels||{},i.dataLabels.formatter=i.dataLabels.formatter||void 0;var t=i.dataLabels.formatter;return i.yaxis.forEach(function(t,e){i.yaxis[e].min=0,i.yaxis[e].max=100}),"bar"===i.chart.type&&(i.dataLabels.formatter=t||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),i}},{key:"stackedBars",value:function(){var t=this.bar();return M(M({},t),{},{plotOptions:M(M({},t.plotOptions),{},{bar:M(M({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return B.isNumber(t)?Math.floor(t):t};var n=t.xaxis.labels.formatter,r=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return(r=i&&i.length?i.map(function(t){return Array.isArray(t)?t:String(t)}):r)&&r.length&&(t.xaxis.labels.formatter=function(t){return B.isNumber(t)?n(r[Math.floor(t)-1]):n(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{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(t){return t.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(t){return t.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(t){return t.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||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(t){return t},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(t,e,i,n,r){var o=t.globals.seriesCandleO[e][i],a=t.globals.seriesCandleH[e][i],s=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],c=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==r?'<div class="apexcharts-custom-tooltip">\n '.concat(t.config.series[e].name||"series-"+(e+1),": <strong>").concat(t.globals.series[e][i],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(n[0],': <span class="value">')+o+"</span></div>"+"<div>".concat(n[1],': <span class="value">')+a+"</span></div>"+(s?"<div>".concat(n[2],': <span class="value">')+s+"</span></div>":"")+"<div>".concat(n[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(n[4],': <span class="value">')+c+"</span></div></div>"}}]),Je),p=(t(Qe,[{key:"init",value:function(t){var e,i,t=t.responsiveOverride,n=this.opts,r=new u,o=new s(n),r=(this.chartType=n.chart.type,n=this.extendYAxis(n),n=this.extendAnnotations(n),r.init()),a={},t=(n&&"object"===y(n)&&(i={},i=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?o[n.chart.type]():o.line(),null!=(e=n.plotOptions)&&null!=(e=e.bar)&&e.isFunnel&&(i=o.funnel()),n.chart.stacked&&"bar"===n.chart.type&&(i=o.stackedBars()),null!=(e=n.chart.brush)&&e.enabled&&(i=o.brush(i)),null!=(e=n.plotOptions)&&null!=(e=e.line)&&e.isSlopeChart&&(i=o.slope()),null!=(e=(n=n.chart.stacked&&"100%"===n.chart.stackType?o.stacked100(n):n).plotOptions)&&null!=(e=e.bar)&&e.isDumbbell&&(n=o.dumbbell(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},t||(n.xaxis.convertedCatToNumeric=!1),(null!=(e=(n=this.checkForCatToNumericXAxis(this.chartType,i,n)).chart.sparkline)&&e.enabled||null!=(t=window.Apex.chart)&&null!=(e=t.sparkline)&&e.enabled)&&(i=o.sparkline(i)),a=B.extend(r,i)),B.extend(a,window.Apex)),r=B.extend(t,n);return this.handleUserInputErrors(r)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var n=new s(i),r=("bar"===t||"boxPlot"===t)&&(null==(r=i.plotOptions)||null==(r=r.bar)?void 0:r.horizontal),o="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,e=i.xaxis.tickPlacement||e.xaxis&&e.xaxis.tickPlacement;return r||"pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t||!o||"between"===e?i:n.convertCatToNumeric(i)}},{key:"extendYAxis",value:function(i,t){var n=new u,e=((void 0===i.yaxis||!i.yaxis||Array.isArray(i.yaxis)&&0===i.yaxis.length)&&(i.yaxis={}),i.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(i.yaxis=B.extend(i.yaxis,window.Apex.yaxis)),i.yaxis.constructor!==Array?i.yaxis=[B.extend(n.yAxis,i.yaxis)]:i.yaxis=B.extendArray(i.yaxis,n.yAxis),!1),r=(i.yaxis.forEach(function(t){t.logarithmic&&(e=!0)}),i.series);return t&&!r&&(r=t.config.series),e&&r.length!==i.yaxis.length&&r.length&&(i.yaxis=r.map(function(t,e){return t.name||(r[e].name="series-".concat(e+1)),i.yaxis[e]?(i.yaxis[e].seriesName=r[e].name,i.yaxis[e]):((t=B.extend(n.yAxis,i.yaxis[0])).show=!1,t)})),e&&1<r.length&&r.length!==i.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),i}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new u;return t.annotations.yaxis=B.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new u;return t.annotations.xaxis=B.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new u;return t.annotations.points=B.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){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(1<t.yaxis.length)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&&1<t.series.length&&(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}}]),Qe),bt=(t(Ke,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.barGroups=[],t.lineGroups=[],t.areaGroups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.lastWheelExecution=0,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0,t.multiAxisTickAmount=0}},{key:"globalVars",value:function(t){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:t.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"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.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:t.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=B.extend({},t),e.initialSeries=B.clone(t.series),e.lastXAxis=B.clone(e.initialConfig.xaxis),e.lastYAxis=B.clone(e.initialConfig.yaxis),e}}]),Ke),vt=(t($e,[{key:"init",value:function(){var t=new p(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new bt).init(t)}}}]),$e),_=(t(Ze,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,n=parseInt(e.globals.gridWidth,10),n=(r=parseInt(e.globals.gridHeight,10))<n?n:r,r=t.image,o=0,a=void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,i.fill.image.height):(o=n+1,n):(o=t.width,t.height),i=document.createElementNS(e.globals.SVGNS,"pattern"),n=(H.setAttrs(i,{id:t.patternID,patternUnits:t.patternUnits||"userSpaceOnUse",width:o+"px",height:a+"px"}),document.createElementNS(e.globals.SVGNS,"image"));i.appendChild(n),n.setAttributeNS(window.SVG.xlink,"href",r),H.setAttrs(n,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:a+"px"}),n.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(i)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return("bar"===i||"rangeBar"===i)&&e.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,n,r=this.w.config,o=(this.seriesIndex=this.getSeriesIndex(t),this.getFillColors()[this.seriesIndex]),a=("function"==typeof(o=void 0!==e.globals.seriesColors[this.seriesIndex]?e.globals.seriesColors[this.seriesIndex]:o)&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e})),t.fillType||this.getFillType(this.seriesIndex)),s=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity,l=((o=t.color||o)||(o="#fff",console.warn("undefined color - ApexCharts")),o);return-1===o.indexOf("rgb")?o.length<9&&(l=B.hexToRgba(o,s)):-1<o.indexOf("rgba")&&(s=B.getOpacityFromRGBA(o)),t.opacity&&(s=t.opacity),"pattern"===a&&(i=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:i,fillColor:o,fillOpacity:s,defaultColor:l})),"gradient"===a&&(n=this.handleGradientFill({fillConfig:t.fillConfig,fillColor:o,fillOpacity:s,i:this.seriesIndex})),r="image"===a?(o=r.fill.image.src,r=t.patternID||"",e="pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(r),-1===this.patternIDs.indexOf(e)&&(this.clippedImgArea({opacity:s,image:Array.isArray(o)?t.seriesNumber<o.length?o[t.seriesNumber]:o[0]:o,width:t.width||void 0,height:t.height||void 0,patternUnits:t.patternUnits,patternID:e}),this.patternIDs.push(e)),"url(#".concat(e,")")):"gradient"===a?n:"pattern"===a?i:l,t.solid?l:r}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,n=[];return t.globals.comboCharts?"line"===t.config.series[this.seriesIndex].type?Array.isArray(t.globals.stroke.colors)?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?n=t.globals.fill.colors:n.push(t.globals.fill.colors):"line"===e.chart.type?Array.isArray(t.globals.stroke.colors)?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?n=t.globals.fill.colors:n.push(t.globals.fill.colors),void 0!==i.fillColors&&(n=[],Array.isArray(i.fillColors)?n=i.fillColors.slice():n.push(i.fillColors)),n}},{key:"handlePatternFill",value:function(t){var e=t.fillConfig,i=t.fillColor,n=t.fillOpacity,t=t.defaultColor,r=this.w.config.fill,e=(e&&(r=e),this.opts),o=new H(this.ctx),a=Array.isArray(r.pattern.strokeWidth)?r.pattern.strokeWidth[this.seriesIndex]:r.pattern.strokeWidth;return Array.isArray(r.pattern.style)?void 0!==r.pattern.style[e.seriesNumber]?o.drawPattern(r.pattern.style[e.seriesNumber],r.pattern.width,r.pattern.height,i,a,n):t:o.drawPattern(r.pattern.style,r.pattern.width,r.pattern.height,i,a,n)}},{key:"handleGradientFill",value:function(t){var e=t.fillColor,i=t.fillOpacity,n=t.fillConfig,t=t.i,r=this.w.config.fill;n&&(r=M(M({},r),n));var o,n=this.opts,a=new H(this.ctx),s=new B,l=r.gradient.type,c=e,h=void 0===r.gradient.opacityFrom?i:Array.isArray(r.gradient.opacityFrom)?r.gradient.opacityFrom[t]:r.gradient.opacityFrom,i=(-1<c.indexOf("rgba")&&(h=B.getOpacityFromRGBA(c)),void 0===r.gradient.opacityTo?i:Array.isArray(r.gradient.opacityTo)?r.gradient.opacityTo[t]:r.gradient.opacityTo);return void 0===r.gradient.gradientToColors||0===r.gradient.gradientToColors.length?o="dark"===r.gradient.shade?s.shadeColor(-1*parseFloat(r.gradient.shadeIntensity),-1<e.indexOf("rgb")?B.rgb2hex(e):e):s.shadeColor(parseFloat(r.gradient.shadeIntensity),-1<e.indexOf("rgb")?B.rgb2hex(e):e):r.gradient.gradientToColors[n.seriesNumber]?-1<(o=s=r.gradient.gradientToColors[n.seriesNumber]).indexOf("rgba")&&(i=B.getOpacityFromRGBA(s)):o=e,r.gradient.gradientFrom&&(c=r.gradient.gradientFrom),r.gradient.gradientTo&&(o=r.gradient.gradientTo),r.gradient.inverseColors&&(s=c,c=o,o=s),-1<c.indexOf("rgb")&&(c=B.rgb2hex(c)),-1<o.indexOf("rgb")&&(o=B.rgb2hex(o)),a.drawGradient(l,c,o,h,i,n.size,r.gradient.stops,r.gradient.colorStops,t)}}]),Ze),w=(t(Ue,[{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],0<e.globals.markers.size.length){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(t,e,i,n){var r,o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],a=this.w,s=e,l=t,c=null,h=new H(this.ctx),u=a.config.markers.discrete&&a.config.markers.discrete.length;if((0<a.globals.markers.size[e]||o||u)&&(c=h.group({class:o||u?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(l.x))for(var d=0;d<l.x.length;d++){var f=1===i&&1===d?1:1===i&&0===d?0:i,p="apexcharts-marker";"line"!==a.config.chart.type&&"area"!==a.config.chart.type||a.globals.comboCharts||a.config.tooltip.intersect||(p+=" no-pointer-events"),(Array.isArray(a.config.markers.size)?0<a.globals.markers.size[e]:0<a.config.markers.size)||o||u?(B.isNumber(l.y[d])?p+=" w".concat(B.randomId()):p="apexcharts-nullpoint",p=this.getMarkerConfig({cssClass:p,seriesIndex:e,dataPointIndex:f}),a.config.series[s].data[f]&&(a.config.series[s].data[f].fillColor&&(p.pointFillColor=a.config.series[s].data[f].fillColor),a.config.series[s].data[f].strokeColor)&&(p.pointStrokeColor=a.config.series[s].data[f].strokeColor),void 0!==n&&(p.pSize=n),(l.x[d]<-a.globals.markers.largestSize||l.x[d]>a.globals.gridWidth+a.globals.markers.largestSize||l.y[d]<-a.globals.markers.largestSize||l.y[d]>a.globals.gridHeight+a.globals.markers.largestSize)&&(p.pSize=0),(r=h.drawMarker(l.x[d],l.y[d],p)).attr("rel",f),r.attr("j",f),r.attr("index",e),r.node.setAttribute("default-marker-size",p.pSize),new P(this.ctx).setSelectionFilter(r,e,f),this.addEvents(r),c&&c.add(r)):(void 0===a.globals.pointsArray[e]&&(a.globals.pointsArray[e]=[]),a.globals.pointsArray[e].push([l.x[d],l.y[d]]))}return c}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,n=void 0===(r=t.dataPointIndex)?null:r,r=void 0===(r=t.radius)?null:r,o=void 0===(o=t.size)?null:o,t=void 0===(t=t.strokeWidth)?null:t,a=this.w,s=this.getMarkerStyle(i),l=null===o?a.globals.markers.size[i]:o,o=a.config.markers;return null!==n&&o.discrete.length&&o.discrete.map(function(t){t.seriesIndex===i&&t.dataPointIndex===n&&(s.pointStrokeColor=t.strokeColor,s.pointFillColor=t.fillColor,l=t.size,s.pointShape=t.shape)}),{pSize:null===r?l:r,pRadius:null!==r?r:o.radius,pointStrokeWidth:null!==t?t:Array.isArray(o.strokeWidth)?o.strokeWidth[i]:o.strokeWidth,pointStrokeColor:s.pointStrokeColor,pointFillColor:s.pointFillColor,shape:s.pointShape||(Array.isArray(o.shape)?o.shape[i]:o.shape),class:e,pointStrokeOpacity:Array.isArray(o.strokeOpacity)?o.strokeOpacity[i]:o.strokeOpacity,pointStrokeDashArray:Array.isArray(o.strokeDashArray)?o.strokeDashArray[i]:o.strokeDashArray,pointFillOpacity:Array.isArray(o.fillOpacity)?o.fillOpacity[i]:o.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new H(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=(i=this.w).globals.markers.colors,i=i.config.markers.strokeColor||i.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(i)?i[t]:i,pointFillColor:Array.isArray(e)?e[t]:e}}}]),Ue),yt=(t(Ve,[{key:"draw",value:function(t,e,i){var n=this.w,r=new H(this.ctx),o=i.realIndex,a=i.pointsPos,s=i.zRatio,l=i.elParent,c=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(n.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),Array.isArray(a.x))for(var h=0;h<a.x.length;h++){var u=e+1,d=(0===e&&0===h&&(u=0),0===e&&1===h&&(u=1),n.globals.markers.size[o]),f=(s!==1/0&&(f=n.config.plotOptions.bubble,d=n.globals.seriesZ[o][u],f.zScaling&&(d/=s),f.minBubbleRadius&&d<f.minBubbleRadius&&(d=f.minBubbleRadius),f.maxBubbleRadius)&&d>f.maxBubbleRadius&&(d=f.maxBubbleRadius),a.x[h]),p=a.y[h],d=d||0;null!==p&&void 0!==n.globals.series[o][u]&&(p=this.drawPoint(f,p,d,o,u,e),c.add(p)),l.add(c)}}},{key:"drawPoint",value:function(t,e,i,n,r,o){var a=this.w,s=n,l=new S(this.ctx),c=new P(this.ctx),h=new _(this.ctx),u=new w(this.ctx),d=new H(this.ctx),i=u.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:s,dataPointIndex:r,radius:"bubble"===a.config.chart.type||a.globals.comboCharts&&a.config.series[n]&&"bubble"===a.config.series[n].type?i:null}),h=h.fillPath({seriesNumber:n,dataPointIndex:r,color:i.pointFillColor,patternUnits:"objectBoundingBox",value:a.globals.series[n][o]}),f=d.drawMarker(t,e,i);return a.config.series[s].data[r]&&a.config.series[s].data[r].fillColor&&(h=a.config.series[s].data[r].fillColor),f.attr({fill:h}),a.config.chart.dropShadow.enabled&&(o=a.config.chart.dropShadow,c.dropShadow(f,o,n)),!this.initialAnim||a.globals.dataChanged||a.globals.resized?a.globals.animationEnded=!0:(d=a.config.chart.animations.speed,l.animateMarker(f,d,a.globals.easing,function(){window.setTimeout(function(){l.animationCompleted(f)},100)})),f.attr({rel:r,j:r,index:n,"default-marker-size":i.pSize}),c.setSelectionFilter(f,n,r),u.addEvents(f),f.node.classList.add("apexcharts-marker"),f}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),Ve),k=(t(Ge,[{key:"dataLabelsCorrection",value:function(t,e,i,n,r,o,a){var s=this.w,l=!1,a=(i=new H(this.ctx).getTextRects(i,a)).width,c=i.height,h=((e=e<0?0:e)>s.globals.gridHeight+c&&(e=s.globals.gridHeight+c/2),void 0===s.globals.dataLabelsRects[n]&&(s.globals.dataLabelsRects[n]=[]),s.globals.dataLabelsRects[n].push({x:t,y:e,width:a,height:c}),s.globals.dataLabelsRects[n].length-2),u=void 0!==s.globals.lastDrawnDataLabelsIndexes[n]?s.globals.lastDrawnDataLabelsIndexes[n][s.globals.lastDrawnDataLabelsIndexes[n].length-1]:0;return void 0!==s.globals.dataLabelsRects[n][h]&&(t>(h=s.globals.dataLabelsRects[n][u]).x+h.width||e>h.y+h.height||e+c<h.y||t+a<h.x)&&(l=!0),{x:t,y:e,textRects:i,drawnextLabel:l=!(0!==r&&!o)||l}}},{key:"drawDataLabel",value:function(t){var e=this,i=t.type,n=t.pos,r=t.i,o=t.j,a=t.isRangeStart,s=void 0===(t=t.strokeWidth)?2:t,l=this.w,t=new H(this.ctx),c=l.config.dataLabels,h=0,u=o;if(-1!==l.globals.collapsedSeriesIndices.indexOf(r)||!c.enabled||!Array.isArray(n.x))return null;for(var d=t.group({class:"apexcharts-data-labels"}),f=0;f<n.x.length;f++){var p,g,m,b=n.x[f]+c.offsetX,h=n.y[f]+c.offsetY+s;isNaN(b)||(1===o&&0===f&&(u=0),1===o&&1===f&&(u=1),p=l.globals.series[r][u],"rangeArea"===i&&(p=(a?l.globals.seriesRangeStart:l.globals.seriesRangeEnd)[r][u]),g="",m=function(t){return l.config.dataLabels.formatter(t,{ctx:e.ctx,seriesIndex:r,dataPointIndex:u,w:l})},"bubble"===l.config.chart.type?(g=m(p=l.globals.seriesZ[r][u]),h=n.y[f],h=new yt(this.ctx).centerTextInBubble(h,r,u).y):void 0!==p&&(g=m(p)),m=l.config.dataLabels.textAnchor,l.globals.isSlopeChart&&(m=0===u?"end":u===l.config.series[r].data.length-1?"start":"middle"),this.plotDataLabelsText({x:b,y:h,text:g,i:r,j:u,parent:d,offsetCorrection:!0,dataLabelsConfig:l.config.dataLabels,textAnchor:m}))}return d}},{key:"plotDataLabelsText",value:function(t){var e,i=this.w,n=new H(this.ctx),r=t.x,o=t.y,a=t.i,s=t.j,l=t.text,c=t.textAnchor,h=t.fontSize,u=t.parent,d=t.dataLabelsConfig,f=t.color,p=t.alwaysDrawDataLabel,g=t.offsetCorrection,t=t.className,m=null;return Array.isArray(i.config.dataLabels.enabledOnSeries)&&i.config.dataLabels.enabledOnSeries.indexOf(a)<0||(e={x:r,y:o,drawnextLabel:!0,textRects:null},g&&(e=this.dataLabelsCorrection(r,o,l,a,s,p,parseInt(d.style.fontSize,10))),i.globals.zoomed||(r=e.x,o=e.y),e.textRects&&(r<-20-e.textRects.width||r>i.globals.gridWidth+e.textRects.width+30)&&(l=""),g=i.globals.dataLabels.style.colors[a],"function"==typeof(g=("bar"===i.config.chart.type||"rangeBar"===i.config.chart.type)&&i.config.plotOptions.bar.distributed||i.config.dataLabels.distributed?i.globals.dataLabels.style.colors[s]:g)&&(g=g({series:i.globals.series,seriesIndex:a,dataPointIndex:s,w:i})),f&&(g=f),p=d.offsetX,f=d.offsetY,"bar"!==i.config.chart.type&&"rangeBar"!==i.config.chart.type||(f=p=0),i.globals.isSlopeChart&&(0!==s&&(p=-2*d.offsetX+5),0!==s)&&s!==i.config.series[a].data.length-1&&(p=0),e.drawnextLabel&&((m=n.drawText({width:100,height:parseInt(d.style.fontSize,10),x:r+p,y:o+f,foreColor:g,textAnchor:c||d.textAnchor,text:l,fontSize:h||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"})).attr({class:t||"apexcharts-datalabel",cx:r,cy:o}),d.dropShadow.enabled&&(e=d.dropShadow,new P(this.ctx).dropShadow(m,e)),u.add(m),void 0===i.globals.lastDrawnDataLabelsIndexes[a]&&(i.globals.lastDrawnDataLabelsIndexes[a]=[]),i.globals.lastDrawnDataLabelsIndexes[a].push(s))),m}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,n=i.config.dataLabels.background,r=n.padding,o=n.padding/2,a=e.width,s=e.height,e=new H(this.ctx).drawRect(e.x-r,e.y-o/2,a+2*r,s+o,n.borderRadius,"transparent"!==i.config.chart.background&&i.config.chart.background?i.config.chart.background:"#fff",n.opacity,n.borderWidth,n.borderColor);return n.dropShadow.enabled&&new P(this.ctx).dropShadow(e,n.dropShadow),e}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<e.length;i++){var n=e[i],r=n.getBBox(),o=null;(o=r.width&&r.height?this.addBackgroundToDataLabel(n,r):null)&&(n.parentNode.insertBefore(o.node,n),r=n.getAttribute("fill"),(!t.config.chart.animations.enabled||t.globals.resized||t.globals.dataChanged?o:o.animate()).attr({fill:r}),n.setAttribute("fill",t.config.dataLabels.background.foreColor))}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),n=0;n<e.length;n++)i&&i.insertBefore(e[n],i.nextSibling)}}]),Ge),E=(t(qe,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(B.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var t=this.getSeriesByName(t),e=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:e}}},{key:"addCollapsedClassToSeries",value:function(i,n){var t=this.w;function e(t){for(var e=0;e<t.length;e++)t[e].index===n&&i.node.classList.add("apexcharts-series-collapsed")}e(t.globals.collapsedSeries),e(t.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(t){return t=this.isSeriesHidden(t),this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(t){(t=this.isSeriesHidden(t)).isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(t){(t=this.isSeriesHidden(t)).isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],n=this.w,r=B.clone(n.globals.initialSeries);n.globals.previousPaths=[],i?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),n.config.series=r,t&&(e&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,n.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i<t.length;i++)-1<e.globals.collapsedSeriesIndices.indexOf(i)&&(t[i].data=[]);return t}},{key:"highlightSeries",value:function(t){var e,i=this.w,t=this.getSeriesByName(t),t=parseInt(null==t?void 0:t.getAttribute("data:realIndex"),10),n=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),r=null,o=null,a=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(t,"']")),e=i.globals.seriesYAxisReverseMap[t],a=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"'] path"));for(var s=0;s<n.length;s++)n[s].classList.add(this.legendInactiveClass);if(r)i.globals.axisCharts||r.parentNode.classList.remove(this.legendInactiveClass),r.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass),null!==a&&a.classList.remove(this.legendInactiveClass);else for(var l=0;l<n.length;l++)n[l].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w,n=(e=e||t.target,i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"));if("mousemove"===t.type)e=parseInt(e.getAttribute("rel"),10)-1,this.highlightSeries(i.globals.seriesNames[e]);else if("mouseout"===t.type)for(var r=0;r<n.length;r++)n[r].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){function i(t){for(var e=0;e<r.length;e++)r[e].classList[t](n.legendInactiveClass)}var n=this,r=(o=this.w).globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect");if("mousemove"===t.type){e=parseInt(e.getAttribute("rel"),10)-1,i("add");for(var o,a=(o=o.config.plotOptions.heatmap.colorScale.ranges)[e],s=o.reduce(function(t,e){return Math.max(t,e.to)},0),l=0;l<r.length;l++){var c=Number(r[l].getAttribute("val"));c>=a.from&&(c<a.to||a.to===s&&c===s)&&r[l].classList.remove(n.legendInactiveClass)}}else"mouseout"===t.type&&i("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"asc",i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=this.w,e=0;if(1<n.config.series.length)for(var r=n.config.series.map(function(t,e){return t.data&&0<t.data.length&&-1===n.globals.collapsedSeriesIndices.indexOf(e)&&(!n.globals.comboCharts||0===i.length||i.length&&-1<i.indexOf(n.config.series[e].type))?e:-1}),o="asc"===t?0:r.length-1;"asc"===t?o<r.length:0<=o;"asc"===t?o++:o--)if(-1!==r[o]){e=r[o];break}return e}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(t,e){return"bar"===t.type||"column"===t.type?e:-1}).filter(function(t){return-1!==t}):this.w.config.series.map(function(t,e){return e})}},{key:"getPreviousPaths",value:function(){var l=this.w,t=(l.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(t){for(var e=l.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series")),i=0;i<e.length;i++){for(var n,r,o=void 0,a=void 0,s=void 0,o=e[n=i].childNodes,a={type:t,paths:[],realIndex:e[n].getAttribute("data:realIndex")},s=0;s<o.length;s++)o[s].hasAttribute("pathTo")&&(r=o[s].getAttribute("pathTo"),a.paths.push({d:r}));l.globals.previousPaths.push(a)}}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter"),l.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(l.config.chart.type," .apexcharts-series")));if(0<t.length)for(var e=0;e<t.length;e++)(t=>{for(var n=l.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(l.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),r=[],e=0;e<n.length;e++)(e=>{function t(t){return n[e].getAttribute(t)}var i={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};r.push({rect:i,color:n[e].getAttribute("color")})})(e);l.globals.previousPaths.push(r)})(e);l.globals.axisCharts||(l.globals.previousPaths=l.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series"));if(0<i.length)for(var n=0;n<i.length;n++){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(n,"'] circle")),o=[],a=0;a<r.length;a++)o.push({x:r[a].getAttribute("cx"),y:r[a].getAttribute("cy"),r:r[a].getAttribute("r")});e.globals.previousPaths.push(o)}}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new H(this.ctx),n=t.globals.svgWidth/2,r=t.globals.svgHeight/2,o="middle";t.globals.noData=!0,t.globals.animationEnded=!0,"left"===e.align?(n=10,o="start"):"right"===e.align&&(n=t.globals.svgWidth-10,o="end"),"top"===e.verticalAlign?r=50:"bottom"===e.verticalAlign&&(r=t.globals.svgHeight-50),n+=e.offsetX,r=r+parseInt(e.style.fontSize,10)+2+e.offsetY,void 0!==e.text&&""!==e.text&&(i=i.drawText({x:n,y:r,text:e.text,textAnchor:o,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"}),t.globals.dom.Paper.add(i))}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(0===t[i].length)for(var n=0;n<t[e.globals.maxValsInArrayIndex].length;n++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),n=0;n<i.length-1;n++)if(i[n][0]!==i[n+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map(function(t){return 0<t.length?t:[]})}}]),qe),xt=(t(We,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new E(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&0<t[this.activeSeriesIndex].data.length&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new E(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&0<t[this.activeSeriesIndex].data.length&&null!=t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i,n=this.w.config,r=this.w.globals,o="boxPlot"===n.chart.type||"boxPlot"===n.series[e].type,a=0;a<t[e].data.length;a++)void 0!==t[e].data[a][1]&&(Array.isArray(t[e].data[a][1])&&4===t[e].data[a][1].length&&!o?this.twoDSeries.push(B.parseNumber(t[e].data[a][1][3])):5<=t[e].data[a].length?this.twoDSeries.push(B.parseNumber(t[e].data[a][4])):this.twoDSeries.push(B.parseNumber(t[e].data[a][1])),r.dataFormatXNumeric=!0),"datetime"===n.xaxis.type?(i=new Date(t[e].data[a][0]),i=new Date(i).getTime(),this.twoDSeriesX.push(i)):this.twoDSeriesX.push(t[e].data[a][0]);for(var s=0;s<t[e].data.length;s++)void 0!==t[e].data[s][2]&&(this.threeDSeries.push(t[e].data[s][2]),r.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,n=this.w.globals,r=new x(this.ctx),o=e;-1<n.collapsedSeriesIndices.indexOf(e)&&(o=this.activeSeriesIndex);for(var a=0;a<t[e].data.length;a++)void 0!==t[e].data[a].y&&(Array.isArray(t[e].data[a].y)?this.twoDSeries.push(B.parseNumber(t[e].data[a].y[t[e].data[a].y.length-1])):this.twoDSeries.push(B.parseNumber(t[e].data[a].y))),void 0!==t[e].data[a].goals&&Array.isArray(t[e].data[a].goals)?(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[a].goals)):(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var s=0;s<t[o].data.length;s++){var l="string"==typeof t[o].data[s].x,c=Array.isArray(t[o].data[s].x),h=!c&&!!r.isValidDate(t[o].data[s].x);l||h?l||i.xaxis.convertedCatToNumeric?(h=n.isBarHorizontal&&n.isRangeData,"datetime"!==i.xaxis.type||h?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[s].x),isNaN(t[o].data[s].x)||"category"===this.w.config.xaxis.type||"string"==typeof t[o].data[s].x||(n.isXNumeric=!0)):this.twoDSeriesX.push(r.parseDate(t[o].data[s].x))):"datetime"===i.xaxis.type?this.twoDSeriesX.push(r.parseDate(t[o].data[s].x.toString())):(n.dataFormatXNumeric=!0,n.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[o].data[s].x))):(c?this.fallbackToCategory=!0:(n.isXNumeric=!0,n.dataFormatXNumeric=!0),this.twoDSeriesX.push(t[o].data[s].x))}if(t[e].data[0]&&void 0!==t[e].data[0].z){for(var u=0;u<t[e].data.length;u++)this.threeDSeries.push(t[e].data[u].z);n.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(n=this.handleRangeDataFormat("xy",t,e)),i.seriesRangeStart.push(void 0===n.start?[]:n.start),i.seriesRangeEnd.push(void 0===n.end?[]:n.end),i.seriesRange.push(n.rangeUniques),i.seriesRange.forEach(function(t,e){t&&t.forEach(function(o,t){o.y.forEach(function(t,e){for(var i,n,r=0;r<o.y.length;r++)e!==r&&(i=t.y1,n=o.y[r].y1,i<=o.y[r].y2)&&n<=t.y2&&(o.overlaps.indexOf(t.rangeName)<0&&o.overlaps.push(t.rangeName),o.overlaps.indexOf(o.y[r].rangeName)<0)&&o.overlaps.push(o.y[r].rangeName)})})}),n}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(n=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=n.o,i.seriesCandleH[e]=n.h,i.seriesCandleM[e]=n.m,i.seriesCandleL[e]=n.l,i.seriesCandleC[e]=n.c,n}},{key:"handleRangeDataFormat",value:function(t,r,o){var a=[],s=[],l=r[o].data.filter(function(e,t,i){return t===i.findIndex(function(t){return t.x===e.x})}).map(function(t,e){return{x:t.x,overlaps:[],y:[]}});if("array"===t)for(var e=0;e<r[o].data.length;e++)Array.isArray(r[o].data[e])?(a.push(r[o].data[e][1][0]),s.push(r[o].data[e][1][1])):(a.push(r[o].data[e]),s.push(r[o].data[e]));else if("xy"===t)for(var i=0;i<r[o].data.length;i++)(t=>{var e=Array.isArray(r[o].data[t].y),i=B.randomId(),n=r[o].data[t].x,e={y1:e?r[o].data[t].y[0]:r[o].data[t].y,y2:e?r[o].data[t].y[1]:r[o].data[t].y,rangeName:i},t=(r[o].data[t].rangeName=i,l.findIndex(function(t){return t.x===n}));l[t].y.push(e),a.push(e.y1),s.push(e.y2)})(i);return{start:a,end:s,rangeUniques:l}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var n=this.w,r="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[i].type,o=[],a=[],s=[],l=[],c=[];if("array"===t)if(r&&6===e[i].data[0].length||!r&&5===e[i].data[0].length)for(var h=0;h<e[i].data.length;h++)o.push(e[i].data[h][1]),a.push(e[i].data[h][2]),r?(s.push(e[i].data[h][3]),l.push(e[i].data[h][4]),c.push(e[i].data[h][5])):(l.push(e[i].data[h][3]),c.push(e[i].data[h][4]));else for(var u=0;u<e[i].data.length;u++)Array.isArray(e[i].data[u][1])&&(o.push(e[i].data[u][1][0]),a.push(e[i].data[u][1][1]),r?(s.push(e[i].data[u][1][2]),l.push(e[i].data[u][1][3]),c.push(e[i].data[u][1][4])):(l.push(e[i].data[u][1][2]),c.push(e[i].data[u][1][3])));else if("xy"===t)for(var d=0;d<e[i].data.length;d++)Array.isArray(e[i].data[d].y)&&(o.push(e[i].data[d].y[0]),a.push(e[i].data[d].y[1]),r?(s.push(e[i].data[d].y[2]),l.push(e[i].data[d].y[3]),c.push(e[i].data[d].y[4])):(l.push(e[i].data[d].y[2]),c.push(e[i].data[d].y[3])));return{o:o,h:a,m:s,l:l,c:c}}},{key:"parseDataAxisCharts",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.ctx,i=this.w.config,n=this.w.globals,r=new x(e),o=(0<i.labels.length?i.labels:i.xaxis.categories).slice(),a=(n.isRangeBar="rangeBar"===i.chart.type&&n.isBarHorizontal,n.hasXaxisGroups="category"===i.xaxis.type&&0<i.xaxis.group.groups.length,n.hasXaxisGroups&&(n.groups=i.xaxis.group.groups),t.forEach(function(t,e){void 0!==t.name?n.seriesNames.push(t.name):n.seriesNames.push("series-"+parseInt(e+1,10))}),this.coreUtils.setSeriesYAxisMappings(),[]),s=A(new Set(i.series.map(function(t){return t.group})));i.series.forEach(function(t,e){t=s.indexOf(t.group),a[t]||(a[t]=[]),a[t].push(n.seriesNames[e])}),n.seriesGroups=a;for(var l=0;l<t.length;l++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[l].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"!==t[l].type&&"rangeArea"!==t[l].type||(n.isRangeData=!0,"rangeBar"!==i.chart.type&&"rangeArea"!==i.chart.type)||this.handleRangeData(t,l),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,l):this.isFormatXY()&&this.handleFormatXY(t,l),"candlestick"!==i.chart.type&&"candlestick"!==t[l].type&&"boxPlot"!==i.chart.type&&"boxPlot"!==t[l].type||this.handleCandleStickBoxData(t,l),n.series.push(this.twoDSeries),n.labels.push(this.twoDSeriesX),n.seriesX.push(this.twoDSeriesX),n.seriesGoals=this.seriesGoals,l!==this.activeSeriesIndex||this.fallbackToCategory||(n.isXNumeric=!0);else{if("datetime"===i.xaxis.type){n.isXNumeric=!0;for(var c=void 0,c=0;c<o.length;c++)if("string"==typeof o[c]){if(!r.isValidDate(o[c]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");this.twoDSeriesX.push(r.parseDate(o[c]))}else this.twoDSeriesX.push(o[c]);n.seriesX.push(this.twoDSeriesX)}else"numeric"===i.xaxis.type&&(n.isXNumeric=!0,0<o.length)&&(this.twoDSeriesX=o,n.seriesX.push(this.twoDSeriesX));n.labels.push(this.twoDSeriesX);var h=t[l].data.map(function(t){return B.parseNumber(t)});n.series.push(h)}n.seriesZ.push(this.threeDSeries),void 0!==t[l].color?n.seriesColors.push(t[l].color):n.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var n=0;n<e.series.length;n++)void 0===e.seriesNames[n]&&e.seriesNames.push("series-"+(n+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;0<e.xaxis.categories.length?i.labels=e.xaxis.categories:0<e.labels.length?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(t){t.forEach(function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new s(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,n=[];if(e.axisCharts){if(0<e.series.length)if(this.isFormatXY())for(var r=i.series.map(function(t,e){return t.data.filter(function(e,t,i){return i.findIndex(function(t){return t.x===e.x})===t})}),o=r.reduce(function(t,e,i,n){return n[t].length>e.length?t:i},0),a=0;a<r[o].length;a++)n.push(a+1);else for(var s=0;s<e.series[e.maxValsInArrayIndex].length;s++)n.push(s+1);e.seriesX=[];for(var l=0;l<t.length;l++)e.seriesX.push(n);this.w.globals.isBarHorizontal||(e.isXNumeric=!0)}if(0===n.length)for(var n=e.axisCharts?[]:e.series.map(function(t,e){return e+1}),c=0;c<t.length;c++)e.seriesX.push(n);e.labels=n,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=n.map(function(t){return i.xaxis.labels.formatter(t)})),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,n=e.globals;this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),n.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),i.chart.stacked&&(e=new E(this.ctx),n.series=e.setNullSeriesToZeroValues(n.series)),this.coreUtils.getSeriesTotals(),n.axisCharts&&(n.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),n.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),n.dataFormatXNumeric||n.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(t);for(var r=this.coreUtils.getCategoryLabels(n.labels),o=0;o<r.length;o++)if(Array.isArray(r[o])){n.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var n=this.w,r=[];n.globals.seriesYAxisMap.forEach(function(t,e){var i=0;t.forEach(function(t){-1!==n.globals.collapsedSeriesIndices.indexOf(t)&&i++}),0<i&&i==t.length&&r.push(e)}),n.globals.ignoreYAxisIndexes=r.map(function(t){return t})}}]),We),wt=(t(Xe,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),n=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",n*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+n)}},{key:"getSvgString",value:function(){var o=this;return new Promise(function(t){var e=o.w,i=e.config.chart.toolbar.export.width,i=e.config.chart.toolbar.export.scale||i/e.globals.svgWidth||1,n=o.w.globals.dom.Paper.svg(),r=o.w.globals.dom.Paper.node.cloneNode(!0);1!==i&&o.scaleSvgNode(r,i),o.convertImagesToBase64(r).then(function(){n=(new XMLSerializer).serializeToString(r),t(n.replace(/&nbsp;/g,"&#160;"))})})}},{key:"convertImagesToBase64",value:function(t){var i=this,t=t.getElementsByTagName("image"),t=Array.from(t).map(function(e){var t=e.getAttributeNS("http://www.w3.org/1999/xlink","href");return t&&!t.startsWith("data:")?i.getBase64FromUrl(t).then(function(t){e.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}).catch(function(t){console.error("Error converting image to base64:",t)}):Promise.resolve()});return Promise.all(t)}},{key:"getBase64FromUrl",value:function(n){return new Promise(function(e,t){var i=new Image;i.crossOrigin="Anonymous",i.onload=function(){var t=document.createElement("canvas");t.width=i.width,t.height=i.height,t.getContext("2d").drawImage(i,0,0),e(t.toDataURL())},i.onerror=t,i.src=n})}},{key:"cleanup",value:function(){var t=(i=this.w).globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),e=i.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),i=i.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(i,function(t){t.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),e&&e[0]&&(e[0].setAttribute("y",-100),e[0].setAttribute("y1",-100),e[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){var t=this;return new Promise(function(e){t.cleanup(),t.getSvgString().then(function(t){t=new Blob([t],{type:"image/svg+xml;charset=utf-8"}),e(URL.createObjectURL(t))})})}},{key:"dataURI",value:function(o){var a=this;return new Promise(function(i){var t=a.w,e=o?o.scale||o.width/t.globals.svgWidth:1,n=(a.cleanup(),document.createElement("canvas")),t=(n.width=t.globals.svgWidth*e,n.height=parseInt(t.globals.dom.elWrap.style.height,10)*e,"transparent"!==t.config.chart.background&&t.config.chart.background?t.config.chart.background:"#fff"),r=n.getContext("2d");r.fillStyle=t,r.fillRect(0,0,n.width*e,n.height*e),a.getSvgString().then(function(t){var t="data:image/svg+xml,"+encodeURIComponent(t),e=new Image;e.crossOrigin="anonymous",e.onload=function(){var t;r.drawImage(e,0,0),n.msToBlob?(t=n.msToBlob(),i({blob:t})):(t=n.toDataURL("image/png"),i({imgURI:t}))},e.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 i=this,t=this.w.config.chart.toolbar.export.scale,e=this.w.config.chart.toolbar.export.width;this.dataURI(t?{scale:t}:e?{width:e}:void 0).then(function(t){var e=t.imgURI;(t=t.blob)?navigator.msSaveOrOpenBlob(t,i.w.globals.chartID+".png"):i.triggerDownload(e,i.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(t){function u(t){return"function"==typeof m.config.chart.toolbar.export.csv.categoryFormatter?m.config.chart.toolbar.export.csv.categoryFormatter(t):"datetime"===m.config.xaxis.type&&10<=String(t).length?new Date(t).toDateString():B.isNumber(t)?t:t.split(g).join("")}function d(t){return"function"==typeof m.config.chart.toolbar.export.csv.valueFormatter?m.config.chart.toolbar.export.csv.valueFormatter(t):t}var r,o,f=this,p=t.series,e=t.fileName,g=void 0===(i=t.columnDelimiter)?",":i,t=void 0===(i=t.lineDelimiter)?"\n":i,m=this.w,p=p||m.config.series,b=[],v=[],i="",y=m.globals.series.map(function(t,e){return-1===m.globals.collapsedSeriesIndices.indexOf(e)?t:[]}),x=Math.max.apply(Math,A(p.map(function(t){return t.data?t.data.length:0}))),w=new xt(this.ctx),k=new C(this.ctx);b.push(m.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===m.config.chart.type?(b.push("minimum"),b.push("q1"),b.push("median"),b.push("q3"),b.push("maximum")):"candlestick"===m.config.chart.type?(b.push("open"),b.push("high"),b.push("low"),b.push("close")):"rangeBar"===m.config.chart.type?(b.push("minimum"),b.push("maximum")):p.map(function(t,e){t=(t.name||"series-".concat(e))+"",m.globals.axisCharts&&b.push(t.split(g).join("")?t.split(g).join(""):"series-".concat(e))}),m.globals.axisCharts||(b.push(m.config.chart.toolbar.export.csv.headerValue),v.push(b.join(g))),m.globals.allSeriesHasEqualX||!m.globals.axisCharts||m.config.xaxis.categories.length||m.config.labels.length?p.map(function(t,e){if(m.globals.axisCharts){var i=t,n=e;if(b.length&&0===n&&v.push(b.join(g)),i.data){i.data=i.data.length&&i.data||A(Array(x)).map(function(){return""});for(var r=0;r<i.data.length;r++)if(b=[],s=r,l=void 0,h="",m.globals.axisCharts?("category"!==m.config.xaxis.type&&!m.config.xaxis.convertedCatToNumeric||(h=m.globals.isBarHorizontal?(l=m.globals.yLabelFormatters[0],c=new E(f.ctx).getActiveConfigSeriesIndex(),l(m.globals.labels[s],{seriesIndex:c,dataPointIndex:s,w:m})):k.getLabel(m.globals.labels,m.globals.timescaleLabels,0,s).text),"datetime"===m.config.xaxis.type&&(m.config.xaxis.categories.length?h=m.config.xaxis.categories[s]:m.config.labels.length&&(h=m.config.labels[s]))):h=m.config.labels[s],"nullvalue"!==(l=null===h?"nullvalue":(Array.isArray(h)&&(h=h.join(" ")),B.isNumber(h)?h:h.split(g).join("")))){if(l||(w.isFormatXY()?l=p[n].data[r].x:w.isFormat2DArray()&&(l=p[n].data[r]?p[n].data[r][0]:"")),0===n){b.push(u(l));for(var o=0;o<m.globals.series.length;o++){var a=w.isFormatXY()?null==(a=p[o].data[r])?void 0:a.y:y[o][r];b.push(d(a))}}("candlestick"===m.config.chart.type||i.type&&"candlestick"===i.type)&&(b.pop(),b.push(m.globals.seriesCandleO[n][r]),b.push(m.globals.seriesCandleH[n][r]),b.push(m.globals.seriesCandleL[n][r]),b.push(m.globals.seriesCandleC[n][r])),("boxPlot"===m.config.chart.type||i.type&&"boxPlot"===i.type)&&(b.pop(),b.push(m.globals.seriesCandleO[n][r]),b.push(m.globals.seriesCandleH[n][r]),b.push(m.globals.seriesCandleM[n][r]),b.push(m.globals.seriesCandleL[n][r]),b.push(m.globals.seriesCandleC[n][r])),"rangeBar"===m.config.chart.type&&(b.pop(),b.push(m.globals.seriesRangeStart[n][r]),b.push(m.globals.seriesRangeEnd[n][r])),b.length&&v.push(b.join(g))}}}else(b=[]).push(u(m.globals.labels[e])),b.push(d(y[e])),v.push(b.join(g));var s,l,c,h}):(r=new Set,o={},p.forEach(function(t,n){null!=t&&t.data.forEach(function(t){var e,i;if(w.isFormatXY())e=t.x,i=t.y;else{if(!w.isFormat2DArray())return;e=t[0],i=t[1]}o[e]||(o[e]=Array(p.length).fill("")),o[e][n]=d(i),r.add(e)})}),b.length&&v.push(b.join(g)),Array.from(r).sort().forEach(function(t){v.push([u(t),o[t].join(g)])})),i+=v.join(t),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+i),e||m.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var n=document.createElement("a");n.href=t,n.download=(e||this.w.globals.chartID)+i,document.body.appendChild(n),n.click(),document.body.removeChild(n)}}]),Xe),f=(t(Ye,[{key:"drawXaxis",value:function(){var t=this.w,e=new H(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),n=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(n);for(var r=[],o=0;o<this.xaxisLabels.length;o++)r.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,e,n,r,t.globals.isXNumeric,function(t,e){return e}),t.globals.hasXaxisGroups){for(var a=t.globals.groups,r=[],s=0;s<a.length;s++)r.push(a[s].title);var l={};t.config.xaxis.group.style&&(l.xaxisFontSize=t.config.xaxis.group.style.fontSize,l.xaxisFontFamily=t.config.xaxis.group.style.fontFamily,l.xaxisForeColors=t.config.xaxis.group.style.colors,l.fontWeight=t.config.xaxis.group.style.fontWeight,l.cssClass=t.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,e,n,r,!1,function(t,e){return a[t].cols*e},l)}return void 0!==t.config.xaxis.title.text&&(n=e.group({class:"apexcharts-xaxis-title"}),l=e.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===t.config.xaxis.position?t.globals.xAxisLabelsHeight:-t.globals.xAxisLabelsHeight-10)+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass}),n.add(l),i.add(n)),t.config.xaxis.axisBorder.show&&(l=t.globals.barPadForNumericAxis,n=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-l,this.offY,this.xaxisBorderWidth+l,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight),(this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders:i).add(n)),i}},{key:"drawXAxisLabelAndGroup",value:function(r,o,a,s,t,l){var c,h=this,e=6<arguments.length&&void 0!==arguments[6]?arguments[6]:{},u=[],d=[],f=this.w,p=e.xaxisFontSize||this.xaxisFontSize,g=e.xaxisFontFamily||this.xaxisFontFamily,m=e.xaxisForeColors||this.xaxisForeColors,b=e.fontWeight||f.config.xaxis.labels.style.fontWeight,v=e.cssClass||f.config.xaxis.labels.style.cssClass,y=f.globals.padHorizontal,x=s.length,w="category"===f.config.xaxis.type?f.globals.dataPoints:x;0===w&&w<x&&(w=x);for(var y=t?(e=1<w?w-1:w,c=f.globals.gridWidth/Math.min(e,x-1),y+l(0,c)/2+f.config.xaxis.labels.offsetX):(c=f.globals.gridWidth/w,y+l(0,c)+f.config.xaxis.labels.offsetX),i=0;i<=x-1;i++)(i=>{var t,e=y-l(i,c)/2+f.config.xaxis.labels.offsetX,e=(0===i&&1===x&&c/2===y&&1===w&&(e=f.globals.gridWidth/2),h.axesUtils.getLabel(s,f.globals.timescaleLabels,e,i,u,p,r)),n=28;f.globals.rotateXLabels&&r&&(n=22),f.config.xaxis.title.text&&"top"===f.config.xaxis.position&&(n+=parseFloat(f.config.xaxis.title.style.fontSize)+2),r||(n=n+parseFloat(p)+(f.globals.xAxisLabelsHeight-f.globals.xAxisGroupLabelsHeight)+(f.globals.rotateXLabels?10:0)),e=void 0!==f.config.xaxis.tickAmount&&"dataPoints"!==f.config.xaxis.tickAmount&&"datetime"!==f.config.xaxis.type?h.axesUtils.checkLabelBasedOnTickamount(i,e,x):h.axesUtils.checkForOverflowingLabels(i,e,x,u,d),f.config.xaxis.labels.show&&(n=o.drawText({x:e.x,y:h.offY+f.config.xaxis.labels.offsetY+n-("top"===f.config.xaxis.position?f.globals.xAxisHeight+f.config.xaxis.axisTicks.height-2:0),text:e.text,textAnchor:"middle",fontWeight:e.isBold?600:b,fontSize:p,fontFamily:g,foreColor:Array.isArray(m)?r&&f.config.xaxis.convertedCatToNumeric?m[f.globals.minX+i-1]:m[i]:m,isPlainText:!1,cssClass:(r?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+v}),a.add(n),n.on("click",function(t){var e;"function"==typeof f.config.chart.events.xAxisLabelClick&&(e=Object.assign({},f,{labelIndex:i}),f.config.chart.events.xAxisLabelClick(t,h.ctx,e))}),r)&&((t=document.createElementNS(f.globals.SVGNS,"title")).textContent=Array.isArray(e.text)?e.text.join(" "):e.text,n.node.appendChild(t),""!==e.text)&&(u.push(e.text),d.push(e)),i<x-1&&(y+=l(i+1,c))})(i)}},{key:"drawXaxisInversed",value:function(a){var s=this,l=this.w,c=new H(this.ctx),t=l.config.yaxis[0].opposite?l.globals.translateYAxisX[a]:0,e=c.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:a}),h=c.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+t+", 0)"}),u=(e.add(h),[]);if(l.config.yaxis[a].show)for(var i=0;i<this.xaxisLabels.length;i++)u.push(this.xaxisLabels[i]);var d,f=-(d=l.globals.gridHeight/u.length)/2.2,p=l.globals.yLabelFormatters[0],g=l.config.yaxis[0].labels;if(g.show)for(var n=0;n<=u.length-1;n++)(i=>{var t=p(t=void 0===u[i]?"":u[i],{seriesIndex:a,dataPointIndex:i,w:l}),e=s.axesUtils.getYAxisForeColor(g.style.colors,a),n=0,r=(Array.isArray(t)&&(n=t.length/2*parseInt(g.style.fontSize,10)),g.offsetX-15),o="end",r=(s.yaxis.opposite&&(o="start"),"left"===l.config.yaxis[0].labels.align?(r=g.offsetX,o="start"):"center"===l.config.yaxis[0].labels.align?(r=g.offsetX,o="middle"):"right"===l.config.yaxis[0].labels.align&&(o="end"),c.drawText({x:r,y:f+d+g.offsetY-n,text:t,textAnchor:o,foreColor:Array.isArray(e)?e[i]:e,fontSize:g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+g.style.cssClass,maxWidth:g.maxWidth}));h.add(r),r.on("click",function(t){var e;"function"==typeof l.config.chart.events.xAxisLabelClick&&(e=Object.assign({},l,{labelIndex:i}),l.config.chart.events.xAxisLabelClick(t,s.ctx,e))}),(n=document.createElementNS(l.globals.SVGNS,"title")).textContent=Array.isArray(t)?t.join(" "):t,r.node.appendChild(n),0!==l.config.yaxis[a].labels.rotate&&(o=c.rotateAroundCenter(r.node),r.node.setAttribute("transform","rotate(".concat(l.config.yaxis[a].labels.rotate," 0 ").concat(o.y,")"))),f+=d})(n);void 0!==l.config.yaxis[0].title.text&&(t=c.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+t+", 0)"}),r=c.drawText({x:l.config.yaxis[0].title.offsetX,y:l.globals.gridHeight/2+l.config.yaxis[0].title.offsetY,text:l.config.yaxis[0].title.text,textAnchor:"middle",foreColor:l.config.yaxis[0].title.style.color,fontSize:l.config.yaxis[0].title.style.fontSize,fontWeight:l.config.yaxis[0].title.style.fontWeight,fontFamily:l.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+l.config.yaxis[0].title.style.cssClass}),t.add(r),e.add(t));var r=0;return this.isCategoryBarHorizontal&&l.config.yaxis[0].opposite&&(r=l.globals.gridWidth),(t=l.config.xaxis.axisBorder).show&&(t=c.drawLine(l.globals.padHorizontal+t.offsetX+r,1+t.offsetY,l.globals.padHorizontal+t.offsetX+r,l.globals.gridHeight+t.offsetY,t.color,0),(this.elgrid&&this.elgrid.elGridBorders&&l.config.grid.show?this.elgrid.elGridBorders:e).add(t)),l.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(r,u.length,l.config.yaxis[0].axisBorder,l.config.yaxis[0].axisTicks,0,d,e),e}},{key:"drawXaxisTicks",value:function(t,e,i){var n,r=this.w,o=t;t<0||t-2>r.globals.gridWidth||(e=e+(n=this.offY+r.config.xaxis.axisTicks.offsetY)+r.config.xaxis.axisTicks.height,"top"===r.config.xaxis.position&&(e=n-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show&&(t=new H(this.ctx).drawLine(t+r.config.xaxis.axisTicks.offsetX,n+r.config.xaxis.offsetY,o+r.config.xaxis.axisTicks.offsetX,e+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color),i.add(t),t.node.classList.add("apexcharts-xaxis-tick")))}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,n=t.globals.padHorizontal;if(0<t.globals.timescaleLabels.length)for(var r=0;r<i;r++)n=this.xaxisLabels[r].position,e.push(n);else for(var o=i,a=0;a<o;a++){var s=o;t.globals.isXNumeric&&"bar"!==t.config.chart.type&&--s,n+=t.globals.gridWidth/s,e.push(n)}return e}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,i=new H(this.ctx),t=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),n=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"),o=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<n.length;a++){(s=i.rotateAroundCenter(n[a])).y=s.y-1,s.x=s.x+1,n[a].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(s.x," ").concat(s.y,")")),n[a].setAttribute("text-anchor","end"),t.setAttribute("transform","translate(0, ".concat(-10,")"));var s=n[a].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(s,function(t){i.placeTextWithEllipsis(t,t.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))})}else for(var l=e.globals.gridWidth/(e.globals.labels.length+1),c=0;c<n.length;c++){var h=n[c].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(h,function(t){i.placeTextWithEllipsis(t,t.textContent,l)})}if(0<r.length){var u=r[r.length-1].getBBox(),d=r[0].getBBox();u.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),d.x+d.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var f=0;f<o.length;f++)i.placeTextWithEllipsis(o[f],o[f].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),Ye),kt=(t(He,[{key:"drawGridArea",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new H(this.ctx),t=t||i.group({class:"apexcharts-grid"}),n=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),i=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(i),t.add(n),t}},{key:"drawGrid",value:function(){var t;return this.w.globals.axisCharts?(t=this.renderGrid(),this.drawGridArea(t.el),t):null}},{key:"createGridMask",value:function(){function t(t){var e=document.createElementNS(i.SVGNS,"clipPath");return e.setAttribute("id",t),e}var e=this.w,i=e.globals,n=new H(this.ctx),r=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,A(e.config.stroke.width)):e.config.stroke.width,o=(i.dom.elGridRectMask=t("gridRectMask".concat(i.cuid)),i.dom.elGridRectBarMask=t("gridRectBarMask".concat(i.cuid)),i.dom.elGridRectMarkerMask=t("gridRectMarkerMask".concat(i.cuid)),i.dom.elForecastMask=t("forecastMask".concat(i.cuid)),i.dom.elNonForecastMask=t("nonForecastMask".concat(i.cuid)),0),a=0,a=((["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||0<e.globals.comboBarCount)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(o=Math.max(e.config.grid.padding.left,i.barPadForNumericAxis),a=Math.max(e.config.grid.padding.right,i.barPadForNumericAxis)),i.dom.elGridRect=n.drawRect(0,0,i.gridWidth,i.gridHeight,0,"#fff"),i.dom.elGridRectBar=n.drawRect(-r/2-o-2,-r/2-2,i.gridWidth+r+a+o+4,i.gridHeight+r+4,0,"#fff"),e.globals.markers.largestSize);i.dom.elGridRectMarker=n.drawRect(-a,-a,i.gridWidth+2*a,i.gridHeight+2*a,0,"#fff"),i.dom.elGridRectMask.appendChild(i.dom.elGridRect.node),i.dom.elGridRectBarMask.appendChild(i.dom.elGridRectBar.node),i.dom.elGridRectMarkerMask.appendChild(i.dom.elGridRectMarker.node),(o=i.dom.baseEl.querySelector("defs")).appendChild(i.dom.elGridRectMask),o.appendChild(i.dom.elGridRectBarMask),o.appendChild(i.dom.elGridRectMarkerMask),o.appendChild(i.dom.elForecastMask),o.appendChild(i.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,n=t.xCount,r=this.w;if(!(0===e&&r.globals.skipFirstTimelinelabel||e===n-1&&r.globals.skipLastTimelinelabel&&!r.config.xaxis.labels.formatter||"radar"===r.config.chart.type)){if(r.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:t.y1,x2:t.x2,y2:t.y2,xCount:n,parent:t.parent}),n=0,r.globals.hasXaxisGroups&&"between"===r.config.xaxis.tickPlacement){var o=r.globals.groups;if(o){for(var a=0,s=0;a<e&&s<o.length;s++)a+=o[s].cols;a===e&&(n=.6*r.globals.xAxisLabelsHeight)}}new f(this.ctx).drawXaxisTicks(i,n,r.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(t){var e=t.i,i=t.x1,n=t.y1,r=t.x2,o=t.y2,a=t.xCount,t=t.parent,s=this.w,l=t.node.classList.contains("apexcharts-gridlines-horizontal"),c=s.globals.barPadForNumericAxis,e=0===n&&0===o||0===i&&0===r||n===s.globals.gridHeight&&o===s.globals.gridHeight||s.globals.isBarHorizontal&&(0===e||e===a-1);(a=new H(this).drawLine(i-(l?c:0),n,r+(l?c:0),o,s.config.grid.borderColor,s.config.grid.strokeDashArray)).node.classList.add("apexcharts-gridline"),(e&&s.config.grid.show?this.elGridBorders:t).add(a)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,n=t.y1,r=t.x2,o=t.y2,t=t.type,a=this.w,s=new H(this.ctx),l=a.globals.barPadForNumericAxis,e=a.config.grid[t].colors[e],s=s.drawRect(i-("row"===t?l:0),n,r+("row"===t?2*l:0),o,0,e,a.config.grid[t].opacity);this.elg.add(s),s.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),s.node.classList.add("apexcharts-grid-".concat(t))}},{key:"_drawXYLines",value:function(t){var e,s=this,l=t.xCount,i=t.tickAmount,c=this.w;if((c.config.grid.xaxis.lines.show||c.config.xaxis.axisTicks.show)&&(t=c.globals.padHorizontal,e=c.globals.gridHeight,(c.globals.timescaleLabels.length?t=>{for(var e,i,n=t.xC,r=t.y1,o=t.y2,a=0;a<n;a++)e=s.xaxisLabels[a].position,i=s.xaxisLabels[a].position,s._drawGridLines({i:a,x1:e,y1:r,x2:i,y2:o,xCount:l,parent:s.elgridLinesV})}:(c.globals.isXNumeric&&(l=c.globals.xAxisScale.result.length),t=>{for(var e=t.xC,i=t.x1,n=t.y1,r=t.x2,o=t.y2,a=0;a<e+(c.globals.isXNumeric?0:1);a++)0===a&&1===e&&1===c.globals.dataPoints&&(r=i=c.globals.gridWidth/2),s._drawGridLines({i:a,x1:i,y1:n,x2:r,y2:o,xCount:l,parent:s.elgridLinesV}),r=i+=c.globals.gridWidth/(c.globals.isXNumeric?e-1:e)}))({xC:l,x1:t,y1:0,x2:void 0,y2:e})),c.config.grid.yaxis.lines.show){var n=0,r=0,o=c.globals.gridWidth,a=i+1;this.isRangeBar&&(a=c.globals.labels.length);for(var h=0;h<a+(this.isRangeBar?1:0);h++)this._drawGridLine({i:h,xCount:a+(this.isRangeBar?1:0),x1:0,y1:n,x2:o,y2:r,parent:this.elgridLinesH}),r=n+=c.globals.gridHeight/(this.isRangeBar?a:i)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var n,r=i.globals.padHorizontal,o=i.globals.gridHeight,a=0;a<e+1;a++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:a,xCount:e+1,x1:r,y1:0,x2:n,y2:o,parent:this.elgridLinesV}),new f(this.ctx).drawXaxisTicks(r,0,i.globals.dom.elGraphical),n=r+=i.globals.gridWidth/e;if(i.config.grid.yaxis.lines.show)for(var s=0,l=0,c=i.globals.gridWidth,h=0;h<i.globals.dataPoints+1;h++)this._drawGridLine({i:h,xCount:i.globals.dataPoints+1,x1:0,y1:s,x2:c,y2:l,parent:this.elgridLinesH}),l=s+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t=this.w,e=t.globals,i=new H(this.ctx);this.elg=i.group({class:"apexcharts-grid"}),this.elgridLinesH=i.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=i.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=i.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),t.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var n=0;n<e.seriesYAxisMap.length&&e.ignoreYAxisIndexes.includes(n);)n++;n===e.seriesYAxisMap.length&&(n=0);var r,o,i=e.yAxisScale[n].result.length-1;return!e.isBarHorizontal||this.isRangeBar?(o=this.xaxisLabels.length,this.isRangeBar&&(i=e.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(o=t.config.xaxis.tickAmount),0<(null==(r=e.yAxisScale)||null==(r=r[n])||null==(r=r.result)?void 0:r.length))&&"datetime"!==t.config.xaxis.type&&(o=e.yAxisScale[n].result.length-1),this._drawXYLines({xCount:o,tickAmount:i})):(o=i,i=e.xTickAmount,this._drawInvertedXYLines({xCount:o,tickAmount:i})),this.drawGridBands(o,i),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:e.gridWidth/o}}},{key:"drawGridBands",value:function(t,e){var i,n=this.w;if(0<(null==(i=n.config.grid.row.colors)?void 0:i.length))for(var r=e,o=0,a=n.globals.gridWidth,s=n.globals.gridHeight/e,l=0,c=0;l<r;l++,c++)c>=n.config.grid.row.colors.length&&(c=0),this._drawGridBandRect({c:c,x1:0,y1:o,x2:a,y2:s,type:"row"}),o+=n.globals.gridHeight/e;if(0<(null==(i=n.config.grid.column.colors)?void 0:i.length)){var h=n.globals.isBarHorizontal||"on"!==n.config.xaxis.tickPlacement||"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric?t:t-1;n.globals.isXNumeric&&(h=n.globals.xAxisScale.result.length-1);for(var u,d=n.globals.padHorizontal,f=n.globals.padHorizontal+n.globals.gridWidth/h,p=n.globals.gridHeight,g=0,m=0;g<t;g++,m++)m>=n.config.grid.column.colors.length&&(m=0),"datetime"===n.config.xaxis.type&&(d=this.xaxisLabels[g].position,f=((null==(u=this.xaxisLabels[g+1])?void 0:u.position)||n.globals.gridWidth)-this.xaxisLabels[g].position),this._drawGridBandRect({c:m,x1:d,y1:0,x2:f,y2:p,type:"column"}),d+=n.globals.gridWidth/h}}}]),He),At=(t(Be,[{key:"niceScale",value:function(t,e){var i,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,r=(a=this.w).globals,o=r.isBarHorizontal?(i=a.config.xaxis,Math.max((r.svgWidth-100)/25,2)):(i=a.config.yaxis[n],Math.max((r.svgHeight-100)/15,2)),a=(B.isNumber(o)||(o=10),null!=i.min),s=void 0!==i.max&&null!==i.min,l=null!=i.stepSize,c=null!=i.tickAmount,h=c?i.tickAmount:r.niceScaleDefaultTicks[Math.min(Math.round(o/2),r.niceScaleDefaultTicks.length-1)],u=(r.isMultipleYAxis&&!c&&0<r.multiAxisTickAmount&&(h=r.multiAxisTickAmount,c=!0),h="dataPoints"===h?r.dataPoints-1:Math.abs(Math.round(h)),(t===Number.MIN_VALUE&&0===e||!B.isNumber(t)&&!B.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)&&(t=B.isNumber(i.min)?i.min:0,e=B.isNumber(i.max)?i.max:t+h,r.allSeriesCollapsed=!1),e<t?(console.warn("axis.min cannot be greater than axis.max: swapping min and max"),d=e,e=t,t=d):t===e&&(t=0===t?0:t-1,e=0===e?2:e+1),[]),d=h=h<1?1:h,f=Math.abs(e-t),p=(!a&&0<t&&t/f<.15&&(a=!(t=0)),!s&&e<0&&-e/f<.15&&(s=!(e=0)),b=(f=Math.abs(e-t))/d),g=Math.floor(Math.log10(p)),m=Math.pow(10,g),p=Math.ceil(p/m),b=r.niceScaleAllowedMagMsd[0===r.yValueDecimal?0:1][p]*m;if(r.isBarHorizontal&&i.stepSize&&"datetime"!==i.type?(b=i.stepSize,l=!0):l&&(b=i.stepSize),l&&i.forceNiceScale&&(p=Math.floor(Math.log10(b)),b*=Math.pow(10,g-p)),a&&s?(m=f/d,c?l?0!=B.mod(f,b)?b=m/(g=B.getGCD(b,m))<10?g:m:0==B.mod(b,m)?b=m:(m=b,c=!1):b=m:l?0==B.mod(f,b)?m=b:b=m:0==B.mod(f,b)?m=b:(m=f/(d=Math.ceil(f/b)),b=m=f/(p=B.getGCD(f,b))<o?p:m)):(a||s?s?c?t=e-b*d:(g=t,t=b*Math.floor(t/b),Math.abs(e-t)/B.getGCD(f,b)>o&&(t=e-b*h,t+=b*Math.floor((g-t)/b))):a&&(c?e=t+b*d:(p=e,e=b*Math.ceil(e/b),Math.abs(e-t)/B.getGCD(f,b)>o&&(e=t+b*h,e+=b*Math.ceil((p-e)/b)))):r.isMultipleYAxis&&c?((m=b*Math.floor(t/b))+b*d<e&&(b*=2),g=e,e=(t=m)+b*d,f=Math.abs(e-t),0<t&&t<Math.abs(g-e)&&(t=0,e=b*d),e<0&&-e<Math.abs(m-t)&&(e=0,t=-b*d)):(t=b*Math.floor(t/b),e=b*Math.ceil(e/b)),f=Math.abs(e-t),b=B.getGCD(f,b)),d=Math.round(f/b),c||a||s||16<(d=Math.ceil((f-1e-11)/(b+1e-11)))&&B.getPrimeFactors(d).length<2&&d++,!c&&i.forceNiceScale&&0===r.yValueDecimal&&f<d&&(d=f,b=Math.round(f/d)),o<d&&(!c&&!l||i.forceNiceScale)){var v=B.getPrimeFactors(d),y=v.length-1,x=d;t:for(var w=0;w<y;w++)for(var k=0;k<=y-w;k++){for(var A=Math.min(k+w,y),S=x,C=1,_=k;_<=A;_++)C*=v[_];if((S/=C)<o){x=S;break t}}b=x===d?f:f/x,d=Math.round(f/b)}r.isMultipleYAxis&&0==r.multiAxisTickAmount&&r.ignoreYAxisIndexes.indexOf(n)<0&&(r.multiAxisTickAmount=d);for(var E=t-b,O=1e-11*b;u.push(B.stripNumber(E+=b,7)),O<e-E;);return{result:u,niceMin:u[0],niceMax:u[u.length-1]}}},{key:"linearScale",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:10,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:void 0,o=Math.abs(e-t),a=[];if(t===e)return{result:a=[t],niceMin:a[0],niceMax:a[a.length-1]};"dataPoints"===(i=this._adjustTicksForSmallRange(i,n,o))&&(i=this.w.globals.dataPoints-1),r=r||o/i,r=Math.round(10*(r+Number.EPSILON))/10,i===Number.MAX_VALUE&&(i=5,r=1);for(var s=t;0<=i;)a.push(s),s=B.preciseAddition(s,r),--i;return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var n=[],r=Math.ceil(Math.log(e)/Math.log(i)+1),o=Math.floor(Math.log(t)/Math.log(i));o<r;o++)n.push(Math.pow(i,o));return{result:n,niceMin:n[0],niceMax:n[n.length-1]}}},{key:"logarithmicScale",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var n=[],r=Math.log(e)/Math.log(i),o=Math.log(t)/Math.log(i),a=r-o,s=Math.round(a),l=a/s,c=0,h=o;c<s;c++,h+=l)n.push(Math.pow(i,h));return n.push(Math.pow(i,r)),{result:n,niceMin:t,niceMax:e}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var n=t;return(n=void 0!==e&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount&&(e=Number(this.w.config.yaxis[e].labels.formatter(1)),B.isNumber(e))&&0===this.w.globals.yValueDecimal?Math.ceil(i):n)<t?n:t}},{key:"setYScaleForIndex",value:function(t,e,i){var n=this.w.globals,r=this.w.config,r=n.isBarHorizontal?r.xaxis:r.yaxis[t],o=(void 0===n.yAxisScale[t]&&(n.yAxisScale[t]=[]),Math.abs(i-e));r.logarithmic&&o<=5&&(n.invalidLogScale=!0),r.logarithmic&&5<o?(n.allSeriesCollapsed=!1,n.yAxisScale[t]=r.forceNiceScale?this.logarithmicScaleNice(e,i,r.logBase):this.logarithmicScale(e,i,r.logBase)):i!==-Number.MAX_VALUE&&B.isNumber(i)&&e!==Number.MAX_VALUE&&B.isNumber(e)?(n.allSeriesCollapsed=!1,n.yAxisScale[t]=this.niceScale(e,i,t)):n.yAxisScale[t]=this.niceScale(Number.MIN_VALUE,0,t)}},{key:"setXScale",value:function(t,e){var i,n=this.w,r=n.globals,o=Math.abs(e-t);return e!==-Number.MAX_VALUE&&B.isNumber(e)?(i=r.xTickAmount+1,r.xAxisScale=this.linearScale(t,e,o<10&&1<o?o:i,0,n.config.xaxis.stepSize)):r.xAxisScale=this.linearScale(0,10,10),r.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var m=this,b=this.w.config,v=this.w.globals,t=(this.coreUtils.setSeriesYAxisMappings(),v.seriesYAxisMap),y=v.minYArr,x=v.maxYArr;v.allSeriesCollapsed=!0,v.barGroups=[],t.forEach(function(e,i){var n=[];if(e.forEach(function(t){t=b.series[t].group,n.indexOf(t)<0&&n.push(t)}),0<e.length){var o,a,s=p=Number.MAX_VALUE,l=g=-Number.MAX_VALUE;if(b.chart.stacked){var t=new Array(v.dataPoints).fill(0),c=[],h=[],u=[];n.forEach(function(){c.push(t.map(function(){return Number.MIN_VALUE})),h.push(t.map(function(){return Number.MIN_VALUE})),u.push(t.map(function(){return Number.MIN_VALUE}))});for(var r=0;r<e.length;r++)(t=>{!o&&b.series[e[t]].type&&(o=b.series[e[t]].type);var r=e[t];a=b.series[r].group||"axis-".concat(i),v.collapsedSeriesIndices.indexOf(r)<0&&v.ancillaryCollapsedSeriesIndices.indexOf(r)<0&&(v.allSeriesCollapsed=!1,n.forEach(function(t,e){if(b.series[r].group===t)for(var i=0;i<v.series[r].length;i++){var n=v.series[r][i];0<=n?h[e][i]+=n:u[e][i]+=n,c[e][i]+=n,s=Math.min(s,n),l=Math.max(l,n)}})),"bar"!==o&&"column"!==o||v.barGroups.push(a)})(r);"bar"===(o=o||b.chart.type)||"column"===o?n.forEach(function(t,e){p=Math.min(p,Math.min.apply(null,u[e])),g=Math.max(g,Math.max.apply(null,h[e]))}):(n.forEach(function(t,e){s=Math.min(s,Math.min.apply(null,c[e])),l=Math.max(l,Math.max.apply(null,c[e]))}),p=s,g=l),p===Number.MIN_VALUE&&g===Number.MIN_VALUE&&(g=-Number.MAX_VALUE)}else for(var d=0;d<e.length;d++){var f=e[d],p=Math.min(p,y[f]),g=Math.max(g,x[f]);v.collapsedSeriesIndices.indexOf(f)<0&&v.ancillaryCollapsedSeriesIndices.indexOf(f)<0&&(v.allSeriesCollapsed=!1)}void 0!==b.yaxis[i].min&&(p="function"==typeof b.yaxis[i].min?b.yaxis[i].min(p):b.yaxis[i].min),void 0!==b.yaxis[i].max&&(g="function"==typeof b.yaxis[i].max?b.yaxis[i].max(g):b.yaxis[i].max),v.barGroups=v.barGroups.filter(function(t,e,i){return i.indexOf(t)===e}),m.setYScaleForIndex(i,p,g),e.forEach(function(t){y[t]=v.yAxisScale[i].niceMin,x[t]=v.yAxisScale[i].niceMax})}else m.setYScaleForIndex(i,0,-Number.MAX_VALUE)})}}]),Be),St=(t(ze,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,o=this.w.config,a=this.w.globals,s=-Number.MAX_VALUE,l=Number.MIN_VALUE,c=a.series,h=c,u=c,d=("candlestick"===o.chart.type?(h=a.seriesCandleL,u=a.seriesCandleH):"boxPlot"===o.chart.type?(h=a.seriesCandleO,u=a.seriesCandleC):a.isRangeData&&(h=a.seriesRangeStart,u=a.seriesRangeEnd),!1);a.seriesX.length>=(r=null===r?t+1:r)&&(e=null==(e=a.brushSource)?void 0:e.w.config.chart.brush,o.chart.zoom.enabled&&o.chart.zoom.autoScaleYaxis||null!=e&&e.enabled&&null!=e&&e.autoScaleYaxis)&&(d=!0);for(var f=t;f<r;f++){a.dataPoints=Math.max(a.dataPoints,c[f].length);var p=o.series[f].type,g=(a.categoryLabels.length&&(a.dataPoints=a.categoryLabels.filter(function(t){return void 0!==t}).length),a.labels.length&&"datetime"!==o.xaxis.type&&0!==a.series.reduce(function(t,e){return t+e.length},0)&&(a.dataPoints=Math.max(a.dataPoints,a.labels.length)),0),m=c[f].length-1;if(d){if(o.xaxis.min)for(;g<m&&a.seriesX[f][g]<o.xaxis.min;g++);if(o.xaxis.max)for(;g<m&&a.seriesX[f][m]>o.xaxis.max;m--);}for(var b=g;b<=m&&b<a.series[f].length;b++){var v=c[f][b];if(null!==v&&B.isNumber(v)){switch(void 0!==u[f][b]&&(s=Math.max(s,u[f][b]),i=Math.min(i,u[f][b])),void 0!==h[f][b]&&(i=Math.min(i,h[f][b]),n=Math.max(n,h[f][b])),p){case"candlestick":void 0!==a.seriesCandleC[f][b]&&(s=Math.max(s,a.seriesCandleH[f][b]),i=Math.min(i,a.seriesCandleL[f][b]));break;case"boxPlot":void 0!==a.seriesCandleC[f][b]&&(s=Math.max(s,a.seriesCandleC[f][b]),i=Math.min(i,a.seriesCandleO[f][b]))}p&&"candlestick"!==p&&"boxPlot"!==p&&"rangeArea"!==p&&"rangeBar"!==p&&(s=Math.max(s,a.series[f][b]),i=Math.min(i,a.series[f][b])),n=s,a.seriesGoals[f]&&a.seriesGoals[f][b]&&Array.isArray(a.seriesGoals[f][b])&&a.seriesGoals[f][b].forEach(function(t){l!==Number.MIN_VALUE&&(l=Math.min(l,t.value),i=l),s=Math.max(s,t.value),n=s}),B.isFloat(v)&&(v=B.noExponents(v),a.yValueDecimal=Math.max(a.yValueDecimal,v.toString().split(".")[1].length)),l>h[f][b]&&h[f][b]<0&&(l=h[f][b])}else a.hasNullValues=!0}"bar"!==p&&"column"!==p||(l<0&&s<0&&(s=0,n=Math.max(n,0)),l===Number.MIN_VALUE&&(l=0,i=Math.min(i,0)))}return"rangeBar"===o.chart.type&&a.seriesRangeStart.length&&a.isBarHorizontal&&(l=i),{minY:l="bar"===o.chart.type&&(l<0&&s<0&&(s=0),l===Number.MIN_VALUE)?0:l,maxY:s,lowestY:i,highestY:n}}},{key:"setYRange",value:function(){var i=this.w.globals,e=this.w.config;i.maxY=-Number.MAX_VALUE,i.minY=Number.MIN_VALUE;var t,n=Number.MAX_VALUE;if(i.isMultipleYAxis)for(var n=Number.MAX_VALUE,r=0;r<i.series.length;r++)t=this.getMinYMaxY(r),i.minYArr[r]=t.lowestY,i.maxYArr[r]=t.highestY,n=Math.min(n,t.lowestY);return t=this.getMinYMaxY(0,n,null,i.series.length),"bar"===e.chart.type?(i.minY=t.minY,i.maxY=t.maxY):(i.minY=t.lowestY,i.maxY=t.highestY),n=t.lowestY,e.chart.stacked&&this._setStackedMinMax(),"line"===e.chart.type||"area"===e.chart.type||"scatter"===e.chart.type||"candlestick"===e.chart.type||"boxPlot"===e.chart.type||"rangeBar"===e.chart.type&&!i.isBarHorizontal?i.minY===Number.MIN_VALUE&&n!==-Number.MAX_VALUE&&n!==i.maxY&&(i.minY=n):i.minY=i.minY!==Number.MIN_VALUE?Math.min(t.minY,i.minY):t.minY,e.yaxis.forEach(function(t,e){void 0!==t.max&&("number"==typeof t.max?i.maxYArr[e]=t.max:"function"==typeof t.max&&(i.maxYArr[e]=t.max(i.isMultipleYAxis?i.maxYArr[e]:i.maxY)),i.maxY=i.maxYArr[e]),void 0!==t.min&&("number"==typeof t.min?i.minYArr[e]=t.min:"function"==typeof t.min&&(i.minYArr[e]=t.min(i.isMultipleYAxis?i.minYArr[e]===Number.MIN_VALUE?0:i.minYArr[e]:i.minY)),i.minY=i.minYArr[e])}),i.isBarHorizontal&&["min","max"].forEach(function(t){void 0!==e.xaxis[t]&&"number"==typeof e.xaxis[t]&&("min"===t?i.minY=e.xaxis[t]:i.maxY=e.xaxis[t])}),i.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),i.minY=n):(this.scales.setYScaleForIndex(0,i.minY,i.maxY),i.minY=i.yAxisScale[0].niceMin,i.maxY=i.yAxisScale[0].niceMax,i.minYArr[0]=i.minY,i.maxYArr[0]=i.maxY),i.barGroups=[],i.lineGroups=[],i.areaGroups=[],e.series.forEach(function(t){switch(t.type||e.chart.type){case"bar":case"column":i.barGroups.push(t.group);break;case"line":i.lineGroups.push(t.group);break;case"area":i.areaGroups.push(t.group)}}),i.barGroups=i.barGroups.filter(function(t,e,i){return i.indexOf(t)===e}),i.lineGroups=i.lineGroups.filter(function(t,e,i){return i.indexOf(t)===e}),i.areaGroups=i.areaGroups.filter(function(t,e,i){return i.indexOf(t)===e}),{minY:i.minY,maxY:i.maxY,minYArr:i.minYArr,maxYArr:i.maxYArr,yAxisScale:i.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric)for(var n=0;n<t.series.length;n++)if(t.labels[n])for(var r=0;r<t.labels[n].length;r++)null!==t.labels[n][r]&&B.isNumber(t.labels[n][r])&&(t.maxX=Math.max(t.maxX,t.labels[n][r]),t.initialMaxX=Math.max(t.maxX,t.labels[n][r]),t.minX=Math.min(t.minX,t.labels[n][r]),t.initialMinX=Math.min(t.minX,t.labels[n][r]));if(t.noLabelsProvided&&0===e.xaxis.categories.length&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var o,a=10;if(void 0===e.xaxis.tickAmount?(a=Math.round(t.svgWidth/150),(a="numeric"===e.xaxis.type&&t.dataPoints<30?t.dataPoints-1:a)>t.dataPoints&&0!==t.dataPoints&&(a=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(1<t.series.length&&(a=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(o=t.maxX-t.minX)<30&&(a=o-1)):a=e.xaxis.tickAmount,t.xTickAmount=a,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var s=[],l=t.minX-1;l<t.maxX;l++)s.push(l+1);t.xAxisScale={result:s,niceMin:s[0],niceMax:s[s.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(0,a,a,0,e.xaxis.stepSize),t.noLabelsProvided&&0<t.labels.length&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,a-1,0,e.xaxis.stepSize),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e<t.series.length;e++)if(void 0!==t.seriesZ[e])for(var i=0;i<t.seriesZ[e].length;i++)null!==t.seriesZ[e][i]&&B.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}},{key:"_handleSingleDataPoint",value:function(){var t,e,i=this.w.globals,n=this.w.config;i.minX===i.maxX&&(t=new x(this.ctx),"datetime"===n.xaxis.type?(e=t.getDate(i.minX),n.xaxis.labels.datetimeUTC?e.setUTCDate(e.getUTCDate()-2):e.setDate(e.getDate()-2),i.minX=new Date(e).getTime(),e=t.getDate(i.maxX),n.xaxis.labels.datetimeUTC?e.setUTCDate(e.getUTCDate()+2):e.setDate(e.getDate()+2),i.maxX=new Date(e).getTime()):"numeric"!==n.xaxis.type&&("category"!==n.xaxis.type||i.noLabelsProvided)||(i.minX=i.minX-2,i.initialMinX=i.minX,i.maxX=i.maxX+2,i.initialMaxX=i.maxX))}},{key:"_getMinXDiff",value:function(){var n=this.w.globals;n.isXNumeric&&n.seriesX.forEach(function(t,e){1===t.length&&t.push(n.seriesX[n.maxValsInArrayIndex][n.seriesX[n.maxValsInArrayIndex].length-1]);var i=t.slice();i.sort(function(t,e){return t-e}),i.forEach(function(t,e){0<e&&0<(t-=i[e-1])&&(n.minXDiff=Math.min(t,n.minXDiff))}),1!==n.dataPoints&&n.minXDiff!==Number.MAX_VALUE||(n.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var t,r,o,a=this,s=this.w.globals;s.series.length&&((t=s.seriesGroups).length||(t=[this.w.globals.seriesNames.map(function(t){return t})]),r={},o={},t.forEach(function(n){r[n]=[],o[n]=[],a.w.config.series.map(function(t,e){return-1<n.indexOf(s.seriesNames[e])?e:null}).filter(function(t){return null!==t}).forEach(function(t){for(var e,i=0;i<s.series[s.maxValsInArrayIndex].length;i++)void 0===r[n][i]&&(r[n][i]=0,o[n][i]=0),(a.w.config.chart.stacked&&!s.comboCharts||a.w.config.chart.stacked&&s.comboCharts&&(!a.w.config.chart.stackOnlyBar||"bar"===(null==(e=a.w.config.series)||null==(e=e[t])?void 0:e.type)||"column"===(null==(e=a.w.config.series)||null==(e=e[t])?void 0:e.type)))&&null!==s.series[t][i]&&B.isNumber(s.series[t][i])&&(0<s.series[t][i]?r[n][i]+=parseFloat(s.series[t][i])+1e-4:o[n][i]+=parseFloat(s.series[t][i]))})}),Object.entries(r).forEach(function(t){var i=W(t,1)[0];r[i].forEach(function(t,e){s.maxY=Math.max(s.maxY,r[i][e]),s.minY=Math.min(s.minY,o[i][e])})}))}}]),ze),Ct=(t(je,[{key:"drawYaxis",value:function(t){var e=this.w,i=new H(this.ctx),n=e.config.yaxis[t].labels.style,r=n.fontSize,o=n.fontFamily,a=n.fontWeight,s=i.group({class:"apexcharts-yaxis",rel:t,transform:"translate(".concat(e.globals.translateYAxisX[t],", 0)")});if(!this.axesUtils.isYAxisHidden(t)){var l=i.group({class:"apexcharts-yaxis-texts-g"}),c=(s.add(l),e.globals.yAxisScale[t].result.length-1),h=e.globals.gridHeight/c,u=e.globals.yLabelFormatters[t],d=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice());if(e.config.yaxis[t].labels.show){var f=e.globals.translateY+e.config.yaxis[t].labels.offsetY;e.globals.isBarHorizontal?f=0:"heatmap"===e.config.chart.type&&(f-=h/2),f+=parseInt(r,10)/3;for(var p=c;0<=p;p--){var g=u(d[p],p,e),m=e.config.yaxis[t].labels.padding,b=(e.config.yaxis[t].opposite&&0!==e.config.yaxis.length&&(m*=-1),this.getTextAnchor(e.config.yaxis[t].labels.align,e.config.yaxis[t].opposite)),v=this.axesUtils.getYAxisForeColor(n.colors,t),v=Array.isArray(v)?v[p]:v,y=B.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-label tspan"))).map(function(t){return t.textContent}),m=i.drawText({x:m,y:f,text:y.includes(g)&&!e.config.yaxis[t].labels.showDuplicates?"":g,textAnchor:b,fontSize:r,fontFamily:o,fontWeight:a,maxWidth:e.config.yaxis[t].labels.maxWidth,foreColor:v,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(n.cssClass)});l.add(m),this.addTooltip(m,g),0!==e.config.yaxis[t].labels.rotate&&this.rotateLabel(i,m,firstLabel,e.config.yaxis[t].labels.rotate),f+=h}}this.addYAxisTitle(i,s,t),this.addAxisBorder(i,s,t,c,h)}return s}},{key:"getTextAnchor",value:function(t,e){return"left"===t?"start":"center"===t?"middle":"right"!==t&&e?"start":"end"}},{key:"addTooltip",value:function(t,e){var i=document.createElementNS(this.w.globals.SVGNS,"title");i.textContent=Array.isArray(e)?e.join(" "):e,t.node.appendChild(i)}},{key:"rotateLabel",value:function(t,e,i,n){i=t.rotateAroundCenter(i.node),t=t.rotateAroundCenter(e.node),e.node.setAttribute("transform","rotate(".concat(n," ").concat(i.x," ").concat(t.y,")"))}},{key:"addYAxisTitle",value:function(t,e,i){var n,r,o=this.w;void 0!==o.config.yaxis[i].title.text&&(n=t.group({class:"apexcharts-yaxis-title"}),r=o.config.yaxis[i].opposite?o.globals.translateYAxisX[i]:0,t=t.drawText({x:r,y:o.globals.gridHeight/2+o.globals.translateY+o.config.yaxis[i].title.offsetY,text:o.config.yaxis[i].title.text,textAnchor:"end",foreColor:o.config.yaxis[i].title.style.color,fontSize:o.config.yaxis[i].title.style.fontSize,fontWeight:o.config.yaxis[i].title.style.fontWeight,fontFamily:o.config.yaxis[i].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(o.config.yaxis[i].title.style.cssClass)}),n.add(t),e.add(n))}},{key:"addAxisBorder",value:function(t,e,i,n,r){var o=this.w,a=o.config.yaxis[i].axisBorder,s=31+a.offsetX;o.config.yaxis[i].opposite&&(s=-31-a.offsetX),a.show&&(t=t.drawLine(s,o.globals.translateY+a.offsetY-2,s,o.globals.gridHeight+o.globals.translateY+a.offsetY+2,a.color,0,a.width),e.add(t)),o.config.yaxis[i].axisTicks.show&&this.axesUtils.drawYAxisTicks(s,n,a,o.config.yaxis[i].axisTicks,i,r,e)}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new H(this.ctx),n=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),r=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")}),o=(n.add(r),e.globals.yAxisScale[t].result.length-1),a=e.globals.gridWidth/o+.1,s=a+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,c=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice()),h=e.globals.timescaleLabels;if(0<h.length&&(this.xaxisLabels=h.slice(),o=(c=h.slice()).length),e.config.xaxis.labels.show)for(var u=h.length?0:o;h.length?u<h.length:0<=u;h.length?u++:u--){var d=l(c[u],u,e),f=e.globals.gridWidth+e.globals.padHorizontal-(s-a+e.config.xaxis.labels.offsetX),p=(h.length&&(f=(p=this.axesUtils.getLabel(c,h,f,u,this.drawnLabels,this.xaxisFontSize)).x,this.drawnLabels.push(d=p.text),0===u&&e.globals.skipFirstTimelinelabel&&(d=""),u===c.length-1)&&e.globals.skipLastTimelinelabel&&(d=""),i.drawText({x:f,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:d,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label ".concat(e.config.xaxis.labels.style.cssClass)}));r.add(p),p.tspan(d),this.addTooltip(p,d),s+=a}return this.inversedYAxisTitleText(n),this.inversedYAxisBorder(n),n}},{key:"inversedYAxisBorder",value:function(t){var e,i=this.w,n=new H(this.ctx),r=i.config.xaxis.axisBorder;r.show&&(e=0,"bar"===i.config.chart.type&&i.globals.isXNumeric&&(e-=15),n=n.drawLine(i.globals.padHorizontal+e+r.offsetX,this.xAxisoffX,i.globals.gridWidth,this.xAxisoffX,r.color,0,r.height),(this.elgrid&&this.elgrid.elGridBorders&&i.config.grid.show?this.elgrid.elGridBorders:t).add(n))}},{key:"inversedYAxisTitleText",value:function(t){var e,i=this.w,n=new H(this.ctx);void 0!==i.config.xaxis.title.text&&(e=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),n=n.drawText({x:i.globals.gridWidth/2+i.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(i.config.xaxis.title.style.fontSize)+i.config.xaxis.title.offsetY+20,text:i.config.xaxis.title.text,textAnchor:"middle",fontSize:i.config.xaxis.title.style.fontSize,fontFamily:i.config.xaxis.title.style.fontFamily,fontWeight:i.config.xaxis.title.style.fontWeight,foreColor:i.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text ".concat(i.config.xaxis.title.style.cssClass)}),e.add(n),t.add(e))}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,n=new H(this.ctx),r=(r=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g")))?r.getBoundingClientRect():{width:0,height:0},o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text")),a=o?o.getBoundingClientRect():{width:0,height:0};o&&(r=this.xPaddingForYAxisTitle(t,r,a,e),o.setAttribute("x",r.xPos-(e?10:0)),a=n.rotateAroundCenter(o),o.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(a.x," ").concat(a.y,")")))}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,n){var r=this.w,o=0,a=10;return void 0===r.config.yaxis[t].title.text||t<0?{xPos:o,padd:0}:(n?o=e.width+r.config.yaxis[t].title.offsetX+i.width/2+a/2:(o=-1*e.width+r.config.yaxis[t].title.offsetX+a/2+i.width/2,r.globals.isBarHorizontal&&(o=-1*e.width-r.config.yaxis[t].title.offsetX-(a=25))),{xPos:o,padd:a})}},{key:"setYAxisXPosition",value:function(r,o){var a,s=this.w,l=0,c=18,h=1;1<s.config.yaxis.length&&(this.multipleYs=!0),s.config.yaxis.forEach(function(t,e){var i=s.globals.ignoreYAxisIndexes.includes(e)||!t.show||t.floating||0===r[e].width,n=r[e].width+o[e].width;t.opposite?s.globals.isBarHorizontal?(l=s.globals.gridWidth+s.globals.translateX-1,s.globals.translateYAxisX[e]=l-t.labels.offsetX):(l=s.globals.gridWidth+s.globals.translateX+h,i||(h+=n+20),s.globals.translateYAxisX[e]=l-t.labels.offsetX+20):(a=s.globals.translateX-c,i||(c+=n+20),s.globals.translateYAxisX[e]=a+t.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var o=this.w;B.listToArray(o.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach(function(t,e){var i,n,r=o.config.yaxis[e];r&&!r.floating&&void 0!==r.labels.align&&(i=o.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g")),e=B.listToArray(o.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label"))),n=i.getBoundingClientRect(),e.forEach(function(t){t.setAttribute("text-anchor",r.labels.align)}),"left"!==r.labels.align||r.opposite?"center"===r.labels.align?i.setAttribute("transform","translate(".concat(n.width/2*(r.opposite?1:-1),", 0)")):"right"===r.labels.align&&r.opposite&&i.setAttribute("transform","translate(".concat(n.width,", 0)")):i.setAttribute("transform","translate(-".concat(n.width,", 0)")))})}}]),je),_t=(t(Fe,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)&&-1!==(e=i.globals.events[t].indexOf(e))&&i.globals.events[t].splice(e,1)}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var n=i.globals.events[t],r=n.length,o=0;o<r;o++)n[o].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var e=this,i=this.w,n=this.ctx,r=i.globals.dom.baseEl.querySelector(i.globals.chartClass);this.ctx.eventList.forEach(function(t){r.addEventListener(t,function(t){var e=Object.assign({},i,{seriesIndex:i.globals.axisCharts?i.globals.capturedSeriesIndex:0,dataPointIndex:i.globals.capturedDataPointIndex});"mousemove"===t.type||"touchmove"===t.type?"function"==typeof i.config.chart.events.mouseMove&&i.config.chart.events.mouseMove(t,n,e):"mouseleave"===t.type||"touchleave"===t.type?"function"==typeof i.config.chart.events.mouseLeave&&i.config.chart.events.mouseLeave(t,n,e):("mouseup"===t.type&&1===t.which||"touchend"===t.type)&&("function"==typeof i.config.chart.events.click&&i.config.chart.events.click(t,n,e),n.ctx.events.fireEvent("click",[t,n,e]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(t){i.globals.dom.baseEl.addEventListener(t,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e,i=this.w,n=t.target.className;"click"===t.type&&(e=i.globals.dom.baseEl.querySelector(".apexcharts-menu"))&&e.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==n&&e.classList.remove("apexcharts-menu-open"),i.globals.clientX=("touchmove"===t.type?t.touches[0]:t).clientX,i.globals.clientY=("touchmove"===t.type?t.touches[0]:t).clientY}}]),Fe),Et=(t(Re,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;if(!(t=(t=window.Apex.chart&&window.Apex.chart.locales&&0<window.Apex.chart.locales.length?this.w.config.chart.locales.concat(window.Apex.chart.locales):t).filter(function(t){return t.name===e})[0]))throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");t=B.extend(gt,t),this.w.globals.locale=t.options}}]),Re),Ot=(t(De,[{key:"drawAxis",value:function(t,e){var i,n,r=this,o=this.w.globals,a=this.w.config,s=new f(this.ctx,e),l=new Ct(this.ctx,e);o.axisCharts&&"radar"!==t&&(o.isBarHorizontal?(n=l.drawYaxisInversed(0),i=s.drawXaxisInversed(0),o.dom.elGraphical.add(i),o.dom.elGraphical.add(n)):(i=s.drawXaxis(),o.dom.elGraphical.add(i),a.yaxis.map(function(t,e){-1===o.ignoreYAxisIndexes.indexOf(e)&&(n=l.drawYaxis(e),o.dom.Paper.add(n),"back"===r.w.config.grid.position)&&((e=o.dom.Paper.children()[1]).remove(),o.dom.Paper.add(e))})))}}]),De),Tt=(t(Ne,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new H(this.ctx),i=new P(this.ctx),n=t.config.xaxis.crosshairs.fill.gradient,r=t.config.xaxis.crosshairs.dropShadow,o=t.config.xaxis.crosshairs.fill.type,a=n.colorFrom,s=r.enabled,l=r.left,c=r.top,h=r.blur,u=r.color,r=r.opacity,d=t.config.xaxis.crosshairs.fill.color;t.config.xaxis.crosshairs.show&&("gradient"===o&&(d=e.drawGradient("vertical",a,n.colorTo,n.opacityFrom,n.opacityTo,null,n.stops,null)),o=e.drawRect(),1===t.config.xaxis.crosshairs.width&&(o=e.drawLine()),a=t.globals.gridHeight,(!B.isNumber(a)||a<0)&&(a=0),n=t.config.xaxis.crosshairs.width,(!B.isNumber(n)||n<0)&&(n=0),o.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:a,width:n,height:a,fill:d,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),s&&(o=i.dropShadow(o,{left:l,top:c,blur:h,color:u,opacity:r})),t.globals.dom.elGraphical.add(o))}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new H(this.ctx),i=t.config.yaxis[0].crosshairs,n=t.globals.barPadForNumericAxis,r=(t.config.yaxis[0].crosshairs.show&&((r=e.drawLine(-n,0,t.globals.gridWidth+n,0,i.stroke.color,i.stroke.dashArray,i.stroke.width)).attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(r)),e.drawLine(-n,0,t.globals.gridWidth+n,0,i.stroke.color,0,0));r.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(r)}}]),Ne),Lt=(t(Ie,[{key:"checkResponsiveConfig",value:function(t){var r,o,e,a=this,s=this.w,i=s.config;0!==i.responsive.length&&((r=i.responsive.slice()).sort(function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0}).reverse(),o=new p({}),i=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=r[0].breakpoint,i=0<window.innerWidth?window.innerWidth:screen.width;if(e<i)(e=B.clone(s.globals.initialConfig)).series=B.clone(s.config.series),e=I.extendArrayProps(o,e,s),t=B.extend(e,t),t=B.extend(s.config,t),a.overrideResponsiveOptions(t);else for(var n=0;n<r.length;n++)i<r[n].breakpoint&&(t=I.extendArrayProps(o,r[n].options,s),t=B.extend(s.config,t),a.overrideResponsiveOptions(t))},t?(e=I.extendArrayProps(o,t,s),e=B.extend(s.config,e),i(B.extend(e,t))):i({}))}},{key:"overrideResponsiveOptions",value:function(t){t=new p(t).init({responsiveOverride:!0}),this.w.config=t}}]),Ie),Mt=(t(Pe,[{key:"checkHeatmapDistributed",value:function(){var t=(e=this.w.config).chart,e=e.plotOptions;return"treemap"===t.type&&e.treemap&&e.treemap.distributed||"heatmap"===t.type&&e.heatmap&&e.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var t=this.w.config,e=t.chart;return(t=t.plotOptions).bar&&t.bar.distributed&&("bar"===e.type||"rangeBar"===e.type)}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t=this.w,e=new B,i=(t.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(t.config.theme.mode)),A(t.config.colors||t.config.fill.colors||[])),i=(t.globals.colors=this.getColors(i),this.applySeriesColors(t.globals.seriesColors,t.globals.colors),t.config.theme.monochrome.enabled&&(t.globals.colors=this.getMonochromeColors(t.config.theme.monochrome,t.globals.series,e)),t.globals.colors.slice());this.pushExtraColors(t.globals.colors),this.applyColorTypes(["fill","stroke"],i),this.applyDataLabelsColors(i),this.applyRadarPolygonsColors(),this.applyMarkersColors(i)}},{key:"getColors",value:function(n){var r=this,o=this.w;return n&&0!==n.length?Array.isArray(n)&&0<n.length&&"function"==typeof n[0]?(this.isColorFn=!0,o.config.series.map(function(t,e){var i=n[e]||n[0];return"function"==typeof i?i({value:o.globals.axisCharts?o.globals.series[e][0]||0:o.globals.series[e],seriesIndex:e,dataPointIndex:e,w:r.w}):i})):n:this.predefined()}},{key:"applySeriesColors",value:function(t,i){t.forEach(function(t,e){t&&(i[e]=t)})}},{key:"getMonochromeColors",value:function(t,e,i){var n=t.color,r=t.shadeTo,o=1/((e=this.isBarDistributed||this.isHeatmapDistributed?e[0].length*e.length:e.length)/t.shadeIntensity),a=0;return Array.from({length:e},function(){var t="dark"===r?i.shadeColor(-1*a,n):i.shadeColor(a,n);return a+=o,t})}},{key:"applyColorTypes",value:function(t,e){var i=this,n=this.w;t.forEach(function(t){n.globals[t].colors=void 0===n.config[t].colors?i.isColorFn?n.config.colors:e:n.config[t].colors.slice(),i.pushExtraColors(n.globals[t].colors)})}},{key:"applyDataLabelsColors",value:function(t){var e=this.w;e.globals.dataLabels.style.colors=void 0===e.config.dataLabels.style.colors?t:e.config.dataLabels.style.colors.slice(),this.pushExtraColors(e.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var t=this.w;t.globals.radarPolygons.fill.colors=void 0===t.config.plotOptions.radar.polygons.fill.colors?["dark"===t.config.theme.mode?"#424242":"none"]:t.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(t.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(t){var e=this.w;e.globals.markers.colors=void 0===e.config.markers.colors?t:e.config.markers.colors.slice(),this.pushExtraColors(e.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=this.w,e=e||n.globals.series.length;if((null===i?this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap&&n.config.plotOptions.heatmap.colorScale.inverse:i)&&n.globals.series.length&&(e=n.globals.series[n.globals.maxValsInArrayIndex].length*n.globals.series.length),t.length<e)for(var r=e-t.length,o=0;o<r;o++)t.push(t[o])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode,i="dark"===e?"palette4":"light"!==e&&t.theme.palette||"palette1",n="dark"===e?"#f6f7f8":"light"!==e&&t.chart.foreColor||"#373d3f";return t.tooltip.theme=e||"light",t.chart.foreColor=n,t.theme.palette=i,t}},{key:"predefined",value:function(){var t={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 t[this.w.config.theme.palette]||t.default}}]),Pe),Pt=(t(Me,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i="title"===t?e.config.title:e.config.subtitle,n=e.globals.svgWidth/2,r=i.offsetY,o="middle";"left"===i.align?(n=10,o="start"):"right"===i.align&&(n=e.globals.svgWidth-10,o="end"),n+=i.offsetX,r=r+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text&&((n=new H(this.ctx).drawText({x:n,y:r,text:i.text,textAnchor:o,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1})).node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(n))}}]),Me),It=(t(Le,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,n=0,r=("title"===t?e.config.title:e.config.subtitle).floating;return null===(t=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text")))||r||(i=(r=t.getBoundingClientRect()).width,n=e.globals.axisCharts?r.height+5:r.height),{width:i,height:n}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.elLegendWrap,i=(t.config.legend.height||"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(e.style.maxHeight=t.globals.svgHeight/2+"px"),Object.assign({},B.getBoundingClientRect(e)));return null!==e&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==t.config.legend.position&&"right"!==t.config.legend.position||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var r=this,o=this.w,a=[],s=(o.config.series.forEach(function(t,n){t.data.forEach(function(t,e){var i=o.globals.series[n][e];s=o.config.dataLabels.formatter(i,{ctx:r.dCtx.ctx,seriesIndex:n,dataPointIndex:e,w:o}),a.push(s)})}),B.getLargestStringFromArr(a)),t=new H(this.dCtx.ctx),e=o.config.dataLabels.style;return{width:1.05*(t=t.getTextRects(s,parseInt(e.fontSize),e.fontFamily)).width,height:t.height}}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i,n;return this.w.globals.isMultiLineX&&(i=e.map(function(t,e){return Array.isArray(t)?t.length:1}),n=Math.max.apply(Math,A(i)),t=e[i.indexOf(n)]),t}}]),Le),Nt=(t(Te,[{key:"getxAxisLabelsCoords",value:function(){var t,e,i,n,r,o,a,s=this.w,l=s.globals.labels.slice();return s.config.xaxis.convertedCatToNumeric&&0===l.length&&(l=s.globals.categoryLabels),0<s.globals.timescaleLabels.length?(t={width:(t=this.getxAxisTimeScaleLabelsCoords()).width,height:t.height},s.globals.rotateXLabels=!1):(this.dCtx.lgWidthForSideLegends="left"!==s.config.legend.position&&"right"!==s.config.legend.position||s.config.legend.floating?0:this.dCtx.lgRect.width,r=s.globals.xLabelFormatter,e=B.getLargestStringFromArr(l),i=this.dCtx.dimHelpers.getLargestStringFromMultiArr(e,l),s.globals.isBarHorizontal&&(i=e=s.globals.yAxisScale[0].result.reduce(function(t,e){return t.length>e.length?t:e},0)),o=e,e=(a=new g(this.dCtx.ctx)).xLabelFormat(r,e,o,{i:void 0,dateFormatter:new x(this.dCtx.ctx).formatDate,w:s}),i=a.xLabelFormat(r,i,o,{i:void 0,dateFormatter:new x(this.dCtx.ctx).formatDate,w:s}),(s.config.xaxis.convertedCatToNumeric&&void 0===e||""===String(e).trim())&&(i=e="1"),r=a=(n=new H(this.dCtx.ctx)).getTextRects(e,s.config.xaxis.labels.style.fontSize),e!==i&&(r=n.getTextRects(i,s.config.xaxis.labels.style.fontSize)),(t={width:(a.width>=r.width?a:r).width,height:(a.height>=r.height?a:r).height}).width*l.length>s.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==s.config.xaxis.labels.rotate||s.config.xaxis.labels.rotateAlways?s.globals.isBarHorizontal||(s.globals.rotateXLabels=!0,a=(o=function(t){return n.getTextRects(t,s.config.xaxis.labels.style.fontSize,s.config.xaxis.labels.style.fontFamily,"rotate(".concat(s.config.xaxis.labels.rotate," 0 0)"),!1)})(e),e!==i&&(r=o(i)),t.height=(a.height>r.height?a:r).height/1.5,t.width=(a.width>r.width?a:r).width):s.globals.rotateXLabels=!1),{width:(t=s.config.xaxis.labels.show?t:{width:0,height:0}).width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e,i,n,r,o,a=this.w;return a.globals.hasXaxisGroups?(t=(null==(t=a.config.xaxis.group.style)?void 0:t.fontSize)||a.config.xaxis.labels.style.fontSize,i=a.globals.groups.map(function(t){return t.title}),e=B.getLargestStringFromArr(i),i=this.dCtx.dimHelpers.getLargestStringFromMultiArr(e,i),o=r=(n=new H(this.dCtx.ctx)).getTextRects(e,t),e!==i&&(o=n.getTextRects(i,t)),e={width:(r.width>=o.width?r:o).width,height:(r.height>=o.height?r:o).height},{width:(e=a.config.xaxis.labels.show?e:{width:0,height:0}).width,height:e.height}):{width:0,height:0}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;return void 0!==t.config.xaxis.title.text&&(e=(t=new H(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize)).width,i=t.height),{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t=this.w,e=(this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice(),this.dCtx.timescaleLabels.map(function(t){return t.value})),i=e.reduce(function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e},0);return 1.05*(i=new H(this.dCtx.ctx).getTextRects(i,t.config.xaxis.labels.style.fontSize)).width*e.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),i}},{key:"additionalPaddingXLabels",value:function(t){var r=this,o=this.w,a=o.globals,s=o.config,l=s.xaxis.type,c=t.width,h=(a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1,o.config.yaxis[0].opposite&&o.globals.isBarHorizontal);s.yaxis.forEach(function(t,e){var i,n;h?(r.dCtx.gridPad.left<c&&(r.dCtx.xPadLeft=c/2+1),r.dCtx.xPadRight=c/2+1):1<s.yaxis.length&&-1!==a.collapsedSeriesIndices.indexOf(e)||(e=t,r.dCtx.timescaleLabels&&r.dCtx.timescaleLabels.length?(t=r.dCtx.timescaleLabels[0],i=r.dCtx.timescaleLabels[r.dCtx.timescaleLabels.length-1].position+c/1.75-r.dCtx.yAxisWidthRight,t=t.position-c/1.75+r.dCtx.yAxisWidthLeft,n="right"===o.config.legend.position&&0<r.dCtx.lgRect.width?r.dCtx.lgRect.width:0,i>a.svgWidth-a.translateX-n&&(a.skipLastTimelinelabel=!0),t<-(e.show&&!e.floating||"bar"!==s.chart.type&&"candlestick"!==s.chart.type&&"rangeBar"!==s.chart.type&&"boxPlot"!==s.chart.type?10:c/1.75)&&(a.skipFirstTimelinelabel=!0)):"datetime"===l?r.dCtx.gridPad.right<c&&!a.rotateXLabels&&(a.skipLastTimelinelabel=!0):"datetime"!==l&&r.dCtx.gridPad.right<c/2-r.dCtx.yAxisWidthRight&&!a.rotateXLabels&&!o.config.xaxis.labels.trim&&(r.dCtx.xPadRight=c/2+1))})}}]),Te),Dt=(t(Oe,[{key:"getyAxisLabelsCoords",value:function(){var h=this,u=this.w,d=[],f=10,p=new C(this.dCtx.ctx);return u.config.yaxis.map(function(t,e){var n,i,r,o,a,s={seriesIndex:e,dataPointIndex:-1,w:u},l=u.globals.yAxisScale[e],c=0;!p.isYAxisHidden(e)&&t.labels.show&&void 0!==t.labels.minWidth&&(c=t.labels.minWidth),!p.isYAxisHidden(e)&&t.labels.show&&l.result.length?(n=u.globals.yLabelFormatters[e],r=l.niceMin===Number.MIN_VALUE?0:l.niceMin,r=l.result.reduce(function(t,e){var i;return(null==(i=String(n(t,s)))?void 0:i.length)>(null==(i=String(n(e,s)))?void 0:i.length)?t:e},r),i=r=n(r,s),void 0!==r&&0!==r.length||(r=l.niceMax),u.globals.isBarHorizontal&&(f=0,l=u.globals.labels.slice(),r=B.getLargestStringFromArr(l),r=n(r,{seriesIndex:e,dataPointIndex:-1,w:u}),i=h.dCtx.dimHelpers.getLargestStringFromMultiArr(r,l)),e=new H(h.dCtx.ctx),l="rotate(".concat(t.labels.rotate," 0 0)"),a=o=e.getTextRects(r,t.labels.style.fontSize,t.labels.style.fontFamily,l,!1),r!==i&&(a=e.getTextRects(i,t.labels.style.fontSize,t.labels.style.fontFamily,l,!1)),d.push({width:(c>a.width||c>o.width?c:(a.width>o.width?a:o).width)+f,height:(a.height>o.height?a:o).height})):d.push({width:0,height:0})}),d}},{key:"getyAxisTitleCoords",value:function(){var r=this,t=this.w,o=[];return t.config.yaxis.map(function(t,e){var i,n;t.show&&void 0!==t.title.text?(n=new H(r.dCtx.ctx),i="rotate(".concat(t.title.rotate," 0 0)"),n=n.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,i,!1),o.push({width:n.width,height:n.height})):o.push({width:0,height:0})}),o}},{key:"getTotalYAxisWidth",value:function(){function i(t,e){var i=r.config.yaxis[e].floating,n=0;0<t.width&&!i?(n=t.width+l,-1<r.globals.ignoreYAxisIndexes.indexOf(e)&&(n=n-t.width-l)):n=i||c.isYAxisHidden(e)?0:5,r.config.yaxis[e].opposite?s+=n:a+=n,o+=n}var r=this.w,o=0,a=0,s=0,l=1<r.globals.yAxisScale.length?10:0,c=new C(this.dCtx.ctx);return r.globals.yLabelsCoords.map(function(t,e){i(t,e)}),r.globals.yTitleCoords.map(function(t,e){i(t,e)}),r.globals.isBarHorizontal&&!r.config.yaxis[0].floating&&(o=r.globals.yLabelsCoords[0].width+r.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=a,this.dCtx.yAxisWidthRight=s,o}}]),Oe),Rt=(t(Ee,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e,i,n,r,o,a=this.w,s=a.config;return(a=a.globals).noData||a.collapsedSeries.length+a.ancillaryCollapsedSeries.length===s.series.length?0:(r=s.chart.type,i=0,n=(e=function(t){return["bar","rangeBar","candlestick","boxPlot"].includes(t)})(r)?s.series.length:1,0<a.comboBarCount&&(n=a.comboBarCount),a.collapsedSeries.forEach(function(t){e(t.type)&&--n}),s.chart.stacked&&(n=1),r=e(r)||0<a.comboBarCount,o=Math.abs(a.initialMaxX-a.initialMinX),r&&a.isXNumeric&&!a.isBarHorizontal&&0<n&&0!==o&&(r=(o=o<=3?a.dataPoints:o)/t,t/2<(o=a.minXDiff&&0<a.minXDiff/r?a.minXDiff/r:0)&&(o/=2),(i=o*parseInt(s.plotOptions.bar.columnWidth,10)/100)<1&&(i=1),a.barPadForNumericAxis=i),i)}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,i=this.w,n=i.globals,r=this.dCtx.isSparkline||!n.axisCharts?0:10,t=(["title","subtitle"].forEach(function(t){void 0!==i.config[t].text?r+=i.config[t].margin:r+=e.dCtx.isSparkline||!n.axisCharts?0:5}),!i.config.legend.show||"bottom"!==i.config.legend.position||i.config.legend.floating||n.axisCharts||(r+=10),this.dCtx.dimHelpers.getTitleSubtitleCoords("title")),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight-=t.height+o.height+r,n.translateY+=t.height+o.height+r}},{key:"setGridXPosForDualYAxis",value:function(i,n){var r=this.w,o=new C(this.dCtx.ctx);r.config.yaxis.forEach(function(t,e){-1!==r.globals.ignoreYAxisIndexes.indexOf(e)||t.floating||o.isYAxisHidden(e)||(t.opposite&&(r.globals.translateX-=n[e].width+i[e].width+parseInt(t.labels.style.fontSize,10)/1.2+12),r.globals.translateX<2&&(r.globals.translateX=2))})}}]),Ee),Ft=(t(_e,[{key:"plotCoords",value:function(){var i=this,t=(n=this.w).globals,e=(this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0},Array.isArray(n.config.stroke.width)?Math.max.apply(Math,A(n.config.stroke.width)):n.config.stroke.width),n=(this.isSparkline&&((0<n.config.markers.discrete.length||0<n.config.markers.size)&&Object.entries(this.gridPad).forEach(function(t){var e=(t=W(t,2))[0];i.gridPad[e]=Math.max(t[1],i.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(e/2,this.gridPad.top),this.gridPad.bottom=Math.max(e/2,this.gridPad.bottom)),t.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),t.gridHeight=t.gridHeight-this.gridPad.top-this.gridPad.bottom,t.gridWidth=t.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft,this.dimGrid.gridPadForColumnsInNumericAxis(t.gridWidth));t.gridWidth=t.gridWidth-2*n,t.translateX=t.translateX+this.gridPad.left+this.xPadLeft+(0<n?n:0),t.translateY=t.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){function t(){n.translateX=c+e.datalabelsCoords.width,n.gridHeight=n.svgHeight-e.lgRect.height-h-(e.isSparkline||"treemap"===i.config.chart.type?0:i.globals.rotateXLabels?10:15),n.gridWidth=n.svgWidth-c-2*e.datalabelsCoords.width}var e=this,i=this.w,n=i.globals,r=this.dimYAxis.getyAxisLabelsCoords(),o=this.dimYAxis.getyAxisTitleCoords(),a=(n.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),i.globals.yLabelsCoords=[],i.globals.yTitleCoords=[],i.config.yaxis.map(function(t,e){i.globals.yLabelsCoords.push({width:r[e].width,index:e}),i.globals.yTitleCoords.push({width:o[e].width,index:e})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth(),this.dimXAxis.getxAxisLabelsCoords()),s=this.dimXAxis.getxAxisGroupLabelsCoords(),l=this.dimXAxis.getxAxisTitleCoords(),c=(this.conditionalChecksForAxisCoords(a,l,s),n.translateXAxisY=i.globals.rotateXLabels?this.xAxisHeight/8:-4,n.translateXAxisX=i.globals.rotateXLabels&&i.globals.isXNumeric&&i.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,i.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(i.config.xaxis.labels.style.fontSize,10)/1.5*-1),n.translateXAxisY=n.translateXAxisY+i.config.xaxis.labels.offsetY,n.translateXAxisX=n.translateXAxisX+i.config.xaxis.labels.offsetX,this.yAxisWidth),h=this.xAxisHeight,u=(n.xAxisLabelsHeight=this.xAxisHeight-l.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-a.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight,10);switch("radar"!==i.config.chart.type&&!this.isSparkline||(h=c=0),this.isSparkline&&(this.lgRect={height:0,width:0}),!this.isSparkline&&"treemap"!==i.config.chart.type||(u=h=c=0),this.isSparkline||"treemap"===i.config.chart.type||this.dimXAxis.additionalPaddingXLabels(a),"top"===i.config.xaxis.position&&(u=n.xAxisHeight-i.config.xaxis.axisTicks.height-5),i.config.legend.position){case"bottom":n.translateY=u,t();break;case"top":n.translateY=this.lgRect.height+u,t();break;case"left":n.translateY=u,n.translateX=this.lgRect.width+c+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-h-12,n.gridWidth=n.svgWidth-this.lgRect.width-c-2*this.datalabelsCoords.width;break;case"right":n.translateY=u,n.translateX=c+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-h-12,n.gridWidth=n.svgWidth-this.lgRect.width-c-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(o,r),new Ct(this.ctx).setYAxisXPosition(r,o)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=(n=this.w).globals,e=n.config,i=0,n=(n.config.legend.show&&!n.config.legend.floating&&(i=20),"pie"===e.chart.type||"polarArea"===e.chart.type||"donut"===e.chart.type?"pie":"radialBar"),r=e.plotOptions[n].offsetY,o=e.plotOptions[n].offsetX;if(!e.legend.show||e.legend.floating)t.gridHeight=t.svgHeight,n=t.dom.elWrap.getBoundingClientRect().width,t.gridWidth=Math.min(n,t.gridHeight),t.translateY=r,t.translateX=o+(t.svgWidth-t.gridWidth)/2;else switch(e.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=r-10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+r+10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-i,t.gridHeight="auto"!==e.chart.height?t.svgHeight:t.gridWidth,t.translateY=r,t.translateX=o+this.lgRect.width+i;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-i-5,t.gridHeight="auto"!==e.chart.height?t.svgHeight:t.gridWidth,t.translateY=r,t.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var n=this.w,r=n.globals.hasXaxisGroups?2:1,i=i.height+t.height+e.height,o=n.globals.isMultiLineX?1.2:n.globals.LINE_HEIGHT_RATIO,a=n.globals.rotateXLabels?22:10,s=n.globals.rotateXLabels&&"bottom"===n.config.legend.position?10:0,l=(this.xAxisHeight=i*o+r*a+s,this.xAxisWidth=t.width,this.xAxisHeight-e.height>n.config.xaxis.labels.maxHeight&&(this.xAxisHeight=n.config.xaxis.labels.maxHeight),n.config.xaxis.labels.minHeight&&this.xAxisHeight<n.config.xaxis.labels.minHeight&&(this.xAxisHeight=n.config.xaxis.labels.minHeight),n.config.xaxis.floating&&(this.xAxisHeight=0),0),c=0;n.config.yaxis.forEach(function(t){l+=t.labels.minWidth,c+=t.labels.maxWidth}),this.yAxisWidth<l&&(this.yAxisWidth=l),this.yAxisWidth>c&&(this.yAxisWidth=c)}}]),_e),jt=(t(Ce,[{key:"getLegendStyles",value:function(){var t=document.createElement("style"),e=(t.setAttribute("type","text/css"),(e=(null==(e=this.lgCtx.ctx)||null==(e=e.opts)||null==(e=e.chart)?void 0:e.nonce)||this.w.config.chart.nonce)&&t.setAttribute("nonce",e),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.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-right: 1px;\n }\n\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }"));return t.appendChild(e),t}},{key:"getLegendDimensions",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i,n,r=this,o=this.w;o.globals.axisCharts||"radialBar"===o.config.chart.type?(o.globals.resized=!0,n=null,o.globals.risingSeries=[],i=o.globals.axisCharts?(n=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),parseInt(n.getAttribute("data:realIndex"),10)):(n=o.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),parseInt(n.getAttribute("rel"),10)-1),e?[{cs:o.globals.collapsedSeries,csi:o.globals.collapsedSeriesIndices},{cs:o.globals.ancillaryCollapsedSeries,csi:o.globals.ancillaryCollapsedSeriesIndices}].forEach(function(t){r.riseCollapsedSeries(t.cs,t.csi,i)}):this.hideSeries({seriesEl:n,realIndex:i})):(e=o.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),"pie"!==(n=o.config.chart.type)&&"polarArea"!==n&&"donut"!==n||(t=o.config.plotOptions.pie.donut.labels,new H(this.lgCtx.ctx).pathMouseDown(e.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(e.members[0].node,t)),e.fire("click"))}},{key:"getSeriesAfterCollapsing",value:function(t){var e,i,t=t.realIndex,n=this.w,r=n.globals,o=B.clone(n.config.series);return r.axisCharts?(i=n.config.yaxis[r.seriesYAxisReverseMap[t]],e={index:t,data:o[t].data.slice(),type:o[t].type||n.config.chart.type},i&&i.show&&i.showAlways?r.ancillaryCollapsedSeriesIndices.indexOf(t)<0&&(r.ancillaryCollapsedSeries.push(e),r.ancillaryCollapsedSeriesIndices.push(t)):r.collapsedSeriesIndices.indexOf(t)<0&&(r.collapsedSeries.push(e),r.collapsedSeriesIndices.push(t),i=r.risingSeries.indexOf(t),r.risingSeries.splice(i,1))):(r.collapsedSeries.push({index:t,data:o[t]}),r.collapsedSeriesIndices.push(t)),r.allSeriesCollapsed=r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===n.config.series.length,this._getSeriesBasedOnCollapsedState(o)}},{key:"hideSeries",value:function(t){for(var e=t.seriesEl,i=this.w,t=this.getSeriesAfterCollapsing({realIndex:t.realIndex}),n=e.childNodes,r=0;r<n.length;r++)n[r].classList.contains("apexcharts-series-markers-wrap")&&(n[r].classList.contains("apexcharts-hide")?n[r].classList.remove("apexcharts-hide"):n[r].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(t,i.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var n=this.w,r=B.clone(n.config.series);if(0<t.length){for(var o=0;o<t.length;o++)t[o].index===i&&(n.globals.axisCharts?r[i].data=t[o].data.slice():r[i]=t[o].data,r[i].hidden=!1,t.splice(o,1),e.splice(o,1),n.globals.risingSeries.push(i));r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,n.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(i){var n=this.w,r=0;return n.globals.axisCharts?i.forEach(function(t,e){n.globals.collapsedSeriesIndices.indexOf(e)<0&&n.globals.ancillaryCollapsedSeriesIndices.indexOf(e)<0||(i[e].data=[],r++)}):i.forEach(function(t,e){!n.globals.collapsedSeriesIndices.indexOf(e)<0&&(i[e]=0,r++)}),n.globals.allSeriesCollapsed=r===i.length,i}}]),Ce),zt=(t(Se,[{key:"init",value:function(){var t=this.w,e=t.globals,i=(t=t.config).legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||1<e.series.length;if(this.legendHelpers.appendToForeignObject(),(i||!e.axisCharts)&&t.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),"bottom"===t.legend.position||"top"===t.legend.position?this.legendAlignHorizontal():"right"!==t.legend.position&&"left"!==t.legend.position||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(t){var e=t.i,t=t.fillcolor,i=this.w,n=document.createElement("span"),r=(n.classList.add("apexcharts-legend-marker"),o=i.config.legend.markers.shape||i.config.markers.shape),o=(Array.isArray(o)&&(r=o[e]),Array.isArray(i.config.legend.markers.size)?parseFloat(i.config.legend.markers.size[e]):parseFloat(i.config.legend.markers.size)),a=Array.isArray(i.config.legend.markers.offsetX)?parseFloat(i.config.legend.markers.offsetX[e]):parseFloat(i.config.legend.markers.offsetX),s=Array.isArray(i.config.legend.markers.offsetY)?parseFloat(i.config.legend.markers.offsetY[e]):parseFloat(i.config.legend.markers.offsetY),l=Array.isArray(i.config.legend.markers.strokeWidth)?parseFloat(i.config.legend.markers.strokeWidth[e]):parseFloat(i.config.legend.markers.strokeWidth),c=n.style;return c.height=2*(o+l)+"px",c.width=2*(o+l)+"px",c.left=a+"px",c.top=s+"px",i.config.legend.markers.customHTML?(c.background="transparent",c.color=t[e],Array.isArray(i.config.legend.markers.customHTML)?i.config.legend.markers.customHTML[e]&&(n.innerHTML=i.config.legend.markers.customHTML[e]()):n.innerHTML=i.config.legend.markers.customHTML()):(a=new w(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(r),seriesIndex:e,strokeWidth:l,size:o}),s=SVG(n).size("100%","100%"),c=new H(this.ctx).drawMarker(0,0,M(M({},a),{},{pointFillColor:Array.isArray(t)?t[e]:a.pointFillColor,shape:r})),SVG.select(".apexcharts-legend-marker.apexcharts-marker").members.forEach(function(t){t.node.classList.contains("apexcharts-marker-triangle")?t.node.style.transform="translate(50%, 45%)":t.node.style.transform="translate(50%, 50%)"}),s.add(c)),n}},{key:"drawLegends",value:function(){var t,e=this.w,i=e.config.legend.fontFamily,n=e.globals.seriesNames,r=(e.config.legend.markers.fillColors||e.globals.colors).slice();"heatmap"===e.config.chart.type?(n=(t=e.config.plotOptions.heatmap.colorScale.ranges).map(function(t){return t.name||t.from+" - "+t.to}),r=t.map(function(t){return t.color})):this.isBarsDistributed&&(n=e.globals.labels.slice()),e.config.legend.customLegendItems.length&&(n=e.config.legend.customLegendItems);for(var o=e.globals.legendFormatter,a=e.config.legend.inverseOrder,s=a?n.length-1:0;a?0<=s:s<=n.length-1;a?s--:s++){var l=o(n[s],{seriesIndex:s,w:e}),c=!1,h=!1;if(0<e.globals.collapsedSeries.length)for(var u=0;u<e.globals.collapsedSeries.length;u++)e.globals.collapsedSeries[u].index===s&&(c=!0);if(0<e.globals.ancillaryCollapsedSeriesIndices.length)for(var d=0;d<e.globals.ancillaryCollapsedSeriesIndices.length;d++)e.globals.ancillaryCollapsedSeriesIndices[d]===s&&(h=!0);var f=this.createLegendMarker({i:s,fillcolor:r}),p=(H.setAttrs(f,{rel:s+1,"data:collapsed":c||h}),(c||h)&&f.classList.add("apexcharts-inactive-legend"),document.createElement("div")),g=document.createElement("span"),m=(g.classList.add("apexcharts-legend-text"),g.innerHTML=Array.isArray(l)?l.join(" "):l,(m=e.config.legend.labels.useSeriesColors?e.globals.colors[s]:Array.isArray(e.config.legend.labels.colors)?null==(m=e.config.legend.labels.colors)?void 0:m[s]:e.config.legend.labels.colors)||e.config.chart.foreColor),l=(g.style.color=m,g.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",g.style.fontWeight=e.config.legend.fontWeight,g.style.fontFamily=i||e.config.chart.fontFamily,H.setAttrs(g,{rel:s+1,i:s,"data:default-text":encodeURIComponent(l),"data:collapsed":c||h}),p.appendChild(f),p.appendChild(g),new I(this.ctx));e.config.legend.showForZeroSeries||0===l.getSeriesTotalByIndex(s)&&l.seriesHaveSameValues(s)&&!l.isSeriesNull(s)&&-1===e.globals.collapsedSeriesIndices.indexOf(s)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(s)&&p.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||l.isSeriesNull(s)&&-1===e.globals.collapsedSeriesIndices.indexOf(s)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(s)&&p.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(p),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+e.config.legend.position),p.classList.add("apexcharts-legend-series"),p.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",H.setAttrs(p,{rel:s+1,seriesName:B.escapeString(n[s]),"data:collapsed":c||h}),(c||h)&&p.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||p.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",this.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&0===e.config.legend.customLegendItems.length&&(e.globals.dom.elWrap.addEventListener("mousemove",this.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",this.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(t,e){var i,n=this.w,r=n.globals.dom.elLegendWrap,o=r.clientHeight,a=0;"bottom"===n.config.legend.position?a=n.globals.svgHeight-Math.min(o,n.globals.svgHeight/2)-5:"top"===n.config.legend.position&&(a=(0<(i=(o=new Ft(this.ctx)).dimHelpers.getTitleSubtitleCoords("title").height)?i-10:0)+(0<(i=o.dimHelpers.getTitleSubtitleCoords("subtitle").height)?i-10:0)),r.style.position="absolute",o=0+t+n.config.legend.offsetX,a=a+e+n.config.legend.offsetY,r.style.left=o+"px",r.style.top=a+"px","right"===n.config.legend.position&&(r.style.left="auto",r.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach(function(t){r.style[t]&&(r.style[t]=parseInt(n.config.legend[t],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var t=this.w,e=(t.globals.dom.elLegendWrap.style.right=0,(i=new Ft(this.ctx)).dimHelpers.getTitleSubtitleCoords("title")),i=i.dimHelpers.getTitleSubtitleCoords("subtitle"),n=0;"top"===t.config.legend.position&&(n=e.height+i.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,n)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendDimensions(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");"heatmap"===e.config.chart.type||this.isBarsDistributed?i&&(e=parseInt(t.target.getAttribute("rel"),10)-1,this.ctx.events.fireEvent("legendHover",[this.ctx,e,this.w]),new E(this.ctx).highlightRangeInSeries(t,t.target)):!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new E(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e,i,n,r=this.w;!r.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))&&(e=parseInt(t.target.getAttribute("rel"),10)-1,i="true"===t.target.getAttribute("data:collapsed"),"function"==typeof(n=this.w.config.chart.events.legendClick)&&n(this.ctx,e,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,e,this.w]),"function"==typeof(n=this.w.config.legend.markers.onClick)&&t.target.classList.contains("apexcharts-legend-marker")&&(n(this.ctx,e,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,e,this.w])),"treemap"!==r.config.chart.type)&&"heatmap"!==r.config.chart.type&&!this.isBarsDistributed&&r.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(e,i)}}]),Se),Bt=(t(Ae,[{key:"createToolbar",value:function(){function t(){return document.createElement("div")}var r=this,o=this.w,e=t();if(e.setAttribute("class","apexcharts-toolbar"),e.style.top=o.config.chart.toolbar.offsetY+"px",e.style.right=3-o.config.chart.toolbar.offsetX+"px",o.globals.dom.elWrap.appendChild(e),this.elZoom=t(),this.elZoomIn=t(),this.elZoomOut=t(),this.elPan=t(),this.elSelection=t(),this.elZoomReset=t(),this.elMenuIcon=t(),this.elMenu=t(),this.elCustomIcons=[],this.t=o.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var i=0;i<this.t.customIcons.length;i++)this.elCustomIcons.push(t());function n(t,e,i){var n=t.toLowerCase();r.t[n]&&o.config.chart.zoom.enabled&&s.push({el:e,icon:"string"==typeof r.t[n]?r.t[n]:i,title:r.localeValues[t],class:"apexcharts-".concat(n,"-icon")})}function a(t){r.t[t]&&o.config.chart[t].enabled&&s.push({el:"zoom"===t?r.elZoom:r.elSelection,icon:"string"==typeof r.t[t]?r.t[t]:"zoom"===t?'<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:r.localeValues["zoom"===t?"selectionZoom":"selection"],class:o.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(t,"-icon")})}var s=[];n("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'),n("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'),a("zoom"),a("selection"),this.t.pan&&o.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:o.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),n("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(t,e){t.index&&B.moveIndexInArray(s,e,t.index)});for(var c=0;c<s.length;c++)H.setAttrs(s[c].el,{class:s[c].class,title:s[c].title}),s[c].el.innerHTML=s[c].icon,e.appendChild(s[c].el);this._createHamburgerMenu(e),o.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):o.globals.panEnabled?this.elPan.classList.add(this.selectedClass):o.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),H.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,H.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{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(n){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls();var e="selection"===n?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,i="selection"===n?"selectionEnabled":"zoomEnabled";t.w.globals[i]=!t.w.globals[i],e.classList.contains(t.ctx.toolbar.selectedClass)?e.classList.remove(t.ctx.toolbar.selectedClass):e.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),"pan"===t?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e="pan"===t?this.elPan:this.elZoom,t="pan"===t?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),t&&t.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.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 t=this.w,e=(t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),(this.minX+this.maxX)/2),i=(this.minX+e)/2,e=(this.maxX+e)/2,i=this._getNewMinXMaxX(i,e);t.globals.disableZoomIn||this.zoomUpdateOptions(i.minX,i.maxX)}},{key:"handleZoomOut",value:function(){var t,e,i=this.w;i.globals.isRangeBar&&(this.minX=i.globals.minY,this.maxX=i.globals.maxY),"datetime"===i.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3||(t=(this.minX+this.maxX)/2,e=this.minX-(t-this.minX),t=this.maxX-(t-this.maxX),e=this._getNewMinXMaxX(e,t),i.globals.disableZoomOut)||this.zoomUpdateOptions(e.minX,e.maxX)}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i,n=this.w;void 0!==t||void 0!==e?n.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=n.globals.dataPoints),e-t<2)||(e={xaxis:t=(e=this.getBeforeZoomRange(t={min:t,max:e}))?e.xaxis:t},i=B.clone(n.globals.initialConfig.yaxis),n.config.chart.group||(e.yaxis=i),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(e,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(t,i)):this.handleZoomReset()}},{key:"zoomCallback",value:function(t,e){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e})}},{key:"getBeforeZoomRange",value:function(t,e){return"function"==typeof this.ev.beforeZoom?this.ev.beforeZoom(this,{xaxis:t,yaxis:e}):null}},{key:"toggleMenu",value:function(){var t=this;window.setTimeout(function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new wt(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach(function(t){var e=t.w,i=(e.globals.lastXAxis.min=e.globals.initialConfig.xaxis.min,e.globals.lastXAxis.max=e.globals.initialConfig.xaxis.max,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof e.config.chart.events.beforeResetZoom&&(i=e.config.chart.events.beforeResetZoom(t,e))&&t.updateHelpers.revertDefaultAxisMinMax(i),"function"==typeof e.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:e.config.xaxis.min,max:e.config.xaxis.max}),e.globals.zoomed=!1,t.ctx.series.emptyCollapsedSeries(B.clone(e.globals.initialSeries)));t.updateHelpers._updateSeries(i,e.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}}]),Ae),Ht=(i(h,Bt),pt=e(h),t(h,[{key:"init",value:function(t){var e=this,i=t.xyRatios,t=this.w,n=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=t.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),t.globals.dom.elGraphical.add(this.zoomRect),t.globals.dom.elGraphical.add(this.selectionRect),"x"===t.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===t.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:t.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=t.globals.dom.baseEl.querySelector("".concat(t.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(t){e.hoverArea.addEventListener(t,n.svgMouseEvents.bind(n,i),{capture:!1,passive:!0})}),t.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",n.mouseWheelEvent.bind(n),{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(t,e){var i,n=this.w,r=this,o=this.ctx.toolbar,a=(n.globals.zoomEnabled?n.config.chart.zoom:n.config.chart.selection).type,s=n.config.chart.toolbar.autoSelected;e.shiftKey?(this.shiftWasPressed=!0,o.enableZoomPanFromToolbar("pan"===s?"zoom":"pan")):this.shiftWasPressed&&(o.enableZoomPanFromToolbar(s),this.shiftWasPressed=!1),e.target&&(o=e.target.classList,e.target.parentNode&&null!==e.target.parentNode&&(i=e.target.parentNode.classList),o.contains("apexcharts-selection-rect")||o.contains("apexcharts-legend-marker")||o.contains("apexcharts-legend-text")||i&&i.contains("apexcharts-toolbar")||(r.clientX=("touchmove"===e.type||"touchstart"===e.type?e.touches[0]:"touchend"===e.type?e.changedTouches[0]:e).clientX,r.clientY=("touchmove"===e.type||"touchstart"===e.type?e.touches[0]:"touchend"===e.type?e.changedTouches[0]:e).clientY,"mousedown"===e.type&&1===e.which&&(s=r.gridRect.getBoundingClientRect(),r.startX=r.clientX-s.left,r.startY=r.clientY-s.top,r.dragged=!1,r.w.globals.mousedown=!0),("mousemove"===e.type&&1===e.which||"touchmove"===e.type)&&(r.dragged=!0,n.globals.panEnabled?(n.globals.selection=null,r.w.globals.mousedown&&r.panDragging({context:r,zoomtype:a,xyRatios:t})):(r.w.globals.mousedown&&n.globals.zoomEnabled||r.w.globals.mousedown&&n.globals.selectionEnabled)&&(r.selection=r.selectionDrawing({context:r,zoomtype:a}))),"mouseup"!==e.type&&"touchend"!==e.type&&"mouseleave"!==e.type||((i=null==(o=r.gridRect)?void 0:o.getBoundingClientRect())&&r.w.globals.mousedown&&(r.endX=r.clientX-i.left,r.endY=r.clientY-i.top,r.dragX=Math.abs(r.endX-r.startX),r.dragY=Math.abs(r.endY-r.startY),(n.globals.zoomEnabled||n.globals.selectionEnabled)&&r.selectionDrawn({context:r,zoomtype:a}),n.globals.panEnabled)&&n.config.xaxis.convertedCatToNumeric&&r.delayedPanScrolled(),n.globals.zoomEnabled&&r.hideSelectionRect(this.selectionRect),r.dragged=!1,r.w.globals.mousedown=!1),this.makeSelectionRectDraggable()))}},{key:"mouseWheelEvent",value:function(t){var e=this,i=this.w,n=(t.preventDefault(),Date.now());n-i.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(t),i.globals.lastWheelExecution=n),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){n-i.globals.lastWheelExecution>e.wheelDelay&&(e.executeMouseWheelZoom(t),i.globals.lastWheelExecution=n)},this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(t){var e,i,n,r,o,a=this.w,s=(this.minX=a.globals.isRangeBar?a.globals.minY:a.globals.minX,this.maxX=a.globals.isRangeBar?a.globals.maxY:a.globals.maxX,null==(s=this.gridRect)?void 0:s.getBoundingClientRect());s&&(s=(t.clientX-s.left)/s.width,r=this.minX,o=(i=this.maxX)-r,s=t.deltaY<0?(n=(t=r+s*o)-(e=.5*o)/2,t+e/2):(n=r-(e=1.5*o)/2,i+e/2),a.globals.isRangeBar||(n=Math.max(n,a.globals.initialMinX),(s=Math.min(s,a.globals.initialMaxX))-n<(t=.01*(a.globals.initialMaxX-a.globals.initialMinX))&&(n=(r=(n+s)/2)-t/2,s=r+t/2)),o=this._getNewMinXMaxX(n,s),isNaN(o.minX)||isNaN(o.maxX)||this.zoomUpdateOptions(o.minX,o.maxX))}},{key:"makeSelectionRectDraggable",value:function(){var t,e=this.w;this.selectionRect&&0<(t=this.selectionRect.node.getBoundingClientRect()).width&&0<t.height&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}},{key:"preselectedSelection",value:function(){var t,e,i=this.w,n=this.xyRatios;i.globals.zoomEnabled||(null!=i.globals.selection?this.drawSelectionRect(i.globals.selection):void 0!==i.config.chart.selection.xaxis.min&&void 0!==i.config.chart.selection.xaxis.max&&(t=(i.config.chart.selection.xaxis.min-i.globals.minX)/n.xRatio,e=i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/n.xRatio-t,i.globals.isRangeBar&&(t=(i.config.chart.selection.xaxis.min-i.globals.yAxisScale[0].niceMin)/n.invertedYRatio,e=(i.config.chart.selection.xaxis.max-i.config.chart.selection.xaxis.min)/n.invertedYRatio),n={x:t,y:0,width:e,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0},this.drawSelectionRect(n),this.makeSelectionRectDraggable(),"function"==typeof i.config.chart.events.selection)&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}}))}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,n=t.width,r=t.height,o=t.translateX,t=t.translateY,a=this.w,s=this.zoomRect,l=this.selectionRect;(this.dragged||null!==a.globals.selection)&&(o={transform:"translate("+(void 0===o?0:o)+", "+(void 0===t?0:t)+")"},a.globals.zoomEnabled&&this.dragged&&(s.attr({x:e,y:i,width:n=n<0?1:n,height:r,fill:a.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":a.config.chart.zoom.zoomedArea.fill.opacity,stroke:a.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":a.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":a.config.chart.zoom.zoomedArea.stroke.opacity}),H.setAttrs(s.node,o)),a.globals.selectionEnabled)&&(l.attr({x:e,y:i,width:0<n?n:0,height:0<r?r:0,fill:a.config.chart.selection.fill.color,"fill-opacity":a.config.chart.selection.fill.opacity,stroke:a.config.chart.selection.stroke.color,"stroke-width":a.config.chart.selection.stroke.width,"stroke-dasharray":a.config.chart.selection.stroke.dashArray,"stroke-opacity":a.config.chart.selection.stroke.opacity}),H.setAttrs(l.node,o))}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e=t.context,t=t.zoomtype,i=this.w,n=this.gridRect.getBoundingClientRect(),r=e.startX-1,o=e.startY,a=!1,s=!1,l=e.clientX-n.left-r,c=e.clientY-n.top-o;return Math.abs(l+r)>i.globals.gridWidth?l=i.globals.gridWidth-r:e.clientX-n.left<0&&(l=r),r>e.clientX-n.left&&(a=!0,l=Math.abs(l)),o>e.clientY-n.top&&(s=!0,c=Math.abs(c)),n="x"===t?{x:a?r-l:r,y:0,width:l,height:i.globals.gridHeight}:"y"===t?{x:0,y:s?o-c:o,width:i.globals.gridWidth,height:c}:{x:a?r-l:r,y:s?o-c:o,width:l,height:c},e.drawSelectionRect(n),e.selectionDragging("resizing"),n}},{key:"selectionDragging",value:function(t,e){function i(t){return parseFloat(l.node.getAttribute(t))}var o=this,a=this.w,s=this.xyRatios,l=this.selectionRect,n=0,t=("resizing"===t&&(n=30),{x:i("x"),y:i("y"),width:i("width"),height:i("height")});a.globals.selection=t,"function"==typeof a.config.chart.events.selection&&a.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var t,e,i,n=o.gridRect.getBoundingClientRect(),r=l.node.getBoundingClientRect(),r=a.globals.isRangeBar?(t=a.globals.yAxisScale[0].niceMin+(r.left-n.left)*s.invertedYRatio,e=a.globals.yAxisScale[0].niceMin+(r.right-n.left)*s.invertedYRatio,i=0,1):(t=a.globals.xAxisScale.niceMin+(r.left-n.left)*s.xRatio,e=a.globals.xAxisScale.niceMin+(r.right-n.left)*s.xRatio,i=a.globals.yAxisScale[0].niceMin+(n.bottom-r.bottom)*s.yRatio[0],a.globals.yAxisScale[0].niceMax-(r.top-n.top)*s.yRatio[0]);a.config.chart.events.selection(o.ctx,n={xaxis:{min:t,max:e},yaxis:{min:i,max:r}}),a.config.chart.brush.enabled&&void 0!==a.config.chart.events.brushScrolled&&a.config.chart.events.brushScrolled(o.ctx,n)},n))}},{key:"selectionDrawn",value:function(t){var i,e,n,r,o=t.context,t=t.zoomtype,a=this.w,s=o,l=this.xyRatios,o=this.ctx.toolbar,c=(s.startX>s.endX&&(c=s.startX,s.startX=s.endX,s.endX=c),void(s.endY<s.startY&&(c=s.startY,s.startY=s.endY,s.endY=c))),h=void 0,h=a.globals.isRangeBar?(c=a.globals.yAxisScale[0].niceMin+s.startX*l.invertedYRatio,a.globals.yAxisScale[0].niceMin+s.endX*l.invertedYRatio):(c=a.globals.xAxisScale.niceMin+s.startX*l.xRatio,a.globals.xAxisScale.niceMin+s.endX*l.xRatio),u=[],d=[];a.config.yaxis.forEach(function(t,e){var i=a.globals.seriesYAxisMap[e][0];u.push(a.globals.yAxisScale[e].niceMax-l.yRatio[i]*s.startY),d.push(a.globals.yAxisScale[e].niceMax-l.yRatio[i]*s.endY)}),s.dragged&&(10<s.dragX||10<s.dragY)&&c!==h&&(a.globals.zoomEnabled?(i=B.clone(a.globals.initialConfig.yaxis),e=B.clone(a.globals.initialConfig.xaxis),a.globals.zoomed=!0,a.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),h=Math.floor(h),c<1&&(c=1,h=a.globals.dataPoints),h-c<2)&&(h=c+1),"xy"!==t&&"x"!==t||(e={min:c,max:h}),"xy"!==t&&"y"!==t||i.forEach(function(t,e){i[e].min=d[e],i[e].max=u[e]}),o&&(r=o.getBeforeZoomRange(e,i))&&(e=r.xaxis||e,i=r.yaxis||i),r={xaxis:e},a.config.chart.group||(r.yaxis=i),s.ctx.updateHelpers._updateOptions(r,!1,s.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof a.config.chart.events.zoomed&&o.zoomCallback(e,i)):a.globals.selectionEnabled&&(n=null,r={min:c,max:h},"xy"!==t&&"y"!==t||(n=B.clone(a.config.yaxis)).forEach(function(t,e){n[e].min=d[e],n[e].max=u[e]}),a.globals.selection=s.selection,"function"==typeof a.config.chart.events.selection)&&a.config.chart.events.selection(s.ctx,{xaxis:r,yaxis:n}))}},{key:"panDragging",value:function(t){var t=t.context,e=this.w,i=(void 0!==e.globals.lastClientPosition.x&&(i=e.globals.lastClientPosition.x-t.clientX,n=e.globals.lastClientPosition.y-t.clientY,Math.abs(i)>Math.abs(n)&&0<i?this.moveDirection="left":Math.abs(i)>Math.abs(n)&&i<0?this.moveDirection="right":Math.abs(n)>Math.abs(i)&&0<n?this.moveDirection="up":Math.abs(n)>Math.abs(i)&&n<0&&(this.moveDirection="down")),e.globals.lastClientPosition={x:t.clientX,y:t.clientY},e.globals.isRangeBar?e.globals.minY:e.globals.minX),n=e.globals.isRangeBar?e.globals.maxY:e.globals.maxX;e.config.xaxis.convertedCatToNumeric||t.panScrolled(i,n)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,n=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+n,i=t.globals.maxX+n):"right"===this.moveDirection&&(e=t.globals.minX-n,i=t.globals.maxX-n),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,n=this.xyRatios,r=B.clone(i.globals.initialConfig.yaxis),o=n.xRatio,a=i.globals.minX,s=i.globals.maxX,n=(i.globals.isRangeBar&&(o=n.invertedYRatio,a=i.globals.minY,s=i.globals.maxY),"left"===this.moveDirection?(t=a+i.globals.gridWidth/15*o,e=s+i.globals.gridWidth/15*o):"right"===this.moveDirection&&(t=a-i.globals.gridWidth/15*o,e=s-i.globals.gridWidth/15*o),i.globals.isRangeBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=a,e=s),{xaxis:{min:t,max:e}});i.config.chart.group||(n.yaxis=r),this.updateScrolledChart(n,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var n=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof n.config.chart.events.scrolled&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),h),Yt=(t(ke,[{key:"getNearestValues",value:function(t){var e,i=t.hoverArea,n=t.elGrid,r=t.clientX,t=t.clientY,o=this.w,a=(n=n.getBoundingClientRect()).width,s=n.height,l=a/(o.globals.dataPoints-1),c=s/o.globals.dataPoints,h=this.hasBars(),r=(!o.globals.comboCharts&&!h||o.config.xaxis.convertedCatToNumeric||(l=a/o.globals.dataPoints),r-n.left-o.globals.barPadForNumericAxis),t=t-n.top,n=(r<0||t<0||a<r||s<t?(i.classList.remove("hovering-zoom"),i.classList.remove("hovering-pan")):o.globals.zoomEnabled?(i.classList.remove("hovering-pan"),i.classList.add("hovering-zoom")):o.globals.panEnabled&&(i.classList.remove("hovering-zoom"),i.classList.add("hovering-pan")),Math.round(r/l)),i=Math.floor(t/c),c=(h&&!o.config.xaxis.convertedCatToNumeric&&(n=Math.ceil(r/l),--n),null),h=o.globals.seriesXvalues.map(function(t){return t.filter(function(t){return B.isNumber(t)})}),l=o.globals.seriesYvalues.map(function(t){return t.filter(function(t){return B.isNumber(t)})});return o.globals.isXNumeric&&(a=r*((e=this.ttCtx.getElGrid().getBoundingClientRect()).width/a),c=(e=this.closestInMultiArray(a,e.height/s*t,h,l)).index,n=e.j,null!==c)&&(h=o.globals.seriesXvalues[c],n=this.closestInArray(a,h).index),o.globals.capturedSeriesIndex=null===c?-1:c,(!n||n<1)&&(n=0),o.globals.isBarHorizontal?o.globals.capturedDataPointIndex=i:o.globals.capturedDataPointIndex=n,{capturedSeries:c,j:o.globals.isBarHorizontal?i:n,hoverX:r,hoverY:t}}},{key:"closestInMultiArray",value:function(i,n,t,e){var r,o=this.w,a=0,s=null,l=-1,o=(1<o.globals.series.length?a=this.getFirstActiveXArray(t):s=0,t[a][0]),c=Math.abs(i-o);return t.forEach(function(t){t.forEach(function(t,e){(t=Math.abs(i-t))<=c&&(c=t,l=e)})}),-1!==l&&(o=e[a][l],r=Math.abs(n-o),s=a,e.forEach(function(t,e){(t=Math.abs(n-t[l]))<=r&&(r=t,s=e)})),{index:s,j:l}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,n=t.map(function(t,e){return 0<t.length?e:-1}),r=0;r<n.length;r++)if(-1!==n[r]&&-1===e.globals.collapsedSeriesIndices.indexOf(r)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(r)){i=n[r];break}return i}},{key:"closestInArray",value:function(t,e){for(var i=e[0],n=null,r=Math.abs(t-i),o=0;o<e.length;o++){var a=Math.abs(t-e[o]);a<r&&(r=a,n=o)}return{index:n}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter(function(t){return void 0!==t[0]});if(0<i.length)for(var n=0;n<i.length-1;n++)void 0!==i[n][t]&&void 0!==i[n+1][t]&&i[n][t]!==i[n+1][t]&&e.push("unEqual");return 0===e.length}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return A(t).reduce(function(t,e){return t+e.getBBox().height},0)}},{key:"getElMarkers",value:function(t){return"number"==typeof t?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap"),e=((t=A(t)).sort(function(t,e){return t=Number(t.getAttribute("data:realIndex")),(e=Number(e.getAttribute("data:realIndex")))<t?1:t<e?-1:0}),[]);return t.forEach(function(t){e.push(t.querySelector(".apexcharts-marker"))}),e}},{key:"hasMarkers",value:function(t){return 0<this.getElMarkers(t).length}},{key:"getPathFromPoint",value:function(t,e){var i=Number(t.getAttribute("cx")),n=Number(t.getAttribute("cy")),t=t.getAttribute("shape");return new H(this.ctx).getMarkerPath(i,n,t,e)}},{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 0<this.getElBars().length}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i?e.globals.markers.size[t]+e.config.markers.hover.sizeOffset:i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var n=i.allTooltipSeriesGroups,r=0;r<n.length;r++)"enable"===t?(n[r].classList.add("apexcharts-active"),n[r].style.display=e.config.tooltip.items.display):(n[r].classList.remove("apexcharts-active"),n[r].style.display="none")}}]),ke),Xt=(t(we,[{key:"drawSeriesTexts",value:function(t){var e=void 0===(e=t.shared)||e,i=t.ttItems,n=void 0===(n=t.i)?0:n,r=void 0===(r=t.j)?null:r,o=t.e,t=(void 0!==(a=this.w).config.tooltip.custom?this.handleCustomTooltip({i:n,j:r,y1:t.y1,y2:t.y2,w:a}):this.toggleActiveInactiveSeries(e,n),this.getValuesToPrint({i:n,j:r})),a=(this.printLabels({i:n,j:r,values:t,ttItems:i,shared:e,e:o}),this.ttCtx.getElTooltip());this.ttCtx.tooltipRect.ttWidth=a.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=a.getBoundingClientRect().height}},{key:"printLabels",value:function(t){function r(t){return d.globals.seriesGoals[t]&&d.globals.seriesGoals[t][l]&&Array.isArray(d.globals.seriesGoals[t][l])}var o,a=this,s=t.i,l=t.j,e=t.values,c=t.ttItems,h=t.shared,u=t.e,d=this.w,f=[],p=e.xVal,g=e.zVal,m=e.xAxisTTVal,b="",v=d.globals.colors[s];null!==l&&d.config.plotOptions.bar.distributed&&(v=d.globals.colors[l]);for(var i=0,n=d.globals.series.length-1;i<d.globals.series.length;i++,n--)((t,e)=>{var i=a.getFormatters(s),n=(b=a.getSeriesName({fn:i.yLbTitleFormatter,index:s,seriesIndex:s,j:l}),"treemap"===d.config.chart.type&&(b=i.yLbTitleFormatter(String(d.config.series[s].data[l].x),{series:d.globals.series,seriesIndex:s,dataPointIndex:l,w:d})),d.config.tooltip.inverseOrder?e:t);d.globals.axisCharts&&(e=function(t){var e;return d.globals.isRangeData?i.yLbFormatter(null==(e=d.globals.seriesRangeStart)||null==(e=e[t])?void 0:e[l],{series:d.globals.seriesRangeStart,seriesIndex:t,dataPointIndex:l,w:d})+" - "+i.yLbFormatter(null==(e=d.globals.seriesRangeEnd)||null==(e=e[t])?void 0:e[l],{series:d.globals.seriesRangeEnd,seriesIndex:t,dataPointIndex:l,w:d}):i.yLbFormatter(d.globals.series[t][l],{series:d.globals.series,seriesIndex:t,dataPointIndex:l,w:d})},h?(i=a.getFormatters(n),b=a.getSeriesName({fn:i.yLbTitleFormatter,index:n,seriesIndex:s,j:l}),v=d.globals.colors[n],o=e(n),r(n)&&(f=d.globals.seriesGoals[n][l].map(function(t){return{attrs:t,val:i.yLbFormatter(t.value,{seriesIndex:n,dataPointIndex:l,w:d})}}))):((t=null==u||null==(t=u.target)?void 0:t.getAttribute("fill"))&&(-1!==t.indexOf("url")?-1!==t.indexOf("Pattern")&&(v=d.globals.dom.baseEl.querySelector(t.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):v=t),o=e(s),r(s)&&Array.isArray(d.globals.seriesGoals[s][l])&&(f=d.globals.seriesGoals[s][l].map(function(t){return{attrs:t,val:i.yLbFormatter(t.value,{seriesIndex:s,dataPointIndex:l,w:d})}})))),null===l&&(o=i.yLbFormatter(d.globals.series[s],M(M({},d),{},{seriesIndex:s,dataPointIndex:s}))),a.DOMHandling({i:s,t:n,j:l,ttItems:c,values:{val:o,goalVals:f,xVal:p,xAxisTTVal:m,zVal:g},seriesName:b,shared:h,pColor:v})})(i,n)}},{key:"getFormatters",value:function(t){var e,i=this.w,n=i.globals.yLabelFormatters[t];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(n=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(n=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,{yLbFormatter:n="function"!=typeof n?i.globals.yLabelFormatters[0]||function(t){return t}:n,yLbTitleFormatter:e="function"!=typeof e?function(t){return t}:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.seriesIndex,n=t.j,r=this.w;return e(String(r.globals.seriesNames[t.index]),{series:r.globals.series,seriesIndex:i,dataPointIndex:n,w:r})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=t.j,n=t.ttItems,r=t.values,o=t.seriesName,a=t.shared,t=t.pColor,s=this.w,l=this.ttCtx,c=r.val,h=r.goalVals,u=r.xVal,d=r.xAxisTTVal,r=r.zVal,f=null,f=n[e].children,p=(s.config.tooltip.fillSeriesColor&&(n[e].style.backgroundColor=t,f[0].style.display="none"),l.showTooltipTitle&&(null===l.tooltipTitle&&(l.tooltipTitle=s.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),l.tooltipTitle.innerHTML=u),l.isXAxisTooltipEnabled&&(l.xaxisTooltipText.innerHTML=""!==d?d:u),(d=n[e].querySelector(".apexcharts-tooltip-text-y-label"))&&(d.innerHTML=o||""),(u=n[e].querySelector(".apexcharts-tooltip-text-y-value"))&&(u.innerHTML=void 0!==c?c:""),f[0]&&f[0].classList.contains("apexcharts-tooltip-marker")&&(s.config.tooltip.marker.fillColors&&Array.isArray(s.config.tooltip.marker.fillColors)&&(t=s.config.tooltip.marker.fillColors[e]),f[0].style.backgroundColor=t),s.config.tooltip.marker.show||(f[0].style.display="none"),n[e].querySelector(".apexcharts-tooltip-text-goals-label")),g=n[e].querySelector(".apexcharts-tooltip-text-goals-value");h.length&&s.globals.seriesGoals[e]&&(d=function(){var i="<div >",n="<div>";h.forEach(function(t,e){i+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(t.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(t.attrs.name,"</div>"),n+="<div>".concat(t.val,"</div>")}),p.innerHTML=i+"</div>",g.innerHTML=n+"</div>"},!a||s.globals.seriesGoals[e][i]&&Array.isArray(s.globals.seriesGoals[e][i]))?d():(p.innerHTML="",g.innerHTML=""),null!==r&&(n[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=s.config.tooltip.z.title,n[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==r?r:""),a&&f[0]?(s.config.tooltip.hideEmptySeries&&(o=n[e].querySelector(".apexcharts-tooltip-marker"),u=n[e].querySelector(".apexcharts-tooltip-text"),0==parseFloat(c)?(o.style.display="none",u.style.display="none"):(o.style.display="block",u.style.display="block")),null==c||-1<s.globals.ancillaryCollapsedSeriesIndices.indexOf(e)||-1<s.globals.collapsedSeriesIndices.indexOf(e)||Array.isArray(l.tConfig.enabledOnSeries)&&-1===l.tConfig.enabledOnSeries.indexOf(e)?f[0].parentNode.style.display="none":f[0].parentNode.style.display=s.config.tooltip.items.display):Array.isArray(l.tConfig.enabledOnSeries)&&-1===l.tConfig.enabledOnSeries.indexOf(e)&&(f[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(t,e){var i=this.w;t?this.tooltipUtil.toggleAllTooltipSeriesGroups("enable"):(this.tooltipUtil.toggleAllTooltipSeriesGroups("disable"),(t=i.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(e)))&&(t.classList.add("apexcharts-active"),t.style.display=i.config.tooltip.items.display))}},{key:"getValuesToPrint",value:function(t){var e=t.i,t=t.j,i=this.w,n=this.ctx.series.filteredSeriesX(),r="",o="",a=null,s=null,l={series:i.globals.series,seriesIndex:e,dataPointIndex:t,w:i},c=i.globals.ttZFormatter,n=(null===t?s=i.globals.series[e]:i.globals.isXNumeric&&"treemap"!==i.config.chart.type?(r=n[e][t],0===n[e].length&&(r=n[this.tooltipUtil.getFirstActiveXArray(n)][t])):r=new xt(this.ctx).isFormatXY()?void 0!==i.config.series[e].data[t]?i.config.series[e].data[t].x:"":void 0!==i.globals.labels[t]?i.globals.labels[t]:"",r),r=i.globals.isXNumeric&&"datetime"===i.config.xaxis.type?new g(this.ctx).xLabelFormat(i.globals.ttKeyFormatter,n,n,{i:void 0,dateFormatter:new x(this.ctx).formatDate,w:this.w}):i.globals.isBarHorizontal?i.globals.yLabelFormatters[0](n,l):i.globals.xLabelFormatter(n,l);return void 0!==i.config.tooltip.x.formatter&&(r=i.globals.ttKeyFormatter(n,l)),0<i.globals.seriesZ.length&&0<i.globals.seriesZ[e].length&&(a=c(i.globals.seriesZ[e][t],i)),o="function"==typeof i.config.xaxis.tooltip.formatter?i.globals.xaxisTooltipFormatter(n,l):r,{val:Array.isArray(s)?s.join(" "):s,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:a}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,n=t.y1,r=t.y2,t=t.w,o=this.ttCtx.getElTooltip(),a=t.config.tooltip.custom;Array.isArray(a)&&a[e]&&(a=a[e]),o.innerHTML=a({ctx:this.ctx,series:t.globals.series,seriesIndex:e,dataPointIndex:i,y1:n,y2:r,w:t})}}]),we),Wt=(t(xe,[{key:"moveXCrosshairs",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,n=this.w,r=i.getElXCrosshairs(),t=t-i.xcrosshairsWidth/2,o=n.globals.labels.slice().length;null!==e&&(t=n.globals.gridWidth/o*e),null===r||n.globals.isBarHorizontal||(r.setAttribute("x",t),r.setAttribute("x1",t),r.setAttribute("x2",t),r.setAttribute("y2",n.globals.gridHeight),r.classList.add("apexcharts-active")),(t=t<0?0:t)>n.globals.gridWidth&&(t=n.globals.gridWidth),i.isXAxisTooltipEnabled&&(o=t,"tickWidth"!==n.config.xaxis.crosshairs.width&&"barWidth"!==n.config.xaxis.crosshairs.width||(o=t+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o))}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&H.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&H.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e,i=this.w,n=this.ttCtx;null!==n.xaxisTooltip&&0!==n.xcrosshairsWidth&&(n.xaxisTooltip.classList.add("apexcharts-active"),e=n.xaxisOffY+i.config.xaxis.tooltip.offsetY+i.globals.translateY+1+i.config.xaxis.offsetY,t-=n.xaxisTooltip.getBoundingClientRect().width/2,isNaN(t)||(t+=i.globals.translateX,i=new H(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=i.width+"px",n.xaxisTooltip.style.left=t+"px",n.xaxisTooltip.style.top=e+"px"))}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx,n=(null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")),parseInt(i.ycrosshairsHidden.getAttribute("y1"),10)),n=e.globals.translateY+n,r=i.yaxisTTEls[t].getBoundingClientRect().height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),n-=r/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=n+"px",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=this.w,r=this.ttCtx,o=r.getElTooltip(),a=r.tooltipRect,i=null!==i?parseFloat(i):1,t=parseFloat(t)+i+5,e=parseFloat(e)+i/2;(t=(t=t>n.globals.gridWidth/2?t-a.ttWidth-i-10:t)>n.globals.gridWidth-a.ttWidth-10?n.globals.gridWidth-a.ttWidth:t)<-20&&(t=-20),n.config.tooltip.followCursor?(i=r.getElGrid().getBoundingClientRect(),(t=r.e.clientX-i.left)>n.globals.gridWidth/2&&(t-=r.tooltipRect.ttWidth),(e=r.e.clientY+n.globals.translateY-i.top)>n.globals.gridHeight/2&&(e-=r.tooltipRect.ttHeight)):n.globals.isBarHorizontal||a.ttHeight/2+e>n.globals.gridHeight&&(e=n.globals.gridHeight-a.ttHeight+n.globals.translateY),isNaN(t)||(t+=n.globals.translateX,o.style.left=t+"px",o.style.top=e+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,n=this.ttCtx;if(0<i.globals.markers.size[t])for(var r=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),o=0;o<r.length;o++)parseInt(r[o].getAttribute("rel"),10)===e&&(n.marker.resetPointsSize(),n.marker.enlargeCurrentPoint(e,r[o]));else n.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i=this.w,n=this.ttCtx,r=new H(this.ctx),o=i.globals.pointsArray,a=n.tooltipUtil.getHoverMarkerSize(e),s=i.config.series[e].type;s&&("column"===s||"candlestick"===s||"boxPlot"===s)||(s=null==(s=o[e][t])?void 0:s[0],t=(null==(o=o[e][t])?void 0:o[1])||0,(o=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers path")))&&t<i.globals.gridHeight&&0<t&&(e=o.getAttribute("shape"),i=r.getMarkerPath(s,t,e,1.5*a),o.setAttribute("d",i)),this.moveXCrosshairs(s),n.fixedTooltip)||this.moveTooltip(s,t,a)}},{key:"moveDynamicPointsOnHover",value:function(t){var e=this.ttCtx,i=e.w,n=0,r=0,o=i.globals.pointsArray,a=new E(this.ctx),s=new H(this.ctx),a=a.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]),l=e.tooltipUtil.getHoverMarkerSize(a),c=(o[a]&&(n=o[a][t][0],r=o[a][t][1]),e.tooltipUtil.getAllMarkers());if(null!==c)for(var h=0;h<i.globals.series.length;h++){var u,d,f,p=o[h];i.globals.comboCharts&&void 0===p&&c.splice(h,0,null),p&&p.length&&(p=o[h][t][1],c[h].setAttribute("cx",n),u=c[h].getAttribute("shape"),"rangeArea"!==i.config.chart.type||i.globals.comboCharts||(f=t+i.globals.series[h].length,d=o[h][f][1],p-=Math.abs(p-d)/2),null!==p&&!isNaN(p)&&p<i.globals.gridHeight+l&&0<p+l?(f=s.getMarkerPath(n,p,u,l),c[h].setAttribute("d",f)):c[h].setAttribute("d",""))}this.moveXCrosshairs(n),e.fixedTooltip||this.moveTooltip(n,r||i.globals.gridHeight,l)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,n=this.ttCtx,r=(i.globals.columnSeries||i.globals.series).length,o=2<=r&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1,e=(i.globals.isBarHorizontal&&(o=new E(this.ctx).getActiveConfigSeriesIndex("desc")+1),(o=(o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(o,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"']")))||"number"!=typeof e?o:i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"']")))?parseFloat(o.getAttribute("cx")):0),a=o?parseFloat(o.getAttribute("cy")):0,s=o?parseFloat(o.getAttribute("barWidth")):0,l=n.getElGrid().getBoundingClientRect(),c=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(o&&!c&&(e-=r%2!=0?s/2:0),o&&c&&i.globals.comboCharts&&(e-=s/2)):i.globals.isBarHorizontal||(e=n.xAxisTicksPositions[t-1]+n.dataPointsDividedWidth/2,isNaN(e)&&(e=n.xAxisTicksPositions[t]-n.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?a-=n.tooltipRect.ttHeight:i.config.tooltip.followCursor?a=n.e.clientY-l.top-n.tooltipRect.ttHeight/2:a+n.tooltipRect.ttHeight+15>i.globals.gridHeight&&(a=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(e),n.fixedTooltip||this.moveTooltip(e,a||i.globals.gridHeight)}}]),xe),qt=(t(ye,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new H(this.ctx),i=new w(this.ctx),n=A(n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series"));t.config.chart.stacked&&n.sort(function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))});for(var r=0;r<n.length;r++){var o,a,s=n[r].querySelector(".apexcharts-series-markers-wrap");null!==s&&(o=void 0,a="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4)),"line"!==t.config.chart.type&&"area"!==t.config.chart.type||t.globals.comboCharts||t.config.tooltip.intersect||(a+=" no-pointer-events"),a=i.getMarkerConfig({cssClass:a,seriesIndex:Number(s.getAttribute("data:realIndex"))}),(o=e.drawMarker(0,0,a)).node.setAttribute("default-marker-size",0),(a=document.createElementNS(t.globals.SVGNS,"g")).classList.add("apexcharts-series-markers"),a.appendChild(o.node),s.appendChild(a))}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=this.w,t=("bubble"!==r.config.chart.type&&this.newPointSize(t,e),e.getAttribute("cx")),e=e.getAttribute("cy");null!==i&&null!==n&&(t=i,e=n),this.tooltipPosition.moveXCrosshairs(t),this.fixedTooltip||("radar"===r.config.chart.type&&(i=this.ttCtx.getElGrid().getBoundingClientRect(),t=this.ttCtx.e.clientX-i.left),this.tooltipPosition.moveTooltip(t,e,r.config.markers.hover.size))}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this.ttCtx,n=t,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=e.config.markers.hover.size,a=0;a<r.length;a++){var s=r[a].getAttribute("rel"),l=r[a].getAttribute("index");void 0===o&&(o=e.globals.markers.size[l]+e.config.markers.hover.sizeOffset),n===parseInt(s,10)?(this.newPointSize(n,r[a]),l=r[a].getAttribute("cx"),s=r[a].getAttribute("cy"),this.tooltipPosition.moveXCrosshairs(l),i.fixedTooltip||this.tooltipPosition.moveTooltip(l,s,o)):this.oldPointSize(r[a])}}},{key:"newPointSize",value:function(t,e){var i=this.w,n=i.config.markers.hover.size;"0"!==(t=0===t?e.parentNode.firstChild:e.parentNode.lastChild).getAttribute("default-marker-size")&&(t=parseInt(t.getAttribute("index"),10),void 0===n&&(n=i.globals.markers.size[t]+i.config.markers.hover.sizeOffset),t=this.ttCtx.tooltipUtil.getPathFromPoint(e,n=n<0?0:n),e.setAttribute("d",t))}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size")),e=this.ttCtx.tooltipUtil.getPathFromPoint(t,e);t.setAttribute("d",e)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));B.isNumber(i)&&0<=i?(i=this.ttCtx.tooltipUtil.getPathFromPoint(t[e],i),t[e].setAttribute("d",i)):t[e].setAttribute("d","M0,0")}}}]),ye),Gt=(t(ve,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e,i,n,r,o,a=t.e,s=t.opt,l=t.x,c=t.y,h=this.ttCtx,u=this.w;return a.target.classList.contains("apexcharts-".concat(t.type,"-rect"))&&(t=this.getAttr(a,"i"),e=this.getAttr(a,"j"),i=this.getAttr(a,"cx"),n=this.getAttr(a,"cy"),r=this.getAttr(a,"width"),o=this.getAttr(a,"height"),h.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:t,j:e,shared:!1,e:a}),u.globals.capturedSeriesIndex=t,u.globals.capturedDataPointIndex=e,l=i+h.tooltipRect.ttWidth/2+r,c=n+h.tooltipRect.ttHeight/2-o/2,h.tooltipPosition.moveXCrosshairs(i+r/2),l>u.globals.gridWidth/2&&(l=i-h.tooltipRect.ttWidth/2+r),h.w.config.tooltip.followCursor)&&(s=u.globals.dom.elWrap.getBoundingClientRect(),l=u.globals.clientX-s.left-(l>u.globals.gridWidth/2?h.tooltipRect.ttWidth:0),c=u.globals.clientY-s.top-(c>u.globals.gridHeight/2?h.tooltipRect.ttHeight:0)),{x:l,y:c}}},{key:"handleMarkerTooltip",value:function(t){var e,i,n,r,o,a,s=t.e,l=t.opt,c=t.x,t=t.y,h=this.w,u=this.ttCtx;return s.target.classList.contains("apexcharts-marker")&&(e=parseInt(l.paths.getAttribute("cx"),10),i=parseInt(l.paths.getAttribute("cy"),10),n=parseFloat(l.paths.getAttribute("val")),r=parseInt(l.paths.getAttribute("rel"),10),o=parseInt(l.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,u.intersect&&(a=B.findAncestor(l.paths,"apexcharts-series"))&&(o=parseInt(a.getAttribute("data:realIndex"),10)),u.tooltipLabels.drawSeriesTexts({ttItems:l.ttItems,i:o,j:r,shared:!u.showOnIntersect&&h.config.tooltip.shared,e:s}),"mouseup"===s.type&&u.markerClick(s,o,r),h.globals.capturedSeriesIndex=o,h.globals.capturedDataPointIndex=r,c=e,t=i+h.globals.translateY-1.4*u.tooltipRect.ttHeight,u.w.config.tooltip.followCursor&&(a=u.getElGrid().getBoundingClientRect(),t=u.e.clientY+h.globals.translateY-a.top),u.marker.enlargeCurrentPoint(r,l.paths,c,t=n<0?i:t)),{x:c,y:t}}},{key:"handleBarTooltip",value:function(t){var e,i=t.e,t=t.opt,n=this.w,r=this.ttCtx,o=r.getElTooltip(),a=0,s=0,l=0,c=(i=this.getBarTooltipXY({e:i,opt:t})).i,h=i.j,h=(n.globals.capturedSeriesIndex=c,n.globals.capturedDataPointIndex=h,n.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!n.config.tooltip.shared?(s=i.x,l=i.y,e=Array.isArray(n.config.stroke.width)?n.config.stroke.width[c]:n.config.stroke.width,a=s):n.globals.comboCharts||n.config.tooltip.shared||(a/=2),isNaN(l)&&(l=n.globals.svgHeight-r.tooltipRect.ttHeight),parseInt(t.paths.parentNode.getAttribute("data:realIndex"),10));n.globals.isMultipleYAxis?n.config.yaxis[h]&&n.config.yaxis[h].reversed:n.config.yaxis[0].reversed,s+r.tooltipRect.ttWidth>n.globals.gridWidth?s-=r.tooltipRect.ttWidth:s<0&&(s=0),r.w.config.tooltip.followCursor&&(i=r.getElGrid().getBoundingClientRect(),l=r.e.clientY-i.top),null===r.tooltip&&(r.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(0<n.globals.comboBarCount?r.tooltipPosition.moveXCrosshairs(a+e/2):r.tooltipPosition.moveXCrosshairs(a)),!r.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(l=l+n.globals.translateY-r.tooltipRect.ttHeight/2,o.style.left=s+n.globals.translateX+"px",o.style.top=l+"px")}},{key:"getBarTooltipXY",value:function(t){var e,i,n,r,o,a,s,l,c,h=this,u=t.e,t=t.opt,d=this.w,f=null,p=this.ttCtx,g=0,m=0,b=0,v=0,y=0,x=u.target.classList;return(x.contains("apexcharts-bar-area")||x.contains("apexcharts-candlestick-area")||x.contains("apexcharts-boxPlot-area")||x.contains("apexcharts-rangebar-area"))&&(a=(x=u.target).getBoundingClientRect(),e=t.elGrid.getBoundingClientRect(),i=a.height,y=a.height,n=a.width,r=parseInt(x.getAttribute("cx"),10),o=parseInt(x.getAttribute("cy"),10),v=parseFloat(x.getAttribute("barWidth")),a=("touchmove"===u.type?u.touches[0]:u).clientX,f=parseInt(x.getAttribute("j"),10),g=parseInt(x.parentNode.getAttribute("rel"),10)-1,s=x.getAttribute("data-range-y1"),l=x.getAttribute("data-range-y2"),d.globals.comboCharts&&(g=parseInt(x.parentNode.getAttribute("data:realIndex"),10)),x=function(t){return d.globals.isXNumeric?r-n/2:h.isVerticalGroupedRangeBar?r+n/2:r-p.dataPointsDividedWidth+n/2},c=function(){return o-p.dataPointsDividedHeight+i/2-p.tooltipRect.ttHeight/2},p.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:g,j:f,y1:s?parseInt(s,10):null,y2:l?parseInt(l,10):null,shared:!p.showOnIntersect&&d.config.tooltip.shared,e:u}),b=d.config.tooltip.followCursor?d.globals.isBarHorizontal?(m=a-e.left+15,c()):(m=x(),u.clientY-e.top-p.tooltipRect.ttHeight/2-15):d.globals.isBarHorizontal?((m=r)<p.xyRatios.baseLineInvertedY&&(m=r-p.tooltipRect.ttWidth),c()):(m=x(),o)),{x:m,y:b,barHeight:y,barWidth:v,i:g,j:f}}}]),ve),Vt=(t(be,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i="bottom"===t.config.xaxis.position,i=(e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3,i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top"),n=t.globals.dom.elWrap;e.isXAxisTooltipEnabled&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+t.config.tooltip.theme),n.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=0;i<t.config.yaxis.length;i++){var n=t.config.yaxis[i].opposite||t.config.yaxis[i].crosshairs.opposite,n=(e.yaxisOffX=n?t.globals.gridWidth+1:1,"apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,n?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left")),r=t.globals.dom.elWrap;null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",n+" apexcharts-theme-"+t.config.tooltip.theme),r.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[i]=document.createElement("div"),e.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[i]))}}},{key:"setXCrosshairWidth",value:function(){var t,e=this.w,i=this.ttCtx,n=i.getElXCrosshairs();i.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts?null!==(t=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area"))&&"barWidth"===e.config.xaxis.crosshairs.width?(t=parseFloat(t.getAttribute("barWidth")),i.xcrosshairsWidth=t):"tickWidth"===e.config.xaxis.crosshairs.width&&(t=e.globals.labels.length,i.xcrosshairsWidth=e.globals.gridWidth/t):"tickWidth"===e.config.xaxis.crosshairs.width?(t=e.globals.labels.length,i.xcrosshairsWidth=e.globals.gridWidth/t):"barWidth"===e.config.xaxis.crosshairs.width&&(null!==(t=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area"))?(t=parseFloat(t.getAttribute("barWidth")),i.xcrosshairsWidth=t):i.xcrosshairsWidth=1),e.globals.isBarHorizontal&&(i.xcrosshairsWidth=0),null!==n&&0<i.xcrosshairsWidth&&n.setAttribute("width",i.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var n,r,o,a,s=this.ttCtx,l=this.w,c=l.globals,h=c.seriesYAxisMap[t];s.yaxisTooltips[t]&&0<h.length&&(n=c.yLabelFormatters[t],r=s.getElGrid().getBoundingClientRect(),h=h[0],o=0,1<i.yRatio.length&&(o=h),i=(e-r.top)*i.yRatio[o],o=c.maxYArr[h]-c.minYArr[h],a=c.minYArr[h]+(o-i),l.config.yaxis[t].reversed&&(a=c.maxYArr[h]-(o-i)),s.tooltipPosition.moveYCrosshairs(e-r.top),s.yaxisTooltipText[t].innerHTML=n(a),s.tooltipPosition.moveYAxisTooltip(t))}}]),be),Ut=(t(me,[{key:"getElTooltip",value:function(t){return(t=t||this).w.globals.dom.baseEl?t.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(t){var e,i=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=i.config.xaxis.tooltip.enabled&&i.globals.axisCharts,this.yaxisTooltips=i.config.yaxis.map(function(t,e){return!!(t.show&&t.tooltip.enabled&&i.globals.axisCharts)}),this.allTooltipSeriesGroups=[],i.globals.axisCharts||(this.showTooltipTitle=!1),(t=document.createElement("div")).classList.add("apexcharts-tooltip"),i.config.tooltip.cssClass&&t.classList.add(i.config.tooltip.cssClass),t.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),i.globals.dom.elWrap.appendChild(t),i.globals.axisCharts&&(this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair(),e=new f(this.ctx),this.xAxisTicksPositions=e.getXAxisTicksPositions()),!i.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==i.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==i.config.markers.size&&0!==i.globals.markers.largestSize||this.marker.drawDynamicPoints(this),i.globals.collapsedSeries.length!==i.globals.series.length&&(this.dataPointsDividedHeight=i.globals.gridHeight/i.globals.dataPoints,this.dataPointsDividedWidth=i.globals.gridWidth/i.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||i.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,t.appendChild(this.tooltipTitle)),e=i.globals.series.length,(i.globals.xyCharts||i.globals.comboCharts)&&this.tConfig.shared&&(e=this.showOnIntersect?1:i.globals.series.length),this.legendLabels=i.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(e),this.addSVGEvents())}},{key:"createTTElements",value:function(r){for(var o=this,a=this.w,s=[],l=this.getElTooltip(),t=0;t<r;t++)(t=>{var e=document.createElement("div"),i=(e.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(t)),e.style.order=a.config.tooltip.inverseOrder?r-t:t+1,document.createElement("span")),n=(i.classList.add("apexcharts-tooltip-marker"),i.style.backgroundColor=a.globals.colors[t],e.appendChild(i),document.createElement("div"));n.classList.add("apexcharts-tooltip-text"),n.style.fontFamily=o.tConfig.style.fontFamily||a.config.chart.fontFamily,n.style.fontSize=o.tConfig.style.fontSize,["y","goals","z"].forEach(function(t){var e=document.createElement("div"),i=(e.classList.add("apexcharts-tooltip-".concat(t,"-group")),document.createElement("span"));i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i),(i=document.createElement("span")).classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(i),n.appendChild(e)}),e.appendChild(n),l.appendChild(e),s.push(e)})(t);return s}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),n=!("bar"!==e&&"candlestick"!==e&&"boxPlot"!==e&&"rangeBar"!==e),r="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,o=t.globals.dom.Paper.node;(c=this.getElGrid())&&(this.seriesBound=c.getBoundingClientRect());var a,s=[],l=[],c={hoverArea:o,elGrid:c,tooltipEl:i,tooltipY:s,tooltipX:l,ttItems:this.ttItems};if(t.globals.axisCharts&&(r?a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):n?a=t.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"!==e&&"treemap"!==e||(a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),a)&&a.length)for(var h=0;h<a.length;h++)s.push(a[h].getAttribute("cy")),l.push(a[h].getAttribute("cx"));t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||n&&this.tooltipUtil.hasBars()&&this.tConfig.shared?this.addPathsEventListeners([o],c):n&&!t.globals.comboCharts||r&&this.showOnIntersect?this.addDatapointEventsListeners(c):t.globals.axisCharts&&"heatmap"!==e&&"treemap"!==e||(i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series"),this.addPathsEventListeners(i,c)),this.showOnIntersect&&(0<(o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker")).length&&this.addPathsEventListeners(o,c),this.tooltipUtil.hasBars())&&!this.tConfig.shared&&this.addDatapointEventsListeners(c)}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=(n=e.getBoundingClientRect()).width+10,n=n.height+10,r=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,a=this.tConfig.fixed.position.toLowerCase();return-1<a.indexOf("right")&&(r=r+t.globals.svgWidth-i+10),-1<a.indexOf("bottom")&&(o=o+t.globals.svgHeight-n-10),e.style.left=r+"px",e.style.top=o+"px",{x:r,y:o,ttWidth:i,ttHeight:n}}},{key:"addDatapointEventsListeners",value:function(t){var e=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(e,t)}},{key:"addPathsEventListeners",value:function(n,t){for(var r=this,e=0;e<n.length;e++)(e=>{var i={paths:n[e],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 n[e].addEventListener(t,r.onSeriesHover.bind(r,i),{capture:!1,passive:!0})})})(e)}},{key:"onSeriesHover",value:function(t,e){var i=this,n=Date.now()-this.lastHoverTime;100<=n?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(t,e)},100-n))}},{key:"seriesHover",value:function(i,n){var r=this,t=(this.lastHoverTime=Date.now(),[]),e=this.w;e.config.chart.group&&(t=this.ctx.getGroupedCharts()),e.globals.axisCharts&&(e.globals.minX===-1/0&&e.globals.maxX===1/0||0===e.globals.dataPoints)||(t.length?t.forEach(function(t){var e=r.getElTooltip(t),e={paths:i.paths,tooltipEl:e,tooltipY:i.tooltipY,tooltipX:i.tooltipX,elGrid:i.elGrid,hoverArea:i.hoverArea,ttItems:t.w.globals.tooltip.ttItems};t.w.globals.minX===r.w.globals.minX&&t.w.globals.maxX===r.w.globals.maxX&&t.w.globals.tooltip.seriesHoverByContext({chartCtx:t,ttCtx:t.w.globals.tooltip,opt:e,e:n})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:i,e:n}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,n=t.opt,t=t.e,r=e.w,o=this.getElTooltip(e);o&&(i.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},i.e=t,!i.tooltipUtil.hasBars()||r.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new E(e).toggleSeriesOnHover(t,t.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:t,opt:n,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:t,opt:n,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e=t.e,t=t.opt,i=this.w,n=t.elGrid.getBoundingClientRect(),r=("touchmove"===e.type?e.touches[0]:e).clientX,o=("touchmove"===e.type?e.touches[0]:e).clientY;if(this.clientY=o,this.clientX=r,i.globals.capturedSeriesIndex=-1,i.globals.capturedDataPointIndex=-1,o<n.top||o>n.top+n.height)this.handleMouseOut(t);else if(Array.isArray(this.tConfig.enabledOnSeries)&&!i.config.tooltip.shared&&(n=parseInt(t.paths.getAttribute("index"),10),this.tConfig.enabledOnSeries.indexOf(n)<0))this.handleMouseOut(t);else{var n=this.getElTooltip(),a=this.getElXCrosshairs(),s=[],l=(i.config.chart.group&&(s=this.ctx.getSyncedCharts()),i.globals.xyCharts||"bar"===i.config.chart.type&&!i.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||i.globals.comboCharts&&this.tooltipUtil.hasBars());if("mousemove"===e.type||"touchmove"===e.type||"mouseup"===e.type){if(i.globals.collapsedSeries.length+i.globals.ancillaryCollapsedSeries.length!==i.globals.series.length){null!==a&&a.classList.add("apexcharts-active");var c,h,a=this.yaxisTooltips.filter(function(t){return!0===t});if(null!==this.ycrosshairs&&a.length&&this.ycrosshairs.classList.add("apexcharts-active"),l&&!this.showOnIntersect||1<s.length?this.handleStickyTooltip(e,r,o,t):"heatmap"===i.config.chart.type||"treemap"===i.config.chart.type?(c=(a=this.intersect.handleHeatTreeTooltip({e:e,opt:t,x:c,y:h,type:i.config.chart.type})).x,h=a.y,n.style.left=c+"px",n.style.top=h+"px"):(this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:e,opt:t}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:e,opt:t,x:c,y:h})),this.yaxisTooltips.length)for(var u=0;u<i.config.yaxis.length;u++)this.axesTooltip.drawYaxisTooltipText(u,o,this.xyRatios);i.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),t.tooltipEl.classList.add("apexcharts-active")}}else"mouseout"!==e.type&&"touchend"!==e.type||this.handleMouseOut(t)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,t=t.tooltipRect,n=this.w,r=i.paths.getAttribute("rel"),o=this.getElTooltip(),a=n.globals.dom.elWrap.getBoundingClientRect();"mousemove"===e.type||"touchmove"===e.type?(n.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),o.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(r,10)-1,shared:!1}),i=n.globals.clientX-a.left-t.ttWidth/2,a=n.globals.clientY-a.top-t.ttHeight-10,o.style.left=i+"px",o.style.top=a+"px",n.config.legend.tooltipHoverFormatter&&(i=(0,n.config.legend.tooltipHoverFormatter)(this.legendLabels[t=r-1].getAttribute("data:default-text"),{seriesIndex:t,dataPointIndex:t,w:n}),this.legendLabels[t].innerHTML=i)):"mouseout"!==e.type&&"touchend"!==e.type||(o.classList.remove("apexcharts-active"),n.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),n.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}))}},{key:"handleStickyTooltip",value:function(t,e,i,n){var r=this.w,i=(e=this.tooltipUtil.getNearestValues({context:this,hoverArea:n.hoverArea,elGrid:n.elGrid,clientX:e,clientY:i})).j,o=e.capturedSeries,a=(r.globals.collapsedSeriesIndices.includes(o)&&(o=null),n.elGrid.getBoundingClientRect());e.hoverX<0||e.hoverX>a.width?this.handleMouseOut(n):null!==o?this.handleStickyCapturedSeries(t,o,n,i):(this.tooltipUtil.isXoverlap(i)||r.globals.isBarHorizontal)&&(e=r.globals.series.findIndex(function(t,e){return!r.globals.collapsedSeriesIndices.includes(e)}),this.create(t,this,e,i,n.ttItems))}},{key:"handleStickyCapturedSeries",value:function(t,e,i,n){var r=this.w;this.tConfig.shared||null!==r.globals.series[e][n]?void 0!==r.globals.series[e][n]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(n)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,n,i.ttItems):this.create(t,this,e,n,i.ttItems,!1):this.tooltipUtil.isXoverlap(n)&&(e=r.globals.series.findIndex(function(t,e){return!r.globals.collapsedSeriesIndices.includes(e)}),this.create(t,this,e,n,i.ttItems)):this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new H(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),n=0;n<i.length;n++)e.pathMouseLeave(i[n])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(e.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),t.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.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=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var n=0;n<this.yaxisTTEls.length;n++)this.yaxisTTEls[n].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)})}},{key:"markerClick",value:function(t,e,i){var n=this.w;"function"==typeof n.config.chart.events.markerClick&&n.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:n}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:n}])}},{key:"create",value:function(t,e,i,n,r){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,a=this.w,t=("mouseup"===t.type&&this.markerClick(t,i,n),null===o&&(o=this.tConfig.shared),this.tooltipUtil.hasMarkers(i)),s=this.tooltipUtil.getElBars();if(a.config.legend.tooltipHoverFormatter){var l=a.config.legend.tooltipHoverFormatter,c=Array.from(this.legendLabels);c.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)});for(var h=0;h<c.length;h++){var u=c[h],d=parseInt(u.getAttribute("i"),10),f=decodeURIComponent(u.getAttribute("data:default-text")),p=l(f,{seriesIndex:o?d:i,dataPointIndex:n,w:a});if(o)u.innerHTML=a.globals.collapsedSeriesIndices.indexOf(d)<0?p:f;else if(u.innerHTML=d===i?p:f,i===d)break}}if(r=M(M({ttItems:r,i:i,j:n},void 0!==(null==(r=a.globals.seriesRange)||null==(r=r[i])||null==(r=r[n])||null==(r=r.y[0])?void 0:r.y1)&&{y1:null==(r=a.globals.seriesRange)||null==(r=r[i])||null==(r=r[n])||null==(r=r.y[0])?void 0:r.y1}),void 0!==(null==(r=a.globals.seriesRange)||null==(r=r[i])||null==(r=r[n])||null==(r=r.y[0])?void 0:r.y2)&&{y2:null==(r=a.globals.seriesRange)||null==(r=r[i])||null==(r=r[n])||null==(r=r.y[0])?void 0:r.y2}),o){if(e.tooltipLabels.drawSeriesTexts(M(M({},r),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),t)0<a.globals.markers.largestSize?e.marker.enlargePoints(n):e.tooltipPosition.moveDynamicPointsOnHover(n);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(s),0<this.barSeriesHeight)){var g=new H(this.ctx),m=a.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(n,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(n,i);for(var b=0;b<m.length;b++)g.pathMouseEnter(m[b])}}else e.tooltipLabels.drawSeriesTexts(M({shared:!1},r)),this.tooltipUtil.hasBars()&&e.tooltipPosition.moveStickyTooltipOverBars(n,i),t&&e.tooltipPosition.moveMarkers(i,n)}}]),me),Zt=(t(ge,[{key:"handleBarDataLabels",value:function(t){var e,i=t.x,n=t.y,r=t.y1,o=t.y2,a=t.i,s=t.j,l=t.realIndex,c=t.columnGroupIndex,h=t.series,u=t.barHeight,d=t.barWidth,f=t.barXPosition,p=t.barYPosition,g=t.visibleSeries,t=t.renderedPath,m=this.w,b=new H(this.barCtx.ctx),v=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[l]:this.barCtx.strokeWidth,g=m.globals.isXNumeric&&!m.globals.isBarHorizontal?(e=i+parseFloat(d*(g+1)),n+parseFloat(u*(g+1))-v):(e=i+parseFloat(d*g),n+parseFloat(u*g)),y=i,x=n,w=m.config.dataLabels,k=this.barCtx.barOptions.dataLabels,A=this.barCtx.barOptions.dataLabels.total,p=(void 0!==p&&this.barCtx.isRangeBar&&(x=g=p),void 0!==f&&this.barCtx.isVerticalGroupedRangeBar&&(y=e=f),w.offsetX),f=w.offsetY,S={width:0,height:0},b=(m.config.dataLabels.enabled&&(C=m.globals.series[a][s],S=b.getTextRects(m.config.dataLabels.formatter?m.config.dataLabels.formatter(C,M(M({},m),{},{seriesIndex:a,dataPointIndex:s,w:m})):m.globals.yLabelFormatters[0](C),parseFloat(w.style.fontSize))),{x:i,y:n,i:a,j:s,realIndex:l,columnGroupIndex:c,renderedPath:t,bcx:e,bcy:g,barHeight:u,barWidth:d,textRects:S,strokeWidth:v,dataLabelsX:y,dataLabelsY:x,dataLabelsConfig:w,barDataLabelsConfig:k,barTotalDataLabelsConfig:A,offX:p,offY:f}),C=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(b):this.calculateColumnsDataLabelsPosition(b);return t.attr({cy:C.bcy,cx:C.bcx,j:s,val:m.globals.series[a][s],barHeight:u,barWidth:d}),{dataLabels:this.drawCalculatedDataLabels({x:C.dataLabelsX,y:C.dataLabelsY,val:this.barCtx.isRangeBar?[r,o]:("100%"===m.config.chart.stackType?h:m.globals.series)[l][s],i:l,j:s,barWidth:d,barHeight:u,textRects:S,dataLabelsConfig:w}),totalDataLabels:m.config.chart.stacked&&A.enabled?this.drawTotalDataLabels({x:C.totalDataLabelsX,y:C.totalDataLabelsY,barWidth:d,barHeight:u,realIndex:l,textAnchor:C.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:l,j:s}),dataLabelsConfig:w,barTotalDataLabelsConfig:A}):null}}},{key:"getStackedTotalDataLabel",value:function(t){var e=t.realIndex,t=t.j,i=this.w,n=this.barCtx.stackedSeriesTotals[t];return this.totalFormatter?this.totalFormatter(n,M(M({},i),{},{seriesIndex:e,dataPointIndex:t,w:i})):n}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i,n=this.w,r=t.i,o=t.j,a=t.realIndex,s=t.y,l=t.bcx,c=t.barWidth,h=t.barHeight,u=t.textRects,d=t.dataLabelsX,f=t.dataLabelsY,p=t.dataLabelsConfig,g=t.barDataLabelsConfig,m=t.barTotalDataLabelsConfig,b=t.strokeWidth,v=t.offX,y=t.offY,t=l,h=Math.abs(h),x="vertical"===n.config.plotOptions.bar.dataLabels.orientation,w=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:o}).zeroEncounters,k=(l-=b/2,n.globals.gridWidth/n.globals.dataPoints),A=(this.barCtx.isVerticalGroupedRangeBar?d+=c/2:(d=n.globals.isXNumeric?l-c/2+v:l-k+c/2+v,0<w&&n.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(d-=c*w)),x&&(d=d+u.height/2-b/2-2),n.globals.series[r][o]<0),S=s;switch(this.barCtx.isReversed&&(S=s+(A?h:-h)),g.position){case"center":f=x?A?S-h/2+y:S+h/2-y:A?S-h/2+u.height/2+y:S+h/2+u.height/2-y;break;case"bottom":f=x?A?S-h+y:S+h-y:A?S-h+u.height+b+y:S+h-u.height/2+b-y;break;case"top":f=x?A?S+y:S-y:A?S-u.height/2-y:S+u.height+y}return this.barCtx.lastActiveBarSerieIndex===a&&m.enabled&&(v=new H(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:o}),p.fontSize),e=A?S-v.height/2-y-m.offsetY+18:S+v.height+y+m.offsetY-18,i=t+(n.globals.isXNumeric?-c*n.globals.barGroups.length/2:n.globals.barGroups.length*c/2-(n.globals.barGroups.length-1)*c-k)+m.offsetX),n.config.chart.stacked||(f<0?f=0+b:f+u.height/3>n.globals.gridHeight&&(f=n.globals.gridHeight-b)),{bcx:l,bcy:s,dataLabelsX:d,dataLabelsY:f,totalDataLabelsX:i,totalDataLabelsY:e,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e,i,n=this.w,r=t.x,o=t.i,a=t.j,s=t.realIndex,l=t.bcy,c=t.barHeight,h=t.barWidth,u=t.textRects,d=t.dataLabelsX,f=t.strokeWidth,p=t.dataLabelsConfig,g=t.barDataLabelsConfig,m=t.barTotalDataLabelsConfig,b=t.offX,t=t.offY,v=n.globals.gridHeight/n.globals.dataPoints,h=Math.abs(h),v=l-(this.barCtx.isRangeBar?0:v)+c/2+u.height/2+t-3,c="start",y=n.globals.series[o][a]<0,x=r;switch(this.barCtx.isReversed&&(x=r+(y?-h:h),c=y?"start":"end"),g.position){case"center":d=y?x+h/2-b:Math.max(u.width/2,x-h/2)+b;break;case"bottom":d=y?x+h-f-b:x-h+f+b;break;case"top":d=y?x-f-b:x-f+b}return this.barCtx.lastActiveBarSerieIndex===s&&m.enabled&&(t=new H(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:s,j:a}),p.fontSize),y?(e=x-f-b-m.offsetX,c="end"):e=x+b+m.offsetX+(this.barCtx.isReversed?-(h+f):f),i=v-u.height/2+t.height/2+m.offsetY+f),n.config.chart.stacked||("start"===p.textAnchor?d-u.width<0?d=y?u.width+f:f:d+u.width>n.globals.gridWidth&&(d=y?n.globals.gridWidth-f:n.globals.gridWidth-u.width-f):"middle"===p.textAnchor?d-u.width/2<0?d=u.width/2+f:d+u.width/2>n.globals.gridWidth&&(d=n.globals.gridWidth-u.width/2-f):"end"===p.textAnchor&&(d<1?d=u.width+f:d+1>n.globals.gridWidth&&(d=n.globals.gridWidth-u.width-f))),{bcx:r,bcy:l,dataLabelsX:d,dataLabelsY:v,totalDataLabelsX:e,totalDataLabelsY:i,totalDataLabelsAnchor:c}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,n=t.val,r=t.i,o=t.j,a=t.textRects,s=t.barHeight,l=t.barWidth,t=t.dataLabelsConfig,c=this.w,h="rotate(0)",u=("vertical"===c.config.plotOptions.bar.dataLabels.orientation&&(h="rotate(-90, ".concat(e,", ").concat(i,")")),new k(this.barCtx.ctx)),d=new H(this.barCtx.ctx),f=t.formatter,p=null,g=-1<c.globals.collapsedSeriesIndices.indexOf(r);return t.enabled&&!g&&(p=d.group({class:"apexcharts-data-labels",transform:h}),g="",void 0!==n&&(g=f(n,M(M({},c),{},{seriesIndex:r,dataPointIndex:o,w:c}))),!n&&c.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(g=""),h=c.globals.series[r][o]<0,f=c.config.plotOptions.bar.dataLabels.position,"vertical"===c.config.plotOptions.bar.dataLabels.orientation&&("top"===f&&(t.textAnchor=h?"end":"start"),"center"===f&&(t.textAnchor="middle"),"bottom"===f)&&(t.textAnchor=h?"end":"start"),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<d.getTextRects(g,parseFloat(t.style.fontSize)).width&&(g=""),c.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?a.width/1.6>Math.abs(l)&&(g=""):a.height/1.6>Math.abs(s)&&(g="")),f=M({},t),this.barCtx.isHorizontal&&n<0&&("start"===t.textAnchor?f.textAnchor="end":"end"===t.textAnchor&&(f.textAnchor="start")),u.plotDataLabelsText({x:e,y:i,text:g,i:r,j:o,parent:p,dataLabelsConfig:f,alwaysDrawDataLabel:!0,offsetCorrection:!0})),p}},{key:"drawTotalDataLabels",value:function(t){var e=t.x,i=t.y,n=t.val,r=t.realIndex,o=t.textAnchor,t=t.barTotalDataLabelsConfig,a=(this.w,new H(this.barCtx.ctx));return t.enabled&&void 0!==e&&void 0!==i&&this.barCtx.lastActiveBarSerieIndex===r?a.drawText({x:e,y:i,foreColor:t.style.color,text:n,textAnchor:o,fontFamily:t.style.fontFamily,fontSize:t.style.fontSize,fontWeight:t.style.fontWeight}):void 0}}]),ge),$t=(t(pe,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<t.length;i++)if(0<t[i].length&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var n=0;n<t[i].length;n++)e.globals.seriesX[i][n]>e.globals.minX&&e.globals.seriesX[i][n]<e.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(e.globals.series),0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],e.globals.comboCharts||this.checkZeroSeries({series:t})}},{key:"initialPositions",value:function(){var t,e,i,n,r,o,a,s,l=this.w,c=l.globals.dataPoints,h=(this.barCtx.isRangeBar&&(c=l.globals.labels.length),this.barCtx.seriesLen);return l.config.plotOptions.bar.rangeBarGroupRows&&(h=1),this.barCtx.isHorizontal?(n=(i=l.globals.gridHeight/c)/h,n=(n=l.globals.isXNumeric?(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen:n)*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(n=parseInt(this.barCtx.barOptions.barHeight,10)),o=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(o=l.globals.gridWidth/2),e=(i-n*this.barCtx.seriesLen)/2):(a=l.globals.gridWidth/this.barCtx.visibleItems,s=(a=l.config.xaxis.convertedCatToNumeric?l.globals.gridWidth/l.globals.dataPoints:a)/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric&&(c=this.barCtx.xRatio,(s=(a=l.globals.minXDiff&&.5!==l.globals.minXDiff&&0<l.globals.minXDiff/c?l.globals.minXDiff/c:a)/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1)&&(s=1),-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(s=parseInt(this.barCtx.barOptions.columnWidth,10)),r=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),t=l.globals.padHorizontal+(a-s*this.barCtx.seriesLen)/2),{x:t,y:e,yDivision:i,xDivision:a,barHeight:l.globals.barHeight=n,barWidth:l.globals.barWidth=s,zeroH:r,zeroW:o}}},{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,i,n,t){var r,o=this.w,a=this.barCtx.ctx.fill,s=null,l=this.barCtx.barOptions.distributed?n:i;return 0<this.barCtx.barOptions.colors.ranges.length&&this.barCtx.barOptions.colors.ranges.map(function(t){e[i][n]>=t.from&&e[i][n]<=t.to&&(s=t.color)}),null!=(r=o.config.series[i].data[n])&&r.fillColor&&(s=o.config.series[i].data[n].fillColor),a.fillPath({seriesNumber:this.barCtx.barOptions.distributed?l:t,dataPointIndex:n,color:s,value:e[i][n],fillConfig:null==(r=o.config.series[i].data[n])?void 0:r.fill,fillType:null!=(a=o.config.series[i].data[n])&&null!=(l=a.fill)&&l.type?null==(r=o.config.series[i].data[n])?void 0:r.fill.type:Array.isArray(o.config.fill.type)?o.config.fill.type[t]:o.config.fill.type})}},{key:"getStrokeWidth",value:function(t,e,i){var n=this.w;return this.barCtx.series[t][e]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,!n.config.stroke.show||this.barCtx.isNullValue?0:Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth}},{key:"createBorderRadiusArr",value:function(t){var e=this.w,i=!this.w.config.chart.stacked||"last"!==e.config.plotOptions.bar.borderRadiusWhenStacked||e.config.plotOptions.bar.borderRadius<=0,n=t.length,r=t[0].length,o=Array.from({length:n},function(){return Array(r).fill(i?"top":"none")});if(!i)for(var a=0;a<r;a++){for(var s=[],l=[],c=0,h=0;h<n;h++){var u=t[h][a];0<u?(s.push(h),c++):u<0&&(l.push(h),c++)}if(0<s.length&&0===l.length)if(1===s.length)o[s[0]][a]="both";else{var d,f=s[0],p=s[s.length-1],g=L(s);try{for(g.s();!(d=g.n()).done;){var m=d.value;o[m][a]=m===f?"bottom":m===p?"top":"none"}}catch(t){g.e(t)}finally{g.f()}}else if(0<l.length&&0===s.length)if(1===l.length)o[l[0]][a]="both";else{var b,v=l[0],y=l[l.length-1],x=L(l);try{for(x.s();!(b=x.n()).done;){var w=b.value;o[w][a]=w===v?"bottom":w===y?"top":"none"}}catch(t){x.e(t)}finally{x.f()}}else if(0<s.length&&0<l.length){var k,A=s[s.length-1],S=L(s);try{for(S.s();!(k=S.n()).done;){var C=k.value;o[C][a]=C===A?"top":"none"}}catch(t){S.e(t)}finally{S.f()}var _,E=l[l.length-1],O=L(l);try{for(O.s();!(_=O.n()).done;){var T=_.value;o[T][a]=T===E?"bottom":"none"}}catch(t){O.e(t)}finally{O.f()}}else 1===c&&(o[s[0]||l[0]][a]="both")}return o}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,n=t.x1,r=t.x2,o=t.y1,a=t.y2,t=t.elSeries,s=this.w,l=new H(this.barCtx.ctx),c=new E(this.barCtx.ctx).getActiveConfigSeriesIndex();0<this.barCtx.barOptions.colors.backgroundBarColors.length&&c===i&&(e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length),c=this.barCtx.barOptions.colors.backgroundBarColors[e],i=l.drawRect(void 0!==n?n:0,void 0!==o?o:0,void 0!==r?r:s.globals.gridWidth,void 0!==a?a:s.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,c,this.barCtx.barOptions.colors.backgroundBarOpacity),t.add(i),i.node.classList.add("apexcharts-backgroundBar"))}},{key:"getColumnPaths",value:function(t){var e=t.barWidth,i=t.barXPosition,n=t.y1,r=t.y2,o=t.strokeWidth,a=t.isReversed,s=t.series,l=t.seriesGroup,c=t.realIndex,h=t.i,u=t.j,t=t.w,d=new H(this.barCtx.ctx),o=(Array.isArray(o)?o[c]:o)||0,f=e,p=i,g=(null!=(g=t.config.series[c].data[u])&&g.columnWidthOffset&&(p=i-t.config.series[c].data[u].columnWidthOffset/2,f=e+t.config.series[c].data[u].columnWidthOffset),o/2),i=p+g,e=p+f-g,f=(r+=.001+g*(p=(0<=s[h][u]?1:-1)*(a?-1:1)),d.move(i,n+=.001-g*p)),s=d.move(i,n),a=d.line(e,n);return 0<t.globals.previousPaths.length&&(s=this.barCtx.getPreviousPath(c,u,!1)),f=f+d.line(i,r)+d.line(e,r)+a+("around"===t.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[c][u]?" Z":" z"),s=s+d.line(i,n)+a+a+a+a+a+d.line(i,n)+("around"===t.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[c][u]?" Z":" z"),"none"!==this.arrBorderRadius[c][u]&&(f=d.roundPathCorners(f,t.config.plotOptions.bar.borderRadius)),t.config.chart.stacked&&(e=this.barCtx,(e=this.barCtx[l]).yArrj.push(r-g*p),e.yArrjF.push(Math.abs(n-r+o*p)),e.yArrjVal.push(this.barCtx.series[h][u])),{pathTo:f,pathFrom:s}}},{key:"getBarpaths",value:function(t){var e=t.barYPosition,i=t.barHeight,n=t.x1,r=t.x2,o=t.strokeWidth,a=t.isReversed,s=t.series,l=t.seriesGroup,c=t.realIndex,h=t.i,u=t.j,t=t.w,d=new H(this.barCtx.ctx),o=(Array.isArray(o)?o[c]:o)||0,f=e,p=i,g=(null!=(g=t.config.series[c].data[u])&&g.barHeightOffset&&(f=e-t.config.series[c].data[u].barHeightOffset/2,p=i+t.config.series[c].data[u].barHeightOffset),o/2),e=f+g,i=f+p-g,p=(r+=.001-g*(f=(0<=s[h][u]?1:-1)*(a?-1:1)),d.move(n+=.001+g*f,e)),s=d.move(n,e),a=(0<t.globals.previousPaths.length&&(s=this.barCtx.getPreviousPath(c,u,!1)),d.line(n,i)),p=p+d.line(r,e)+d.line(r,i)+a+("around"===t.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[c][u]?" Z":" z"),s=s+d.line(n,e)+a+a+a+a+a+d.line(n,e)+("around"===t.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[c][u]?" Z":" z");return"none"!==this.arrBorderRadius[c][u]&&(p=d.roundPathCorners(p,t.config.plotOptions.bar.borderRadius)),t.config.chart.stacked&&(i=this.barCtx,(i=this.barCtx[l]).xArrj.push(r+g*f),i.xArrjF.push(Math.abs(n-r-o*f)),i.xArrjVal.push(this.barCtx.series[h][u])),{pathTo:p,pathFrom:s}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,n=0;n<e.length;n++){for(var r=0,o=0;o<e[i.globals.maxValsInArrayIndex].length;o++)r+=e[n][o];0===r&&this.barCtx.zeroSerieses.push(n)}}},{key:"getXForValue",value:function(t,e){return null!=t?e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0):2<arguments.length&&void 0!==arguments[2]&&!arguments[2]?null:e}},{key:"getYForValue",value:function(t,e,i){return null!=t?e-t/this.barCtx.yRatio[i]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[i]:0):3<arguments.length&&void 0!==arguments[3]&&!arguments[3]?null:e}},{key:"getGoalValues",value:function(n,r,o,t,e,a){function i(t,e){var i;u.push((d(i={},n,"x"===n?c.getXForValue(t,r,!1):c.getYForValue(t,o,a,!1)),d(i,"attrs",e),i))}var s,l,c=this,h=this.w,u=[];return h.globals.seriesGoals[t]&&h.globals.seriesGoals[t][e]&&Array.isArray(h.globals.seriesGoals[t][e])&&h.globals.seriesGoals[t][e].forEach(function(t){i(t.value,t)}),this.barCtx.barOptions.isDumbbell&&h.globals.seriesRange.length&&(s=this.barCtx.barOptions.dumbbellColors||h.globals.colors,l={strokeHeight:"x"===n?0:h.globals.markers.size[t],strokeWidth:"x"===n?h.globals.markers.size[t]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(s[t])?s[t][0]:s[t]},i(h.globals.seriesRangeStart[t][e],l),i(h.globals.seriesRangeEnd[t][e],M(M({},l),{},{strokeColor:Array.isArray(s[t])?s[t][1]:s[t]}))),u}},{key:"drawGoalLine",value:function(t){var n=t.barXPosition,r=t.barYPosition,e=t.goalX,i=t.goalY,o=t.barWidth,a=t.barHeight,s=new H(this.barCtx.ctx),l=s.group({className:"apexcharts-bar-goals-groups"}),c=(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,")")),null);return this.barCtx.isHorizontal?Array.isArray(e)&&e.forEach(function(t){var e,i;-1<=t.x&&t.x<=s.w.globals.gridWidth+1&&(e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:a/2,c=s.drawLine(t.x,(i=r+e+a/2)-2*e,t.x,i,t.attrs.strokeColor||void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth||2,t.attrs.strokeLineCap),l.add(c))}):Array.isArray(i)&&i.forEach(function(t){var e,i;-1<=t.y&&t.y<=s.w.globals.gridHeight+1&&(e=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:o/2,c=s.drawLine((i=n+e+o/2)-2*e,t.y,i,t.y,t.attrs.strokeColor||void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight||2,t.attrs.strokeLineCap),l.add(c))}),l}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,t=t.color,n=this.w,r=e.x,o=e.x1,a=i.x,s=i.x1,l=i.barYPosition,e=e.barYPosition+i.barHeight,i=new H(this.barCtx.ctx),c=new B,r=i.move(o,e)+i.line(r,e)+i.line(a,l)+i.line(s,l)+i.line(o,e)+("around"===n.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[realIndex][j]?" Z":" z");return i.drawPath({d:r,fill:c.shadeColor(.5,B.rgb2hex(t)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var i=t.i,n=t.j,r=this.w,o=0,a=0;return(r.config.plotOptions.bar.horizontal?r.globals.series.map(function(t,e){return e}):(null==(t=r.globals.columnSeries)?void 0:t.i.map(function(t){return t}))||[]).forEach(function(t){var e=r.globals.seriesPercent[t][n];e&&o++,t<i&&0===e&&a++}),{nonZeroColumns:o,zeroEncounters:a}}},{key:"getGroupIndex",value:function(e){var i=this.w,t=i.globals.seriesGroups.findIndex(function(t){return-1<t.indexOf(i.globals.seriesNames[e])}),n=this.barCtx.columnGroupIndices,r=n.indexOf(t);return r<0&&(n.push(t),r=n.length-1),{groupIndex:t,columnGroupIndex:r}}}]),pe),b=(t(fe,[{key:"draw",value:function(t,e){var i=this.w,n=new H(this.ctx),r=new I(this.ctx,i),o=(t=r.getLogSeries(t),this.series=t,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),n.group({class:"apexcharts-bar-series apexcharts-plot-series"}));i.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,s=0;a<t.length;a++,s++){var l=void 0,c=void 0,h=[],u=[],d=i.globals.comboCharts?e[a]:a,f=this.barHelpers.getGroupIndex(d).columnGroupIndex,p=n.group({class:"apexcharts-series",rel:a+1,seriesName:B.escapeString(i.globals.seriesNames[d]),"data:realIndex":d}),g=(this.ctx.series.addCollapsedClassToSeries(p,d),0<t[a].length&&(this.visibleI=this.visibleI+1),0),m=0,b=(1<this.yRatio.length&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[d],this.translationsIndex=d),this.translationsIndex),v=(this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.barHelpers.initialPositions()),c=v.y,g=v.barHeight,y=v.yDivision,x=v.zeroW,l=v.x,m=v.barWidth,w=v.xDivision,k=v.zeroH,A=(this.horizontal||u.push(l+m/2),n.group({class:"apexcharts-datalabels","data:realIndex":d})),S=(i.globals.delayedElements.push({el:A.node}),A.node.classList.add("apexcharts-element-hidden"),n.group({class:"apexcharts-bar-goals-markers"})),C=n.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:C.node}),C.node.classList.add("apexcharts-element-hidden");for(var _=0;_<t[a].length;_++){var E=this.barHelpers.getStrokeWidth(a,_,d),O=null,T={indexes:{i:a,j:_,realIndex:d,translationsIndex:b,bc:s},x:l,y:c,strokeWidth:E,elSeries:p},T=(this.isHorizontal?(O=this.drawBarPaths(M(M({},T),{},{barHeight:g,zeroW:x,yDivision:y})),m=this.series[a][_]/this.invertedYRatio):(O=this.drawColumnPaths(M(M({},T),{},{xDivision:w,barWidth:m,zeroH:k})),g=this.series[a][_]/this.yRatio[b]),this.barHelpers.getPathFillColor(t,a,_,d)),L=(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&0<_&&(L=this.barHelpers.drawBarShadow({color:"string"==typeof T&&-1===(null==T?void 0:T.indexOf("url"))?T:B.hexToRgba(i.globals.colors[a]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:O}))&&C.add(L),this.pathArr.push(O),this.barHelpers.drawGoalLine({barXPosition:O.barXPosition,barYPosition:O.barYPosition,goalX:O.goalX,goalY:O.goalY,barHeight:g,barWidth:m}));L&&S.add(L),c=O.y,l=O.x,0<_&&u.push(l+m/2),h.push(c),this.renderSeries({realIndex:d,pathFill:T,j:_,i:a,columnGroupIndex:f,pathFrom:O.pathFrom,pathTo:O.pathTo,strokeWidth:E,elSeries:p,x:l,y:c,series:t,barHeight:Math.abs(O.barHeight||g),barWidth:Math.abs(O.barWidth||m),elDataLabelsWrap:A,elGoalsMarkers:S,elBarShadows:C,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[d]=u,i.globals.seriesYvalues[d]=h,o.add(p)}return o}},{key:"renderSeries",value:function(t){var e,i=t.realIndex,n=t.pathFill,r=t.lineFill,o=t.j,a=t.i,s=t.columnGroupIndex,l=t.pathFrom,c=t.pathTo,h=t.strokeWidth,u=t.elSeries,d=t.x,f=t.y,p=t.y1,g=t.y2,m=t.series,b=t.barHeight,v=t.barWidth,y=t.barXPosition,x=t.barYPosition,w=t.elDataLabelsWrap,k=t.elGoalsMarkers,A=t.elBarShadows,S=t.visibleSeries,C=t.type,t=t.classes,_=this.w,E=new H(this.ctx),O=(r||(e="function"==typeof _.globals.stroke.colors[i]?(O=i,e=_.config.stroke.colors,Array.isArray(e)&&0<e.length&&"function"==typeof(T=e[O]||"")?T({value:_.globals.series[O][o],dataPointIndex:o,w:_}):T):_.globals.stroke.colors[i],r=this.barOptions.distributed?_.globals.stroke.colors[o]:e),_.config.series[a].data[o]&&_.config.series[a].data[o].strokeColor&&(r=_.config.series[a].data[o].strokeColor),this.isNullValue&&(n="none"),o/_.config.chart.animations.animateGradually.delay*(_.config.chart.animations.speed/_.globals.dataPoints)/2.4),T=E.renderPaths({i:a,j:o,realIndex:i,pathFrom:l,pathTo:c,stroke:r,strokeWidth:h,strokeLineCap:_.config.stroke.lineCap,fill:n,animationDelay:O,initialSpeed:_.config.chart.animations.speed,dataChangeSpeed:_.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(C,"-area ").concat(t),chartType:C});return T.attr("clip-path","url(#gridRectBarMask".concat(_.globals.cuid,")")),0<(E=_.config.forecastDataPoints).count&&o>=_.globals.dataPoints-E.count&&(T.node.setAttribute("stroke-dasharray",E.dashArray),T.node.setAttribute("stroke-width",E.strokeWidth),T.node.setAttribute("fill-opacity",E.fillOpacity)),void 0!==p&&void 0!==g&&(T.attr("data-range-y1",p),T.attr("data-range-y2",g)),new P(this.ctx).setSelectionFilter(T,i,o),u.add(T),null!==(l=new Zt(this).handleBarDataLabels({x:d,y:f,y1:p,y2:g,i:a,j:o,series:m,realIndex:i,columnGroupIndex:s,barHeight:b,barWidth:v,barXPosition:y,barYPosition:x,renderedPath:T,visibleSeries:S})).dataLabels&&w.add(l.dataLabels),l.totalDataLabels&&w.add(l.totalDataLabels),u.add(w),k&&u.add(k),A&&u.add(A),u}},{key:"drawBarPaths",value:function(t){var e,i,n,r,o=t.indexes,a=t.barHeight,s=t.strokeWidth,l=t.zeroW,c=t.y,h=t.yDivision,t=t.elSeries,u=this.w,d=o.i,f=o.j,s=(u.globals.isXNumeric?e=(c=(u.globals.seriesX[d][f]-u.globals.minX)/this.invertedXRatio-a)+a*this.visibleI:u.config.plotOptions.bar.hideZeroBarsWhenGrouped?(r=n=0,u.globals.seriesPercent.forEach(function(t,e){t[f]&&n++,e<d&&0===t[f]&&r++}),e=c+(a=0<n?this.seriesLen*a/n:a)*this.visibleI,e-=a*r):e=c+a*this.visibleI,this.isFunnel&&(l-=(this.barHelpers.getXForValue(this.series[d][f],l)-l)/2),i=this.barHelpers.getXForValue(this.series[d][f],l),this.barHelpers.getBarpaths({barYPosition:e,barHeight:a,x1:l,x2:i,strokeWidth:s,isReversed:this.isReversed,series:this.series,realIndex:o.realIndex,i:d,j:f,w:u}));return u.globals.isXNumeric||(c+=h),this.barHelpers.barBackground({j:f,i:d,y1:e-a*this.visibleI,y2:a*this.seriesLen,elSeries:t}),{pathTo:s.pathTo,pathFrom:s.pathFrom,x1:l,x:i,y:c,goalX:this.barHelpers.getGoalValues("x",l,null,d,f),barYPosition:e,barHeight:a}}},{key:"drawColumnPaths",value:function(t){var e,i,n=t.indexes,r=t.x,o=t.xDivision,a=t.barWidth,s=t.zeroH,l=t.strokeWidth,t=t.elSeries,c=this.w,h=n.realIndex,u=n.translationsIndex,d=n.i,f=n.j,n=n.bc,p=(c.globals.isXNumeric?(r=(e=this.getBarXForNumericXAxis({x:r,j:f,realIndex:h,barWidth:a})).x,e=e.barXPosition):c.config.plotOptions.bar.hideZeroBarsWhenGrouped?(e=r+(a=0<(i=(p=this.barHelpers.getZeroValueEncounters({i:d,j:f})).nonZeroColumns)?this.seriesLen*a/i:a)*this.visibleI,e-=a*p.zeroEncounters):e=r+a*this.visibleI,i=this.barHelpers.getYForValue(this.series[d][f],s,u),this.barHelpers.getColumnPaths({barXPosition:e,barWidth:a,y1:s,y2:i,strokeWidth:l,isReversed:this.isReversed,series:this.series,realIndex:h,i:d,j:f,w:c}));return c.globals.isXNumeric||(r+=o),this.barHelpers.barBackground({bc:n,j:f,i:d,x1:e-l/2-a*this.visibleI,x2:a*this.seriesLen+l/2,elSeries:t}),{pathTo:p.pathTo,pathFrom:p.pathFrom,x:r,y:i,goalY:this.barHelpers.getGoalValues("y",null,s,d,f,u),barXPosition:e,barWidth:a}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,n=t.realIndex,t=t.j,r=this.w,o=n;return r.globals.seriesX[n].length||(o=r.globals.maxValsInArrayIndex),{barXPosition:(e=r.globals.seriesX[o][t]?(r.globals.seriesX[o][t]-r.globals.minX)/this.xRatio-i*this.seriesLen/2:e)+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i,n=this.w,r=0;r<n.globals.previousPaths.length;r++){var o=n.globals.previousPaths[r];o.paths&&0<o.paths.length&&parseInt(o.realIndex,10)===parseInt(t,10)&&void 0!==n.globals.previousPaths[r].paths[e]&&(i=n.globals.previousPaths[r].paths[e].d)}return i}}]),fe),Kt=(i(c,b),ft=e(c),t(c,[{key:"draw",value:function(A,S){var C=this,_=this.w,t=(this.graphics=new H(this.ctx),this.bar=new b(this.ctx,this.xyRatios),new I(this.ctx,_));A=t.getLogSeries(A),this.yRatio=t.getLogYRatios(this.yRatio),this.barHelpers.initVariables(A),"100%"===_.config.chart.stackType&&(A=_.globals.comboCharts?S.map(function(t){return _.globals.seriesPercent[t]}):_.globals.seriesPercent.slice()),this.series=A,this.barHelpers.initializeStackedPrevVars(this);for(var E=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),O=0,T=0,e=0,i=0;e<A.length;e++,i++)((t,e)=>{var i,n,r,o,a=_.globals.comboCharts?S[t]:t,s=(b=C.barHelpers.getGroupIndex(a)).groupIndex,l=b.columnGroupIndex,c=(C.groupCtx=C[_.globals.seriesGroups[s]],[]),h=[],u=0,d=(1<C.yRatio.length&&(C.yaxisIndex=_.globals.seriesYAxisReverseMap[a][0],u=a),C.isReversed=_.config.yaxis[C.yaxisIndex]&&_.config.yaxis[C.yaxisIndex].reversed,C.graphics.group({class:"apexcharts-series",seriesName:B.escapeString(_.globals.seriesNames[a]),rel:t+1,"data:realIndex":a})),f=(C.ctx.series.addCollapsedClassToSeries(d,a),C.graphics.group({class:"apexcharts-datalabels","data:realIndex":a})),p=C.graphics.group({class:"apexcharts-bar-goals-markers"}),g=0,m=0,b=C.initialPositions(O,T,void 0,void 0,void 0,void 0,u);T=b.y,n=b.yDivision,o=b.zeroW,O=b.x,m=b.barWidth,i=b.xDivision,r=b.zeroH,_.globals.barHeight=g=b.barHeight,_.globals.barWidth=m,C.barHelpers.initializeStackedXYVars(C),1===C.groupCtx.prevY.length&&C.groupCtx.prevY[0].every(function(t){return isNaN(t)})&&(C.groupCtx.prevY[0]=C.groupCtx.prevY[0].map(function(){return r}),C.groupCtx.prevYF[0]=C.groupCtx.prevYF[0].map(function(){return 0}));for(var v=0;v<_.globals.dataPoints;v++){var y=C.barHelpers.getStrokeWidth(t,v,a),x={indexes:{i:t,j:v,realIndex:a,translationsIndex:u,bc:e},strokeWidth:y,x:O,y:T,elSeries:d,columnGroupIndex:l,seriesGroup:_.globals.seriesGroups[s]},w=null,x=(C.isHorizontal?(w=C.drawStackedBarPaths(M(M({},x),{},{zeroW:o,barHeight:g,yDivision:n})),m=C.series[t][v]/C.invertedYRatio):(w=C.drawStackedColumnPaths(M(M({},x),{},{xDivision:i,barWidth:m,zeroH:r})),g=C.series[t][v]/C.yRatio[u]),(x=C.barHelpers.drawGoalLine({barXPosition:w.barXPosition,barYPosition:w.barYPosition,goalX:w.goalX,goalY:w.goalY,barHeight:g,barWidth:m}))&&p.add(x),T=w.y,O=w.x,c.push(O),h.push(T),C.barHelpers.getPathFillColor(A,t,v,a)),k="";_.globals.isBarHorizontal?"bottom"===C.barHelpers.arrBorderRadius[a][v]&&0<_.globals.series[a][v]&&(k="apexcharts-flip-x"):"bottom"===C.barHelpers.arrBorderRadius[a][v]&&0<_.globals.series[a][v]&&(k="apexcharts-flip-y"),d=C.renderSeries({realIndex:a,pathFill:x,j:v,i:t,columnGroupIndex:l,pathFrom:w.pathFrom,pathTo:w.pathTo,strokeWidth:y,elSeries:d,x:O,y:T,series:A,barHeight:g,barWidth:m,elDataLabelsWrap:f,elGoalsMarkers:p,type:"bar",visibleSeries:l,classes:k})}_.globals.seriesXvalues[a]=c,_.globals.seriesYvalues[a]=h,C.groupCtx.prevY.push(C.groupCtx.yArrj),C.groupCtx.prevYF.push(C.groupCtx.yArrjF),C.groupCtx.prevYVal.push(C.groupCtx.yArrjVal),C.groupCtx.prevX.push(C.groupCtx.xArrj),C.groupCtx.prevXF.push(C.groupCtx.xArrjF),C.groupCtx.prevXVal.push(C.groupCtx.xArrjVal),E.add(d)})(e,i);return E}},{key:"initialPositions",value:function(t,e,i,n,r,o,a){var s,l,c=this.w,h=(this.isHorizontal?(n=c.globals.gridHeight/c.globals.dataPoints,s=c.config.plotOptions.bar.barHeight,s=-1===String(s).indexOf("%")?parseInt(s,10):n*parseInt(s,10)/100,o=c.globals.padHorizontal+(this.isReversed?c.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),e=(n-s)/2):(l=i=c.globals.gridWidth/c.globals.dataPoints,h=c.config.plotOptions.bar.columnWidth,c.globals.isXNumeric&&1<c.globals.dataPoints?l=(i=c.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(h).indexOf("%")?l=parseInt(h,10):l*=parseInt(h,10)/100,r=this.isReversed?this.baseLineY[a]:c.globals.gridHeight-this.baseLineY[a],t=c.globals.padHorizontal+(i-l)/2),c.globals.barGroups.length||1);return{x:t,y:e,yDivision:n,xDivision:i,barHeight:s/h,barWidth:l/h,zeroH:r,zeroW:o}}},{key:"drawStackedBarPaths",value:function(t){for(var e=t.indexes,i=t.barHeight,n=t.strokeWidth,r=t.zeroW,o=t.y,a=t.seriesGroup,s=t.yDivision,l=t.elSeries,c=this.w,t=o+t.columnGroupIndex*i,h=e.i,u=e.j,d=e.realIndex,f=e.translationsIndex,p=0,g=0;g<this.groupCtx.prevXF.length;g++)p+=this.groupCtx.prevXF[g][u];var d=0<(d=a.indexOf(c.config.series[d].name))?(m=r,this.groupCtx.prevXVal[d-1][u]<0?m=0<=this.series[h][u]?this.groupCtx.prevX[d-1][u]+p-2*(this.isReversed?p:0):this.groupCtx.prevX[d-1][u]:0<=this.groupCtx.prevXVal[d-1][u]&&(m=0<=this.series[h][u]?this.groupCtx.prevX[d-1][u]:this.groupCtx.prevX[d-1][u]-p+2*(this.isReversed?p:0)),m):r,m=null===this.series[h][u]?d:d+this.series[h][u]/this.invertedYRatio-2*(this.isReversed?this.series[h][u]/this.invertedYRatio:0),n=this.barHelpers.getBarpaths({barYPosition:t,barHeight:i,x1:d,x2:m,strokeWidth:n,isReversed:this.isReversed,series:this.series,realIndex:e.realIndex,seriesGroup:a,i:h,j:u,w:c});return this.barHelpers.barBackground({j:u,i:h,y1:t,y2:i,elSeries:l}),o+=s,{pathTo:n.pathTo,pathFrom:n.pathFrom,goalX:this.barHelpers.getGoalValues("x",r,null,h,u,f),barXPosition:d,barYPosition:t,x:m,y:o}}},{key:"drawStackedColumnPaths",value:function(t){for(var e=t.indexes,i=t.x,n=t.xDivision,r=t.barWidth,o=t.zeroH,a=t.seriesGroup,s=t.elSeries,l=this.w,c=e.i,h=e.j,u=e.bc,d=e.realIndex,f=e.translationsIndex,t=(i=l.globals.isXNumeric?((l.globals.seriesX[d][h]||0)-l.globals.minX)/this.xRatio-r/2*l.globals.barGroups.length:i)+t.columnGroupIndex*r,p=0,g=0;g<this.groupCtx.prevYF.length;g++)p+=isNaN(this.groupCtx.prevYF[g][h])?0:this.groupCtx.prevYF[g][h];var m=c;if(0<(m=a?a.indexOf(l.globals.seriesNames[d]):m)&&!l.globals.isXNumeric||0<m&&l.globals.isXNumeric&&l.globals.seriesX[d-1][h]===l.globals.seriesX[d][h]){var b,v,y,x=Math.min(this.yRatio.length+1,d+1);if(void 0!==this.groupCtx.prevY[m-1]&&this.groupCtx.prevY[m-1].length)for(var w=1;w<x;w++)if(!isNaN(null==(y=this.groupCtx.prevY[m-w])?void 0:y[h])){v=this.groupCtx.prevY[m-w][h];break}for(var k,A=1;A<x;A++){if((null==(k=this.groupCtx.prevYVal[m-A])?void 0:k[h])<0){b=0<=this.series[c][h]?v-p+2*(this.isReversed?p:0):v;break}if(0<=(null==(k=this.groupCtx.prevYVal[m-A])?void 0:k[h])){b=0<=this.series[c][h]?v:v+p-2*(this.isReversed?p:0);break}}void 0===b&&(b=l.globals.gridHeight),S=null!=(d=this.groupCtx.prevYF[0])&&d.every(function(t){return 0===t})&&this.groupCtx.prevYF.slice(1,m).every(function(t){return t.every(function(t){return isNaN(t)})})?o:b}else S=o;var d=this.series[c][h]?S-this.series[c][h]/this.yRatio[f]+2*(this.isReversed?this.series[c][h]/this.yRatio[f]:0):S,S=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:r,y1:S,y2:d,yRatio:this.yRatio[f],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:a,realIndex:e.realIndex,i:c,j:h,w:l});return this.barHelpers.barBackground({bc:u,j:h,i:c,x1:t,x2:r,elSeries:s}),{pathTo:S.pathTo,pathFrom:S.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,c,h),barXPosition:t,x:l.globals.isXNumeric?i:i+n,y:d}}}]),c),Qt=(i(l,b),dt=e(l),t(l,[{key:"draw",value:function(x,t,r){var w=this,k=this.w,o=new H(this.ctx),t=k.globals.comboCharts?t:k.config.chart.type,A=new _(this.ctx),e=(this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=k.config.plotOptions.bar.horizontal,new I(this.ctx,k));x=e.getLogSeries(x),this.series=x,this.yRatio=e.getLogYRatios(this.yRatio),this.barHelpers.initVariables(x);for(var S=o.group({class:"apexcharts-".concat(t,"-series apexcharts-plot-series")}),i=0;i<x.length;i++)(a=>{w.isBoxPlot="boxPlot"===k.config.chart.type||"boxPlot"===k.config.series[a].type;var s=void 0,l=void 0,e=[],i=[],c=k.globals.comboCharts?r[a]:a,h=w.barHelpers.getGroupIndex(c).columnGroupIndex,u=o.group({class:"apexcharts-series",seriesName:B.escapeString(k.globals.seriesNames[c]),rel:a+1,"data:realIndex":c}),d=(w.ctx.series.addCollapsedClassToSeries(u,c),0<x[a].length&&(w.visibleI=w.visibleI+1),0),t=(1<w.yRatio.length&&(w.yaxisIndex=k.globals.seriesYAxisReverseMap[c][0],d=c),w.barHelpers.initialPositions()),l=t.y,f=t.barHeight,p=t.yDivision,g=t.zeroW,s=t.x,m=t.barWidth,b=t.xDivision,v=t.zeroH;i.push(s+m/2);for(var y=o.group({class:"apexcharts-datalabels","data:realIndex":c}),n=0;n<k.globals.dataPoints;n++)(n=>{var r=w.barHelpers.getStrokeWidth(a,n,c),o=null,t={indexes:{i:a,j:n,realIndex:c,translationsIndex:d},x:s,y:l,strokeWidth:r,elSeries:u},o=w.isHorizontal?w.drawHorizontalBoxPaths(M(M({},t),{},{yDivision:p,barHeight:f,zeroW:g})):w.drawVerticalBoxPaths(M(M({},t),{},{xDivision:b,barWidth:m,zeroH:v}));l=o.y,s=o.x,0<n&&i.push(s+m/2),e.push(l),o.pathTo.forEach(function(t,e){var i=!w.isBoxPlot&&w.candlestickOptions.wick.useFillColor?o.color[e]:k.globals.stroke.colors[a],e=A.fillPath({seriesNumber:c,dataPointIndex:n,color:o.color[e],value:x[a][n]});w.renderSeries({realIndex:c,pathFill:e,lineFill:i,j:n,i:a,pathFrom:o.pathFrom,pathTo:t,strokeWidth:r,elSeries:u,x:s,y:l,series:x,columnGroupIndex:h,barHeight:f,barWidth:m,elDataLabelsWrap:y,visibleSeries:w.visibleI,type:k.config.chart.type})})})(n);k.globals.seriesXvalues[c]=i,k.globals.seriesYvalues[c]=e,S.add(u)})(i);return S}},{key:"drawVerticalBoxPaths",value:function(t){var e=t.indexes,i=t.x,n=t.xDivision,r=t.barWidth,o=t.zeroH,t=t.strokeWidth,a=this.w,s=new H(this.ctx),l=e.i,c=e.j,h=!0,u=a.config.plotOptions.candlestick.colors.upward,d=a.config.plotOptions.candlestick.colors.downward,f="",p=(this.isBoxPlot&&(f=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]),this.yRatio[e.translationsIndex]),e=e.realIndex,g=this.getOHLCValue(e,c),m=o,b=o,v=(g.o>g.c&&(h=!1),Math.min(g.o,g.c)),y=Math.max(g.o,g.c),x=g.m,w=(i=a.globals.isXNumeric?(a.globals.seriesX[e][c]-a.globals.minX)/this.xRatio-r/2:i)+r*this.visibleI,l=(null==this.series[l][c]?y=v=o:(v=o-v/p,y=o-y/p,m=o-g.h/p,b=o-g.l/p,x=o-g.m/p),s.move(w,o),s.move(w+r/2,v));return 0<a.globals.previousPaths.length&&(l=this.getPreviousPath(e,c,!0)),g=this.isBoxPlot?[s.move(w,v)+s.line(w+r/2,v)+s.line(w+r/2,m)+s.line(w+r/4,m)+s.line(w+r-r/4,m)+s.line(w+r/2,m)+s.line(w+r/2,v)+s.line(w+r,v)+s.line(w+r,x)+s.line(w,x)+s.line(w,v+t/2),s.move(w,x)+s.line(w+r,x)+s.line(w+r,y)+s.line(w+r/2,y)+s.line(w+r/2,b)+s.line(w+r-r/4,b)+s.line(w+r/4,b)+s.line(w+r/2,b)+s.line(w+r/2,y)+s.line(w,y)+s.line(w,x)+"z"]:[s.move(w,y)+s.line(w+r/2,y)+s.line(w+r/2,m)+s.line(w+r/2,y)+s.line(w+r,y)+s.line(w+r,v)+s.line(w+r/2,v)+s.line(w+r/2,b)+s.line(w+r/2,v)+s.line(w,v)+s.line(w,y-t/2)],l+=s.move(w,v),a.globals.isXNumeric||(i+=n),{pathTo:g,pathFrom:l,x:i,y:y,barXPosition:w,color:this.isBoxPlot?f:h?[u]:[d]}}},{key:"drawHorizontalBoxPaths",value:function(t){var e=t.indexes,i=t.y,n=t.yDivision,r=t.barHeight,o=t.zeroW,t=t.strokeWidth,a=this.w,s=new H(this.ctx),l=e.i,c=e.j,h=this.boxOptions.colors.lower,u=(this.isBoxPlot&&(h=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]),this.invertedYRatio),e=e.realIndex,d=this.getOHLCValue(e,c),f=o,p=o,g=Math.min(d.o,d.c),m=Math.max(d.o,d.c),b=d.m,v=(i=a.globals.isXNumeric?(a.globals.seriesX[e][c]-a.globals.minX)/this.invertedXRatio-r/2:i)+r*this.visibleI,l=(null==this.series[l][c]?m=g=o:(g=o+g/u,m=o+m/u,f=o+d.h/u,p=o+d.l/u,b=o+d.m/u),s.move(o,v),s.move(g,v+r/2));return 0<a.globals.previousPaths.length&&(l=this.getPreviousPath(e,c,!0)),d=[s.move(g,v)+s.line(g,v+r/2)+s.line(f,v+r/2)+s.line(f,v+r/2-r/4)+s.line(f,v+r/2+r/4)+s.line(f,v+r/2)+s.line(g,v+r/2)+s.line(g,v+r)+s.line(b,v+r)+s.line(b,v)+s.line(g+t/2,v),s.move(b,v)+s.line(b,v+r)+s.line(m,v+r)+s.line(m,v+r/2)+s.line(p,v+r/2)+s.line(p,v+r-r/4)+s.line(p,v+r/4)+s.line(p,v+r/2)+s.line(m,v+r/2)+s.line(m,v)+s.line(b,v)+"z"],l+=s.move(g,v),a.globals.isXNumeric||(i+=n),{pathTo:d,pathFrom:l,x:m,y:i,barYPosition:v,color:h}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:(this.isBoxPlot?i.globals.seriesCandleH:i.globals.seriesCandleO)[t][e],h:(this.isBoxPlot?i.globals.seriesCandleO:i.globals.seriesCandleH)[t][e],m:i.globals.seriesCandleM[t][e],l:(this.isBoxPlot?i.globals.seriesCandleC:i.globals.seriesCandleL)[t][e],c:(this.isBoxPlot?i.globals.seriesCandleL:i.globals.seriesCandleC)[t][e]}}}]),l),Jt=(t(de,[{key:"checkColorRange",value:function(){var t=this.w,i=!1;return 0<(t=t.config.plotOptions[t.config.chart.type]).colorScale.ranges.length&&t.colorScale.ranges.map(function(t,e){t.from<=0&&(i=!0)}),i}},{key:"getShadeColor",value:function(t,e,i,n){var r=this.w,o=1,a=r.config.plotOptions[t].shadeIntensity,e=this.determineColor(t,e,i),i=(r.globals.hasNegs||n?o=r.config.plotOptions[t].reverseNegativeShade?e.percent<0?e.percent/100*(1.25*a):(1-e.percent/100)*(1.25*a):e.percent<=0?1-(1+e.percent/100)*a:(1-e.percent/100)*a:(o=1-e.percent/100,"treemap"===t&&(o=(1-e.percent/100)*(1.25*a))),e.color),n=new B;return{color:i=r.config.plotOptions[t].enableShades?"dark"===this.w.config.theme.mode?(a=n.shadeColor(-1*o,e.color),B.hexToRgba(B.isColorHex(a)?a:B.rgb2hex(a),r.config.fill.opacity)):(t=n.shadeColor(o,e.color),B.hexToRgba(B.isColorHex(t)?t:B.rgb2hex(t),r.config.fill.opacity)):i,colorProps:e}}},{key:"determineColor",value:function(t,e,i){var n=this.w,r=n.globals.series[e][i],o=n.config.plotOptions[t],a=o.colorScale.inverse?i:e,s=(o.distributed&&"treemap"===n.config.chart.type&&(a=i),n.globals.colors[a]),l=null,c=Math.min.apply(Math,A(n.globals.series[e])),h=Math.max.apply(Math,A(n.globals.series[e])),i=(o.distributed||"heatmap"!==t||(c=n.globals.minY,h=n.globals.maxY),void 0!==o.colorScale.min&&(c=o.colorScale.min<n.globals.minY?o.colorScale.min:n.globals.minY,h=o.colorScale.max>n.globals.maxY?o.colorScale.max:n.globals.maxY),Math.abs(h)+Math.abs(c)),u=100*r/(0===i?i-1e-6:i);return 0<o.colorScale.ranges.length&&o.colorScale.ranges.map(function(t,e){r>=t.from&&r<=t.to&&(s=t.color,l=t.foreColor||null,c=t.from,h=t.to,t=Math.abs(h)+Math.abs(c),u=100*r/(0===t?t-1e-6:t))}),{color:s,foreColor:l,percent:u}}},{key:"calculateDataLabels",value:function(t){var e,i=t.text,n=t.x,r=t.y,o=t.i,a=t.j,s=t.colorProps,t=t.fontSize,l=this.w.config.dataLabels,c=new H(this.ctx),h=new k(this.ctx),u=null;return l.enabled&&(u=c.group({class:"apexcharts-data-labels"}),c=l.offsetX,e=l.offsetY,n+=c,c=r+parseFloat(l.style.fontSize)/3+e,h.plotDataLabelsText({x:n,y:c,text:i,i:o,j:a,color:s.foreColor,parent:u,fontSize:t,dataLabelsConfig:l})),u}},{key:"addListeners",value:function(t){var e=new H(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),de),te=(t(ue,[{key:"draw",value:function(t){var e=this.w,i=new H(this.ctx),n=i.group({class:"apexcharts-heatmap"}),r=(n.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")")),e.globals.gridWidth/e.globals.dataPoints),o=e.globals.gridHeight/e.globals.series.length,a=0,s=!1,l=(this.negRange=this.helpers.checkColorRange(),t.slice());e.config.yaxis[0].reversed&&(s=!0,l.reverse());for(var c=s?0:l.length-1;s?c<l.length:0<=c;s?c++:c--){var h,u=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:B.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});this.ctx.series.addCollapsedClassToSeries(u,c),e.config.chart.dropShadow.enabled&&(h=e.config.chart.dropShadow,new P(this.ctx).dropShadow(u,h,c));for(var d=0,f=e.config.plotOptions.heatmap.shadeIntensity,p=0;p<l[c].length;p++){var g,m=(b=this.helpers.getShadeColor(e.config.chart.type,c,p,this.negRange)).color,b=b.colorProps,v=("image"===e.config.fill.type&&(m=new _(this.ctx).fillPath({seriesNumber:c,dataPointIndex:p,opacity:e.globals.hasNegs?b.percent<0?1-(1+b.percent/100):f+b.percent/100:b.percent/100,patternID:B.randomId(),width:e.config.fill.image.width||r,height:e.config.fill.image.height||o})),this.rectRadius),v=((v=i.drawRect(d,a,r,o,v)).attr({cx:d,cy:a}),v.node.classList.add("apexcharts-heatmap-rect"),u.add(v),v.attr({fill:m,i:c,index:c,j:p,val:t[c][p],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?m:e.globals.stroke.colors[0],color:m}),this.helpers.addListeners(v),e.config.chart.animations.enabled&&!e.globals.dataChanged&&(g=1,e.globals.resized||(g=e.config.chart.animations.speed),this.animateHeatMap(v,d,a,r,o,g)),e.globals.dataChanged&&(g=1,this.dynamicAnim.enabled)&&e.globals.shouldAnimate&&(g=this.dynamicAnim.speed,y=e.globals.previousPaths[c]&&e.globals.previousPaths[c][p]&&e.globals.previousPaths[c][p].color||"rgba(255, 255, 255, 0)",this.animateHeatColor(v,B.isColorHex(y)?y:B.rgb2hex(y),B.isColorHex(m)?m:B.rgb2hex(m),g)),(0,e.config.dataLabels.formatter)(e.globals.series[c][p],{value:e.globals.series[c][p],seriesIndex:c,dataPointIndex:p,w:e})),y=this.helpers.calculateDataLabels({text:v,x:d+r/2,y:a+o/2,i:c,j:p,colorProps:b,series:l});null!==y&&u.add(y),d+=r}a+=o,n.add(u)}var x=e.globals.yAxisScale[0].result.slice();return e.config.yaxis[0].reversed?x.unshift(""):x.push(""),e.globals.yAxisScale[0].result=x,n}},{key:"animateHeatMap",value:function(t,e,i,n,r,o){var a=new S(this.ctx);a.animateRect(t,{x:e+n/2,y:i+r/2,width:0,height:0},{x:e,y:i,width:n,height:r},o,function(){a.animationCompleted(t)})}},{key:"animateHeatColor",value:function(t,e,i,n){t.attr({fill:e}).animate(n).attr({fill:i})}}]),ue),ee=(t(he,[{key:"drawYAxisTexts",value:function(t,e,i,n){var r=(o=this.w).config.yaxis[0],o=o.globals.yLabelFormatters[0];return new H(this.ctx).drawText({x:t+r.labels.offsetX,y:e+r.labels.offsetY,text:o(n,i),textAnchor:"middle",fontSize:r.labels.style.fontSize,fontFamily:r.labels.style.fontFamily,foreColor:Array.isArray(r.labels.style.colors)?r.labels.style.colors[i]:r.labels.style.colors})}}]),he),ie=(t(ce,[{key:"draw",value:function(t){var e=this,i=this.w,n=new H(this.ctx),r=n.group({class:"apexcharts-pie"});if(!i.globals.noData){for(var o=0,a=0;a<t.length;a++)o+=B.negToZero(t[a]);var s=[],l=n.group();0===o&&(o=1e-5),t.forEach(function(t){e.maxY=Math.max(e.maxY,t)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(r);for(var c=0;c<t.length;c++){var h=this.fullAngle*B.negToZero(t[c])/o;s.push(h),"polarArea"===this.chartType?(s[c]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[c]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var u,d=0,f=0;f<i.globals.previousPaths.length;f++)d+=B.negToZero(i.globals.previousPaths[f]);for(var p=0;p<i.globals.previousPaths.length;p++)u=this.fullAngle*B.negToZero(i.globals.previousPaths[p])/d,this.prevSectorAngleArr.push(u)}this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType&&((n=n.drawCircle(this.donutSize)).attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background||"transparent"}),l.add(n));var g=this.drawArcs(s,t);this.sliceLabels.forEach(function(t){g.add(t)}),l.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),l.add(g),r.add(l),this.donutDataLabels.show&&(n=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show}),r.add(n)),"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(r)}return r}},{key:"drawArcs",value:function(t,e){var i=this.w,n=new P(this.ctx),r=new H(this.ctx),o=new _(this.ctx),a=r.group({class:"apexcharts-slices"}),s=(this.initialAngle,this.initialAngle,this.initialAngle),l=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var c=0;c<t.length;c++){var h,u,d=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:B.escapeString(i.globals.seriesNames[c]),rel:c+1,"data:realIndex":c}),f=(a.add(d),u=l,s=(h=s)+t[c],l=u+this.prevSectorAngleArr[c],s<h?this.fullAngle+s-h:s-h),p=o.fillPath({seriesNumber:c,size:this.sliceSizes[c],value:e[c]}),g=this.getChangedPath(u,l),p=((g=r.drawPath({d:g,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[c]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c)})).attr({index:0,j:c}),n.setSelectionFilter(g,0,c),i.config.chart.dropShadow.enabled&&(p=i.config.chart.dropShadow,n.dropShadow(g,p,c)),this.addListeners(g,this.donutDataLabels),H.setAttrs(g.node,{"data:angle":f,"data:startAngle":h,"data:strokeWidth":this.strokeWidth,"data:value":e[c]}),{x:0,y:0}),d=("pie"===this.chartType||"polarArea"===this.chartType?p=B.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(h+f/2)%this.fullAngle):"donut"===this.chartType&&(p=B.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(h+f/2)%this.fullAngle)),d.add(g),0);!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(d=f/this.fullAngle*i.config.chart.animations.speed)&&(d=1),this.animDur=d+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(g,{size:this.sliceSizes[c],endAngle:s,startAngle:h,prevStartAngle:u,prevEndAngle:l,animateStartingPos:!0,i:c,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(g,{size:this.sliceSizes[c],endAngle:s,startAngle:h,i:c,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:d}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&g.node.addEventListener("mouseup",this.pieClicked.bind(this,c)),void 0!==i.globals.selectedDataPoints[0]&&-1<i.globals.selectedDataPoints[0].indexOf(c)&&this.pieClicked(c),i.config.dataLabels.enabled&&(u=p.x,h=p.y,d=100*f/this.fullAngle+"%",0!=f)&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[c]&&(void 0!==(g=i.config.dataLabels.formatter)&&(d=g(i.globals.seriesPercent[c][0],{seriesIndex:c,w:i})),p=i.globals.dataLabels.style.colors[c],f=r.group({class:"apexcharts-datalabels"}),g=r.drawText({x:u,y:h,text:d,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:p}),f.add(g),i.config.dataLabels.dropShadow.enabled&&(u=i.config.dataLabels.dropShadow,n.dropShadow(g,u)),g.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(g.node.classList.add("apexcharts-pie-label-delay"),g.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(f))}return a}},{key:"addListeners",value:function(t,e){var i=new H(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=this.w,n=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,r=n,o=e.startAngle,a=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(o=e.prevEndAngle,r=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(n+a>this.fullAngle?e.endAngle=e.endAngle-(n+a):n+a<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(n+a)))),n===this.fullAngle&&(n=this.fullAngle-.01),this.animateArc(t,o,a,n,r,e)}},{key:"animateArc",value:function(e,i,n,r,o,a){var s,l=this,t=this.w,c=new S(this.ctx),h=a.size,u=((isNaN(i)||isNaN(o))&&(i=n,o=r,a.dur=0),r),d=n,f=i<n?this.fullAngle+i-n:i-n;t.globals.dataChanged&&a.shouldSetPrevPaths&&a.prevEndAngle&&(s=l.getPiePath({me:l,startAngle:a.prevStartAngle,angle:a.prevEndAngle<a.prevStartAngle?this.fullAngle+a.prevEndAngle-a.prevStartAngle:a.prevEndAngle-a.prevStartAngle,size:h}),e.attr({d:s})),0!==a.dur?e.animate(a.dur,t.globals.easing,a.animBeginArr[a.i]).afterAll(function(){"pie"!==l.chartType&&"donut"!==l.chartType&&"polarArea"!==l.chartType||this.animate(t.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":l.strokeWidth}),a.i===t.config.series.length-1&&c.animationCompleted(e)}).during(function(t){u=f+(r-f)*t,a.animateStartingPos&&(u=o+(r-o)*t,d=i-o+(n-(i-o))*t),s=l.getPiePath({me:l,startAngle:d,angle:u,size:h}),e.node.setAttribute("data:pathOrig",s),e.attr({d:s})}):(s=l.getPiePath({me:l,startAngle:d,angle:r,size:h}),a.isTrack||(t.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",s),e.attr({d:s,"stroke-width":l.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,n=this.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),r=i.globals.dom.Paper.select(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(t)).members[0];"true"!==r.attr("data:pieClicked")?(e=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),Array.prototype.forEach.call(e,function(t){t.setAttribute("data:pieClicked","false");var e=t.getAttribute("data:pathOrig");e&&t.setAttribute("d",e)}),i.globals.capturedDataPointIndex=t,r.attr("data:pieClicked","true"),e=parseInt(r.attr("data:startAngle"),10),i=parseInt(r.attr("data:angle"),10),t=this.getPiePath({me:this,startAngle:e,angle:i,size:n}),360!==i&&r.plot(t)):(r.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(r.node,this.donutDataLabels),e=r.attr("data:pathOrig"),r.attr({d:e}))}},{key:"getChangedPath",value:function(t,e){return this.dynamicAnim&&this.w.globals.dataChanged?this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size}):""}},{key:"getPiePath",value:function(t){var e=t.me,i=t.startAngle,n=t.angle,t=t.size,r=new H(this.ctx),o=i,a=Math.PI*(o-90)/180,i=n+i,s=(Math.ceil(i)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(i=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(i)>this.fullAngle&&(i-=this.fullAngle),Math.PI*(i-90)/180),l=e.centerX+t*Math.cos(a),a=e.centerY+t*Math.sin(a),c=e.centerX+t*Math.cos(s),s=e.centerY+t*Math.sin(s),i=B.polarToCartesian(e.centerX,e.centerY,e.donutSize,i),o=B.polarToCartesian(e.centerX,e.centerY,e.donutSize,o),t=["M",l,a,"A",t,t,0,n=180<n?1:0,1,c,s],c=("donut"===e.chartType?[].concat(t,["L",i.x,i.y,"A",e.donutSize,e.donutSize,0,n,0,o.x,o.y,"L",l,a,"z"]):"pie"===e.chartType||"polarArea"===e.chartType?[].concat(t,["L",e.centerX,e.centerY,"L",l,a]):[].concat(t)).join(" ");return r.roundPathCorners(c,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new At(this.ctx),n=new H(this.ctx),r=new ee(this.ctx),o=n.group(),a=n.group(),s=(i=i.niceScale(0,Math.ceil(this.maxY),0)).result.reverse(),l=i.result.length;this.maxY=i.niceMax;for(var c=e.globals.radialSize,h=c/(l-1),u=0;u<l-1;u++){var d,f=n.drawCircle(c);f.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.rings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show&&(d=r.drawYAxisTexts(this.centerX,this.centerY-c+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,u,s[u]),a.add(d)),o.add(f),c-=h}this.drawSpokes(t),t.add(o),t.add(a)}},{key:"renderInnerDataLabels",value:function(t,e,i){var n=this.w,r=new H(this.ctx),o=e.total.show,a=(t.node.innerHTML="",t.node.style.opacity=i.opacity,i.centerX),i=this.donutDataLabels.total.label?i.centerY:i.centerY-i.centerY/6,s=void 0===e.name.color?n.globals.colors[0]:e.name.color,l=e.name.fontSize,c=e.name.fontFamily,h=e.name.fontWeight,u=void 0===e.value.color?n.config.chart.foreColor:e.value.color,d=e.value.formatter,f="",p="";return o?(s=e.total.color,l=e.total.fontSize,c=e.total.fontFamily,h=e.total.fontWeight,p=this.donutDataLabels.total.label?e.total.label:"",f=e.total.formatter(n)):1===n.globals.series.length&&(f=d(n.globals.series[0],n),p=n.globals.seriesNames[0]),p=p&&e.name.formatter(p,e.total.show,n),e.name.show&&((o=r.drawText({x:a,y:i+parseFloat(e.name.offsetY),text:p,textAnchor:"middle",foreColor:s,fontSize:l,fontWeight:h,fontFamily:c})).node.classList.add("apexcharts-datalabel-label"),t.add(o)),e.value.show&&(d=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,(n=r.drawText({x:a,y:i+d,text:f,textAnchor:"middle",foreColor:u,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily})).node.classList.add("apexcharts-datalabel-value"),t.add(n)),t}},{key:"printInnerLabels",value:function(t,e,i,n){var r,o=this.w,a=(n?r=void 0===t.name.color?o.globals.colors[parseInt(n.parentNode.getAttribute("rel"),10)-1]:t.name.color:1<o.globals.series.length&&t.total.show&&(r=t.total.color),o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label")),s=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value"),n=(i=(0,t.value.formatter)(i,o),n||"function"!=typeof t.total.formatter||(i=t.total.formatter(o)),e===t.total.label);e=this.donutDataLabels.total.label?t.name.formatter(e,n,o):"",null!==a&&(a.textContent=e),null!==s&&(s.textContent=i),null!==a&&(a.style.fill=r)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,n=t.getAttribute("data:value"),r=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];1<i.globals.series.length&&this.printInnerLabels(e,r,n,t),null!==(e=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"))&&(e.style.opacity=1)}},{key:"drawSpokes",value:function(i){var n=this,t=this.w,r=new H(this.ctx),o=t.config.plotOptions.polarArea.spokes;if(0!==o.strokeWidth){for(var e=[],a=360/t.globals.series.length,s=0;s<t.globals.series.length;s++)e.push(B.polarToCartesian(this.centerX,this.centerY,t.globals.radialSize,t.config.plotOptions.pie.startAngle+a*s));e.forEach(function(t,e){t=r.drawLine(t.x,t.y,n.centerX,n.centerY,Array.isArray(o.connectorColors)?o.connectorColors[e]:o.connectorColors),i.add(t)})}}},{key:"revertDataLabelsInner",value:function(){var t,e=this.w;this.donutDataLabels.show&&(t=e.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0],t=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show}),e.globals.dom.Paper.select(".apexcharts-radialbar, .apexcharts-pie").members[0].add(t))}}]),ce),ne=(t(le,[{key:"draw",value:function(t){var u,d,f=this,p=this.w,g=new _(this.ctx),m=[],b=new k(this.ctx),e=(t.length&&(this.dataPointsLen=t[p.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen,p.globals.gridWidth/2),i=p.globals.gridHeight/2,e=e+p.config.plotOptions.radar.offsetX,i=i+p.config.plotOptions.radar.offsetY,n=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(e||0,", ").concat(i||0,")")}),v=null;return this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach(function(t,r){var e=t.length===p.globals.dataPoints,o=f.graphics.group().attr({class:"apexcharts-series","data:longestSeries":e,seriesName:B.escapeString(p.globals.seriesNames[r]),rel:r+1,"data:realIndex":r}),i=(f.dataRadiusOfPercent[r]=[],f.dataRadius[r]=[],f.angleArr[r]=[],t.forEach(function(t,e){var i=Math.abs(f.maxValue-f.minValue);t-=f.minValue,f.isLog&&(t=f.coreUtils.getLogVal(f.logBase,t,0)),f.dataRadiusOfPercent[r][e]=t/i,f.dataRadius[r][e]=f.dataRadiusOfPercent[r][e]*f.size,f.angleArr[r][e]=e*f.disAngle}),u=f.getDataPointsPos(f.dataRadius[r],f.angleArr[r]),f.createPaths(u,{x:0,y:0})),n=(v=f.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),d=f.graphics.group({class:"apexcharts-datalabels","data:realIndex":r}),p.globals.delayedElements.push({el:v.node,index:r}),{i:r,realIndex:r,animationDelay:r,initialSpeed:p.config.chart.animations.speed,dataChangeSpeed:p.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:p.globals.stroke.colors[r],strokeLineCap:p.config.stroke.lineCap}),a=null;0<p.globals.previousPaths.length&&(a=f.getPreviousPath(r));for(var s=0;s<i.linePathsTo.length;s++){var l,c,h=f.graphics.renderPaths(M(M({},n),{},{pathFrom:null===a?i.linePathsFrom[s]:a,pathTo:i.linePathsTo[s],strokeWidth:Array.isArray(f.strokeWidth)?f.strokeWidth[r]:f.strokeWidth,fill:"none",drawShadow:!1})),h=(o.add(h),g.fillPath({seriesNumber:r})),h=f.graphics.renderPaths(M(M({},n),{},{pathFrom:null===a?i.areaPathsFrom[s]:a,pathTo:i.areaPathsTo[s],strokeWidth:0,fill:h,drawShadow:!1}));p.config.chart.dropShadow.enabled&&(l=new P(f.ctx),c=p.config.chart.dropShadow,l.dropShadow(h,Object.assign({},c,{noUserSpaceOnUse:!0}),r)),o.add(h)}t.forEach(function(t,e){var i=new w(f.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:r,dataPointIndex:e}),n=f.graphics.drawMarker(u[e].x,u[e].y,i);n.attr("rel",e),n.attr("j",e),n.attr("index",r),n.node.setAttribute("default-marker-size",i.pSize),(i=f.graphics.group({class:"apexcharts-series-markers"}))&&i.add(n),v.add(i),o.add(v),(n=p.config.dataLabels).enabled&&(i=n.formatter(p.globals.series[r][e],{seriesIndex:r,dataPointIndex:e,w:p}),b.plotDataLabelsText({x:u[e].x,y:u[e].y,text:i,textAnchor:"middle",i:r,j:r,parent:d,offsetCorrection:!1,dataLabelsConfig:M({},n)})),o.add(d)}),m.push(o)}),this.drawPolygons({parent:n}),p.config.xaxis.labels.show&&(e=this.drawXAxisTexts(),n.add(e)),m.forEach(function(t){n.add(t)}),n.add(this.yaxisLabels),n}},{key:"drawPolygons",value:function(t){for(var o=this,r=this.w,a=t.parent,i=new ee(this.ctx),n=r.globals.yAxisScale[0].result.reverse(),e=n.length,s=[],l=this.size/(e-1),c=0;c<e;c++)s[c]=l*c;s.reverse();var h=[],u=[];s.forEach(function(t,n){var t=B.getPolygonPos(t,o.dataPointsLen),r="";t.forEach(function(t,e){var i;0===n&&(i=o.graphics.drawLine(t.x,t.y,0,0,Array.isArray(o.polygons.connectorColors)?o.polygons.connectorColors[e]:o.polygons.connectorColors),u.push(i)),0===e&&o.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),r+=t.x+","+t.y+" "}),h.push(r)}),h.forEach(function(t,e){var i=o.polygons.strokeColors,n=o.polygons.strokeWidth,t=o.graphics.drawPolygon(t,Array.isArray(i)?i[e]:i,Array.isArray(n)?n[e]:n,r.globals.radarPolygons.fill.colors[e]);a.add(t)}),u.forEach(function(t){a.add(t)}),r.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(t,e){t=i.drawYAxisTexts(t.x,t.y,e,n[e]),o.yaxisLabels.add(t)})}},{key:"drawXAxisTexts",value:function(){var o=this,a=this.w,s=a.config.xaxis.labels,l=this.graphics.group({class:"apexcharts-xaxis"}),c=B.getPolygonPos(this.size,this.dataPointsLen);return a.globals.labels.forEach(function(t,i){var e,n=a.config.xaxis.labels.formatter,r=new k(o.ctx);c[i]&&(e=o.getTextPos(c[i],o.size),n=n(t,{seriesIndex:-1,dataPointIndex:i,w:a}),r.plotDataLabelsText({x:e.newX,y:e.newY,text:n,textAnchor:e.textAnchor,i:i,j:i,parent:l,className:"apexcharts-xaxis-label",color:Array.isArray(s.style.colors)&&s.style.colors[i]?s.style.colors[i]:"#a8a8a8",dataLabelsConfig:M({textAnchor:e.textAnchor,dropShadow:{enabled:!1}},s),offsetCorrection:!1}).on("click",function(t){var e;"function"==typeof a.config.chart.events.xAxisLabelClick&&(e=Object.assign({},a,{labelIndex:i}),a.config.chart.events.xAxisLabelClick(t,o.ctx,e))}))}),l}},{key:"createPaths",value:function(i,t){var n,r,o=this,e=[],a=[],s=[],l=[];return i.length&&(a=[this.graphics.move(t.x,t.y)],l=[this.graphics.move(t.x,t.y)],n=this.graphics.move(i[0].x,i[0].y),r=this.graphics.move(i[0].x,i[0].y),i.forEach(function(t,e){n+=o.graphics.line(t.x,t.y),r+=o.graphics.line(t.x,t.y),e===i.length-1&&(n+="Z",r+="Z")}),e.push(n),s.push(r)),{linePathsFrom:a,linePathsTo:e,areaPathsFrom:l,areaPathsTo:s}}},{key:"getTextPos",value:function(t,e){var i="middle",n=t.x,r=t.y;return 10<=Math.abs(t.x)?0<t.x?(i="start",n+=10):t.x<0&&(i="end",n-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?r-=10:0<t.y&&(r+=10)),{textAnchor:i,newX:n,newY:r}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,n=0;n<e.globals.previousPaths.length;n++){var r=e.globals.previousPaths[n];0<r.paths.length&&parseInt(r.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[n].paths[0]&&(i=e.globals.previousPaths[n].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var n=[],r=0;r<i;r++){var o={};o.x=t[r]*Math.sin(e[r]),o.y=-t[r]*Math.cos(e[r]),n.push(o)}return n}}]),le),re=(i(a,ie),ut=e(a),t(a,[{key:"draw",value:function(t){var e,i,n,r,o,a=this.w,s=new H(this.ctx),l=s.group({class:"apexcharts-radialbar"});return a.globals.noData||(s=s.group(),r=this.defaultSize/2,n=a.globals.gridWidth/2,e=this.defaultSize/2.05,a.config.chart.sparkline.enabled||(e=e-a.config.stroke.width-a.config.chart.dropShadow.blur),o=a.globals.fill.colors,a.config.plotOptions.radialBar.track.show&&(i=this.drawTracks({size:e,centerX:n,centerY:r,colorArr:o,series:t}),s.add(i)),i=this.drawArcs({size:e,centerX:n,centerY:r,colorArr:o,series:t}),r=(360-(a.config.plotOptions.radialBar.startAngle<0?this.totalAngle:360))/360,a.globals.radialSize=e-e*r,this.radialDataLabels.value.show&&(o=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY),a.globals.radialSize+=o*r),s.add(i.g),"front"===a.config.plotOptions.radialBar.hollow.position&&(i.g.add(i.elHollow),i.dataLabels)&&i.g.add(i.dataLabels),l.add(s)),l}},{key:"drawTracks",value:function(t){var e=this.w,i=new H(this.ctx),n=i.group({class:"apexcharts-tracks"}),r=new P(this.ctx),o=new _(this.ctx),a=this.getStrokeWidth(t);t.size=t.size-a/2;for(var s=0;s<t.series.length;s++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"}),c=(n.add(l),l.attr({rel:s+1}),t.size=t.size-a-this.margin,e.config.plotOptions.radialBar.track),h=o.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[s]:c.background,solid:!0}),u=this.trackStartAngle,d=this.trackEndAngle,h=(360<=Math.abs(d)+Math.abs(u)&&(d=360-Math.abs(this.startAngle)-.1),i.drawPath({d:"",stroke:h,strokeWidth:a*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"}));c.dropShadow.enabled&&(c=c.dropShadow,r.dropShadow(h,c)),l.add(h),h.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(h,{centerX:t.centerX,centerY:t.centerY,endAngle:d,startAngle:u,size:t.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return n}},{key:"drawArcs",value:function(t){for(var e,i,n=this.w,r=new H(this.ctx),o=new _(this.ctx),a=new P(this.ctx),s=r.group(),l=this.getStrokeWidth(t),c=(t.size=t.size-l/2,n.config.plotOptions.radialBar.hollow.background),h=t.size-l*t.series.length-this.margin*t.series.length-l*parseInt(n.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,u=h-n.config.plotOptions.radialBar.hollow.margin,u=(void 0!==n.config.plotOptions.radialBar.hollow.image&&(c=this.drawHollowImage(t,s,h,c)),this.drawHollow({size:u,centerX:t.centerX,centerY:t.centerY,fill:c||"transparent"})),c=(n.config.plotOptions.radialBar.hollow.dropShadow.enabled&&(c=n.config.plotOptions.radialBar.hollow.dropShadow,a.dropShadow(u,c)),1),d=(!this.radialDataLabels.total.show&&1<n.globals.series.length&&(c=0),null),f=(this.radialDataLabels.show&&(e=n.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0],d=this.renderInnerDataLabels(e,this.radialDataLabels,{hollowSize:h,centerX:t.centerX,centerY:t.centerY,opacity:c})),"back"===n.config.plotOptions.radialBar.hollow.position&&(s.add(u),d)&&s.add(d),(i=!!n.config.plotOptions.radialBar.inverseOrder)?t.series.length-1:0);i?0<=f:f<t.series.length;i?f--:f++){var p,g,m=r.group({class:"apexcharts-series apexcharts-radial-series",seriesName:B.escapeString(n.globals.seriesNames[f])}),b=(s.add(m),m.attr({rel:f+1,"data:realIndex":f}),this.ctx.series.addCollapsedClassToSeries(m,f),t.size=t.size-l-this.margin,o.fillPath({seriesNumber:f,size:t.size,value:t.series[f]})),v=this.startAngle,y=void 0,x=B.negToZero(100<t.series[f]?100:t.series[f])/100,x=Math.round(this.totalAngle*x)+this.startAngle,w=void 0,k=(n.globals.dataChanged&&(y=this.startAngle,w=Math.round(this.totalAngle*B.negToZero(n.globals.previousPaths[f])/100)+y),360<Math.abs(x)+Math.abs(v)&&(x-=.01),360<Math.abs(w)+Math.abs(y)&&(w-=.01),x-v),A=Array.isArray(n.config.stroke.dashArray)?n.config.stroke.dashArray[f]:n.config.stroke.dashArray,b=r.drawPath({d:"",stroke:b,strokeWidth:l,fill:"none",fillOpacity:n.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+f,strokeDashArray:A}),S=(H.setAttrs(b.node,{"data:angle":k,"data:value":t.series[f]}),n.config.chart.dropShadow.enabled&&(A=n.config.chart.dropShadow,a.dropShadow(b,A,f)),a.setSelectionFilter(b,0,f),this.addListeners(b,this.radialDataLabels),m.add(b),b.attr({index:0,j:f}),this.barLabels.enabled&&(k=B.polarToCartesian(t.centerX,t.centerY,t.size,v),A=this.barLabels.formatter(n.globals.seriesNames[f],{seriesIndex:f,w:n}),p=["apexcharts-radialbar-label"],this.barLabels.onClick||p.push("apexcharts-no-click"),S=(S=this.barLabels.useSeriesColors?n.globals.colors[f]:n.config.chart.foreColor)||n.config.chart.foreColor,g=k.x+this.barLabels.offsetX,k=k.y+this.barLabels.offsetY,(A=r.drawText({x:g,y:k,text:A,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:S,cssClass:p.join(" ")})).on("click",this.onBarLabelClick),A.attr({rel:f+1}),0!==v&&A.attr({"transform-origin":"".concat(g," ").concat(k),transform:"rotate(".concat(v," 0 0)")}),m.add(A)),0);!this.initialAnim||n.globals.resized||n.globals.dataChanged||(S=n.config.chart.animations.speed),n.globals.dataChanged&&(S=n.config.chart.animations.dynamicAnimation.speed),this.animDur=S/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(b,{centerX:t.centerX,centerY:t.centerY,endAngle:x,startAngle:v,prevEndAngle:w,prevStartAngle:y,size:t.size,i:f,totalItems:2,animBeginArr:this.animBeginArr,dur:S,shouldSetPrevPaths:!0,easing:n.globals.easing})}return{g:s,elHollow:u,dataLabels:d}}},{key:"drawHollow",value:function(t){var e=new H(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(e,t,i,n){var r,o,a=this.w,s=new _(this.ctx),l=B.randomId(),c=a.config.plotOptions.radialBar.hollow.image;return a.config.plotOptions.radialBar.hollow.imageClipped?(s.clippedImgArea({width:i,height:i,image:c,patternID:"pattern".concat(a.globals.cuid).concat(l)}),n="url(#pattern".concat(a.globals.cuid).concat(l,")")):(r=a.config.plotOptions.radialBar.hollow.imageWidth,o=a.config.plotOptions.radialBar.hollow.imageHeight,void 0===r&&void 0===o?(s=a.globals.dom.Paper.image(c).loaded(function(t){this.move(e.centerX-t.width/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+a.config.plotOptions.radialBar.hollow.imageOffsetY)}),t.add(s)):(i=a.globals.dom.Paper.image(c).loaded(function(t){this.move(e.centerX-r/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-o/2+a.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(r,o)}),t.add(i))),n}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(t){var t=parseInt(t.target.getAttribute("rel"),10)-1,e=this.barLabels.onClick,i=this.w;e&&e(i.globals.seriesNames[t],{w:i,seriesIndex:t})}}]),a),oe=(i(r,b),ht=e(r),t(r,[{key:"draw",value:function(t,e){var i=this.w,n=new H(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var r=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o<t.length;o++){for(var a=void 0,s=void 0,l=i.globals.comboCharts?e[o]:o,c=this.barHelpers.getGroupIndex(l).columnGroupIndex,h=n.group({class:"apexcharts-series",seriesName:B.escapeString(i.globals.seriesNames[l]),rel:o+1,"data:realIndex":l}),u=(this.ctx.series.addCollapsedClassToSeries(h,l),0<t[o].length&&(this.visibleI=this.visibleI+1),0),d=0,f=0,p=(1<this.yRatio.length&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[l][0],f=l),this.barHelpers.initialPositions()),s=p.y,g=p.zeroW,a=p.x,d=p.barWidth,u=p.barHeight,m=p.xDivision,b=p.yDivision,v=p.zeroH,y=n.group({class:"apexcharts-datalabels","data:realIndex":l}),x=n.group({class:"apexcharts-rangebar-goals-markers"}),w=0;w<i.globals.dataPoints;w++){var k,A=this.barHelpers.getStrokeWidth(o,w,l),S=this.seriesRangeStart[o][w],C=this.seriesRangeEnd[o][w],_=null,E=null,O=null,T={x:a,y:s,strokeWidth:A,elSeries:h},L=this.seriesLen;if(i.config.plotOptions.bar.rangeBarGroupRows&&(L=1),void 0===i.config.series[o].data[w])break;this.isHorizontal?(O=s+u*this.visibleI,i.config.series[o].data[w].x&&(u=(k=this.detectOverlappingBars({i:o,j:w,barYPosition:O,srty:(b-u*L)/2,barHeight:u,yDivision:b,initPositions:p})).barHeight,O=k.barYPosition),d=(_=this.drawRangeBarPaths(M({indexes:{i:o,j:w,realIndex:l},barHeight:u,barYPosition:O,zeroW:g,yDivision:b,y1:S,y2:C},T))).barWidth):(E=(a=i.globals.isXNumeric?(i.globals.seriesX[o][w]-i.globals.minX)/this.xRatio-d/2:a)+d*this.visibleI,i.config.series[o].data[w].x&&(d=(k=this.detectOverlappingBars({i:o,j:w,barXPosition:E,srtx:(m-d*L)/2,barWidth:d,xDivision:m,initPositions:p})).barWidth,E=k.barXPosition),u=(_=this.drawRangeColumnPaths(M({indexes:{i:o,j:w,realIndex:l,translationsIndex:f},barWidth:d,barXPosition:E,zeroH:v,xDivision:m},T))).barHeight),(L=this.barHelpers.drawGoalLine({barXPosition:_.barXPosition,barYPosition:O,goalX:_.goalX,goalY:_.goalY,barHeight:u,barWidth:d}))&&x.add(L),s=_.y,a=_.x,T=this.barHelpers.getPathFillColor(t,o,w,l),L=i.globals.stroke.colors[l],this.renderSeries({realIndex:l,pathFill:T,lineFill:L,j:w,i:o,x:a,y:s,y1:S,y2:C,pathFrom:_.pathFrom,pathTo:_.pathTo,strokeWidth:A,elSeries:h,series:t,barHeight:u,barWidth:d,barXPosition:E,barYPosition:O,columnGroupIndex:c,elDataLabelsWrap:y,elGoalsMarkers:x,visibleSeries:this.visibleI,type:"rangebar"})}r.add(h)}return r}},{key:"detectOverlappingBars",value:function(t){var e=t.i,i=t.j,n=t.barYPosition,r=t.barXPosition,o=t.srty,a=t.srtx,s=t.barHeight,l=t.barWidth,c=t.yDivision,h=t.xDivision,t=t.initPositions,u=this.w,d=[],f=u.config.series[e].data[i].rangeName,i=u.config.series[e].data[i].x,p=Array.isArray(i)?i.join(" "):i,i=u.globals.labels.map(function(t){return Array.isArray(t)?t.join(" "):t}).indexOf(p),g=u.globals.seriesRange[e].findIndex(function(t){return t.x===p&&0<t.overlaps.length});return this.isHorizontal?(n=u.config.plotOptions.bar.rangeBarGroupRows?o+c*i:o+s*this.visibleI+c*i,-1<g&&!u.config.plotOptions.bar.rangeBarOverlap&&-1<(d=u.globals.seriesRange[e][g].overlaps).indexOf(f)&&(n=(s=t.barHeight/d.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+s*(this.visibleI+d.indexOf(f))+c*i)):(-1<i&&!u.globals.timescaleLabels.length&&(r=u.config.plotOptions.bar.rangeBarGroupRows?a+h*i:a+l*this.visibleI+h*i),-1<g&&!u.config.plotOptions.bar.rangeBarOverlap&&-1<(d=u.globals.seriesRange[e][g].overlaps).indexOf(f)&&(r=(l=t.barWidth/d.length)*this.visibleI+h*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+d.indexOf(f))+h*i)),{barYPosition:n,barXPosition:r,barHeight:s,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.xDivision,r=t.barWidth,o=t.barXPosition,t=t.zeroH,a=this.w,s=e.i,l=e.j,c=e.realIndex,h=this.yRatio[e=e.translationsIndex],u=this.getRangeValue(c,l),d=Math.min(u.start,u.end),f=Math.max(u.start,u.end),h=(null==this.series[s][l]?d=t:(d=t-d/h,f=t-f/h),Math.abs(f-d)),p=this.barHelpers.getColumnPaths({barXPosition:o,barWidth:r,y1:d,y2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:c,i:c,j:l,w:a});return a.globals.isXNumeric?(i=(a=this.getBarXForNumericXAxis({x:i,j:l,realIndex:c,barWidth:r})).x,o=a.barXPosition):i+=n,{pathTo:p.pathTo,pathFrom:p.pathFrom,barHeight:h,x:i,y:u.start<0&&u.end<0?d:f,goalY:this.barHelpers.getGoalValues("y",null,t,s,l,e),barXPosition:o}}},{key:"preventBarOverflow",value:function(t){var e=this.w;return(t=t<0?0:t)>e.globals.gridWidth?e.globals.gridWidth:t}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,n=t.y2,r=t.yDivision,o=t.barHeight,a=t.barYPosition,s=t.zeroW,l=this.w,c=e.realIndex,e=e.j,t=this.preventBarOverflow(s+t.y1/this.invertedYRatio),n=this.preventBarOverflow(s+n/this.invertedYRatio),h=this.getRangeValue(c,e),u=Math.abs(n-t),a=this.barHelpers.getBarpaths({barYPosition:a,barHeight:o,x1:t,x2:n,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:c,realIndex:c,j:e,w:l});return l.globals.isXNumeric||(i+=r),{pathTo:a.pathTo,pathFrom:a.pathFrom,barWidth:u,x:h.start<0&&h.end<0?t:n,goalX:this.barHelpers.getGoalValues("x",s,null,c,e),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}}]),r),ae=(t(se,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;return"gradient"!==i.config.fill.type&&"gradient"!==i.config.fill.type[t]||!new I(this.lineCtx.ctx,i).seriesHaveSameValues(t)||((i=e[t].slice())[i.length-1]=i[i.length-1]+1e-6,e[t]=i),e}},{key:"calculatePoints",value:function(t){var e,i=t.series,n=t.x,r=t.y,o=t.i,a=t.j,s=t.prevY,l=this.w,c=[],h=[];return 0===a&&(e=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX,l.globals.isXNumeric&&(e=(l.globals.seriesX[t.realIndex][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(e),h.push(B.isNumber(i[o][0])?s+l.config.markers.offsetY:null)),c.push(n+l.config.markers.offsetX),h.push(B.isNumber(i[o][a+1])?r+l.config.markers.offsetY:null),{x:c,y:h}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,n=t.realIndex,r=this.w,o=0;o<r.globals.previousPaths.length;o++){var a=r.globals.previousPaths[o];("line"===a.type||"area"===a.type)&&0<a.paths.length&&parseInt(a.realIndex,10)===parseInt(n,10)&&("line"===a.type?(this.lineCtx.appendPathFrom=!1,e=r.globals.previousPaths[o].paths[0].d):"area"===a.type&&(this.lineCtx.appendPathFrom=!1,i=r.globals.previousPaths[o].paths[0].d,r.config.stroke.show)&&r.globals.previousPaths[o].paths[1]&&(e=r.globals.previousPaths[o].paths[1].d))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e=t.i,i=t.realIndex,n=t.series,r=t.prevY,o=t.lineYPosition,t=t.translationsIndex,a=this.w,i=a.config.chart.stacked&&!a.globals.comboCharts||a.config.chart.stacked&&a.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(a=this.w.config.series[i])?void 0:a.type)||"column"===(null==(a=this.w.config.series[i])?void 0:a.type));if(void 0!==(null==(a=n[e])?void 0:a[0]))r=(o=i&&0<e?this.lineCtx.prevSeriesY[e-1][0]:this.lineCtx.zeroY)-n[e][0]/this.lineCtx.yRatio[t]+2*(this.lineCtx.isReversed?n[e][0]/this.lineCtx.yRatio[t]:0);else if(i&&0<e&&void 0===n[e][0])for(var s=e-1;0<=s;s--)if(null!=n[s][0]){r=o=this.lineCtx.prevSeriesY[s][0];break}return{prevY:r,lineYPosition:o}}}]),se);function se(t){n(this,se),this.w=t.w,this.lineCtx=t}function r(){return n(this,r),ht.apply(this,arguments)}function a(t){n(this,a),(e=ut.call(this,t)).ctx=t,e.w=t.w,e.animBeginArr=[0],e.animDur=0;var e,t=e.w;return e.startAngle=t.config.plotOptions.radialBar.startAngle,e.endAngle=t.config.plotOptions.radialBar.endAngle,e.totalAngle=Math.abs(t.config.plotOptions.radialBar.endAngle-t.config.plotOptions.radialBar.startAngle),e.trackStartAngle=t.config.plotOptions.radialBar.track.startAngle,e.trackEndAngle=t.config.plotOptions.radialBar.track.endAngle,e.barLabels=e.w.config.plotOptions.radialBar.barLabels,e.donutDataLabels=e.w.config.plotOptions.radialBar.dataLabels,e.radialDataLabels=e.donutDataLabels,e.trackStartAngle||(e.trackStartAngle=e.startAngle),e.trackEndAngle||(e.trackEndAngle=e.endAngle),360===e.endAngle&&(e.endAngle=359.99),e.margin=parseInt(t.config.plotOptions.radialBar.track.margin,10),e.onBarLabelClick=e.onBarLabelClick.bind(D(e)),e}function le(t){n(this,le),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,t=this.w,this.graphics=new H(this.ctx),this.lineColorArr=(void 0!==t.globals.stroke.colors?t.globals.stroke:t.globals).colors,this.defaultSize=t.globals.svgHeight<t.globals.svgWidth?t.globals.gridHeight:t.globals.gridWidth,this.isLog=t.config.yaxis[0].logarithmic,this.logBase=t.config.yaxis[0].logBase,this.coreUtils=new I(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,t.globals.maxY,0):t.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):t.globals.minY,this.polygons=t.config.plotOptions.radar.polygons,this.strokeWidth=t.config.stroke.show?t.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-t.config.chart.dropShadow.blur,t.config.xaxis.labels.show&&(this.size=this.size-t.globals.xAxisLabelsWidth/1.75),void 0!==t.config.plotOptions.radar.size&&(this.size=t.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}function ce(t){n(this,ce),this.ctx=t,this.w=t.w;var t=this.w,e=(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!==t.globals.stroke.colors?t.globals.stroke:t.globals).colors,this.defaultSize=Math.min(t.globals.gridWidth,t.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=t.globals.gridWidth/2,"radialBar"===t.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(t.config.plotOptions.pie.endAngle-t.config.plotOptions.pie.startAngle),this.initialAngle=t.config.plotOptions.pie.startAngle%this.fullAngle,t.globals.radialSize=this.defaultSize/2.05-t.config.stroke.width-(t.config.chart.sparkline.enabled?0:t.config.chart.dropShadow.blur),this.donutSize=t.globals.radialSize*parseInt(t.config.plotOptions.pie.donut.size,10)/100,t.config.plotOptions.pie.customScale),i=t.globals.gridWidth/2,t=t.globals.gridHeight/2;this.translateX=i-i*e,this.translateY=t-t*e,this.dataLabelsGroup=new H(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(e,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}function he(t){n(this,he),this.ctx=t,this.w=t.w}function ue(t,e){n(this,ue),this.ctx=t,this.w=t.w,this.xRatio=e.xRatio,this.yRatio=e.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Jt(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}function de(t){n(this,de),this.ctx=t,this.w=t.w}function l(){return n(this,l),dt.apply(this,arguments)}function c(){return n(this,c),ft.apply(this,arguments)}function fe(t,e){n(this,fe),this.ctx=t,this.w=t.w;var t=this.w,t=(this.barOptions=t.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=t.config.stroke.width,this.isNullValue=!1,this.isRangeBar=t.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&t.globals.seriesRange.length&&t.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=e,null!==this.xyRatios&&(this.xRatio=e.xRatio,this.yRatio=e.yRatio,this.invertedXRatio=e.invertedXRatio,this.invertedYRatio=e.invertedYRatio,this.baseLineY=e.baseLineY,this.baseLineInvertedY=e.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[],new E(this.ctx)),i=(this.lastActiveBarSerieIndex=t.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[],t.getBarSeriesIndices()),e=new I(this.ctx);this.stackedSeriesTotals=e.getStackedSeriesTotals(this.w.config.series.map(function(t,e){return-1===i.indexOf(e)?e:-1}).filter(function(t){return-1!==t})),this.barHelpers=new $t(this)}function pe(t){n(this,pe),this.w=t.w,this.barCtx=t}function ge(t){n(this,ge),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)}function me(t){n(this,me),this.ctx=t,this.w=t.w,t=this.w,this.tConfig=t.config.tooltip,this.tooltipUtil=new Yt(this),this.tooltipLabels=new Xt(this),this.tooltipPosition=new Wt(this),this.marker=new qt(this),this.intersect=new Gt(this),this.axesTooltip=new Vt(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=!t.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}function be(t){n(this,be),this.w=t.w,this.ttCtx=t}function ve(t){n(this,ve),this.w=t.w;var e=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&"rangeBar"===e.config.chart.type&&e.config.plotOptions.bar.rangeBarGroupRows}function ye(t){n(this,ye),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new Wt(t)}function xe(t){n(this,xe),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}function we(t){n(this,we),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new Yt(t)}function ke(t){n(this,ke),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}function h(t){var e;return n(this,h),(e=pt.call(this,t)).ctx=t,e.w=t.w,e.dragged=!1,e.graphics=new H(e.ctx),e.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],e.clientX=0,e.clientY=0,e.startX=0,e.endX=0,e.dragX=0,e.startY=0,e.endY=0,e.dragY=0,e.moveDirection="none",e.debounceTimer=null,e.debounceDelay=100,e.wheelDelay=400,e}function Ae(t){n(this,Ae),this.ctx=t,this.w=t.w,t=this.w,this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=t.globals.minX,this.maxX=t.globals.maxX}function Se(t){n(this,Se),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 jt(this)}function Ce(t){n(this,Ce),this.w=t.w,this.lgCtx=t}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 It(this),this.dimYAxis=new Dt(this),this.dimXAxis=new Nt(this),this.dimGrid=new Rt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}function Ee(t){n(this,Ee),this.w=t.w,this.dCtx=t}function Oe(t){n(this,Oe),this.w=t.w,this.dCtx=t}function Te(t){n(this,Te),this.w=t.w,this.dCtx=t}function Le(t){n(this,Le),this.w=t.w,this.dCtx=t}function Me(t){n(this,Me),this.ctx=t,this.w=t.w}function Pe(t){n(this,Pe),this.ctx=t,this.w=t.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}function Ie(t){n(this,Ie),this.ctx=t,this.w=t.w}function Ne(t){n(this,Ne),this.ctx=t,this.w=t.w}function De(t){n(this,De),this.ctx=t,this.w=t.w}function Re(t){n(this,Re),this.ctx=t,this.w=t.w}function Fe(t){n(this,Fe),this.ctx=t,this.w=t.w,this.documentEvent=B.bind(this.documentEvent,this)}function je(t,e){n(this,je),this.ctx=t,this.elgrid=e,this.w=t.w,e=this.w,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.axisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===e.config.chart.type&&e.config.plotOptions.bar.horizontal,this.xAxisoffX="bottom"===e.config.xaxis.position?e.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new C(t)}function ze(t){n(this,ze),this.ctx=t,this.w=t.w,this.scales=new At(t)}function Be(t){n(this,Be),this.ctx=t,this.w=t.w,this.coreUtils=new I(this.ctx)}function He(t){n(this,He),this.ctx=t,this.w=t.w;var e=this.w;this.xaxisLabels=e.globals.labels.slice(),this.axesUtils=new C(t),this.isRangeBar=e.globals.seriesRange.length&&e.globals.isBarHorizontal,0<e.globals.timescaleLabels.length&&(this.xaxisLabels=e.globals.timescaleLabels.slice())}function Ye(t,e){n(this,Ye),this.ctx=t,this.elgrid=e,this.w=t.w,e=this.w,this.axesUtils=new C(t),this.xaxisLabels=e.globals.labels.slice(),0<e.globals.timescaleLabels.length&&!e.globals.isBarHorizontal&&(this.xaxisLabels=e.globals.timescaleLabels.slice()),e.config.xaxis.overwriteCategories&&(this.xaxisLabels=e.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===e.config.xaxis.position?this.offY=0:this.offY=e.globals.gridHeight,this.offY=this.offY+e.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===e.config.chart.type&&e.config.plotOptions.bar.horizontal,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.xaxisBorderWidth=e.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=e.config.yaxis[0].axisBorder.width.toString()),-1<this.xaxisBorderWidth.indexOf("%")?this.xaxisBorderWidth=e.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=e.config.xaxis.axisBorder.height,this.yaxis=e.config.yaxis[0]}function Xe(t){n(this,Xe),this.ctx=t,this.w=t.w}function We(t){n(this,We),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new I(this.ctx)}function qe(t){n(this,qe),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}function Ge(t){n(this,Ge),this.ctx=t,this.w=t.w}function Ve(t){n(this,Ve),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled}function Ue(t,e){n(this,Ue),this.ctx=t,this.w=t.w}function Ze(t){n(this,Ze),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}function $e(t){n(this,$e),this.opts=t}function Ke(){n(this,Ke)}function Qe(t){n(this,Qe),this.opts=t}function Je(t){n(this,Je),this.opts=t}function ti(t){n(this,ti),this.ctx=t,this.w=t.w,this.graphics=new H(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new V(this),this.xAxisAnnotations=new U(this),this.yAxisAnnotations=new Z(this),this.pointsAnnotations=new $(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}function ei(){n(this,ei),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}}function ii(t,e){return(e[1]-t[1])/(e[0]-t[0])}t(ri,[{key:"draw",value:function(t,e,i,n){var r=this.w,o=new H(this.ctx),a=r.globals.comboCharts?e:r.config.chart.type,s=o.group({class:"apexcharts-".concat(a,"-series apexcharts-plot-series")}),e=new I(this.ctx,r);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=e.getLogSeries(t),this.yRatio=e.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var l=[],c=0;c<t.length;c++){t=this.lineHelpers.sameValueSeriesFix(c,t);var h=r.globals.comboCharts?i[c]:c,u=1<this.yRatio.length?h:0,d=(this._initSerieVariables(t,c,h),[]),f=[],p=[],g=r.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,h),r.globals.isXNumeric&&0<r.globals.seriesX.length&&(g=(r.globals.seriesX[h][0]-r.globals.minX)/this.xRatio),p.push(g);var m,b=void 0,v=S=g,y=this.zeroY,x=this.zeroY,y=this.lineHelpers.determineFirstPrevY({i:c,realIndex:h,series:t,prevY:y,lineYPosition:0,translationsIndex:u}).prevY,y=("monotoneCubic"===r.config.stroke.curve&&null===t[c][0]?d.push(null):d.push(y),m=y,"rangeArea"===a&&(b=x=this.lineHelpers.determineFirstPrevY({i:c,realIndex:h,series:n,prevY:x,lineYPosition:0,translationsIndex:u}).prevY,f.push(null!==d[0]?x:null)),this._calculatePathsFrom({type:a,series:t,i:c,realIndex:h,translationsIndex:u,prevX:v,prevY:y,prevY2:x})),w=[d[0]],k=[f[0]],A=this._iterateOverDataPoints(M(M({},u={type:a,series:t,realIndex:h,translationsIndex:u,i:c,x:g,y:1,pX:S,pY:m,pathsFrom:y,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:p,yArrj:d,y2Arrj:f,seriesRangeEnd:n}),{},{iterations:"rangeArea"===a?t[c].length-1:void 0,isRangeStart:!0}));if("rangeArea"===a){for(var S=this._calculatePathsFrom({series:n,i:c,realIndex:h,prevX:v,prevY:x}),C=this._iterateOverDataPoints(M(M({},u),{},{series:n,xArrj:[g],yArrj:w,y2Arrj:k,pY:b,areaPaths:A.areaPaths,pathsFrom:S,iterations:n[c].length-1,isRangeStart:!1})),_=A.linePaths.length/2,E=0;E<_;E++)A.linePaths[E]=C.linePaths[E+_]+A.linePaths[E];A.linePaths.splice(_),A.pathFromLine=C.pathFromLine+A.pathFromLine}else A.pathFromArea+="z";this._handlePaths({type:a,realIndex:h,i:c,paths:A}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),l.push(this.elSeries)}if(void 0!==(null==(o=r.config.series[0])?void 0:o.zIndex)&&l.sort(function(t,e){return Number(t.node.getAttribute("zIndex"))-Number(e.node.getAttribute("zIndex"))}),r.config.chart.stacked)for(var O=l.length-1;0<=O;O--)s.add(l[O]);else for(var T=0;T<l.length;T++)s.add(l[T]);return s}},{key:"_initSerieVariables",value:function(t,e,i){var n=this.w,r=new H(this.ctx),o=(this.xDivision=n.globals.gridWidth/(n.globals.dataPoints-("on"===n.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(n.config.stroke.width)?n.config.stroke.width[i]:n.config.stroke.width,0),o=(1<this.yRatio.length&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[i],o=i),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed,this.zeroY=n.globals.gridHeight-this.baseLineY[o]-(this.isReversed?n.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[o]:0),this.areaBottomY=this.zeroY,(this.zeroY>n.globals.gridHeight||"end"===n.config.plotOptions.area.fillTo)&&(this.areaBottomY=n.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=r.group({class:"apexcharts-series",zIndex:void 0!==n.config.series[i].zIndex?n.config.series[i].zIndex:i,seriesName:B.escapeString(n.globals.seriesNames[i])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":i}),t[e].length===n.globals.dataPoints);this.elSeries.attr({"data:longestSeries":o,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,n=t.type,r=t.series,o=t.i,a=t.realIndex,s=t.translationsIndex,l=t.prevX,c=t.prevY,t=t.prevY2,h=this.w,u=new H(this.ctx);if(null===r[o][0]){for(var d=0;d<r[o].length;d++)if(null!==r[o][d]){l=this.xDivision*d,c=this.zeroY-r[o][d]/this.yRatio[s],e=u.move(l,c),i=u.move(l,this.areaBottomY);break}}else e=u.move(l,c),"rangeArea"===n&&(e=u.move(l,t)+u.line(l,c)),i=u.move(l,this.areaBottomY)+u.line(l,c);return n=u.move(0,this.zeroY)+u.line(0,this.zeroY),t=u.move(0,this.zeroY)+u.line(0,this.zeroY),0<h.globals.previousPaths.length&&(n=(h=this.lineHelpers.checkPreviousPaths({pathFromLine:n,pathFromArea:t,realIndex:a})).pathFromLine,t=h.pathFromArea),{prevX:l,prevY:c,linePath:e,areaPath:i,pathFromLine:n,pathFromArea:t}}},{key:"_handlePaths",value:function(t){var e,i=t.type,n=t.realIndex,r=t.i,o=t.paths,a=this.w,s=new H(this.ctx),l=new _(this.ctx),c=(this.prevSeriesY.push(o.yArrj),a.globals.seriesXvalues[n]=o.xArrj,a.globals.seriesYvalues[n]=o.yArrj,a.config.forecastDataPoints),h=(0<c.count&&"rangeArea"!==i&&(t=a.globals.seriesXvalues[n][a.globals.seriesXvalues[n].length-c.count-1],e=s.drawRect(t,0,a.globals.gridWidth,a.globals.gridHeight,0),a.globals.dom.elForecastMask.appendChild(e.node),e=s.drawRect(0,0,t,a.globals.gridHeight,0),a.globals.dom.elNonForecastMask.appendChild(e.node)),this.pointsChart||a.globals.delayedElements.push({el:this.elPointsMain.node,index:n}),{i:r,realIndex:n,animationDelay:r,initialSpeed:a.config.chart.animations.speed,dataChangeSpeed:a.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(i)});if("area"===i)for(var u=l.fillPath({seriesNumber:n}),d=0;d<o.areaPaths.length;d++){var f=s.renderPaths(M(M({},h),{},{pathFrom:o.pathFromArea,pathTo:o.areaPaths[d],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:u}));this.elSeries.add(f)}if(a.config.stroke.show&&!this.pointsChart){var p=null;"line"===i?p=l.fillPath({seriesNumber:n,i:r}):"solid"===a.config.stroke.fill.type?p=a.globals.stroke.colors[n]:(t=a.config.fill,a.config.fill=a.config.stroke.fill,p=l.fillPath({seriesNumber:n,i:r}),a.config.fill=t);for(var g=0;g<o.linePaths.length;g++){var m=p,m=("rangeArea"===i&&(m=l.fillPath({seriesNumber:n})),M(M({},h),{},{pathFrom:o.pathFromLine,pathTo:o.linePaths[g],stroke:p,strokeWidth:this.strokeWidth,strokeLineCap:a.config.stroke.lineCap,fill:"rangeArea"===i?m:"none"})),b=s.renderPaths(m);this.elSeries.add(b),b.attr("fill-rule","evenodd"),0<c.count&&"rangeArea"!==i&&((m=s.renderPaths(m)).node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&m.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(m),m.attr("clip-path","url(#forecastMask".concat(a.globals.cuid,")")),b.attr("clip-path","url(#nonForecastMask".concat(a.globals.cuid,")")))}}}},{key:"_iterateOverDataPoints",value:function(t){function e(t,e){return e-t/C[l]+2*(n.isReversed?t/C[l]:0)}var i,n=this,r=t.type,o=t.series,a=t.iterations,s=t.realIndex,l=t.translationsIndex,c=t.i,h=t.x,u=t.y,d=t.pX,f=t.pY,p=t.pathsFrom,g=t.linePaths,m=t.areaPaths,b=t.seriesIndex,v=t.xArrj,y=t.yArrj,x=t.y2Arrj,w=t.isRangeStart,k=t.seriesRangeEnd,A=this.w,S=new H(this.ctx),C=this.yRatio,_=p.prevY,E=p.linePath,O=p.areaPath,T=p.pathFromLine,L=p.pathFromArea,R=B.isNumber(A.globals.minYArr[s])?A.globals.minYArr[s]:A.globals.minY,a=a||(1<A.globals.dataPoints?A.globals.dataPoints-1:A.globals.dataPoints),M=u,F=A.config.chart.stacked&&!A.globals.comboCharts||A.config.chart.stacked&&A.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(t=this.w.config.series[s])?void 0:t.type)||"column"===(null==(p=this.w.config.series[s])?void 0:p.type)),P=A.config.stroke.curve;Array.isArray(P)&&(P=Array.isArray(b)?P[b[c]]:P[c]);for(var j=0,I=0;I<a;I++){var N=null==o[c][I+1],D=(A.globals.isXNumeric?(D=A.globals.seriesX[s][I+1],h=((D=void 0===A.globals.seriesX[s][I+1]?A.globals.seriesX[s][a-1]:D)-A.globals.minX)/this.xRatio):h+=this.xDivision,i=F&&0<c&&A.globals.collapsedSeries.length<A.config.series.length-1?this.prevSeriesY[(()=>{for(var t=c-1;0<t;t--){if(!(-1<A.globals.collapsedSeriesIndices.indexOf((null==b?void 0:b[t])||t)))return t;t--}return 0})()][I+1]:this.zeroY,N?u=e(R,i):(u=e(o[c][I+1],i),"rangeArea"===r&&(M=e(k[c][I+1],i))),v.push(h),!N||"smooth"!==A.config.stroke.curve&&"monotoneCubic"!==A.config.stroke.curve?(y.push(u),x.push(M)):(y.push(null),x.push(null)),this.lineHelpers.calculatePoints({series:o,x:h,y:u,realIndex:s,i:c,j:I,prevY:_})),m=(N=this._createPaths({type:r,series:o,i:c,realIndex:s,j:I,x:h,y:u,y2:M,xArrj:v,yArrj:y,y2Arrj:x,pX:d,pY:f,pathState:j,segmentStartX:z,linePath:E,areaPath:O,linePaths:g,areaPaths:m,curve:P,isRangeStart:w})).areaPaths,g=N.linePaths,d=N.pX,f=N.pY,j=N.pathState,z=N.segmentStartX,O=N.areaPath,E=N.linePath;!this.appendPathFrom||"monotoneCubic"===P&&"rangeArea"===r||(T+=S.line(h,this.zeroY),L+=S.line(h,this.zeroY)),this.handleNullDataPoints(o,D,c,I,s),this._handleMarkersAndLabels({type:r,pointsPos:D,i:c,j:I,realIndex:s,isRangeStart:w})}return{yArrj:y,xArrj:v,pathFromArea:L,areaPaths:m,pathFromLine:T,linePaths:g,linePath:E,areaPath:O}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,n=t.isRangeStart,r=t.i,o=t.j,t=t.realIndex,a=this.w,s=new k(this.ctx);this.pointsChart?this.scatter.draw(this.elSeries,o,{realIndex:t,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain}):(1<a.globals.series[r].length&&this.elPointsMain.node.classList.add("apexcharts-element-hidden"),null!==(a=this.markers.plotChartMarkers(i,t,o+1))&&this.elPointsMain.add(a)),null!==(r=s.drawDataLabel({type:e,isRangeStart:n,pos:i,i:t,j:o+1}))&&this.elDataLabelsWrap.add(r)}},{key:"_createPaths",value:function(t){var i,e=t.type,n=t.series,r=t.i,o=t.j,a=t.x,s=t.y,l=t.xArrj,R=t.yArrj,c=t.y2,h=t.y2Arrj,u=t.pX,d=t.pY,f=t.pathState,p=t.segmentStartX,g=t.linePath,m=t.areaPath,b=t.linePaths,v=t.areaPaths,y=t.curve,x=t.isRangeStart,w=new H(this.ctx),k=this.areaBottomY,A="rangeArea"===e,S="rangeArea"===e&&x;switch(y){case"monotoneCubic":var C=x?R:h;switch(f){case 0:if(null===C[o+1])break;f=1;case 1:if(!(A?l.length===n[r].length:o===n[r].length-2))break;case 2:var _=x?l:l.slice().reverse(),E=x?C:C.slice().reverse(),O=(i=E,_.map(function(t,e){return[t,i[e]]}).filter(function(t){return null!==t[1]})),_=1<O.length?(t=>{var e=(t=>{for(var e,i,n,r,o=(t=>{for(var e=[],i=t[0],n=t[1],r=e[0]=ii(i,n),o=1,a=t.length-1;o<a;o++)i=n,n=t[o+1],e[o]=.5*(r+(r=ii(i,n)));return e[o]=r,e})(t),a=t.length-1,s=[],l=0;l<a;l++)n=ii(t[l],t[l+1]),Math.abs(n)<1e-6?o[l]=o[l+1]=0:9<(r=(e=o[l]/n)*e+(i=o[l+1]/n)*i)&&(r=3*n/Math.sqrt(r),o[l]=r*e,o[l+1]=r*i);for(var c=0;c<=a;c++)r=(t[Math.min(a,c+1)][0]-t[Math.max(0,c-1)][0])/(6*(1+o[c]*o[c])),s.push([r||0,o[c]*r||0]);return s})(t),i=t[1],n=t[0],r=[],o=e[1],a=e[0];r.push(n,[n[0]+a[0],n[1]+a[1],i[0]-o[0],i[1]-o[1],i[0],i[1]]);for(var s=2,l=e.length;s<l;s++){var c=t[s],h=e[s];r.push([c[0]-h[0],c[1]-h[1],c[0],c[1]])}return r})(O):O,T=[],L=(A&&(S?v=O:T=v.reverse()),0),M=0;(t=>{e=[],i=0,E.forEach(function(t){null!==t?i++:0<i&&(e.push(i),i=0)}),0<i&&e.push(i);for(var e,i,n,r,o,a=e,s=[],l=0,c=0;l<a.length;c+=a[l++])s[l]=(o=(r=c)+a[l],n=(n=t).slice(r,o),r&&(1<o-r&&n[1].length<6&&(o=n[0].length,n[1]=[2*n[0][o-2]-n[0][o-4],2*n[0][o-1]-n[0][o-3]].concat(n[1])),n[0]=n[0].slice(-2)),n);return s})(_).forEach(function(t){L++;var e=(t=>{for(var e="",i=0;i<t.length;i++){var n=t[i],r=n.length;4<r?e=(e=(e+="C".concat(n[0],", ").concat(n[1]))+", ".concat(n[2],", ").concat(n[3]))+", ".concat(n[4],", ").concat(n[5]):2<r&&(e=(e+="S".concat(n[0],", ").concat(n[1]))+", ".concat(n[2],", ").concat(n[3]))}return e})(t),i=M,t=(M+=t.length)-1;S?g=w.move(O[i][0],O[i][1])+e:A?g=w.move(T[i][0],T[i][1])+w.line(O[i][0],O[i][1])+e+w.line(T[t][0],T[t][1]):(g=w.move(O[i][0],O[i][1])+e,m=g+w.line(O[t][0],k)+w.line(O[i][0],k)+"z",v.push(m)),b.push(g)}),A&&1<L&&!S&&(E=b.slice(L).reverse(),b.splice(L),E.forEach(function(t){return b.push(t)})),f=0}break;case"smooth":var P=.35*(a-u);if(null===n[r][o])f=0;else switch(f){case 0:if(p=u,g=S?w.move(u,h[o])+w.line(u,d):w.move(u,d),m=w.move(u,d),null===n[r][o+1]){b.push(g),v.push(m);break}if(f=1,o<n[r].length-2){var I=w.curve(u+P,d,a-P,s,a,s);g+=I,m+=I;break}case 1:null===n[r][o+1]?(g+=S?w.line(u,c):w.move(u,d),m+=w.line(u,k)+w.line(p,k)+"z",b.push(g),v.push(m),f=-1):(I=w.curve(u+P,d,a-P,s,a,s),g+=I,m+=I,o>=n[r].length-2&&(S&&(g+=w.curve(a,s,a,s,a,c)+w.move(a,c)),m+=w.curve(a,s,a,s,a,k)+w.line(p,k)+"z",b.push(g),v.push(m),f=-1))}u=a,d=s;break;default:var N=function(t,e,i){var n=[];switch(t){case"stepline":n=w.line(e,null,"H")+w.line(null,i,"V");break;case"linestep":n=w.line(null,i,"V")+w.line(e,null,"H");break;case"straight":n=w.line(e,i)}return n};if(null===n[r][o])f=0;else switch(f){case 0:if(p=u,g=S?w.move(u,h[o])+w.line(u,d):w.move(u,d),m=w.move(u,d),null===n[r][o+1]){b.push(g),v.push(m);break}if(f=1,o<n[r].length-2){var D=N(y,a,s);g+=D,m+=D;break}case 1:null===n[r][o+1]?(g+=S?w.line(u,c):w.move(u,d),m+=w.line(u,k)+w.line(p,k)+"z",b.push(g),v.push(m),f=-1):(D=N(y,a,s),g+=D,m+=D,o>=n[r].length-2&&(S&&(g+=w.line(a,c)),m+=w.line(a,k)+w.line(p,k)+"z",b.push(g),v.push(m),f=-1))}u=a,d=s}return{linePaths:b,areaPaths:v,pX:u,pY:d,pathState:f,segmentStartX:p,linePath:g,areaPath:m}}},{key:"handleNullDataPoints",value:function(t,e,i,n,r){var o=this.w;(null===t[i][n]&&o.config.markers.showNullDataPoints||1===t[i].length)&&(t=this.strokeWidth-o.config.markers.strokeWidth/2,null!==(i=this.markers.plotChartMarkers(e,r,n+1,t=0<t?t:0,!0)))&&this.elPointsMain.add(i)}}]);var ni=ri;function ri(t,e,i){n(this,ri),this.ctx=t,this.w=t.w,this.xyRatios=e,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||i,this.scatter=new yt(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new ae(this),this.markers=new w(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}function oi(t,e,i,n){this.xoffset=t,this.yoffset=e,this.height=n,this.width=i,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],n=this.xoffset,r=this.yoffset,o=m(t)/this.height,a=m(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([n,r,n+o,r+t[e]/o]),r+=t[e]/o;else for(e=0;e<t.length;e++)i.push([n,r,n+t[e]/a,r+a]),n+=t[e]/a;return i},this.cutArea=function(t){var e,i;return this.width>=this.height?(e=t/this.height,i=this.width-e,new oi(this.xoffset+e,this.yoffset,i,this.height)):(e=t/this.width,i=this.height-e,new oi(this.xoffset,this.yoffset+e,this.width,i))}}function ai(t,r,o,e,i){e=void 0===e?0:e,i=void 0===i?0:i;for(var n,a=function t(e,i,n,r){var o,a,s,l,c,h;return 0!==e.length?(a=n.shortestEdge(),l=o=e[0],c=a,0===(s=i).length||((h=s.slice()).push(l),l=si(s,c),(s=si(h,c))<=l)?(i.push(o),t(e.slice(1),i,n,r)):(a=n.cutArea(m(i),r),r.push(n.getCoordinates(i)),t(e,[],a,r)),r):void r.push(n.getCoordinates(i))}((t=>{for(var e=[],i=r*o/m(t),n=0;n<t.length;n++)e[n]=t[n]*i;return e})(t),[],new oi(e,i,r,o),[]),s=[],l=0;l<a.length;l++)for(n=0;n<a[l].length;n++)s.push(a[l][n]);return s}function si(t,e){var i=Math.min.apply(Math,t),n=Math.max.apply(Math,t),t=m(t);return Math.max(Math.pow(e,2)*n/Math.pow(t,2),Math.pow(t,2)/(Math.pow(e,2)*i))}function li(t){return t&&t.constructor===Array}function m(t){for(var e=0,i=0;i<t.length;i++)e+=t[i];return e}window.TreemapSquared={},window.TreemapSquared.generate=function t(e,i,n,r,o){r=void 0===r?0:r,o=void 0===o?0:o;var a,s,l=[],c=[];if(li(e[0])){for(s=0;s<e.length;s++)l[s]=function t(e){var i,n=0;if(li(e[0]))for(i=0;i<e.length;i++)n+=t(e[i]);else n=m(e);return n}(e[s]);for(a=ai(l,i,n,r,o),s=0;s<e.length;s++)c.push(t(e[s],a[s][2]-a[s][0],a[s][3]-a[s][1],a[s][0],a[s][1]))}else c=ai(e,i,n,r,o);return c},t(mi,[{key:"draw",value:function(f){var e,p=this,g=this.w,m=new H(this.ctx),b=new _(this.ctx),i=m.group({class:"apexcharts-treemap"});return g.globals.noData||(e=[],f.forEach(function(t){t=t.map(function(t){return Math.abs(t)}),e.push(t)}),this.negRange=this.helpers.checkColorRange(),g.config.series.forEach(function(t,e){t.data.forEach(function(t){Array.isArray(p.labels[e])||(p.labels[e]=[]),p.labels[e].push(t.x)})}),window.TreemapSquared.generate(e,g.globals.gridWidth,g.globals.gridHeight).forEach(function(t,u){var d=m.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:B.escapeString(g.globals.seriesNames[u]),rel:u+1,"data:realIndex":u}),e=(g.config.chart.dropShadow.enabled&&(e=g.config.chart.dropShadow,new P(p.ctx).dropShadow(i,e,u)),m.group({class:"apexcharts-data-labels"}));t.forEach(function(t,e){var i=t[0],n=t[1],r=t[2],o=t[3],a=m.drawRect(i,n,r-i,o-n,g.config.plotOptions.treemap.borderRadius,"#fff",1,p.strokeWidth,g.config.plotOptions.treemap.useFillColorAsStroke?l:g.globals.stroke.colors[u]),s=(a.attr({cx:i,cy:n,index:u,i:u,j:e,width:r-i,height:o-n}),p.helpers.getShadeColor(g.config.chart.type,u,e,p.negRange)),l=s.color,l=(void 0!==g.config.series[u].data[e]&&g.config.series[u].data[e].fillColor&&(l=g.config.series[u].data[e].fillColor),b.fillPath({color:l,seriesNumber:u,dataPointIndex:e})),l=(a.node.classList.add("apexcharts-treemap-rect"),a.attr({fill:l}),p.helpers.addListeners(a),{x:i+(r-i)/2,y:n+(o-n)/2,width:0,height:0}),c={x:i,y:n,width:r-i,height:o-n},l=(g.config.chart.animations.enabled&&!g.globals.dataChanged&&(h=1,g.globals.resized||(h=g.config.chart.animations.speed),p.animateTreemap(a,l,c,h)),g.globals.dataChanged&&(h=1,p.dynamicAnim.enabled)&&g.globals.shouldAnimate&&(h=p.dynamicAnim.speed,g.globals.previousPaths[u]&&g.globals.previousPaths[u][e]&&g.globals.previousPaths[u][e].rect&&(l=g.globals.previousPaths[u][e].rect),p.animateTreemap(a,l,c,h)),p.getFontSize(t)),c=g.config.dataLabels.formatter(p.labels[u][e],{value:g.globals.series[u][e],seriesIndex:u,dataPointIndex:e,w:g}),h=("truncate"===g.config.plotOptions.treemap.dataLabels.format&&(l=parseInt(g.config.dataLabels.style.fontSize,10),c=p.truncateLabels(c,l,i,n,r,o)),null);g.globals.series[u][e]&&(h=p.helpers.calculateDataLabels({text:c,x:(i+r)/2,y:(n+o)/2+p.strokeWidth/2+l/3,i:u,j:e,colorProps:s,fontSize:l,series:f})),g.config.dataLabels.enabled&&h&&p.rotateToFitLabel(h,l,c,i,n,r,o),d.add(a),null!==h&&d.add(h)}),d.add(e),i.add(d)})),i}},{key:"getFontSize",value:function(t){var e=this.w,i=function t(e){var i,n=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)n+=t(e[i]);else for(i=0;i<e.length;i++)n+=e[i].length;return n}(this.labels)/function t(e){var i,n=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)n+=t(e[i]);else for(i=0;i<e.length;i++)n+=1;return n}(this.labels),n=t[2]-t[0],n=Math.pow(n*(t[3]-t[1]),.5);return Math.min(n/i,parseInt(e.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,n,r,o,a){var s=new H(this.ctx);(i=s.getTextRects(i,e)).width+this.w.config.stroke.width+5>o-n&&i.width<=a-r&&(e=s.rotateAroundCenter(t.node),t.node.setAttribute("transform","rotate(-90 ".concat(e.x," ").concat(e.y,") translate(").concat(i.height/3,")")))}},{key:"truncateLabels",value:function(t,e,i,n,r,o){var a=new H(this.ctx),o=a.getTextRects(t,e).width+this.w.config.stroke.width+5>r-i&&r-i<o-n?o-n:r-i,n=a.getTextBasedOnMaxWidth({text:t,maxWidth:o,fontSize:e});return t.length!==n.length&&o/e<5?"":n}},{key:"animateTreemap",value:function(t,e,i,n){var r=new S(this.ctx);r.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},n,function(){r.animationCompleted(t)})}}]);var v,O,ci=mi,hi=(t(gi,[{key:"calculateTimeScaleTicks",value:function(t,e){var a=this,s=this.w;if(s.globals.allSeriesCollapsed)return s.globals.labels=[],s.globals.timescaleLabels=[],[];var i=new x(this.ctx),i=(this.determineInterval(d=(e-t)/864e5),s.globals.disableZoomIn=!1,s.globals.disableZoomOut=!1,d<10/86400?s.globals.disableZoomIn=!0:5e4<d&&(s.globals.disableZoomOut=!0),i.getTimeUnitsfromTimestamp(t,e,this.utc)),n=(e=(t=s.globals.gridWidth/d)/24)/60,r=n/60,o=Math.floor(24*d),l=Math.floor(1440*d),c=Math.floor(86400*d),h=Math.floor(d),u=Math.floor(d/30),d=Math.floor(d/365),f={firstVal:i={minMillisecond:i.minMillisecond,minSecond:i.minSecond,minMinute:i.minMinute,minHour:i.minHour,minDate:i.minDate,minMonth:i.minMonth,minYear:i.minYear},currentMillisecond:i.minMillisecond,currentSecond:i.minSecond,currentMinute:i.minMinute,currentHour:i.minHour,currentMonthDate:i.minDate,currentDate:i.minDate,currentMonth:i.minMonth,currentYear:i.minYear,daysWidthOnXAxis:t,hoursWidthOnXAxis:e,minutesWidthOnXAxis:n,secondsWidthOnXAxis:r,numberOfSeconds:c,numberOfMinutes:l,numberOfHours:o,numberOfDays:h,numberOfMonths:u,numberOfYears:d};switch(this.tickInterval){case"years":this.generateYearScale(f);break;case"months":case"half_year":this.generateMonthScale(f);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(f);break;case"hours":this.generateHourScale(f);break;case"minutes_fives":case"minutes":this.generateMinuteScale(f);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(f)}var p=this.timeScaleArray.map(function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day||1,hour:t.hour||0,month:t.month+1};return"month"===t.unit?M(M({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?M(M({},e),{},{value:t.value}):"minute"===t.unit?M(M({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?M(M({},e),{},{value:t.value,minute:t.minute,second:t.second}):t});return p.filter(function(t){var e=1,i=Math.ceil(s.globals.gridWidth/120),n=t.value,r=(void 0!==s.config.xaxis.tickAmount&&(i=s.config.xaxis.tickAmount),p.length>i&&(e=Math.floor(p.length/i)),!1),o=!1;switch(a.tickInterval){case"years":"year"===t.unit&&(r=!0);break;case"half_year":e=7,"year"===t.unit&&(r=!0);break;case"months":e=1,"year"===t.unit&&(r=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(r=!0),30===n&&(o=!0);break;case"months_days":e=10,"month"===t.unit&&(r=!0),30===n&&(o=!0);break;case"week_days":e=8,"month"===t.unit&&(r=!0);break;case"days":e=1,"month"===t.unit&&(r=!0);break;case"hours":"day"===t.unit&&(r=!0);break;case"minutes_fives":case"seconds_fives":n%5!=0&&(o=!0);break;case"seconds_tens":n%10!=0&&(o=!0)}if("hours"===a.tickInterval||"minutes_fives"===a.tickInterval||"seconds_tens"===a.tickInterval||"seconds_fives"===a.tickInterval){if(!o)return!0}else if((n%e==0||r)&&!o)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,t=this.formatDates(t),t=this.removeOverlappingTS(t);i.globals.timescaleLabels=t.slice(),new Ft(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case 5<t/365:this.tickInterval="years";break;case 800<t:this.tickInterval="half_year";break;case 180<t:this.tickInterval="months";break;case 90<t:this.tickInterval="months_fortnight";break;case 60<t:this.tickInterval="months_days";break;case 30<t:this.tickInterval="week_days";break;case 2<t:this.tickInterval="days";break;case 2.4<e:this.tickInterval="hours";break;case 15<i:this.tickInterval="minutes_fives";break;case 5<i:this.tickInterval="minutes";break;case 1<i:this.tickInterval="seconds_tens";break;case 20<60*i:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e,i=t.firstVal,n=t.currentMonth,r=t.currentYear,o=t.daysWidthOnXAxis,a=t.numberOfYears,t=i.minYear,s=0,l=new x(this.ctx);1<i.minDate||0<i.minMonth?(e=l.determineRemainingDaysOfYear(i.minYear,i.minMonth,i.minDate),s=(l.determineDaysOfYear(i.minYear)-e+1)*o,t=i.minYear+1,this.timeScaleArray.push({position:s,value:t,unit:"year",year:t,month:B.monthMod(n+1)})):1===i.minDate&&0===i.minMonth&&this.timeScaleArray.push({position:s,value:t,unit:"year",year:r,month:B.monthMod(n+1)});for(var c=t,h=s,u=0;u<a;u++)h=l.determineDaysOfYear(++c-1)*o+h,this.timeScaleArray.push({position:h,value:c,unit:"year",year:c,month:1})}},{key:"generateMonthScale",value:function(t){var e,i=t.firstVal,n=t.currentMonthDate,r=t.currentMonth,o=t.currentYear,a=t.daysWidthOnXAxis,s=t.numberOfMonths,t=r,l=0,c=new x(this.ctx),h="month",u=0;1<i.minDate?(l=(c.determineDaysOfMonths(r+1,i.minYear)-n+1)*a,t=B.monthMod(r+1),i=o+u,n=B.monthMod(t),0===(e=t)&&(h="year",e=i,i+=u+=n=1),this.timeScaleArray.push({position:l,value:e,unit:h,year:i,month:n})):this.timeScaleArray.push({position:l,value:t,unit:h,year:o,month:B.monthMod(r)});for(var d=t+1,f=l,p=0;p<s;p++){0===(d=B.monthMod(d))?(h="year",u+=1):h="month";var g=this._getYear(o,d,u),f=c.determineDaysOfMonths(d,g)*a+f;this.timeScaleArray.push({position:f,value:0===d?g:d,unit:h,year:g,month:0===d?1:d}),d++}}},{key:"generateDayScale",value:function(t){function e(t,e,i){return t>s.determineDaysOfMonths(e+1,i)&&(l="month",u=e+=c=1),e}var i=t.firstVal,n=t.currentMonth,r=t.currentYear,o=t.hoursWidthOnXAxis,a=t.numberOfDays,s=new x(this.ctx),l="day",c=t=i.minDate+1,h=(24-i.minHour)*o,u=t,d=e(c,n,r);0===i.minHour&&1===i.minDate?(h=0,u=B.monthMod(i.minMonth),l="month",c=i.minDate):1!==i.minDate&&0===i.minHour&&0===i.minMinute&&(h=0,t=i.minDate,d=e(c=u=t,n,r)),this.timeScaleArray.push({position:h,value:u,unit:l,year:this._getYear(r,d,0),month:B.monthMod(d),day:c});for(var f=h,p=0;p<a;p++){var l="day",d=e(c+=1,d,this._getYear(r,d,0)),g=this._getYear(r,d,0),f=24*o+f,m=1===c?B.monthMod(d):c;this.timeScaleArray.push({position:f,value:m,unit:l,year:g,month:B.monthMod(d),day:m})}}},{key:"generateHourScale",value:function(t){function e(t,e){return t>c.determineDaysOfMonths(e+1,a)&&(e+=p=1),{month:e,date:p}}function i(t,e){return t>c.determineDaysOfMonths(e+1,a)?e+1:e}var n=t.firstVal,r=t.currentDate,o=t.currentMonth,a=t.currentYear,s=t.minutesWidthOnXAxis,l=t.numberOfHours,c=new x(this.ctx),h="hour",u=(t=60-(n.minMinute+n.minSecond/60))*s,d=n.minHour+1,f=d,p=(60==t&&(u=0,f=d=n.minHour),r),g=(24<=f&&(f=0,p+=1,h="day"),e(p,o).month),g=i(p,g);this.timeScaleArray.push({position:u,value:d,unit:h,day:p,hour:f,year:a,month:B.monthMod(g)}),f++;for(var m=u,b=0;b<l;b++){h="hour",24<=f&&(f=0,h="day",g=e(p+=1,g).month,g=i(p,g));var v=this._getYear(a,g,0),m=60*s+m,y=0===f?p:f;this.timeScaleArray.push({position:m,value:y,unit:h,hour:f,day:p,year:v,month:B.monthMod(g)}),f++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.minutesWidthOnXAxis,n=t.numberOfMinutes,r=t.currentMinute+1,o=t.currentDate,a=t.currentMonth,s=t.currentYear,l=t.currentHour,c=(60-t.currentSecond-e/1e3)*t.secondsWidthOnXAxis,h=0;h<n;h++)60<=r&&(r=0,24===(l+=1))&&(l=0),this.timeScaleArray.push({position:c,value:r,unit:"minute",hour:l,minute:r,day:o,year:this._getYear(s,a,0),month:B.monthMod(a)}),c+=i,r++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.secondsWidthOnXAxis,n=t.numberOfSeconds,r=t.currentSecond+1,o=t.currentMinute,a=t.currentDate,s=t.currentMonth,l=t.currentYear,c=t.currentHour,h=(1e3-e)/1e3*i,u=0;u<n;u++)60<=r&&(r=0,60<=++o)&&(o=0,24==++c)&&(c=0),this.timeScaleArray.push({position:h,value:r,unit:"second",hour:c,minute:o,second:r,day:a,year:this._getYear(l,s,0),month:B.monthMod(s)}),h+=i,r++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day||"1")).slice(-2),i=(i=(i+="hour"===t.unit?"hour"===t.unit?"T"+("0"+e).slice(-2):"T00":"T"+("0"+(t.hour||"0")).slice(-2))+("minute"===t.unit?":"+("0"+e).slice(-2):":"+(t.minute?("0"+t.minute).slice(-2):"00")))+("second"===t.unit?":"+("0"+e).slice(-2):":00"),this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var s=this,l=this.w;return t.map(function(t){var e,i,n=t.value.toString(),r=new x(s.ctx),o=s.createRawDateString(t,n),a=r.getDate(r.parseDate(o));return s.utc||(a=r.getDate(r.parseDateWithTimezone(o))),n=void 0===l.config.xaxis.labels.format?(e="dd MMM",i=l.config.xaxis.labels.datetimeFormatter,"year"===t.unit&&(e=i.year),"month"===t.unit&&(e=i.month),"day"===t.unit&&(e=i.day),"hour"===t.unit&&(e=i.hour),"minute"===t.unit&&(e=i.minute),"second"===t.unit&&(e=i.second),r.formatDate(a,e)):r.formatDate(a,l.config.xaxis.labels.format),{dateString:o,position:t.position,value:n,unit:t.unit,year:t.year,month:t.month}})}},{key:"removeOverlappingTS",value:function(r){var o,a=this,s=new H(this.ctx),l=!1,c=(0<r.length&&r[0].value&&r.every(function(t){return t.value.length===r[0].value.length})&&(l=!0,o=s.getTextRects(r[0].value).width),0);return r.map(function(t,e){var i,n;return 0<e&&a.w.config.xaxis.labels.hideOverlappingLabels?(i=l?o:s.getTextRects(r[c].value).width,n=r[c].position,t.position>n+i+10?(c=e,t):null):t}).filter(function(t){return null!==t})}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),gi),ui=(t(pi,[{key:"setupElements",value:function(){var t=this.w,e=t.globals,i=(t=t.config).chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(i),e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(i),e.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(i)&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts".concat(e.chartID),e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),H.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas ".concat(e.chartClass.substring(1))}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background="dark"!==t.theme.mode||t.chart.background?"light"!==t.theme.mode||t.chart.background?t.chart.background:"#fff":"#424242",this.setSVGDimensions(),e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject"),H.setAttrs(e.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.dom.elLegendForeign.appendChild(e.dom.elLegendWrap),e.dom.Paper.node.appendChild(e.dom.elLegendForeign),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(n,t){var r=this.w,e=this.ctx,i=r.config,o=r.globals,a={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},column:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},s=i.chart.type||"line",l=null,c=0,h=(o.series.forEach(function(t,e){var i=n[e].type||s;a[i]?("rangeArea"===i?(a[i].series.push(o.seriesRangeStart[e]),a[i].seriesRangeEnd.push(o.seriesRangeEnd[e])):a[i].series.push(t),a[i].i.push(e),"column"!==i&&"bar"!==i||(r.globals.columnSeries=a.column)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(i)?l=i:"bar"===i?(a.column.series.push(t),a.column.i.push(e)):console.warn("You have specified an unrecognized series type (".concat(i,").")),s!==i&&"scatter"!==i&&c++}),0<c&&(l&&console.warn("Chart or series type ".concat(l," cannot appear with other chart or series types.")),0<a.column.series.length)&&i.plotOptions.bar.horizontal&&(c-=a.column.series.length,a.column={series:[],i:[]},r.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`")),o.comboCharts||(o.comboCharts=0<c),new ni(e,t)),u=new Qt(e,t),d=(e.pie=new ie(e),new re(e)),f=(e.rangeBar=new oe(e,t),new ne(e)),p=[];if(o.comboCharts){var g,m=new I(e);0<a.area.series.length&&p.push.apply(p,A(m.drawSeriesByGroup(a.area,o.areaGroups,"area",h))),0<a.column.series.length&&(i.chart.stacked?(g=new Kt(e,t),p.push(g.draw(a.column.series,a.column.i))):(e.bar=new b(e,t),p.push(e.bar.draw(a.column.series,a.column.i)))),0<a.rangeArea.series.length&&p.push(h.draw(a.rangeArea.series,"rangeArea",a.rangeArea.i,a.rangeArea.seriesRangeEnd)),0<a.line.series.length&&p.push.apply(p,A(m.drawSeriesByGroup(a.line,o.lineGroups,"line",h))),0<a.candlestick.series.length&&p.push(u.draw(a.candlestick.series,"candlestick",a.candlestick.i)),0<a.boxPlot.series.length&&p.push(u.draw(a.boxPlot.series,"boxPlot",a.boxPlot.i)),0<a.rangeBar.series.length&&p.push(e.rangeBar.draw(a.rangeBar.series,a.rangeBar.i)),0<a.scatter.series.length&&(g=new ni(e,t,!0),p.push(g.draw(a.scatter.series,"scatter",a.scatter.i))),0<a.bubble.series.length&&(m=new ni(e,t,!0),p.push(m.draw(a.bubble.series,"bubble",a.bubble.i)))}else switch(i.chart.type){case"line":p=h.draw(o.series,"line");break;case"area":p=h.draw(o.series,"area");break;case"bar":p=(i.chart.stacked?new Kt(e,t):(e.bar=new b(e,t),e.bar)).draw(o.series);break;case"candlestick":p=new Qt(e,t).draw(o.series,"candlestick");break;case"boxPlot":p=new Qt(e,t).draw(o.series,i.chart.type);break;case"rangeBar":p=e.rangeBar.draw(o.series);break;case"rangeArea":p=h.draw(o.seriesRangeStart,"rangeArea",void 0,o.seriesRangeEnd);break;case"heatmap":p=new te(e,t).draw(o.series);break;case"treemap":p=new ci(e,t).draw(o.series);break;case"pie":case"donut":case"polarArea":p=e.pie.draw(o.series);break;case"radialBar":p=d.draw(o.series);break;case"radar":p=f.draw(o.series);break;default:p=h.draw(o.series)}return p}},{key:"setSVGDimensions",value:function(){var t=this.w,e=t.globals,i=((t=t.config).chart.width=t.chart.width||"100%",t.chart.height=t.chart.height||"auto",e.svgWidth=t.chart.width,e.svgHeight=t.chart.height,B.getDimensions(this.el)),n=t.chart.width.toString().split(/[0-9]+/g).pop(),i=("%"===n?B.isNumber(i[0])&&(0===i[0].width&&(i=B.getDimensions(this.el.parentNode)),e.svgWidth=i[0]*parseInt(t.chart.width,10)/100):"px"!==n&&""!==n||(e.svgWidth=parseInt(t.chart.width,10)),String(t.chart.height).toString().split(/[0-9]+/g).pop());"auto"!==e.svgHeight&&""!==e.svgHeight?"%"===i?(n=B.getDimensions(this.el.parentNode),e.svgHeight=n[1]*parseInt(t.chart.height,10)/100):e.svgHeight=parseInt(t.chart.height,10):e.svgHeight=e.axisCharts?e.svgWidth/1.61:e.svgWidth/1.2,e.svgWidth=Math.max(e.svgWidth,0),e.svgHeight=Math.max(e.svgHeight,0),H.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==i&&(n=!t.chart.sparkline.enabled&&e.axisCharts?t.chart.parentHeightOffset:0,e.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(e.svgHeight+n,"px")),e.dom.elWrap.style.width="".concat(e.svgWidth,"px"),e.dom.elWrap.style.height="".concat(e.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY;H.setAttrs(t.dom.elGraphical.node,{transform:"translate(".concat(t.translateX,", ").concat(e,")")})}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,n=t.config.chart.sparkline.enabled?1:15,r=(n+=t.config.grid.padding.bottom,["top","bottom"].includes(t.config.legend.position)&&t.config.legend.show&&!t.config.legend.floating&&(i=new zt(this.ctx).legendHelpers.getLegendDimensions().clwh+7),t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie")),o=2.05*t.globals.radialSize,r=(r&&!t.config.chart.sparkline.enabled&&0!==t.config.plotOptions.radialBar.startAngle&&(o=(r=B.getBoundingClientRect(r)).bottom,o=Math.max(2.05*t.globals.radialSize,r.bottom-r.top)),Math.ceil(o+e.translateY+i+n));e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",r),t.config.chart.height&&String(t.config.chart.height).includes("%")||(e.dom.elWrap.style.height="".concat(r,"px"),H.setAttrs(e.dom.Paper.node,{height:r}),e.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(r,"px"))}},{key:"coreCalculations",value:function(){new St(this.ctx).init()}},{key:"resetGlobals",value:function(){function t(){return e.w.config.series.map(function(){return[]})}var e=this,i=new bt,n=this.w.globals;i.initGlobalVars(n),n.seriesXvalues=t(),n.seriesYvalues=t()}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&1<this.w.config.yaxis.length)&&(this.w.globals.isMultipleYAxis=!0)}},{key:"xySettings",value:function(){var t,e=this.w,i=null;return e.globals.axisCharts&&("back"===e.config.xaxis.crosshairs.position&&new Tt(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new Tt(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter&&(this.ctx.timeScale=new hi(this.ctx),t=[],isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?t=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(t=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(t)),i=new I(this.ctx).getCalculatedRatios()),i}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var i,n=this,t=this.w;t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection&&((i=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target]).forEach(function(t){var e=ApexCharts.getChartByID(t);e.w.globals.brushSource=n.ctx,"function"!=typeof e.w.config.chart.events.zoomed&&(e.w.config.chart.events.zoomed=function(){return n.updateSourceChart(e)}),"function"!=typeof e.w.config.chart.events.scrolled&&(e.w.config.chart.events.scrolled=function(){return n.updateSourceChart(e)})}),t.config.chart.events.selection=function(t,e){i.forEach(function(t){ApexCharts.getChartByID(t).ctx.updateHelpers._updateOptions({xaxis:{min:e.xaxis.min,max:e.xaxis.max}},!1,!1,!1,!1)})})}}]),pi),di=(t(fi,[{key:"_updateOptions",value:function(c){var h=this,u=1<arguments.length&&void 0!==arguments[1]&&arguments[1],d=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],t=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],f=4<arguments.length&&void 0!==arguments[4]&&arguments[4];return new Promise(function(s){var l=[h.ctx];t&&(l=h.ctx.getSyncedCharts()),h.ctx.w.globals.isExecCalled&&(l=[h.ctx],h.ctx.w.globals.isExecCalled=!1),l.forEach(function(t,e){var i=t.w;if(i.globals.shouldAnimate=d,u||(i.globals.resized=!0,i.globals.dataChanged=!0,d&&t.series.getPreviousPaths()),c&&"object"===y(c)&&(t.config=new p(c),c=I.extendArrayProps(t.config,c,i),t.w.globals.chartID!==h.ctx.w.globals.chartID&&delete c.series,i.config=B.extend(i.config,c),f)&&(i.globals.lastXAxis=c.xaxis?B.clone(c.xaxis):[],i.globals.lastYAxis=c.yaxis?B.clone(c.yaxis):[],i.globals.initialConfig=B.extend({},i.config),i.globals.initialSeries=B.clone(i.config.series),c.series)){for(var n=0;n<i.globals.collapsedSeriesIndices.length;n++){var r=i.config.series[i.globals.collapsedSeriesIndices[n]];i.globals.collapsedSeries[n].data=i.globals.axisCharts?r.data.slice():r}for(var o=0;o<i.globals.ancillaryCollapsedSeriesIndices.length;o++){var a=i.config.series[i.globals.ancillaryCollapsedSeriesIndices[o]];i.globals.ancillaryCollapsedSeries[o].data=i.globals.axisCharts?a.data.slice():a}t.series.emptyCollapsedSeries(i.config.series)}return t.update(c).then(function(){e===l.length-1&&s(t)})})})}},{key:"_updateSeries",value:function(n,r){var o=this,a=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return new Promise(function(t){var e,i=o.w;return i.globals.shouldAnimate=r,i.globals.dataChanged=!0,r&&o.ctx.series.getPreviousPaths(),i.globals.axisCharts?(0===(e=n.map(function(t,e){return o._extendSeries(t,e)})).length&&(e=[{data:[]}]),i.config.series=e):i.config.series=n.slice(),a&&(i.globals.initialConfig.series=B.clone(i.config.series),i.globals.initialSeries=B.clone(i.config.series)),o.ctx.update().then(function(){t(o.ctx)})})}},{key:"_extendSeries",value:function(t,e){var i=this.w,n=i.config.series[e];return M(M({},i.config.series[e]),{},{name:t.name||(null==n?void 0:n.name),color:t.color||(null==n?void 0:n.color),type:t.type||(null==n?void 0:n.type),group:t.group||(null==n?void 0:n.group),hidden:void 0!==t.hidden?t.hidden:null==n?void 0:n.hidden,data:t.data||(null==n?void 0:n.data),zIndex:void 0!==t.zIndex?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,n=null,r=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?n=i.globals.dom.Paper.select("".concat(r," path[j='").concat(e,"'], ").concat(r," circle[j='").concat(e,"'], ").concat(r," rect[j='").concat(e,"']")).members[0]:void 0===e&&(n=i.globals.dom.Paper.select("".concat(r," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),n?(new H(this.ctx).pathMouseDown(n,null),n.node||null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t,i=this.w;return["min","max"].forEach(function(t){void 0!==e.xaxis[t]&&(i.config.xaxis[t]=e.xaxis[t],i.globals.lastXAxis[t]=e.xaxis[t])}),e.xaxis.categories&&e.xaxis.categories.length&&(i.config.xaxis.categories=e.xaxis.categories),i.config.xaxis.convertedCatToNumeric&&(t=new s(e),e=t.convertCatToNumericXaxis(e,this.ctx)),e}},{key:"forceYAxisUpdate",value:function(i){return i.chart&&i.chart.stacked&&"100%"===i.chart.stackType&&(Array.isArray(i.yaxis)?i.yaxis.forEach(function(t,e){i.yaxis[e].min=0,i.yaxis[e].max=100}):(i.yaxis.min=0,i.yaxis.max=100)),i}},{key:"revertDefaultAxisMinMax",value:function(t){var n=this,r=this.w,e=r.globals.lastXAxis,o=r.globals.lastYAxis;t&&t.xaxis&&(e=t.xaxis),t&&t.yaxis&&(o=t.yaxis),r.config.xaxis.min=e.min,r.config.xaxis.max=e.max,r.config.yaxis.map(function(t,e){var i;r.globals.zoomed||void 0!==o[e]?void 0!==o[i=e]&&(r.config.yaxis[i].min=o[i].min,r.config.yaxis[i].max=o[i].max):void 0!==n.ctx.opts.yaxis[e]&&(t.min=n.ctx.opts.yaxis[e].min,t.max=n.ctx.opts.yaxis[e].max)})}}]),fi);function fi(t){n(this,fi),this.ctx=t,this.w=t.w}function pi(t,e){n(this,pi),this.ctx=e,this.w=e.w,this.el=t}function gi(t){n(this,gi),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}function mi(t,e){n(this,mi),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Jt(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}function T(t){(this.el=t).remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,e,i){return e="string"!=typeof t?t:e[t],i?e/2:e},this.pointCoords=function(t,e){var i=this.pointsList[t];return{x:this.pointCoord(i[0],e,"t"===t||"b"===t),y:this.pointCoord(i[1],e,"r"===t||"l"===t)}}}function bi(t){switch(t[0]){case"z":case"Z":t[0]="L",t[1]=this.start[0],t[2]=this.start[1];break;case"H":t[0]="L",t[2]=this.pos[1];break;case"V":t[0]="L",t[2]=t[1],t[1]=this.pos[0];break;case"T":t[0]="Q",t[3]=t[1],t[4]=t[2],t[1]=this.reflection[1],t[2]=this.reflection[0];break;case"S":t[0]="C",t[6]=t[4],t[5]=t[3],t[4]=t[2],t[3]=t[1],t[2]=this.reflection[1],t[1]=this.reflection[0]}return t}function vi(t){var e=t.length;return this.pos=[t[e-2],t[e-1]],-1!="SCQT".indexOf(t[0])&&(this.reflection=[2*this.pos[0]-t[e-4],2*this.pos[1]-t[e-3]]),t}function yi(t){var e=[t];switch(t[0]){case"M":return this.pos=this.start=[t[1],t[2]],e;case"L":t[5]=t[3]=t[1],t[6]=t[4]=t[2],t[1]=this.pos[0],t[2]=this.pos[1];break;case"Q":t[6]=t[4],t[5]=t[3],t[4]=+t[4]/3+2*t[2]/3,t[3]=+t[3]/3+2*t[1]/3,t[2]=+this.pos[1]/3+2*t[2]/3,t[1]=+this.pos[0]/3+2*t[1]/3;break;case"A":t=(e=((t,e)=>{var i,n,r,o,a,s,l,c,h,u,d,f,p,g,m,b,v,y,x,w=Math.abs(e[1]),k=Math.abs(e[2]),A=e[3]%360,S=e[4],C=e[5],_=e[6],e=e[7],t=new SVG.Point(t),e=new SVG.Point(_,e),E=[];if(0===w||0===k||t.x===e.x&&t.y===e.y)return[["C",t.x,t.y,e.x,e.y,e.x,e.y]];for(1<(a=(a=new SVG.Point((t.x-e.x)/2,(t.y-e.y)/2).transform((new SVG.Matrix).rotate(A))).x*a.x/(w*w)+a.y*a.y/(k*k))&&(w*=a=Math.sqrt(a),k*=a),i=(new SVG.Matrix).rotate(A).scale(1/w,1/k).rotate(-A),t=t.transform(i),r=(a=[(e=e.transform(i)).x-t.x,e.y-t.y])[0]*a[0]+a[1]*a[1],o=Math.sqrt(r),a[0]/=o,a[1]/=o,o=r<4?Math.sqrt(1-r/4):0,S===C&&(o*=-1),n=new SVG.Point((e.x+t.x)/2+o*-a[1],(e.y+t.y)/2+o*a[0]),r=new SVG.Point(t.x-n.x,t.y-n.y),S=new SVG.Point(e.x-n.x,e.y-n.y),o=Math.acos(r.x/Math.sqrt(r.x*r.x+r.y*r.y)),r.y<0&&(o*=-1),a=Math.acos(S.x/Math.sqrt(S.x*S.x+S.y*S.y)),S.y<0&&(a*=-1),C&&a<o&&(a+=2*Math.PI),!C&&o<a&&(a-=2*Math.PI),h=[],s=(a-(u=o))/(l=Math.ceil(2*Math.abs(o-a)/Math.PI)),c=4*Math.tan(s/4)/3,g=0;g<=l;g++)f=Math.cos(u),d=Math.sin(u),p=new SVG.Point(n.x+f,n.y+d),h[g]=[new SVG.Point(p.x+c*d,p.y-c*f),p,new SVG.Point(p.x-c*d,p.y+c*f)],u+=s;for(h[0][0]=h[0][1].clone(),h[h.length-1][2]=h[h.length-1][1].clone(),i=(new SVG.Matrix).rotate(A).scale(w,k).rotate(-A),g=0,m=h.length;g<m;g++)h[g][0]=h[g][0].transform(i),h[g][1]=h[g][1].transform(i),h[g][2]=h[g][2].transform(i);for(g=1,m=h.length;g<m;g++)b=(p=h[g-1][2]).x,v=p.y,y=(p=h[g][0]).x,x=p.y,_=(p=h[g][1]).x,E.push(["C",b,v,y,x,_,p.y]);return E})(this.pos,t))[0]}return t[0]="C",this.pos=[t[5],t[6]],this.reflection=[2*t[5]-t[3],2*t[6]-t[4]],e}function xi(t,e){if(!1!==e)for(var i=e,n=t.length;i<n;++i)if("M"==t[i][0])return i;return!1}v=window,O=function(r,o){var c=(void 0!==this?this:r).SVG=function(t){if(c.supported)return t=new c.Doc(t),c.parser.draw||c.prepare(),t};if(c.ns="http://www.w3.org/2000/svg",c.xmlns="http://www.w3.org/2000/xmlns/",c.xlink="http://www.w3.org/1999/xlink",c.svgjs="http://svgjs.dev",c.supported=!0,!c.supported)return!1;c.did=1e3,c.eid=function(t){return"Svgjs"+s(t)+c.did++},c.create=function(t){var e=o.createElementNS(this.ns,t);return e.setAttribute("id",this.eid(t)),e},c.extend=function(){for(var t,e=(t=[].slice.call(arguments)).pop(),i=t.length-1;0<=i;i--)if(t[i])for(var n in e)t[i].prototype[n]=e[n];c.Set&&c.Set.inherit&&c.Set.inherit()},c.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,c.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&c.extend(e,t.extend),t.construct&&c.extend(t.parent||c.Container,t.construct),e},c.adopt=function(t){return t?t.instance||((e="svg"==t.nodeName?new(t.parentNode instanceof r.SVGElement?c.Nested:c.Doc):"linearGradient"==t.nodeName?new c.Gradient("linear"):"radialGradient"==t.nodeName?new c.Gradient("radial"):c[s(t.nodeName)]?new c[s(t.nodeName)]:new c.Element(t)).type=t.nodeName,((e.node=t).instance=e)instanceof c.Doc&&e.namespace().defs(),e.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),e):null;var e},c.prepare=function(){var t=o.getElementsByTagName("body")[0],e=(t?new c.Doc(t):c.adopt(o.documentElement).nested()).size(2,0);c.parser={body:t||o.documentElement,draw:e.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:e.polyline().node,path:e.path().node,native:c.create("svg")}},c.parser={native:c.create("svg")},o.addEventListener("DOMContentLoaded",function(){c.parser.draw||c.prepare()},!1),c.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},c.utils={map:function(t,e){for(var i=t.length,n=[],r=0;r<i;r++)n.push(e(t[r]));return n},filter:function(t,e){for(var i=t.length,n=[],r=0;r<i;r++)e(t[r])&&n.push(t[r]);return n},filterSVGElements:function(t){return this.filter(t,function(t){return t instanceof r.SVGElement})}},c.defaults={attrs:{"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","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},c.Color=function(t){var e,i;this.r=0,this.g=0,this.b=0,t&&("string"==typeof t?c.regex.isRgb.test(t)?(e=c.regex.rgb.exec(t.replace(c.regex.whitespace,"")),this.r=parseInt(e[1]),this.g=parseInt(e[2]),this.b=parseInt(e[3])):c.regex.isHex.test(t)&&(e=c.regex.hex.exec(4==(i=t).length?["#",i.substring(1,2),i.substring(1,2),i.substring(2,3),i.substring(2,3),i.substring(3,4),i.substring(3,4)].join(""):i),this.r=parseInt(e[1],16),this.g=parseInt(e[2],16),this.b=parseInt(e[3],16)):"object"===y(t)&&(this.r=t.r,this.g=t.g,this.b=t.b))},c.extend(c.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+u(this.r)+u(this.g)+u(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(t){return this.destination=new c.Color(t),this},at:function(t){return this.destination?new c.Color({r:~~(this.r+(this.destination.r-this.r)*(t=t<0?0:1<t?1:t)),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)}):this}}),c.Color.test=function(t){return c.regex.isHex.test(t+="")||c.regex.isRgb.test(t)},c.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},c.Color.isColor=function(t){return c.Color.isRgb(t)||c.Color.test(t)},c.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},c.extend(c.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)}}),c.PointArray=function(t,e){c.Array.call(this,t,e||[[0,0]])},c.PointArray.prototype=new c.Array,c.PointArray.prototype.constructor=c.PointArray;for(var l={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},t="mlhvqtcsaz".split(""),e=0,i=t.length;e<i;++e)l[t[e]]=(o=>function(t,e,i){if("H"==o)t[0]=t[0]+e.x;else if("V"==o)t[0]=t[0]+e.y;else if("A"==o)t[5]=t[5]+e.x,t[6]=t[6]+e.y;else for(var n=0,r=t.length;n<r;++n)t[n]=t[n]+(n%2?e.y:e.x);if(l&&"function"==typeof l[o])return l[o](t,e,i)})(t[e].toUpperCase());c.PathArray=function(t,e){c.Array.call(this,t,e||[["M",0,0]])},c.PathArray.prototype=new c.Array,c.PathArray.prototype.constructor=c.PathArray,c.extend(c.PathArray,{toString:function(){for(var t=this.value,e=0,i=t.length,n="";e<i;e++)n+=t[e][0],null!=t[e][1]&&(n+=t[e][1],null!=t[e][2])&&(n=n+" "+t[e][2],null!=t[e][3])&&(n=(n=n+" "+t[e][3])+" "+t[e][4],null!=t[e][5])&&(n=(n=n+" "+t[e][5])+" "+t[e][6],null!=t[e][7])&&(n=n+" "+t[e][7]);return n+" "},move:function(t,e){return this.bbox().x,this},at:function(t){if(!this.destination)return this;for(var e=this.value,i=this.destination.value,n=[],r=new c.PathArray,o=0,a=e.length;o<a;o++){n[o]=[e[o][0]];for(var s=1,l=e[o].length;s<l;s++)n[o][s]=e[o][s]+(i[o][s]-e[o][s])*t;"A"===n[o][0]&&(n[o][4]=+(0!=n[o][4]),n[o][5]=+(0!=n[o][5]))}return r.value=n,r},parse:function(t){if(t instanceof c.PathArray)return t.valueOf();for(var e,i={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},n=(t="string"==typeof t?t.replace(c.regex.numbersWithDots,h).replace(c.regex.pathLetters," $& ").replace(c.regex.hyphen,"$1 -").trim().split(c.regex.delimiter):t.reduce(function(t,e){return[].concat.call(t,e)},[]),[]),r=new c.Point,o=new c.Point,a=0,s=t.length;c.regex.isPathLetter.test(t[a])?(e=t[a],++a):"M"==e?e="L":"m"==e&&(e="l"),n.push(l[e].call(null,t.slice(a,a+=i[e.toUpperCase()]).map(parseFloat),r,o)),a<s;);return n},bbox:function(){return c.parser.draw||c.prepare(),c.parser.path.setAttribute("d",this.toString()),c.parser.path.getBBox()}}),c.Number=c.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(c.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof c.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new c.Number(t),new c.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new c.Number(t),new c.Number(this-t,this.unit||t.unit)},times:function(t){return t=new c.Number(t),new c.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new c.Number(t),new c.Number(this/t,this.unit||t.unit)},to:function(t){var e=new c.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new c.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new c.Number(this.destination).minus(this).times(t).plus(this):this}}}),c.Element=c.invent({create:function(t){this._stroke=c.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,(this.node.instance=this)._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){return t=d(this,t,e),this.width(new c.Number(t.width)).height(new c.Number(t.height))},clone:function(t){this.writeDataToDom();var e=g(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(c.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){var e;return this.hasClass(t)||((e=this.classes()).push(t),this.attr("class",e.join(" "))),this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter(function(t){return t!=e}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return c.get(this.attr(t))},parent:function(t){var e=this;if(!e.node.parentNode)return null;if(e=c.adopt(e.node.parentNode),!t)return e;for(;e&&e.node instanceof r.SVGElement;){if("string"==typeof t?e.matches(t):e instanceof t)return e;if(!e.node.parentNode||"#document"==e.node.parentNode.nodeName)return null;e=c.adopt(e.node.parentNode)}},doc:function(){return this instanceof c.Doc?this:this.parent(c.Doc)},parents:function(t){for(var e=[],i=this;(i=i.parent(t))&&i.node&&(e.push(i),i.parent););return e},matches:function(t){return((e=this.node).matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t);var e},native:function(){return this.node},svg:function(t){var e=o.createElementNS("http://www.w3.org/2000/svg","svg");if(!(t&&this instanceof c.Parent))return e.appendChild(t=o.createElementNS("http://www.w3.org/2000/svg","svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),e.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");e.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var i=0,n=e.firstChild.childNodes.length;i<n;i++)this.node.appendChild(e.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(t){return this.dom=t,this},is:function(t){return this instanceof t}}}),c.easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},c.morph=function(i){return function(t,e){return new c.MorphObj(t,e).at(i)}},c.Situation=c.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new c.Number(t.duration).valueOf(),this.delay=new c.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),c.FX=c.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(t,e,i){return"object"===y(t)&&(e=t.ease,i=t.delay,t=t.duration),t=new c.Situation({duration:t||1e3,delay:i||0,ease:c.easing[e||"-"]||e}),this.queue(t),this},target:function(t){return t&&t instanceof c.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=r.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){r.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof c.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof c.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(!e.init){for(var i in e.animations){t=this.target()[i](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[i])||(e.animations[i]=[e.animations[i]]);for(var n=t.length;n--;)e.animations[i][n]instanceof c.Number&&(t[n]=new c.Number(t[n])),e.animations[i][n]=t[n].morph(e.animations[i][n])}for(var i in e.attrs)e.attrs[i]=new c.MorphObj(this.target().attr(i),e.attrs[i]);for(var i in e.styles)e.styles[i]=new c.MorphObj(this.target().style(i),e.styles[i]);e.initialTransformation=this.target().matrixify(),e.init=!0}return this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(i||this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(i){var n=this.last();return this.target().on("finished.fx",function t(e){e.detail.situation==n&&(i.call(this,n),this.off("finished.fx",t))}),this._callStart()},during:function(e){function t(t){t.detail.situation==i&&e.call(this,t.detail.pos,c.morph(t.detail.pos),t.detail.eased,i)}var i=this.last();return this.target().off("during.fx",t).on("during.fx",t),this.after(function(){this.off("during.fx",t)}),this._callStart()},afterAll:function(e){function i(t){e.call(this),this.off("allfinished.fx",i)}return this.target().off("allfinished.fx",i).on("allfinished.fx",i),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),e=Math.floor(t),!0===this.situation.loops||e<this.situation.loops?(this.pos=t-e,i=this.situation.loop,this.situation.loop=e):(this.absPos=this.situation.loops,this.pos=1,i=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-i)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var e,i,n,r=this.situation.ease(this.pos);for(n in this.situation.once)n>this.lastPos&&n<=r&&(this.situation.once[n].call(this.target(),this.pos,r),delete this.situation.once[n]);return this.active&&this.target().fire("during",{pos:this.pos,eased:r,fx:this,situation:this.situation}),this.situation&&(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length)||(this.target().off(".fx"),this.active=!1),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=r),this},eachAt:function(){var e=this,t=this.target(),i=this.situation;for(r in i.animations)n=[].concat(i.animations[r]).map(function(t){return"string"!=typeof t&&t.at?t.at(i.ease(e.pos),e.pos):t}),t[r].apply(t,n);for(r in i.attrs)n=[r].concat(i.attrs[r]).map(function(t){return"string"!=typeof t&&t.at?t.at(i.ease(e.pos),e.pos):t}),t.attr.apply(t,n);for(r in i.styles)n=[r].concat(i.styles[r]).map(function(t){return"string"!=typeof t&&t.at?t.at(i.ease(e.pos),e.pos):t}),t.style.apply(t,n);if(i.transforms.length){for(var n=i.initialTransformation,r=0,o=i.transforms.length;r<o;r++)var a=i.transforms[r],n=a instanceof c.Matrix?a.relative?n.multiply((new c.Matrix).morph(a).at(i.ease(this.pos))):n.morph(a).at(i.ease(this.pos)):(a.relative||a.undo(n.extract()),n.multiply(a.at(i.ease(this.pos))));t.matrix(n)}return this},once:function(t,e,i){var n=this.last();return i||(t=n.ease(t)),n.once[t]=e,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:c.Element,construct:{animate:function(t,e,i){return(this.fx||(this.fx=new c.FX(this))).animate(t,e,i)},delay:function(t){return(this.fx||(this.fx=new c.FX(this))).delay(t)},stop:function(t,e){return this.fx&&this.fx.stop(t,e),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),c.MorphObj=c.invent({create:function(t,e){return c.Color.isColor(e)?new c.Color(t).morph(e):c.regex.delimiter.test(t)?new(c.regex.pathLetters.test(t)?c.PathArray:c.Array)(t).morph(e):c.regex.numberAndUnit.test(e)?new c.Number(t).morph(e):(this.value=t,void(this.destination=e))},extend:{at:function(t,e){return e<1?this.value:this.destination},valueOf:function(){return this.value}}}),c.extend(c.FX,{attr:function(t,e,i){if("object"===y(t))for(var n in t)this.attr(n,t[n]);else this.add(t,e,"attrs");return this},plot:function(t,e,i,n){return 4==arguments.length?this.plot([t,e,i,n]):this.add("plot",new(this.target().morphArray)(t))}}),c.Box=c.invent({create:function(t,e,i,n){if(!("object"!==y(t)||t instanceof c.Element))return c.Box.call(this,null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height);4==arguments.length&&(this.x=t,this.y=e,this.width=i,this.height=n),null==(t=this).x&&(t.x=0,t.y=0,t.width=0,t.height=0),t.w=t.width,t.h=t.height,t.x2=t.x+t.width,t.y2=t.y+t.height,t.cx=t.x+t.width/2,t.cy=t.y+t.height/2}}),c.BBox=c.invent({create:function(t){if(c.Box.apply(this,[].slice.call(arguments)),t instanceof c.Element){var e,i;try{if(!o.documentElement.contains){for(var n=t.node;n.parentNode;)n=n.parentNode;if(n!=o)throw new Error("Element not in the dom")}e=t.node.getBBox()}catch(n){t instanceof c.Shape?(c.parser.draw||c.prepare(),(i=t.clone(c.parser.draw.instance).show())&&i.node&&"function"==typeof i.node.getBBox&&(e=i.node.getBBox()),i&&"function"==typeof i.remove&&i.remove()):e={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}c.Box.call(this,e)}},inherit:c.Box,parent:c.Element,construct:{bbox:function(){return new c.BBox(this)}}}),c.BBox.prototype.constructor=c.BBox,c.Matrix=c.invent({create:function(t){var e=p([1,0,0,1,0,0]);t=null===t?e:t instanceof c.Element?t.matrixify():"string"==typeof t?p(t.split(c.regex.delimiter).map(parseFloat)):6==arguments.length?p([].slice.call(arguments)):Array.isArray(t)?p(t):t&&"object"===y(t)?t:e;for(var i=v.length-1;0<=i;--i)this[v[i]]=(null!=t[v[i]]?t:e)[v[i]]},extend:{extract:function(){var t=f(this,0,1),t=(f(this,1,0),180/Math.PI*Math.atan2(t.y,t.x)-90);return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new c.Matrix(this)}},clone:function(){return new c.Matrix(this)},morph:function(t){return this.destination=new c.Matrix(t),this},multiply:function(t){return new c.Matrix(this.native().multiply((t=t instanceof c.Matrix?t:new c.Matrix(t)).native()))},inverse:function(){return new c.Matrix(this.native().inverse())},translate:function(t,e){return new c.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=c.parser.native.createSVGMatrix(),e=v.length-1;0<=e;e--)t[v[e]]=this[v[e]];return t},toString:function(){return"matrix("+m(this.a)+","+m(this.b)+","+m(this.c)+","+m(this.d)+","+m(this.e)+","+m(this.f)+")"}},parent:c.Element,construct:{ctm:function(){return new c.Matrix(this.node.getCTM())},screenCTM:function(){var t,e;return this instanceof c.Nested?(e=(t=this.rect(1,1)).node.getScreenCTM(),t.remove(),new c.Matrix(e)):new c.Matrix(this.node.getScreenCTM())}}}),c.Point=c.invent({create:function(t,e){e=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===y(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:{x:0,y:0},this.x=e.x,this.y=e.y},extend:{clone:function(){return new c.Point(this)},morph:function(t,e){return this.destination=new c.Point(t,e),this}}}),c.extend(c.Element,{point:function(t,e){return new c.Point(t,e).transform(this.screenCTM().inverse())}}),c.extend(c.Element,{attr:function(t,e,i){if(null==t){for(t={},i=(e=this.node.attributes).length-1;0<=i;i--)t[e[i].nodeName]=c.regex.isNumber.test(e[i].nodeValue)?parseFloat(e[i].nodeValue):e[i].nodeValue;return t}if("object"===y(t))for(var n in t)this.attr(n,t[n]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?c.defaults.attrs[t]:c.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",0<parseFloat(e)?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(e=c.regex.isImage.test(e)?this.doc().defs().image(e,0,0):e)instanceof c.Image&&(e=this.doc().defs().pattern(0,0,function(){this.add(e)})),"number"==typeof e?e=new c.Number(e):c.Color.isColor(e)?e=new c.Color(e):Array.isArray(e)&&(e=new c.Array(e)),"leading"==t?this.leading&&this.leading(e):"string"==typeof i?this.node.setAttributeNS(i,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),c.extend(c.Element,{transform:function(t,e){var i;return"object"!==y(t)?(i=new c.Matrix(this).extract(),"string"==typeof t?i[t]:i):(i=new c.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(i=e?i.multiply(new c.Matrix(t)):new c.Matrix(t)),this.attr("transform",i))}}),c.extend(c.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(c.regex.transforms).slice(0,-1).map(function(t){return[(t=t.trim().split("("))[0],t[1].split(c.regex.delimiter).map(function(t){return parseFloat(t)})]}).reduce(function(t,e){return"matrix"==e[0]?t.multiply(p(e[1])):t[e[0]].apply(t,e[1])},new c.Matrix)},toParent:function(t){var e,i;return this!=t&&(e=this.screenCTM(),i=t.screenCTM().inverse(),this.addTo(t).untransform().transform(i.multiply(e))),this},toDoc:function(){return this.toParent(this.doc())}}),c.Transformation=c.invent({create:function(t,e){if(1<arguments.length&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,n=this.arguments.length;i<n;++i)this[this.arguments[i]]=t[i];else if(t&&"object"===y(t))for(i=0,n=this.arguments.length;i<n;++i)this[this.arguments[i]]=t[this.arguments[i]];!(this.inversed=!1)===e&&(this.inversed=!0)}}),c.Translate=c.invent({parent:c.Matrix,inherit:c.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),c.extend(c.Element,{style:function(t,e){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===y(t))for(var i in t)this.style(i,t[i]);else{if(!c.regex.isCss.test(t))return this.node.style[a(t)];for(t=t.split(/\s*;\s*/).filter(function(t){return!!t}).map(function(t){return t.split(/\s*:\s*/)});e=t.pop();)this.style(e[0],e[1])}else this.node.style[a(t)]=null===e||c.regex.isBlank.test(e)?"":e;return this}}),c.Parent=c.invent({create:function(t){this.constructor.call(this,t)},inherit:c.Element,extend:{children:function(){return c.utils.map(c.utils.filterSVGElements(this.node.childNodes),function(t){return c.adopt(t)})},add:function(t,e){return null==e?this.node.appendChild(t.node):t.node!=this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this},put:function(t,e){return this.add(t,e),t},has:function(t){return 0<=this.index(t)},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return c.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){for(var i=this.children(),n=0,r=i.length;n<r;n++)i[n]instanceof c.Element&&t.apply(i[n],[n,i]),e&&i[n]instanceof c.Container&&i[n].each(t,e);return this},removeElement:function(t){return this.node.removeChild(t.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),c.extend(c.Parent,{ungroup:function(t,e){return 0===e||this instanceof c.Defs||this.node==c.parser.draw||(t=t||(this instanceof c.Doc?this:this.parent(c.Parent)),e=e||1/0,this.each(function(){return this instanceof c.Defs?this:this instanceof c.Parent?this.ungroup(t,e-1):this.toParent(t)}),this.node.firstChild)||this.remove(),this},flatten:function(t,e){return this.ungroup(t,e)}}),c.Container=c.invent({create:function(t){this.constructor.call(this,t)},inherit:c.Parent}),c.ViewBox=c.invent({parent:c.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(e){c.Element.prototype[e]=function(t){return c.on(this.node,e,t),this}}),c.listeners=[],c.handlerMap=[],c.listenerId=0,c.on=function(t,e,i,n,r){var n=i.bind(n||t.instance||t),o=(c.handlerMap.indexOf(t)+1||c.handlerMap.push(t))-1,a=e.split(".")[0],e=e.split(".")[1]||"*";c.listeners[o]=c.listeners[o]||{},c.listeners[o][a]=c.listeners[o][a]||{},c.listeners[o][a][e]=c.listeners[o][a][e]||{},i._svgjsListenerId||(i._svgjsListenerId=++c.listenerId),c.listeners[o][a][e][i._svgjsListenerId]=n,t.addEventListener(a,n,r||{passive:!1})},c.off=function(t,e,i){var n=c.handlerMap.indexOf(t),r=e&&e.split(".")[0],o=e&&e.split(".")[1],a="";if(-1!=n)if(i)(i="function"==typeof i?i._svgjsListenerId:i)&&c.listeners[n][r]&&c.listeners[n][r][o||"*"]&&(t.removeEventListener(r,c.listeners[n][r][o||"*"][i],!1),delete c.listeners[n][r][o||"*"][i]);else if(o&&r){if(c.listeners[n][r]&&c.listeners[n][r][o]){for(var s in c.listeners[n][r][o])c.off(t,[r,o].join("."),s);delete c.listeners[n][r][o]}}else if(o)for(var l in c.listeners[n])for(var a in c.listeners[n][l])o===a&&c.off(t,[l,o].join("."));else if(r){if(c.listeners[n][r]){for(var a in c.listeners[n][r])c.off(t,[r,a].join("."));delete c.listeners[n][r]}}else{for(var l in c.listeners[n])c.off(t,l);delete c.listeners[n],delete c.handlerMap[n]}},c.extend(c.Element,{on:function(t,e,i,n){return c.on(this.node,t,e,i,n),this},off:function(t,e){return c.off(this.node,t,e),this},fire:function(t,e){return t instanceof r.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new c.CustomEvent(t,{detail:e,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),c.Defs=c.invent({create:"defs",inherit:c.Container}),c.G=c.invent({create:"g",inherit:c.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)}},construct:{group:function(){return this.put(new c.G)}}}),c.Doc=c.invent({create:function(t){t&&("svg"==(t="string"==typeof t?o.getElementById(t):t).nodeName?this.constructor.call(this,t):(this.constructor.call(this,c.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:c.Container,extend:{namespace:function(){return this.attr({xmlns:c.ns,version:"1.1"}).attr("xmlns:xlink",c.xlink,c.xmlns).attr("xmlns:svgjs",c.svgjs,c.xmlns)},defs:function(){var t;return this._defs||((t=this.node.getElementsByTagName("defs")[0])?this._defs=c.adopt(t):this._defs=new c.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,c.parser.draw&&!c.parser.draw.parentNode&&this.node.appendChild(c.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=g(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),c.extend(c.Element,{}),c.Gradient=c.invent({create:function(t){this.constructor.call(this,c.create(t+"Gradient")),this.type=t},inherit:c.Container,extend:{at:function(t,e,i){return this.put(new c.Stop).update(t,e,i)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,i){return c.Container.prototype.attr.call(this,t="transform"==t?"gradientTransform":t,e,i)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),c.extend(c.Gradient,c.FX,{from:function(t,e){return"radial"==(this._target||this).type?this.attr({fx:new c.Number(t),fy:new c.Number(e)}):this.attr({x1:new c.Number(t),y1:new c.Number(e)})},to:function(t,e){return"radial"==(this._target||this).type?this.attr({cx:new c.Number(t),cy:new c.Number(e)}):this.attr({x2:new c.Number(t),y2:new c.Number(e)})}}),c.extend(c.Defs,{gradient:function(t,e){return this.put(new c.Gradient(t)).update(e)}}),c.Stop=c.invent({create:"stop",inherit:c.Element,extend:{update:function(t){return null!=(t="number"==typeof t||t instanceof c.Number?{offset:arguments[0],color:arguments[1],opacity:arguments[2]}:t).opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new c.Number(t.offset)),this}}}),c.Pattern=c.invent({create:"pattern",inherit:c.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,i){return c.Container.prototype.attr.call(this,t="transform"==t?"patternTransform":t,e,i)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),c.extend(c.Defs,{pattern:function(t,e,i){return this.put(new c.Pattern).update(i).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),c.Shape=c.invent({create:function(t){this.constructor.call(this,t)},inherit:c.Element}),c.Symbol=c.invent({create:"symbol",inherit:c.Container,construct:{symbol:function(){return this.put(new c.Symbol)}}}),c.Use=c.invent({create:"use",inherit:c.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,c.xlink)}},construct:{use:function(t,e){return this.put(new c.Use).element(t,e)}}}),c.Rect=c.invent({create:"rect",inherit:c.Shape,construct:{rect:function(t,e){return this.put(new c.Rect).size(t,e)}}}),c.Circle=c.invent({create:"circle",inherit:c.Shape,construct:{circle:function(t){return this.put(new c.Circle).rx(new c.Number(t).divide(2)).move(0,0)}}}),c.extend(c.Circle,c.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),c.Ellipse=c.invent({create:"ellipse",inherit:c.Shape,construct:{ellipse:function(t,e){return this.put(new c.Ellipse).size(t,e).move(0,0)}}}),c.extend(c.Ellipse,c.Rect,c.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),c.extend(c.Circle,c.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new c.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new c.Number(t).divide(2))},size:function(t,e){return t=d(this,t,e),this.rx(new c.Number(t.width).divide(2)).ry(new c.Number(t.height).divide(2))}}),c.Line=c.invent({create:"line",inherit:c.Shape,extend:{array:function(){return new c.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,i,n){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:n}:new c.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){return t=d(this,t,e),this.attr(this.array().size(t.width,t.height).toLine())}},construct:{line:function(t,e,i,n){return c.Line.prototype.plot.apply(this.put(new c.Line),null!=t?[t,e,i,n]:[0,0,0,0])}}}),c.Polyline=c.invent({create:"polyline",inherit:c.Shape,construct:{polyline:function(t){return this.put(new c.Polyline).plot(t||new c.PointArray)}}}),c.Polygon=c.invent({create:"polygon",inherit:c.Shape,construct:{polygon:function(t){return this.put(new c.Polygon).plot(t||new c.PointArray)}}}),c.extend(c.Polyline,c.Polygon,{array:function(){return this._array||(this._array=new c.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new c.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){return t=d(this,t,e),this.attr("points",this.array().size(t.width,t.height))}}),c.extend(c.Line,c.Polyline,c.Polygon,{morphArray:c.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),c.Path=c.invent({create:"path",inherit:c.Shape,extend:{morphArray:c.PathArray,array:function(){return this._array||(this._array=new c.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new c.PathArray(t))},clear:function(){return delete this._array,this}},construct:{path:function(t){return this.put(new c.Path).plot(t||new c.PathArray)}}}),c.Image=c.invent({create:"image",inherit:c.Shape,extend:{load:function(e){var i,n;return e?(i=this,n=new r.Image,c.on(n,"load",function(){c.off(n);var t=i.parent(c.Pattern);null!==t&&(0==i.width()&&0==i.height()&&i.size(n.width,n.height),t&&0==t.width()&&0==t.height()&&t.size(i.width(),i.height()),"function"==typeof i._loaded)&&i._loaded.call(i,{width:n.width,height:n.height,ratio:n.width/n.height,url:e})}),c.on(n,"error",function(t){c.off(n),"function"==typeof i._error&&i._error.call(i,t)}),this.attr("href",n.src=this.src=e,c.xlink)):this},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,i){return this.put(new c.Image).load(t).size(e||0,i||e||0)}}}),c.Text=c.invent({create:function(){this.constructor.call(this,c.create("text")),this.dom.leading=new c.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",c.defaults.attrs["font-family"])},inherit:c.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},text:function(t){if(void 0===t){t="";for(var e=this.node.childNodes,i=0,n=e.length;i<n;++i)0!=i&&3!=e[i].nodeType&&1==c.adopt(e[i]).dom.newLined&&(t+="\n"),t+=e[i].textContent;return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(var i=0,r=(t=t.split("\n")).length;i<r;i++)this.tspan(t[i]).newLine();return this.build(!1).rebuild()},size:function(t){return this.attr("font-size",t).rebuild()},leading:function(t){return null==t?this.dom.leading:(this.dom.leading=new c.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&&this.textPath()||this).node,t=c.utils.map(c.utils.filterSVGElements(t.childNodes),function(t){return c.adopt(t)});return new c.Set(t)},rebuild:function(t){var e,i,n;return"boolean"==typeof t&&(this._rebuild=t),this._rebuild&&(i=0,n=(e=this).dom.leading*new c.Number(this.attr("font-size")),this.lines().each(function(){this.dom.newLined&&(e.textPath()||this.attr("x",e.attr("x")),"\n"==this.text()?i+=n:(this.attr("dy",n+i),i=0))}),this.fire("rebuild")),this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new c.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new c.Text).text(t)},plain:function(t){return this.put(new c.Text).plain(t)}}}),c.Tspan=c.invent({create:"tspan",inherit:c.Shape,extend:{text:function(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?t.call(this,this):this.plain(t),this)},dx:function(t){return this.attr("dx",t)},dy:function(t){return this.attr("dy",t)},newLine:function(){var t=this.parent(c.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr("font-size")).attr("x",t.x())}}}),c.extend(c.Text,c.Tspan,{plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(o.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&&this.textPath()||this).node,i=new c.Tspan;return!1===this._build&&this.clear(),e.appendChild(i.node),i.text(t)},clear:function(){for(var t=(this.textPath&&this.textPath()||this).node;t.hasChildNodes();)t.removeChild(t.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),c.TextPath=c.invent({create:"textPath",inherit:c.Parent,parent:c.Text,construct:{morphArray:c.PathArray,array:function(){var t=this.track();return t?t.array():null},plot:function(t){var e=this.track(),i=null;return e&&(i=e.plot(t)),null==t?i:this},track:function(){var t=this.textPath();if(t)return t.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return c.adopt(this.node.firstChild)}}}),c.Nested=c.invent({create:function(){this.constructor.call(this,c.create("svg")),this.style("overflow","visible")},inherit:c.Container,construct:{nested:function(){return this.put(new c.Nested)}}});var n={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"==e?t:t+"-"+e}};function h(t,e,i,n){return i+n.replace(c.regex.dots," .")}function a(t){return t.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function s(t){return t.charAt(0).toUpperCase()+t.slice(1)}function u(t){return 1==(t=t.toString(16)).length?"0"+t:t}function d(t,e,i){return null!=e&&null!=i||(t=t.bbox(),null==e?e=t.width/t.height*i:null==i&&(i=t.height/t.width*e)),{width:e,height:i}}function f(t,e,i){return{x:e*t.a+i*t.c,y:e*t.b+i*t.d}}function p(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function g(t){for(var e=t.childNodes.length-1;0<=e;e--)t.childNodes[e]instanceof r.SVGElement&&g(t.childNodes[e]);return c.adopt(t).id(c.eid(t.nodeName))}function m(t){return 1e-37<Math.abs(t)?t:0}["fill","stroke"].forEach(function(i){var t={};t[i]=function(t){if(void 0!==t)if("string"==typeof t||c.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(i,t);else for(var e=n[i].length-1;0<=e;e--)null!=t[n[i][e]]&&this.attr(n.prefix(i,n[i][e]),t[n[i][e]]);return this},c.extend(c.Element,c.FX,t)}),c.extend(c.Element,c.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr("transform",new c.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new c.Number(t).plus(this instanceof c.FX?0:this.x()),!0)},dy:function(t){return this.y(new c.Number(t).plus(this instanceof c.FX?0:this.y()),!0)}}),c.extend(c.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),c.Set=c.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e<i;e++)this.members.push(t[e]);return this},remove:function(t){return-1<(t=this.index(t))&&this.members.splice(t,1),this},each:function(t){for(var e=0,i=this.members.length;e<i;e++)t.apply(this.members[e],[e,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(t){return 0<=this.index(t)},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(t){return new c.Set(t)}}}),c.FX.Set=c.invent({create:function(t){this.set=t}}),c.Set.inherit=function(){var t,e=[];for(t in c.Shape.prototype)"function"==typeof c.Shape.prototype[t]&&"function"!=typeof c.Set.prototype[t]&&e.push(t);for(t in e.forEach(function(i){c.Set.prototype[i]=function(){for(var t=0,e=this.members.length;t<e;t++)this.members[t]&&"function"==typeof this.members[t][i]&&this.members[t][i].apply(this.members[t],arguments);return"animate"==i?this.fx||(this.fx=new c.FX.Set(this)):this}}),e=[],c.FX.prototype)"function"==typeof c.FX.prototype[t]&&"function"!=typeof c.FX.Set.prototype[t]&&e.push(t);e.forEach(function(i){c.FX.Set.prototype[i]=function(){for(var t=0,e=this.set.members.length;t<e;t++)this.set.members[t].fx[i].apply(this.set.members[t].fx,arguments);return this}})},c.extend(c.Element,{}),c.extend(c.Element,{remember:function(t,e){if("object"===y(t))for(var i in t)this.remember(i,t[i]);else{if(1==arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var t=arguments.length-1;0<=t;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),c.get=function(e){var t=o.getElementById((()=>{var t=(e||"").toString().match(c.regex.reference);if(t)return t[1]})()||e);return c.adopt(t)},c.select=function(t,e){return new c.Set(c.utils.map((e||o).querySelectorAll(t),function(t){return c.adopt(t)}))},c.extend(c.Parent,{select:function(t){return c.select(t,this.node)}});var b,v="abcdef".split("");return"function"!=typeof r.CustomEvent?((b=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=o.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}).prototype=r.Event.prototype,c.CustomEvent=b):c.CustomEvent=r.CustomEvent,c},"function"==typeof define&&define.amd?define(function(){return O(v,v.document)}):"object"===("undefined"==typeof exports?"undefined":y(exports))&&"undefined"!=typeof module?module.exports=v.document?O(v,v.document):function(t){return O(t,t.document)}:v.SVG=O(v,v.document),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(t,e){return this.add(t,e),!t.attr("in")&&this.autoSetIn&&t.attr("in",this.source),t.attr("result")||t.attr("result",t),t},blend:function(t,e,i){return this.put(new SVG.BlendEffect(t,e,i))},colorMatrix:function(t,e){return this.put(new SVG.ColorMatrixEffect(t,e))},convolveMatrix:function(t){return this.put(new SVG.ConvolveMatrixEffect(t))},componentTransfer:function(t){return this.put(new SVG.ComponentTransferEffect(t))},composite:function(t,e,i){return this.put(new SVG.CompositeEffect(t,e,i))},flood:function(t,e){return this.put(new SVG.FloodEffect(t,e))},offset:function(t,e){return this.put(new SVG.OffsetEffect(t,e))},image:function(t){return this.put(new SVG.ImageEffect(t))},merge:function(){var t,e=[void 0];for(t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(t,e){return this.put(new SVG.GaussianBlurEffect(t,e))},morphology:function(t,e){return this.put(new SVG.MorphologyEffect(t,e))},diffuseLighting:function(t,e,i){return this.put(new SVG.DiffuseLightingEffect(t,e,i))},displacementMap:function(t,e,i,n,r){return this.put(new SVG.DisplacementMapEffect(t,e,i,n,r))},specularLighting:function(t,e,i,n){return this.put(new SVG.SpecularLightingEffect(t,e,i,n))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(t,e,i,n,r){return this.put(new SVG.TurbulenceEffect(t,e,i,n,r))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(t){var e=this.put(new SVG.Filter);return"function"==typeof t&&t.call(e,e),e}}),SVG.extend(SVG.Container,{filter:function(t){return this.defs().filter(t)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(t){return this.filterer=t instanceof SVG.Element?t:this.doc().filter(t),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(t){return this.filterer&&!0===t&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}});var t={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},diffuseLighting:function(t,e,i){return this.parent()&&this.parent().diffuseLighting(t,e,i).in(this)},displacementMap:function(t,e,i,n){return this.parent()&&this.parent().displacementMap(this,t,e,i,n)},specularLighting:function(t,e,i,n){return this.parent()&&this.parent().specularLighting(t,e,i,n).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,i,n,r){return this.parent()&&this.parent().turbulence(t,e,i,n,r).in(this)}},t=(SVG.extend(SVG.Effect,t),SVG.extend(SVG.ParentEffect,t),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){this.attr("in",t)}}}),{blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||"normal"})},colorMatrix:function(t,e){"matrix"==t&&(e=n(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=n(t),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},composite:function(t,e,i){this.attr({in:t,in2:e,operator:i})},flood:function(t,e){this.attr("flood-color",t),null!=e&&this.attr("flood-opacity",e)},offset:function(t,e){this.attr({dx:t,dy:e})},image:function(t){this.attr("href",t,SVG.xlink)},displacementMap:function(t,e,i,n,r){this.attr({in:t,in2:e,scale:i,xChannelSelector:n,yChannelSelector:r})},gaussianBlur:function(t,e){null!=t||null!=e?this.attr("stdDeviation",(t=>{if(!Array.isArray(t))return t;for(var e=0,i=t.length,n=[];e<i;e++)n.push(t[e]);return n.join(" ")})(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(t,e){this.attr({operator:t,radius:e})},tile:function(){},turbulence:function(t,e,i,n,r){this.attr({numOctaves:e,seed:i,stitchTiles:n,baseFrequency:t,type:r})}}),e={merge:function(){if(arguments[0]instanceof SVG.Set){var e=this;arguments[0].each(function(t){this instanceof SVG.MergeNode?e.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&e.put(new SVG.MergeNode(this))})}else for(var t=Array.isArray(arguments[0])?arguments[0]:arguments,i=0;i<t.length;i++)t[i]instanceof SVG.MergeNode?this.put(t[i]):this.put(new SVG.MergeNode(t[i]))},componentTransfer:function(e){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(t){this[t]=new SVG["Func"+t.toUpperCase()]("identity"),this.rgb.add(this[t]),this.node.appendChild(this[t].node)}.bind(this)),e)for(var t in e.rgb&&(["r","g","b"].forEach(function(t){this[t].attr(e.rgb)}.bind(this)),delete e.rgb),e)this[t].attr(e[t])},diffuseLighting:function(t,e,i){this.attr({surfaceScale:t,diffuseConstant:e,kernelUnitLength:i})},specularLighting:function(t,e,i,n){this.attr({surfaceScale:t,diffuseConstant:e,specularExponent:i,kernelUnitLength:n})}},i={distantLight:function(t,e){this.attr({azimuth:t,elevation:e})},pointLight:function(t,e,i){this.attr({x:t,y:e,z:i})},spotLight:function(t,e,i,n,r,o){this.attr({x:t,y:e,z:i,pointsAtX:n,pointsAtY:r,pointsAtZ:o})},mergeNode:function(t){this.attr("in",t)}};function n(t){return(t=Array.isArray(t)?new SVG.Array(t):t).toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function r(){var t,e=function(){};for(t in"function"==typeof arguments[arguments.length-1]&&(e=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[t])e(arguments[t][i],i,arguments[t])}["r","g","b","a"].forEach(function(t){i["Func"+t.toUpperCase()]=function(t){switch(this.attr("type",t),t){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),r(t,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),r(e,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),r(i,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(t){return t instanceof SVG.MergeNode?this.add(t,0):this.add(new SVG.MergeNode(t),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",t)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),SVG.extend(SVG.PathArray,{morph:function(t){for(var c=this.value,e=this.parse(t),i=0,n=0;!1!==i||!1!==n;)var r,h=xi(c,!1!==i&&i+1),o=xi(e,!1!==n&&n+1),a=(!1===i&&(i=0==(r=new SVG.PathArray(a.start).bbox()).height||0==r.width?c.push(c[0])-1:c.push(["M",r.x+r.width/2,r.y+r.height/2])-1),!1===n&&(n=0==(r=new SVG.PathArray(a.dest).bbox()).height||0==r.width?e.push(e[0])-1:e.push(["M",r.x+r.width/2,r.y+r.height/2])-1),((t,e,i,n)=>{for(var r=c.slice(t,h||void 0),o=e.slice(i,n||void 0),a=0,s={pos:[0,0],start:[0,0]},l={pos:[0,0],start:[0,0]};r[a]=bi.call(s,r[a]),o[a]=bi.call(l,o[a]),r[a][0]!=o[a][0]||"M"==r[a][0]||"A"==r[a][0]&&(r[a][4]!=o[a][4]||r[a][5]!=o[a][5])?(Array.prototype.splice.apply(r,[a,1].concat(yi.call(s,r[a]))),Array.prototype.splice.apply(o,[a,1].concat(yi.call(l,o[a])))):(r[a]=vi.call(s,r[a]),o[a]=vi.call(l,o[a])),++a!=r.length||a!=o.length;)a==r.length&&r.push(["C",s.pos[0],s.pos[1],s.pos[0],s.pos[1],s.pos[0],s.pos[1]]),a==o.length&&o.push(["C",l.pos[0],l.pos[1],l.pos[0],l.pos[1],l.pos[0],l.pos[1]]);return{start:r,dest:o}})(i,e,n,o)),c=c.slice(0,i).concat(a.start,!1===h?[]:c.slice(h)),e=e.slice(0,n).concat(a.dest,!1===o?[]:e.slice(o)),i=!1!==h&&i+a.start.length,n=!1!==o&&n+a.dest.length;return this.value=c,this.destination=new SVG.PathArray,this.destination.value=e,this}}),function(){function n(t){t.remember("_draggable",this),this.el=t}n.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",function(t){i.start(t)}),this.el.on("touchstart.drag",function(t){i.start(t)})},n.prototype.transformPoint=function(t,e){return t=(t=t||window.event).changedTouches&&t.changedTouches[0]||t,this.p.x=t.clientX-(e||0),this.p.y=t.clientY,this.p.matrixTransform(this.m)},n.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},n.prototype.start=function(t){if("click"!=t.type&&"mousedown"!=t.type&&"mousemove"!=t.type||1==(t.which||t.buttons)){var e=this;if(this.el.fire("beforedrag",{event:t,handler:this}),!this.el.event().defaultPrevented){t.preventDefault(),t.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,n=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:n,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(t){e.drag(t)}),SVG.on(window,"touchmove.drag",function(t){e.drag(t)}),SVG.on(window,"mouseup.drag",function(t){e.end(t)}),SVG.on(window,"touchend.drag",function(t){e.end(t)}),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},n.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),n=this.startPoints.box.x+i.x-this.startPoints.point.x,r=this.startPoints.box.y+i.y-this.startPoints.point.y,o=this.constraint,a=i.x-this.startPoints.point.x,s=i.y-this.startPoints.point.y;return this.el.fire("dragmove",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented||("function"==typeof o?(!0===(t="boolean"==typeof(t=o.call(this.el,n,r,this.m))?{x:t,y:t}:t).x?this.el.x(n):!1!==t.x&&this.el.x(t.x),!0===t.y?this.el.y(r):!1!==t.y&&this.el.y(t.y)):"object"==typeof o&&(null!=o.minX&&n<o.minX?a=(n=o.minX)-this.startPoints.box.x:null!=o.maxX&&n>o.maxX-e.width&&(a=(n=o.maxX-e.width)-this.startPoints.box.x),null!=o.minY&&r<o.minY?s=(r=o.minY)-this.startPoints.box.y:null!=o.maxY&&r>o.maxY-e.height&&(s=(r=o.maxY-e.height)-this.startPoints.box.y),null!=o.snapToGrid&&(n-=n%o.snapToGrid,r-=r%o.snapToGrid,a-=a%o.snapToGrid,s-=s%o.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:a,y:s},!0):this.el.move(n,r))),i},n.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,e){"function"!=typeof t&&"object"!=typeof t||(e=t,t=!0);var i=this.remember("_draggable")||new n(this);return(t=void 0===t||t)?i.init(e||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),T.prototype.init=function(t,e){var i=this.el.bbox(),n=(this.options={},this.el.selectize.defaults.points);for(r in this.el.selectize.defaults)this.options[r]=this.el.selectize.defaults[r],void 0!==e[r]&&(this.options[r]=e[r]);var r,o=["points","pointsExclude"];for(r in o){var a=this.options[o[r]];"string"==typeof a?a=0<a.length?a.split(/\s*,\s*/i):[]:"boolean"==typeof a&&"points"===o[r]&&(a=a?n:[]),this.options[o[r]]=a}this.options.points=[n,this.options.points].reduce(function(t,e){return t.filter(function(t){return-1<e.indexOf(t)})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(t,e){return t.filter(function(t){return e.indexOf(t)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},T.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},T.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map(function(t){return[t[0]-e.x,t[1]-e.y]})},T.prototype.drawPoints=function(){for(var r=this,t=this.getPointArray(),e=0,i=t.length;e<i;++e){var n=(n=>function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var e=t.pageX||t.touches[0].pageX,i=t.pageY||t.touches[0].pageY;r.el.fire("point",{x:e,y:i,i:n,event:t})})(e),n=this.drawPoint(t[e][0],t[e][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",n).on("mousedown",n);this.pointSelection.set.add(n)}},T.prototype.drawPoint=function(t,e){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(t,e);case"rect":return this.drawRect(t,e);default:if("function"==typeof i)return i.call(this,t,e);throw new Error("Unknown "+i+" point type!")}},T.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},T.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},T.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each(function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])})},T.prototype.updateRectSelection=function(){var t,i=this,n=this.el.bbox();this.rectSelection.set.get(0).attr({width:n.width,height:n.height}),this.options.points.length&&this.options.points.map(function(t,e){t=i.pointCoords(t,n),i.rectSelection.set.get(e+1).center(t.x,t.y)}),this.options.rotationPoint&&(t=this.rectSelection.set.length(),this.rectSelection.set.get(t-1).center(n.width/2,20))},T.prototype.selectRect=function(t){var r=this,n=this.el.bbox();function o(n){return function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var e=t.pageX||t.touches[0].pageX,i=t.pageY||t.touches[0].pageY;r.el.fire(n,{x:e,y:i,event:t})}}this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(n.width,n.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(t,e){var i=r.pointCoords(t,n),i=r.drawPoint(i.x,i.y).attr("class",r.options.classPoints+"_"+t).on("mousedown",o(t)).on("touchstart",o(t));r.rectSelection.set.add(i)}),this.rectSelection.set.each(function(){this.addClass(r.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))&&(t=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var e=t.pageX||t.touches[0].pageX,i=t.pageY||t.touches[0].pageY;r.el.fire("rot",{x:e,y:i,event:t})},t=this.drawPoint(n.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",t).on("mousedown",t),this.rectSelection.set.add(t))},T.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},T.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){t.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(t){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){t.handler()})},T.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(t,e){return"object"==typeof t&&(e=t,t=!0),(this.remember("_selectHandler")||new T(this)).init(void 0===t||t,e||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"},function(){!function(){function e(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}e.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},e.prototype._extractPosition=function(t){return{x:(null!=t.clientX?t:t.touches[0]).clientX,y:(null!=t.clientY?t:t.touches[0]).clientY}},e.prototype.init=function(t){var e=this;if(this.stop(),"stop"!==t){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);this.el.on("lt.resize",function(t){e.resize(t||window.event)}),this.el.on("rt.resize",function(t){e.resize(t||window.event)}),this.el.on("rb.resize",function(t){e.resize(t||window.event)}),this.el.on("lb.resize",function(t){e.resize(t||window.event)}),this.el.on("t.resize",function(t){e.resize(t||window.event)}),this.el.on("r.resize",function(t){e.resize(t||window.event)}),this.el.on("b.resize",function(t){e.resize(t||window.event)}),this.el.on("l.resize",function(t){e.resize(t||window.event)}),this.el.on("rot.resize",function(t){e.resize(t||window.event)}),this.el.on("point.resize",function(t){e.resize(t||window.event)}),this.update()}},e.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},e.prototype.resize=function(t){var e=this,i=(this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset},this._extractPosition(t.detail.event));switch(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==t.detail.i&&(i=this.el.array().valueOf(),this.parameters.i=t.detail.i,this.parameters.pointCoords=[i[t.detail.i][0],i[t.detail.i][1]]),t.type){case"lt":this.calc=function(t,e){t=this.snapToGrid(t,e),0<this.parameters.box.width-t[0]&&0<this.parameters.box.height-t[1]&&("text"===this.parameters.type?(this.el.move(this.parameters.box.x+t[0],this.parameters.box.y),this.el.attr("font-size",this.parameters.fontSize-t[0])):(t=this.checkAspectRatio(t),this.el.move(this.parameters.box.x+t[0],this.parameters.box.y+t[1]).size(this.parameters.box.width-t[0],this.parameters.box.height-t[1])))};break;case"rt":this.calc=function(t,e){t=this.snapToGrid(t,e,2),0<this.parameters.box.width+t[0]&&0<this.parameters.box.height-t[1]&&("text"===this.parameters.type?(this.el.move(this.parameters.box.x-t[0],this.parameters.box.y),this.el.attr("font-size",this.parameters.fontSize+t[0])):(t=this.checkAspectRatio(t,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+t[1]).size(this.parameters.box.width+t[0],this.parameters.box.height-t[1])))};break;case"rb":this.calc=function(t,e){t=this.snapToGrid(t,e,0),0<this.parameters.box.width+t[0]&&0<this.parameters.box.height+t[1]&&("text"===this.parameters.type?(this.el.move(this.parameters.box.x-t[0],this.parameters.box.y),this.el.attr("font-size",this.parameters.fontSize+t[0])):(t=this.checkAspectRatio(t),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+t[0],this.parameters.box.height+t[1])))};break;case"lb":this.calc=function(t,e){t=this.snapToGrid(t,e,1),0<this.parameters.box.width-t[0]&&0<this.parameters.box.height+t[1]&&("text"===this.parameters.type?(this.el.move(this.parameters.box.x+t[0],this.parameters.box.y),this.el.attr("font-size",this.parameters.fontSize-t[0])):(t=this.checkAspectRatio(t,!0),this.el.move(this.parameters.box.x+t[0],this.parameters.box.y).size(this.parameters.box.width-t[0],this.parameters.box.height+t[1])))};break;case"t":this.calc=function(t,e){t=this.snapToGrid(t,e,2),0<this.parameters.box.height-t[1]&&"text"!==this.parameters.type&&this.el.move(this.parameters.box.x,this.parameters.box.y+t[1]).height(this.parameters.box.height-t[1])};break;case"r":this.calc=function(t,e){t=this.snapToGrid(t,e,0),0<this.parameters.box.width+t[0]&&"text"!==this.parameters.type&&this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+t[0])};break;case"b":this.calc=function(t,e){t=this.snapToGrid(t,e,0),0<this.parameters.box.height+t[1]&&"text"!==this.parameters.type&&this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+t[1])};break;case"l":this.calc=function(t,e){t=this.snapToGrid(t,e,1),0<this.parameters.box.width-t[0]&&"text"!==this.parameters.type&&this.el.move(this.parameters.box.x+t[0],this.parameters.box.y).width(this.parameters.box.width-t[0])};break;case"rot":this.calc=function(t,e){var t=t+this.parameters.p.x,e=e+this.parameters.p.y,i=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),e=Math.atan2(e-this.parameters.box.y-this.parameters.box.height/2,t-this.parameters.box.x-this.parameters.box.width/2),t=this.parameters.rotation+180*(e-i)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(t-t%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){t=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),(e=this.el.array().valueOf())[this.parameters.i][0]=this.parameters.pointCoords[0]+t[0],e[this.parameters.i][1]=this.parameters.pointCoords[1]+t[1],this.el.plot(e)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"touchend.resize",function(){e.done()}),SVG.on(window,"mousemove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"mouseup.resize",function(){e.done()})},e.prototype.update=function(t){var e,i;t?(i=this._extractPosition(t),e=(i=this.transformPoint(i.x,i.y)).x-this.parameters.p.x,i=i.y-this.parameters.p.y,this.lastUpdateCall=[e,i],this.calc(e,i),this.el.fire("resizing",{dx:e,dy:i,event:t})):this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},e.prototype.snapToGrid=function(t,e,i,n){var r=void 0!==n?[(i+t)%this.options.snapToGrid,(n+e)%this.options.snapToGrid]:[(this.parameters.box.x+t+(1&(i=null==i?3:i)?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid];return t<0&&(r[0]-=this.options.snapToGrid),e<0&&(r[1]-=this.options.snapToGrid),t-=Math.abs(r[0])<this.options.snapToGrid/2?r[0]:r[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(r[1])<this.options.snapToGrid/2?r[1]:r[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,n)},e.prototype.constraintToBox=function(t,e,i,n){var r,o=this.options.constraint||{},n=void 0!==n?(r=i,n):(r=this.parameters.box.x+(1&i?0:this.parameters.box.width),this.parameters.box.y+(2&i?0:this.parameters.box.height));return void 0!==o.minX&&r+t<o.minX&&(t=o.minX-r),void 0!==o.maxX&&r+t>o.maxX&&(t=o.maxX-r),void 0!==o.minY&&n+e<o.minY&&(e=o.minY-n),[t,e=void 0!==o.maxY&&n+e>o.maxY?o.maxY-n:e]},e.prototype.checkAspectRatio=function(t,e){var i,n,r,o,a;return this.options.saveAspectRatio?(i=t.slice(),n=this.parameters.box.width/this.parameters.box.height,(a=(r=this.parameters.box.width+t[0])/(o=this.parameters.box.height-t[1]))<n?(i[1]=r/n-this.parameters.box.height,e&&(i[1]=-i[1])):n<a&&(i[0]=this.parameters.box.width-o*n,e)&&(i[0]=-i[0]),i):t},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}.call(this)}(),void 0===window.Apex&&(window.Apex={}),t(Ci,[{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 S(this.ctx),this.ctx.axes=new Ot(this.ctx),this.ctx.core=new ui(this.ctx.el,this.ctx),this.ctx.config=new p({}),this.ctx.data=new xt(this.ctx),this.ctx.grid=new kt(this.ctx),this.ctx.graphics=new H(this.ctx),this.ctx.coreUtils=new I(this.ctx),this.ctx.crosshairs=new Tt(this.ctx),this.ctx.events=new _t(this.ctx),this.ctx.exports=new wt(this.ctx),this.ctx.fill=new _(this.ctx),this.ctx.localization=new Et(this.ctx),this.ctx.options=new u,this.ctx.responsive=new Lt(this.ctx),this.ctx.series=new E(this.ctx),this.ctx.theme=new Mt(this.ctx),this.ctx.formatters=new g(this.ctx),this.ctx.titleSubtitle=new Pt(this.ctx),this.ctx.legend=new zt(this.ctx),this.ctx.toolbar=new Bt(this.ctx),this.ctx.tooltip=new Ut(this.ctx),this.ctx.dimensions=new Ft(this.ctx),this.ctx.updateHelpers=new di(this.ctx),this.ctx.zoomPanSelection=new Ht(this.ctx),this.ctx.w.globals.tooltip=new Ut(this.ctx)}}]);var wi=Ci,ki=(t(Si,[{key:"clear",value:function(t){t=t.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(t){t.each(function(){this.removeClass("*"),this.off(),this.stop()},!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,t=t.isUpdating,i=this.w.globals.dom.Paper.node,n=(i.parentNode&&i.parentNode.parentNode&&!t&&(i.parentNode.parentNode.style.minHeight="unset"),this.w.globals.dom.baseEl),t=(n&&this.ctx.eventList.forEach(function(t){n.removeEventListener(t,e.ctx.events.documentEvent)}),this.w.globals.dom);if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(t.Paper),t.Paper.remove(),t.elWrap=null,t.elGraphical=null,t.elLegendWrap=null,t.elLegendForeign=null,t.baseEl=null,t.elGridRect=null,t.elGridRectMask=null,t.elGridRectBarMask=null,t.elGridRectMarkerMask=null,t.elForecastMask=null,t.elNonForecastMask=null,t.elDefs=null}}]),Si),Ai=new WeakMap;function Si(t){n(this,Si),this.ctx=t,this.w=t.w}function Ci(t){n(this,Ci),this.ctx=t,this.w=t.w}function _i(t,e){n(this,_i),this.opts=e,(this.ctx=this).w=new vt(e).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 wi(this).initModules(),this.create=B.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return t(_i,[{key:"render",value:function(){var d=this;return new Promise(function(t,e){if(null!==d.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),d.w.config.chart.id&&Apex._chartInstances.push({id:d.w.globals.chartID,group:d.w.config.chart.group,chart:d}),d.setLocale(d.w.config.chart.defaultLocale),"function"==typeof(n=d.w.config.chart.events.beforeMount)&&n(d,d.w),d.events.fireEvent("beforeMount",[d,d.w]),window.addEventListener("resize",d.windowResizeHandler),l=d.el.parentNode,c=d.parentResizeHandler,h=!1,l.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(n=l.getBoundingClientRect(),"none"!==l.style.display&&0!==n.width||(h=!0)),u=new ResizeObserver(function(t){h&&c.call(l,t),h=!0}),l.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(l.children).forEach(function(t){return u.observe(t)}):u.observe(l),Ai.set(c,u);var i,n=d.el.getRootNode&&d.el.getRootNode(),r=B.is("ShadowRoot",n),o=d.el.ownerDocument,a=(r?n:o).getElementById("apexcharts-css"),s=(a||((a=document.createElement("style")).id="apexcharts-css",a.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 width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,\n.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,\n.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,\n.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, .7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n pointer-events: none\n}\n',(i=(null==(i=d.opts.chart)?void 0:i.nonce)||d.w.config.chart.nonce)&&a.setAttribute("nonce",i),r?n.prepend(a):o.head.appendChild(a)),d.create(d.w.config.series,{}));if(!s)return t(d);d.mount(s).then(function(){"function"==typeof d.w.config.chart.events.mounted&&d.w.config.chart.events.mounted(d,d.w),d.events.fireEvent("mounted",[d,d.w]),t(s)}).catch(function(t){e(t)})}else e(new Error("Element not found"));var l,c,h,u})}},{key:"create",value:function(t,e){var i,n=this,r=this.w,o=(new wi(this).initModules(),this.w.globals);return o.noData=!1,o.animationEnded=!1,this.responsive.checkResponsiveConfig(e),r.config.xaxis.convertedCatToNumeric&&new s(r.config).convertCatToNumericXaxis(r.config,this.ctx),null===this.el||(this.core.setupElements(),"treemap"===r.config.chart.type&&(r.config.grid.show=!1,r.config.yaxis[0].show=!1),0===o.svgWidth)?(o.animationEnded=!0,null):((i=t).forEach(function(t,e){t.hidden&&(i=n.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:e}))}),e=I.checkComboSeries(i,r.config.chart.type),o.comboCharts=e.comboCharts,o.comboBarCount=e.comboBarCount,t=i.every(function(t){return t.data&&0===t.data.length}),(0===i.length||t&&o.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(i),this.theme.init(),new w(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),o.noData&&o.collapsedSeries.length!==o.series.length&&!r.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),o.axisCharts&&(this.core.coreCalculations(),"category"!==r.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=r.globals.minX,this.ctx.toolbar.maxX=r.globals.maxX),this.formatters.heatmapLabelFormatters(),new I(this).getLargestMarkerSize(),this.dimensions.plotCoords(),e=this.core.xySettings(),this.grid.createGridMask(),t=this.core.plotChartType(i,e),(o=new k(this)).bringForward(),r.config.dataLabels.background.enabled&&o.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:t,xyRatios:e,dimensions:{plot:{left:r.globals.translateX,top:r.globals.translateY,width:r.globals.gridWidth,height:r.globals.gridHeight}}})}},{key:"mount",value:function(){var a=this,s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,l=this,c=l.w;return new Promise(function(t,e){if(null===l.el)return e(new Error("Not enough data to display or target element not found"));if(null!==s&&!c.globals.allSeriesCollapsed||l.series.handleNoData(),l.grid=new kt(l),e=l.grid.drawGrid(),l.annotations=new mt(l),l.annotations.drawImageAnnos(),l.annotations.drawTextAnnos(),"back"===c.config.grid.position&&(e&&c.globals.dom.elGraphical.add(e.el),null!=e)&&null!=(r=e.elGridBorders)&&r.node&&c.globals.dom.elGraphical.add(e.elGridBorders),Array.isArray(s.elGraph))for(var i=0;i<s.elGraph.length;i++)c.globals.dom.elGraphical.add(s.elGraph[i]);else c.globals.dom.elGraphical.add(s.elGraph);"front"===c.config.grid.position&&(e&&c.globals.dom.elGraphical.add(e.el),null!=e)&&null!=(r=e.elGridBorders)&&r.node&&c.globals.dom.elGraphical.add(e.elGridBorders),"front"===c.config.xaxis.crosshairs.position&&l.crosshairs.drawXCrosshairs(),"front"===c.config.yaxis[0].crosshairs.position&&l.crosshairs.drawYCrosshairs(),"treemap"!==c.config.chart.type&&l.axes.drawAxis(c.config.chart.type,e);var n,r=new f(a.ctx,e),o=new Ct(a.ctx,e);null!==e&&(r.xAxisLabelCorrections(e.xAxisTickWidth),o.setYAxisTextAlignments(),c.config.yaxis.map(function(t,e){-1===c.globals.ignoreYAxisIndexes.indexOf(e)&&o.yAxisTitleRotate(e,t.opposite)})),l.annotations.drawAxesAnnotations(),c.globals.noData||(c.config.tooltip.enabled&&!c.globals.noData&&l.w.globals.tooltip.drawTooltip(s.xyRatios),c.globals.axisCharts&&(c.globals.isXNumeric||c.config.xaxis.convertedCatToNumeric||c.globals.isRangeBar)?(c.config.chart.zoom.enabled||c.config.chart.selection&&c.config.chart.selection.enabled||c.config.chart.pan&&c.config.chart.pan.enabled)&&l.zoomPanSelection.init({xyRatios:s.xyRatios}):(n=c.config.chart.toolbar.tools,["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(t){n[t]=!1})),c.config.chart.toolbar.show&&!c.globals.allSeriesCollapsed&&l.toolbar.createToolbar()),0<c.globals.memory.methodsToExec.length&&c.globals.memory.methodsToExec.forEach(function(t){t.method(t.params,!1,t.context)}),c.globals.axisCharts||c.globals.noData||l.core.resizeNonAxisCharts(),t(l)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=Ai.get(t))&&(e.disconnect(),Ai.delete(t));var t,e,i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(t,e){t.id===B.escapeString(i)&&Apex._chartInstances.splice(e,1)}),new ki(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var i=this,e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],o=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],a=this.w;return a.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map(function(t,e){return i.updateHelpers._extendSeries(t,e)})),this.updateHelpers.revertDefaultAxisMinMax()),(t=t.xaxis?this.updateHelpers.forceXAxisUpdate(t):t).yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),0<a.globals.collapsedSeriesIndices.length&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,e,n,r,o)}},{key:"updateSeries",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],n=this.w.config.series.slice();return n.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,e,i)}},{key:"appendData",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];this.w.globals.dataChanged=!0,this.series.getPreviousPaths();for(var i=this.w.config.series.slice(),n=0;n<i.length;n++)if(null!=t[n])for(var r=0;r<t[n].data.length;r++)i[n].data.push(t[n].data[r]);return this.w.config.series=i,e&&(this.w.globals.initialSeries=B.clone(this.w.config.series)),this.update()}},{key:"update",value:function(n){var r=this;return new Promise(function(t,e){new ki(r.ctx).clear({isUpdating:!0});var i=r.create(r.w.config.series,n);if(!i)return t(r);r.mount(i).then(function(){"function"==typeof r.w.config.chart.events.updated&&r.w.config.chart.events.updated(r,r.w),r.events.fireEvent("updated",[r,r.w]),r.w.globals.isDirty=!0,t(r)}).catch(function(t){e(t)})})}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach(function(t){e.push(t)})),e}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"highlightSeriesOnLegendHover",value:function(t,e){return this.series.toggleSeriesOnHover(t,e)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"highlightSeries",value:function(t){this.series.highlightSeries(t)}},{key:"isSeriesHidden",value:function(t){this.series.isSeriesHidden(t)}},{key:"resetSeries",value:function(){this.series.resetSeries(!(0<arguments.length&&void 0!==arguments[0])||arguments[0],!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0;(i=i||this).annotations.addXaxisAnnotationExternal(t,e,i)}},{key:"addYaxisAnnotation",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0;(i=i||this).annotations.addYaxisAnnotationExternal(t,e,i)}},{key:"addPointAnnotation",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0;(i=i||this).annotations.addPointAnnotationExternal(t,e,i)}},{key:"clearAnnotations",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:void 0;(t=t||this).annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0;(e=e||this).annotations.removeAnnotation(e,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return new St(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return new St(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new wt(this.ctx).dataURI(t)}},{key:"exportToCSV",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return new wt(this.ctx).exportToCSV(t)}},{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 t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;(t="function"==typeof t?t():t)&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=B.escapeString(t);if(Apex._chartInstances)return(t=Apex._chartInstances.filter(function(t){return t.id===e})[0])&&t.chart}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),e=0;e<t.length;e++)new _i(t[e],JSON.parse(t[e].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){if(t=this.getChartByID(t)){t.w.globals.isExecCalled=!0;var i=null;if(-1!==t.publicMethods.indexOf(e)){for(var n=arguments.length,r=new Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i=t[e].apply(t,r)}return i}}},{key:"merge",value:function(t,e){return B.extend(t,e)}}]),_i}),((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i,n=e();for(i in n)("object"==typeof exports?exports:t)[i]=n[i]}})(self,function(){var i={3099:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:function(t,e,i){var n=i(111);t.exports=function(t){if(n(t)||null===t)return t;throw TypeError("Can't set "+String(t)+" as a prototype")}},1223:function(t,e,i){var n=i(5112),r=i(30),i=i(3070),o=n("unscopables"),a=Array.prototype;null==a[o]&&i.f(a,o,{configurable:!0,value:r(null)}),t.exports=function(t){a[o][t]=!0}},1530:function(t,e,i){var n=i(8710).charAt;t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},5787:function(t){t.exports=function(t,e,i){if(t instanceof e)return t;throw TypeError("Incorrect "+(i?i+" ":"")+"invocation")}},9670:function(t,e,i){var n=i(111);t.exports=function(t){if(n(t))return t;throw TypeError(String(t)+" is not an object")}},4019:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(t,e,i){function n(t){return!!l(t)&&(t=h(t),c(_,t)||c(E,t))}var r,o=i(4019),a=i(9781),s=i(7854),l=i(111),c=i(6656),h=i(648),u=i(8880),d=i(1320),f=i(3070).f,p=i(9518),g=i(7674),m=i(5112),i=i(9711),b=s.Int8Array,v=b&&b.prototype,y=(y=s.Uint8ClampedArray)&&y.prototype,x=b&&p(b),w=v&&p(v),k=Object.prototype,A=k.isPrototypeOf,m=m("toStringTag"),S=i("TYPED_ARRAY_TAG"),C=o&&!!g&&"Opera"!==h(s.opera),i=!1,_={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},E={BigInt64Array:8,BigUint64Array:8};for(r in _)s[r]||(C=!1);if((!C||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},C))for(r in _)s[r]&&g(s[r],x);if((!C||!w||w===k)&&(w=x.prototype,C))for(r in _)s[r]&&g(s[r].prototype,w);if(C&&p(y)!==w&&g(y,w),a&&!c(w,m))for(r in i=!0,f(w,m,{get:function(){return l(this)?this[S]:void 0}}),_)s[r]&&u(s[r],S,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:i&&S,aTypedArray:function(t){if(n(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(g){if(A.call(x,t))return t}else for(var e in _)if(c(_,r)&&(e=s[e])&&(t===e||A.call(e,t)))return t;throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,i){if(a){if(i)for(var n in _)(n=s[n])&&c(n.prototype,t)&&delete n.prototype[t];w[t]&&!i||d(w,t,!i&&C&&v[t]||e)}},exportTypedArrayStaticMethod:function(t,e,i){var n,r;if(a){if(g){if(i)for(n in _)(r=s[n])&&c(r,t)&&delete r[t];if(x[t]&&!i)return;try{return d(x,t,!i&&C&&b[t]||e)}catch(t){}}for(n in _)!(r=s[n])||r[t]&&!i||d(r,t,e)}},isView:function(t){return!!l(t)&&("DataView"===(t=h(t))||c(_,t)||c(E,t))},isTypedArray:n,TypedArray:x,TypedArrayPrototype:w}},3331:function(t,R,e){function i(t){return[255&t]}function n(t){return[255&t,t>>8&255]}function r(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return L(t,23,4)}function s(t){return L(t,52,8)}function l(t,e){X(t.prototype,e,{get:function(){return x(this)[e]}})}function c(t,e,i,n){if((i=m(i))+e>(t=x(t)).byteLength)throw T(S);var r=x(t.buffer).bytes,i=i+t.byteOffset,t=r.slice(i,i+e);return n?t:t.reverse()}function h(t,e,i,n,r,o){if((i=m(i))+e>(t=x(t)).byteLength)throw T(S);for(var a=x(t.buffer).bytes,s=i+t.byteOffset,l=n(+r),c=0;c<e;c++)a[s+c]=l[o?c:e-c-1]}var u=e(7854),d=e(9781),F=e(4019),j=e(8880),f=e(2248),p=e(7293),g=e(5787),z=e(9958),B=e(7466),m=e(7067),b=e(1179),H=e(9518),v=e(7674),Y=e(8006).f,X=e(3070).f,W=e(1285),y=e(8003),x=(e=e(9909)).get,w=e.set,k="ArrayBuffer",A="DataView",S="Wrong index",C=u.ArrayBuffer,_=C,E=u.DataView,e=E&&E.prototype,O=Object.prototype,T=u.RangeError,L=b.pack,M=b.unpack;if(F){if(!p(function(){C(1)})||!p(function(){new C(-1)})||p(function(){return new C,new C(1.5),new C(NaN),C.name!=k})){for(var P,u=(_=function(t){return g(this,_),new C(m(t))}).prototype=C.prototype,I=Y(C),N=0;I.length>N;)(P=I[N++])in _||j(_,P,C[P]);u.constructor=_}v&&H(e)!==O&&v(e,O);var b=new E(new _(2)),D=e.setInt8;b.setInt8(0,2147483648),b.setInt8(1,2147483649),!b.getInt8(0)&&b.getInt8(1)||f(e,{setInt8:function(t,e){D.call(this,t,e<<24>>24)},setUint8:function(t,e){D.call(this,t,e<<24>>24)}},{unsafe:!0})}else _=function(t){g(this,_,k),t=m(t),w(this,{bytes:W.call(new Array(t),0),byteLength:t}),d||(this.byteLength=t)},E=function(t,e,i){g(this,E,A),g(t,_,A);var n=x(t).byteLength;if((e=z(e))<0||n<e)throw T("Wrong offset");if(e+(i=void 0===i?n-e:B(i))>n)throw T("Wrong length");w(this,{buffer:t,byteLength:i,byteOffset:e}),d||(this.buffer=t,this.byteLength=i,this.byteOffset=e)},d&&(l(_,"byteLength"),l(E,"buffer"),l(E,"byteLength"),l(E,"byteOffset")),f(E.prototype,{getInt8:function(t){return c(this,1,t)[0]<<24>>24},getUint8:function(t){return c(this,1,t)[0]},getInt16:function(t){return((t=c(this,2,t,1<arguments.length?arguments[1]:void 0))[1]<<8|t[0])<<16>>16},getUint16:function(t){return(t=c(this,2,t,1<arguments.length?arguments[1]:void 0))[1]<<8|t[0]},getInt32:function(t){return o(c(this,4,t,1<arguments.length?arguments[1]:void 0))},getUint32:function(t){return o(c(this,4,t,1<arguments.length?arguments[1]:void 0))>>>0},getFloat32:function(t){return M(c(this,4,t,1<arguments.length?arguments[1]:void 0),23)},getFloat64:function(t){return M(c(this,8,t,1<arguments.length?arguments[1]:void 0),52)},setInt8:function(t,e){h(this,1,t,i,e)},setUint8:function(t,e){h(this,1,t,i,e)},setInt16:function(t,e){h(this,2,t,n,e,2<arguments.length?arguments[2]:void 0)},setUint16:function(t,e){h(this,2,t,n,e,2<arguments.length?arguments[2]:void 0)},setInt32:function(t,e){h(this,4,t,r,e,2<arguments.length?arguments[2]:void 0)},setUint32:function(t,e){h(this,4,t,r,e,2<arguments.length?arguments[2]:void 0)},setFloat32:function(t,e){h(this,4,t,a,e,2<arguments.length?arguments[2]:void 0)},setFloat64:function(t,e){h(this,8,t,s,e,2<arguments.length?arguments[2]:void 0)}});y(_,k),y(E,A),t.exports={ArrayBuffer:_,DataView:E}},1048:function(t,e,i){var l=i(7908),c=i(1400),h=i(7466),u=Math.min;t.exports=[].copyWithin||function(t,e){var i=l(this),n=h(i.length),r=c(t,n),o=c(e,n),t=2<arguments.length?arguments[2]:void 0,a=u((void 0===t?n:c(t,n))-o,n-r),s=1;for(o<r&&r<o+a&&(s=-1,o+=a-1,r+=a-1);0<a--;)o in i?i[r]=i[o]:delete i[r],r+=s,o+=s;return i}},1285:function(t,e,i){var a=i(7908),s=i(1400),l=i(7466);t.exports=function(t){for(var e=a(this),i=l(e.length),n=arguments.length,r=s(1<n?arguments[1]:void 0,i),o=void 0===(n=2<n?arguments[2]:void 0)?i:s(n,i);r<o;)e[r++]=t;return e}},8533:function(t,e,i){var n=i(2092).forEach,i=i(9341)("forEach");t.exports=i?[].forEach:function(t){return n(this,t,1<arguments.length?arguments[1]:void 0)}},8457:function(t,e,i){var f=i(9974),p=i(7908),g=i(3411),m=i(7659),b=i(7466),v=i(6135),y=i(1246);t.exports=function(t){var e,i,n,r,o,a,s=p(t),t="function"==typeof this?this:Array,l=arguments.length,c=1<l?arguments[1]:void 0,h=void 0!==c,u=y(s),d=0;if(h&&(c=f(c,2<l?arguments[2]:void 0,2)),null==u||t==Array&&m(u))for(i=new t(e=b(s.length));d<e;d++)a=h?c(s[d],d):s[d],v(i,d,a);else for(o=(r=u.call(s)).next,i=new t;!(n=o.call(r)).done;d++)a=h?g(r,c,[n.value,d],!0):n.value,v(i,d,a);return i.length=d,i}},1318:function(t,e,i){function n(s){return function(t,e,i){var n,r=l(t),o=c(r.length),a=h(i,o);if(s&&e!=e){for(;a<o;)if((n=r[a++])!=n)return!0}else for(;a<o;a++)if((s||a in r)&&r[a]===e)return s||a||0;return!s&&-1}}var l=i(5656),c=i(7466),h=i(1400);t.exports={includes:n(!0),indexOf:n(!1)}},2092:function(t,e,i){function n(d){var f=1==d,p=2==d,g=3==d,m=4==d,b=6==d,v=7==d,y=5==d||b;return function(t,e,i,n){for(var r,o,a=k(t),s=w(a),l=x(e,i,3),c=A(s.length),h=0,e=n||S,u=f?e(t,c):p||v?e(t,0):void 0;h<c;h++)if((y||h in s)&&(o=l(r=s[h],h,a),d))if(f)u[h]=o;else if(o)switch(d){case 3:return!0;case 5:return r;case 6:return h;case 2:C.call(u,r)}else switch(d){case 4:return!1;case 7:C.call(u,r)}return b?-1:g||m?m:u}}var x=i(9974),w=i(8361),k=i(7908),A=i(7466),S=i(5417),C=[].push;t.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6),filterOut:n(7)}},6583:function(t,e,i){var r=i(5656),o=i(9958),a=i(7466),i=i(9341),s=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,i=i("lastIndexOf");t.exports=c||!i?function(t){if(c)return l.apply(this,arguments)||0;var e=r(this),i=a(e.length),n=i-1;for((n=1<arguments.length?s(n,o(arguments[1])):n)<0&&(n=i+n);0<=n;n--)if(n in e&&e[n]===t)return n||0;return-1}:l},1194:function(t,e,i){var n=i(7293),r=i(5112),o=i(7392),a=r("species");t.exports=function(e){return 51<=o||!n(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},9341:function(t,e,i){var n=i(7293);t.exports=function(t,e){var i=[][t];return!!i&&n(function(){i.call(null,e||function(){throw 1},1)})}},3671:function(t,e,i){function n(c){return function(t,e,i,n){h(e);var r=u(t),o=d(r),a=f(r.length),s=c?a-1:0,l=c?-1:1;if(i<2)for(;;){if(s in o){n=o[s],s+=l;break}if(s+=l,c?s<0:a<=s)throw TypeError("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=l)s in o&&(n=e(n,o[s],s,r));return n}}var h=i(3099),u=i(7908),d=i(8361),f=i(7466);t.exports={left:n(!1),right:n(!0)}},5417:function(t,e,i){var n=i(111),r=i(3157),o=i(5112)("species");t.exports=function(t,e){var i;return new(void 0===(i=r(t)&&("function"==typeof(i=t.constructor)&&(i===Array||r(i.prototype))||n(i)&&null===(i=i[o]))?void 0:i)?Array:i)(0===e?0:e)}},3411:function(t,e,i){var r=i(9670),o=i(9212);t.exports=function(t,e,i,n){try{return n?e(r(i)[0],i[1]):e(i)}catch(e){throw o(t),e}}},7072:function(t,e,i){var r=i(5112)("iterator"),o=!1;try{var n=0,a={next:function(){return{done:!!n++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}},4326:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:function(t,e,i){var n=i(1694),r=i(4326),o=i(5112)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=n?r:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=((t,e)=>{try{return t[e]}catch(t){}})(t=Object(t),o))?e:a?r(t):"Object"==(e=r(t))&&"function"==typeof t.callee?"Arguments":e}},9920:function(t,e,i){var s=i(6656),l=i(3887),c=i(1236),h=i(3070);t.exports=function(t,e){for(var i=l(e),n=h.f,r=c.f,o=0;o<i.length;o++){var a=i[o];s(t,a)||n(t,a,r(e,a))}}},8544:function(t,e,i){i=i(7293),t.exports=!i(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},4994:function(t,e,i){function n(){return this}var r=i(3383).IteratorPrototype,o=i(30),a=i(9114),s=i(8003),l=i(7497);t.exports=function(t,e,i){return e+=" Iterator",t.prototype=o(r,{next:a(1,i)}),s(t,e,!1,!0),l[e]=n,t}},8880:function(t,e,i){var n=i(9781),r=i(3070),o=i(9114);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,i){var n=i(7593),r=i(3070),o=i(9114);t.exports=function(t,e,i){(e=n(e))in t?r.f(t,e,o(0,i)):t[e]=i}},654:function(t,e,i){function g(){return this}var m=i(2109),b=i(4994),v=i(9518),y=i(7674),x=i(8003),w=i(8880),k=i(1320),n=i(5112),A=i(1913),S=i(7497),C=(i=i(3383)).IteratorPrototype,_=i.BUGGY_SAFARI_ITERATORS,E=n("iterator"),O="values";t.exports=function(t,e,i,n,r,o,a){function s(t){if(t===r&&f)return f;if(!_&&t in u)return u[t];switch(t){case"keys":case O:case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}}b(i,e,n);var l,c,n=e+" Iterator",h=!1,u=t.prototype,d=u[E]||u["@@iterator"]||r&&u[r],f=!_&&d||s(r),p="Array"==e&&u.entries||d;if(p&&(p=v(p.call(new t)),C!==Object.prototype)&&p.next&&(A||v(p)===C||(y?y(p,C):"function"!=typeof p[E]&&w(p,E,g)),x(p,n,!0,!0),A)&&(S[n]=g),r==O&&d&&d.name!==O&&(h=!0,f=function(){return d.call(this)}),A&&!a||u[E]===f||w(u,E,f),S[e]=f,r)if(l={values:s(O),keys:o?f:s("keys"),entries:s("entries")},a)for(c in l)!_&&!h&&c in u||k(u,c,l[c]);else m({target:e,proto:!0,forced:_||h},l);return l}},9781:function(t,e,i){i=i(7293),t.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:function(t,e,i){var n=i(7854),i=i(111),r=n.document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},8324:function(t){t.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(t,e,i){i=i(5005),t.exports=i("navigator","userAgent")||""},7392:function(t,e,i){var n,r,o=i(7854),i=i(8113);(o=(o=(o=o.process)&&o.versions)&&o.v8)?r=(n=o.split("."))[0]+n[1]:i&&(!(n=i.match(/Edge\/(\d+)/))||74<=n[1])&&(n=i.match(/Chrome\/(\d+)/))&&(r=n[1]),t.exports=r&&+r},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,i){var c=i(7854),h=i(1236).f,u=i(8880),d=i(1320),f=i(3505),p=i(9920),g=i(4705);t.exports=function(t,e){var i,n,r,o,a=t.target,s=t.global,l=t.stat;if(i=s?c:l?c[a]||f(a,{}):(c[a]||{}).prototype)for(n in e){if(r=e[n],o=t.noTargetGet?(o=h(i,n))&&o.value:i[n],!g(s?n:a+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;p(r,o)}(t.sham||o&&o.sham)&&u(r,"sham",!0),d(i,n,r,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,i){i(4916);var c=i(1320),h=i(7293),u=i(5112),d=i(2261),f=i(8880),p=u("species"),g=!h(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),m="$0"==="a".replace(/./,"$0"),b=!!/./[i=u("replace")]&&""===/./[i]("a","$0"),v=!h(function(){var t=/(?:)/,e=t.exec;return t.exec=function(){return e.apply(this,arguments)},2!==(t="ab".split(t)).length||"a"!==t[0]||"b"!==t[1]});t.exports=function(i,t,e,n){var o,r,a=u(i),s=!h(function(){var t={};return t[a]=function(){return 7},7!=""[i](t)}),l=s&&!h(function(){var t=!1,e=/a/;return"split"===i&&((e={}).constructor={},e.constructor[p]=function(){return e},e.flags="",e[a]=/./[a]),e.exec=function(){return t=!0,null},e[a](""),!t});s&&l&&("replace"!==i||g&&m&&!b)&&("split"!==i||v)||(o=/./[a],e=(l=e(a,""[i],function(t,e,i,n,r){return e.exec===d?s&&!r?{done:!0,value:o.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:b}))[0],r=l[1],c(String.prototype,i,e),c(RegExp.prototype,a,2==t?function(t,e){return r.call(t,this,e)}:function(t){return r.call(t,this)})),n&&f(RegExp.prototype[a],"sham",!0)}},9974:function(t,e,i){var o=i(3099);t.exports=function(n,r,t){if(o(n),void 0===r)return n;switch(t){case 0:return function(){return n.call(r)};case 1:return function(t){return n.call(r,t)};case 2:return function(t,e){return n.call(r,t,e)};case 3:return function(t,e,i){return n.call(r,t,e,i)}}return function(){return n.apply(r,arguments)}}},5005:function(t,e,i){function n(t){return"function"==typeof t?t:void 0}var r=i(857),o=i(7854);t.exports=function(t,e){return arguments.length<2?n(r[t])||n(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},1246:function(t,e,i){var n=i(648),r=i(7497),o=i(5112)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||r[n(t)]}},8554:function(t,e,i){var n=i(9670),r=i(1246);t.exports=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},647:function(t,e,i){var n=i(7908),d=Math.floor,r="".replace,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;t.exports=function(o,a,s,l,c,t){var h=s+o.length,u=l.length,e=p;return void 0!==c&&(c=n(c),e=f),r.call(t,e,function(t,e){var i;switch(e.charAt(0)){case"$":return"$";case"&":return o;case"`":return a.slice(0,s);case"'":return a.slice(h);case"<":i=c[e.slice(1,-1)];break;default:var n,r=+e;if(0==r)return t;if(u<r)return 0!==(n=d(r/10))&&n<=u?void 0===l[n-1]?e.charAt(1):l[n-1]+e.charAt(1):t;i=l[r-1]}return void 0===i?"":i})}},7854:function(t,e,i){function n(t){return t&&t.Math==Math&&t}t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},6656:function(t){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},3501:function(t){t.exports={}},490:function(t,e,i){i=i(5005),t.exports=i("document","documentElement")},4664:function(t,e,i){var n=i(9781),r=i(7293),o=i(317);t.exports=!n&&!r(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},1179:function(t){var d=Math.abs,f=Math.pow,p=Math.floor,g=Math.log,m=Math.LN2;t.exports={pack:function(t,e,i){var n,r,o,a=new Array(i),s=8*i-e-1,l=(i=(1<<s)-1)>>1,c=23===e?f(2,-24)-f(2,-77):0,h=t<0||0===t&&1/t<0?1:0,u=0;for((t=d(t))!=t||t===1/0?(r=t!=t?1:0,n=i):(n=p(g(t)/m),t*(o=f(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+l?c/o:c*f(2,1-l))*o&&(n++,o/=2),i<=n+l?(r=0,n=i):1<=n+l?(r=(t*o-1)*f(2,e),n+=l):(r=t*f(2,l-1)*f(2,e),n=0));8<=e;a[u++]=255&r,r/=256,e-=8);for(n=n<<e|r,s+=e;0<s;a[u++]=255&n,n/=256,s-=8);return a[--u]|=128*h,a},unpack:function(t,e){var i,n=t.length,r=8*n-e-1,o=(1<<r)-1,a=o>>1,s=r-7,l=n-1,c=127&(r=t[l--]);for(r>>=7;0<s;c=256*c+t[l],l--,s-=8);for(i=c&(1<<-s)-1,c>>=-s,s+=e;0<s;i=256*i+t[l],l--,s-=8);if(0===c)c=1-a;else{if(c===o)return i?NaN:r?-1/0:1/0;i+=f(2,e),c-=a}return(r?-1:1)*i*f(2,c-e)}}},8361:function(t,e,i){var n=i(7293),r=i(4326),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},9587:function(t,e,i){var n=i(111),r=i(7674);t.exports=function(t,e,i){return r&&"function"==typeof(e=e.constructor)&&e!==i&&n(e=e.prototype)&&e!==i.prototype&&r(t,e),t}},2788:function(t,e,i){var i=i(5465),n=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return n.call(t)}),t.exports=i.inspectSource},9909:function(t,e,i){var n,r,o,a,s,l,c,h=i(8536),u=i(7854),d=i(111),f=i(8880),p=i(6656),g=i(5465),m=i(6200),i=i(3501),u=u.WeakMap,b=h?(n=g.state||(g.state=new u),r=n.get,o=n.has,a=n.set,s=function(t,e){return e.facade=t,a.call(n,t,e),e},l=function(t){return r.call(n,t)||{}},function(t){return o.call(n,t)}):(i[c=m("state")]=!0,s=function(t,e){return e.facade=t,f(t,c,e),e},l=function(t){return p(t,c)?t[c]:{}},function(t){return p(t,c)});t.exports={set:s,get:l,has:b,enforce:function(t){return b(t)?l(t):s(t,{})},getterFor:function(e){return function(t){if(d(t)&&(t=l(t)).type===e)return t;throw TypeError("Incompatible receiver, "+e+" required")}}}},7659:function(t,e,i){var n=i(5112),r=i(7497),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},3157:function(t,e,i){var n=i(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},4705:function(t,e,i){function n(t,e){return(t=s[a(t)])==c||t!=l&&("function"==typeof e?r(e):!!e)}var r=i(7293),o=/#|\.prototype\./,a=n.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=n.data={},l=n.NATIVE="N",c=n.POLYFILL="P";t.exports=n},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:function(t){t.exports=!1},7850:function(t,e,i){var n=i(111),r=i(4326),o=i(5112)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},9212:function(t,e,i){var n=i(9670);t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},3383:function(t,e,i){var n,r=i(7293),o=i(9518),a=i(8880),s=i(6656),l=i(5112),i=i(1913),c=l("iterator"),l=!1,h=([].keys&&("next"in(h=[].keys())?(o=o(o(h)))!==Object.prototype&&(n=o):l=!0),null==n||r(function(){var t={};return n[c].call(t)!==t}));h&&(n={}),i&&!h||s(n,c)||a(n,c,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:l}},7497:function(t){t.exports={}},133:function(t,e,i){i=i(7293),t.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},590:function(t,e,i){var n=i(7293),r=i(5112),o=i(1913),a=r("iterator");t.exports=!n(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),i=t.searchParams,n="";return t.pathname="c%20d",i.forEach(function(t,e){i.delete("b"),n+=e+t}),o&&!t.toJSON||!i.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==i.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!i[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(t,e,i){var n=i(7854),i=i(2788),n=n.WeakMap;t.exports="function"==typeof n&&/native code/.test(i(n))},1574:function(t,e,i){var d=i(9781),n=i(7293),f=i(1956),p=i(5181),g=i(5296),m=i(7908),b=i(8361),r=Object.assign,o=Object.defineProperty;t.exports=!r||n(function(){var t,e,i,n;return!(!d||1===r({b:1},r(o({},"a",{enumerable:!0,get:function(){o(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(e={},n="abcdefghijklmnopqrst",(t={})[i=Symbol()]=7,n.split("").forEach(function(t){e[t]=t}),7!=r({},t)[i])||f(r({},e)).join("")!=n})?function(t,e){for(var i=m(t),n=arguments.length,r=1,o=p.f,a=g.f;r<n;)for(var s,l=b(arguments[r++]),c=o?f(l).concat(o(l)):f(l),h=c.length,u=0;u<h;)s=c[u++],d&&!a.call(l,s)||(i[s]=l[s]);return i}:r},30:function(t,e,i){function n(){}function r(t){return"<script>"+t+"<\/script>"}var o,a=i(9670),s=i(6048),l=i(748),c=i(3501),h=i(490),u=i(317),d=i(6200)("IE_PROTO"),f=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,i;f=o?((e=o).write(r("")),e.close(),i=e.parentWindow.Object,e=null,i):((e=u("iframe")).style.display="none",h.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(r("document.F=Object")),t.close(),t.F);for(var n=l.length;n--;)delete f.prototype[l[n]];return f()};c[d]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(n.prototype=a(t),i=new n,n.prototype=null,i[d]=t):i=f(),void 0===e?i:s(i,e)}},6048:function(t,e,i){var n=i(9781),a=i(3070),s=i(9670),l=i(1956);t.exports=n?Object.defineProperties:function(t,e){s(t);for(var i,n=l(e),r=n.length,o=0;o<r;)a.f(t,i=n[o++],e[i]);return t}},3070:function(t,e,i){var n=i(9781),r=i(4664),o=i(9670),a=i(7593),s=Object.defineProperty;e.f=n?s:function(t,e,i){if(o(t),e=a(e,!0),o(i),r)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},1236:function(t,e,i){var n=i(9781),r=i(5296),o=i(9114),a=i(5656),s=i(7593),l=i(6656),c=i(4664),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=s(e,!0),c)try{return h(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},8006:function(t,e,i){var n=i(6324),r=i(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,i){var n=i(6656),r=i(7908),o=i(6200),i=i(8544),a=o("IE_PROTO"),s=Object.prototype;t.exports=i?Object.getPrototypeOf:function(t){return t=r(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},6324:function(t,e,i){var a=i(6656),s=i(5656),l=i(1318).indexOf,c=i(3501);t.exports=function(t,e){var i,n=s(t),r=0,o=[];for(i in n)!a(c,i)&&a(n,i)&&o.push(i);for(;e.length>r;)a(n,i=e[r++])&&!~l(o,i)&&o.push(i);return o}},1956:function(t,e,i){var n=i(6324),r=i(748);t.exports=Object.keys||function(t){return n(t,r)}},5296:function(t,e){var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){return!!(t=n(this,t))&&t.enumerable}:i},7674:function(t,e,i){var r=i(9670),o=i(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?(()=>{var i,n=!1,t={};try{(i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(i){}return function(t,e){return r(t),o(e),n?i.call(t,e):t.__proto__=e,t}})():void 0)},288:function(t,e,i){var n=i(1694),r=i(648);t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},3887:function(t,e,i){var n=i(5005),r=i(8006),o=i(5181),a=i(9670);t.exports=n("Reflect","ownKeys")||function(t){var e=r.f(a(t)),i=o.f;return i?e.concat(i(t)):e}},857:function(t,e,i){i=i(7854),t.exports=i},2248:function(t,e,i){var r=i(1320);t.exports=function(t,e,i){for(var n in e)r(t,n,e[n],i);return t}},1320:function(t,e,i){var s=i(7854),l=i(8880),c=i(6656),h=i(3505),n=i(2788),r=(i=i(9909)).get,u=i.enforce,d=String(String).split("String");(t.exports=function(t,e,i,n){var r,o=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,n=!!n&&!!n.noTargetGet;"function"==typeof i&&("string"!=typeof e||c(i,"name")||l(i,"name",e),(r=u(i)).source||(r.source=d.join("string"==typeof e?e:""))),t!==s?(o?!n&&t[e]&&(a=!0):delete t[e],a?t[e]=i:l(t,e,i)):a?t[e]=i:h(e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&r(this).source||n(this)})},7651:function(t,e,i){var n=i(4326),r=i(2261);t.exports=function(t,e){var i=t.exec;if("function"==typeof i){if("object"!=typeof(i=i.call(t,e)))throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},2261:function(t,e,i){var n,r,u=i(7066),i=i(2999),d=RegExp.prototype.exec,f=String.prototype.replace,o=d,p=(r=/b*/g,d.call(n=/a/,"a"),d.call(r,"a"),0!==n.lastIndex||0!==r.lastIndex),g=i.UNSUPPORTED_Y||i.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];t.exports=p||m||g?function(t){var e,i,n,r,o=this,a=g&&o.sticky,s=u.call(o),l=o.source,c=0,h=t;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),h=String(t).slice(o.lastIndex),0<o.lastIndex&&(!o.multiline||(o.multiline,"\n"!==t[o.lastIndex-1]))&&(l="(?: "+l+")",h=" "+h,c++),i=new RegExp("^(?:"+l+")",s)),m&&(i=new RegExp("^"+l+"$(?!\\s)",s)),p&&(e=o.lastIndex),n=d.call(a?i:o,h),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:p&&n&&(o.lastIndex=o.global?n.index+n[0].length:e),m&&n&&1<n.length&&f.call(n[0],i,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(n[r]=void 0)}),n}:o},7066:function(t,e,i){var n=i(9670);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:function(t,e,i){function n(t,e){return RegExp(t,e)}i=i(7293),e.UNSUPPORTED_Y=i(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),e.BROKEN_CARET=i(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},4488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:function(t,e,i){var n=i(7854),r=i(8880);t.exports=function(e,i){try{r(n,e,i)}catch(t){n[e]=i}return i}},6340:function(t,e,i){var n=i(5005),r=i(3070),o=i(5112),a=i(9781),s=o("species");t.exports=function(t){var t=n(t),e=r.f;a&&t&&!t[s]&&e(t,s,{configurable:!0,get:function(){return this}})}},8003:function(t,e,i){var n=i(3070).f,r=i(6656),o=i(5112)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},6200:function(t,e,i){var n=i(2309),r=i(9711),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},5465:function(t,e,i){var n=i(7854),i=i(3505),r="__core-js_shared__",n=n[r]||i(r,{});t.exports=n},2309:function(t,e,i){var n=i(1913),r=i(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.0",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(t,e,i){var n=i(9670),r=i(3099),o=i(5112)("species");t.exports=function(t,e){return void 0===(t=n(t).constructor)||null==(t=n(t)[o])?e:r(t)}},8710:function(t,e,i){function n(r){return function(t,e){var i,t=String(a(t)),e=o(e),n=t.length;return e<0||n<=e?r?"":void 0:(i=t.charCodeAt(e))<55296||56319<i||e+1===n||(n=t.charCodeAt(e+1))<56320||57343<n?r?t.charAt(e):i:r?t.slice(e,e+2):n-56320+(i-55296<<10)+65536}}var o=i(9958),a=i(4488);t.exports={codeAt:n(!1),charAt:n(!0)}},3197:function(t){function v(t){return t+22+75*(t<26)}var y=2147483647,r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,x="Overflow: input needs wider integers to process",w=Math.floor,k=String.fromCharCode;t.exports=function(t){for(var b,e=[],i=t.toLowerCase().replace(o,".").split("."),n=0;n<i.length;n++)b=i[n],e.push(r.test(b)?"xn--"+(t=>{for(var e,i=[],n=(t=(t=>{for(var e=[],i=0,n=t.length;i<n;){var r,o=t.charCodeAt(i++);55296<=o&&o<=56319&&i<n?56320==(64512&(r=t.charCodeAt(i++)))?e.push(((1023&o)<<10)+(1023&r)+65536):(e.push(o),i--):e.push(o)}return e})(b)).length,r=128,o=0,a=72,s=0;s<t.length;s++)(e=t[s])<128&&i.push(k(e));var l=i.length,c=l;for(l&&i.push("-");c<n;){for(var h=y,s=0;s<t.length;s++)(e=t[s])>=r&&e<h&&(h=e);var u=c+1;if(h-r>w((y-o)/u))throw RangeError(x);for(o+=(h-r)*u,r=h,s=0;s<t.length;s++){if((e=t[s])<r&&++o>y)throw RangeError(x);if(e==r){for(var d=o,f=36;;f+=36){var p=f<=a?1:a+26<=f?26:f-a;if(d<p)break;var g=d-p,m=36-p;i.push(k(v(p+g%m))),d=w(g/m)}i.push(k(v(d))),a=((t,e)=>{var i=0;for(t=c==l?w(t/700):t>>1,t+=w(t/e);455<t;i+=36)t=w(t/35);return w(i+36*t/(t+38))})(o,u),o=0,++c}}++o,++r}return i.join("")})():b);return e.join(".")}},6091:function(t,e,i){var n=i(7293),r=i(1361);t.exports=function(t){return n(function(){return!!r[t]()||"…"!="…"[t]()||r[t].name!==t})}},3111:function(t,e,i){function n(e){return function(t){return t=String(r(t)),1&e&&(t=t.replace(o,"")),2&e?t.replace(a,""):t}}var r=i(4488),i="["+i(1361)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$");t.exports={start:n(1),end:n(2),trim:n(3)}},1400:function(t,e,i){var n=i(9958),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?r(t+e,0):o(t,e)}},7067:function(t,e,i){var n=i(9958),r=i(7466);t.exports=function(t){if(void 0===t)return 0;var t=n(t),e=r(t);if(t!==e)throw RangeError("Wrong length or index");return e}},5656:function(t,e,i){var n=i(8361),r=i(4488);t.exports=function(t){return n(r(t))}},9958:function(t){var e=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?i:e)(t)}},7466:function(t,e,i){var n=i(9958),r=Math.min;t.exports=function(t){return 0<t?r(n(t),9007199254740991):0}},7908:function(t,e,i){var n=i(4488);t.exports=function(t){return Object(n(t))}},4590:function(t,e,i){var n=i(3002);t.exports=function(t,e){if((t=n(t))%e)throw RangeError("Wrong offset");return t}},3002:function(t,e,i){var n=i(9958);t.exports=function(t){if((t=n(t))<0)throw RangeError("The argument can't be less than 0");return t}},7593:function(t,e,i){var r=i(111);t.exports=function(t,e){if(!r(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!r(n=i.call(t))||"function"==typeof(i=t.valueOf)&&!r(n=i.call(t))||!e&&"function"==typeof(i=t.toString)&&!r(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},1694:function(t,e,i){var n={};n[i(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},9843:function(t,R,e){function g(t,e){for(var i=0,n=e.length,r=new($(t))(n);i<n;)r[i]=e[i++];return r}function i(t,e){_(t,e,{get:function(){return C(this)[e]}})}function m(t){return t instanceof O||"ArrayBuffer"==(t=B(t))||"SharedArrayBuffer"==t}function n(t,e){return I(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)}function r(t,e){return n(t,e=u(e,!0))?j(2,t[e]):V(t,e)}function o(t,e,i){return!(n(t,e=u(e,!0))&&w(i)&&d(i,"value"))||d(i,"get")||d(i,"set")||i.configurable||d(i,"writable")&&!i.writable||d(i,"enumerable")&&!i.enumerable?_(t,e,i):(t[e]=i.value,t)}var a=e(2109),s=e(7854),l=e(9781),F=e(3832),c=e(260),h=e(3331),b=e(5787),j=e(9114),v=e(8880),z=e(7466),y=e(7067),x=e(4590),u=e(7593),d=e(6656),B=e(648),w=e(111),H=e(30),k=e(7674),Y=e(8006).f,A=e(7321),X=e(2092).forEach,W=e(6340),f=e(3070),p=e(1236),S=e(9909),q=e(9587),C=S.get,G=S.set,_=f.f,V=p.f,U=Math.round,E=s.RangeError,O=h.ArrayBuffer,Z=h.DataView,T=c.NATIVE_ARRAY_BUFFER_VIEWS,L=c.TYPED_ARRAY_TAG,M=c.TypedArray,P=c.TypedArrayPrototype,$=c.aTypedArrayConstructor,I=c.isTypedArray,N="BYTES_PER_ELEMENT",D="Wrong length";l?(T||(p.f=r,f.f=o,i(P,"buffer"),i(P,"byteOffset"),i(P,"byteLength"),i(P,"length")),a({target:"Object",stat:!0,forced:!T},{getOwnPropertyDescriptor:r,defineProperty:o}),t.exports=function(t,e,c){var h=t.match(/\d+$/)[0]/8,u=t+(c?"Clamped":"")+"Array",d="get"+t,f="set"+t,r=s[u],p=r,t=p&&p.prototype,i={};T?F&&(p=e(function(t,e,i,n){return b(t,p,u),q(w(e)?m(e)?void 0!==n?new r(e,x(i,h),n):void 0!==i?new r(e,x(i,h)):new r(e):I(e)?g(p,e):A.call(p,e):new r(y(e)),t,p)}),k&&k(p,M),X(Y(r),function(t){t in p||v(p,t,r[t])}),p.prototype=t):(p=e(function(t,e,i,n){b(t,p,u);var r,o,a=0,s=0;if(w(e)){if(!m(e))return I(e)?g(p,e):A.call(p,e);var l=e,s=x(i,h),i=e.byteLength;if(void 0===n){if(i%h)throw E(D);if((r=i-s)<0)throw E(D)}else if((r=z(n)*h)+s>i)throw E(D);o=r/h}else o=y(e),l=new O(r=o*h);for(G(t,{buffer:l,byteOffset:s,byteLength:r,length:o,view:new Z(l)});a<o;)(n=>{_(t,n,{get:function(){var t=this,e=n;return(t=C(t)).view[d](e*h+t.byteOffset,!0)},set:function(t){var e=n,i=C(i=this);c&&(t=(t=U(t))<0?0:255<t?255:255&t),i.view[f](e*h+i.byteOffset,t,!0)},enumerable:!0})})(a++)}),k&&k(p,M),t=p.prototype=H(P)),t.constructor!==p&&v(t,"constructor",p),L&&v(t,L,u),a({global:!0,forced:(i[u]=p)!=r,sham:!T},i),N in p||v(p,N,h),N in t||v(t,N,h),W(u)}):t.exports=function(){}},3832:function(t,e,i){var n=i(7854),r=i(7293),o=i(7072),i=i(260).NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,s=n.Int8Array;t.exports=!i||!r(function(){s(1)})||!r(function(){new s(-1)})||!o(function(t){new s,new s(null),new s(1.5),new s(t)},!0)||r(function(){return 1!==new s(new a(2),1,void 0).length})},3074:function(t,e,i){var o=i(260).aTypedArrayConstructor,a=i(6707);t.exports=function(t,e){for(var t=a(t,t.constructor),i=0,n=e.length,r=new(o(t))(n);i<n;)r[i]=e[i++];return r}},7321:function(t,e,i){var u=i(7908),d=i(7466),f=i(1246),p=i(7659),g=i(9974),m=i(260).aTypedArrayConstructor;t.exports=function(t){var e,i,n,r,o,a,s=u(t),t=arguments.length,l=1<t?arguments[1]:void 0,c=void 0!==l,h=f(s);if(null!=h&&!p(h))for(a=(o=h.call(s)).next,s=[];!(r=a.call(o)).done;)s.push(r.value);for(c&&2<t&&(l=g(l,arguments[2],2)),i=d(s.length),n=new(m(this))(i),e=0;e<i;e++)n[e]=c?l(s[e],e):s[e];return n}},9711:function(t){var e=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+i).toString(36)}},3307:function(t,e,i){i=i(133),t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(t,e,i){var n=i(7854),r=i(2309),o=i(6656),a=i(9711),s=i(133),i=i(3307),l=r("wks"),c=n.Symbol,h=i?c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(s&&o(c,t)?l[t]=c[t]:l[t]=h("Symbol."+t)),l[t]}},1361:function(t){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},8264:function(t,e,i){var n=i(2109),r=i(7854),o=i(3331),i=i(6340),o=o.ArrayBuffer;n({global:!0,forced:r.ArrayBuffer!==o},{ArrayBuffer:o}),i("ArrayBuffer")},2222:function(t,e,i){var n=i(2109),r=i(7293),u=i(3157),d=i(111),f=i(7908),p=i(7466),g=i(6135),m=i(5417),o=i(1194),a=i(5112),i=i(7392),b=a("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",a=51<=i||!r(function(){var t=[];return t[b]=!1,t.concat()[0]!==t}),i=o("concat");n({target:"Array",proto:!0,forced:!a||!i},{concat:function(t){for(var e,i,n,r,o,a=f(this),s=m(a,0),l=0,c=-1,h=arguments.length;c<h;c++)if(r=n=-1===c?a:arguments[c],d(r)&&(void 0!==(o=r[b])?o:u(r))){if(l+(i=p(n.length))>v)throw TypeError(y);for(e=0;e<i;e++,l++)e in n&&g(s,l,n[e])}else{if(v<=l)throw TypeError(y);g(s,l++,n)}return s.length=l,s}})},7327:function(t,e,i){var n=i(2109),r=i(2092).filter;n({target:"Array",proto:!0,forced:!i(1194)("filter")},{filter:function(t){return r(this,t,1<arguments.length?arguments[1]:void 0)}})},2772:function(t,e,i){var n=i(2109),r=i(1318).indexOf,i=i(9341),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0,i=i("indexOf");n({target:"Array",proto:!0,forced:a||!i},{indexOf:function(t){return a?o.apply(this,arguments)||0:r(this,t,1<arguments.length?arguments[1]:void 0)}})},6992:function(t,e,i){var n=i(5656),r=i(1223),o=i(7497),a=i(9909),i=i(654),s="Array Iterator",l=a.set,c=a.getterFor(s);t.exports=i(Array,"Array",function(t,e){l(this,{type:s,target:n(t),index:0,kind:e})},function(){var t=c(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?{value:t.target=void 0,done:!0}:"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},1249:function(t,e,i){var n=i(2109),r=i(2092).map;n({target:"Array",proto:!0,forced:!i(1194)("map")},{map:function(t){return r(this,t,1<arguments.length?arguments[1]:void 0)}})},7042:function(t,e,i){var n=i(2109),c=i(111),h=i(3157),u=i(1400),d=i(7466),f=i(5656),p=i(6135),r=i(5112),i=i(1194)("slice"),g=r("species"),m=[].slice,b=Math.max;n({target:"Array",proto:!0,forced:!i},{slice:function(t,e){var i,n,r,o=f(this),a=d(o.length),s=u(t,a),l=u(void 0===e?a:e,a);if(h(o)&&((i="function"==typeof(i=o.constructor)&&(i===Array||h(i.prototype))||c(i)&&null===(i=i[g])?void 0:i)===Array||void 0===i))return m.call(o,s,l);for(n=new(void 0===i?Array:i)(b(l-s,0)),r=0;s<l;s++,r++)s in o&&p(n,r,o[s]);return n.length=r,n}})},561:function(t,e,i){var n=i(2109),u=i(1400),d=i(9958),f=i(7466),p=i(7908),g=i(5417),m=i(6135),i=i(1194)("splice"),b=Math.max,v=Math.min;n({target:"Array",proto:!0,forced:!i},{splice:function(t,e){var i,n,r,o,a,s,l=p(this),c=f(l.length),h=u(t,c),t=arguments.length;if(0===t?i=n=0:n=1===t?(i=0,c-h):(i=t-2,v(b(d(e),0),c-h)),9007199254740991<c+i-n)throw TypeError("Maximum allowed length exceeded");for(r=g(l,n),o=0;o<n;o++)(a=h+o)in l&&m(r,o,l[a]);if(i<(r.length=n)){for(o=h;o<c-n;o++)s=o+i,(a=o+n)in l?l[s]=l[a]:delete l[s];for(o=c;c-n+i<o;o--)delete l[o-1]}else if(n<i)for(o=c-n;h<o;o--)s=o+i-1,(a=o+n-1)in l?l[s]=l[a]:delete l[s];for(o=0;o<i;o++)l[o+h]=arguments[o+2];return l.length=c-n+i,r}})},8309:function(t,e,i){var n=i(9781),i=i(3070).f,r=Function.prototype,o=r.toString,a=/^\s*function ([^ (]*)/;!n||"name"in r||i(r,"name",{configurable:!0,get:function(){try{return o.call(this).match(a)[1]}catch(t){return""}}})},489:function(t,e,i){var n=i(2109),r=i(7293),o=i(7908),a=i(9518),i=i(8544);n({target:"Object",stat:!0,forced:r(function(){a(1)}),sham:!i},{getPrototypeOf:function(t){return a(o(t))}})},1539:function(t,e,i){var n=i(1694),r=i(1320),i=i(288);n||r(Object.prototype,"toString",i,{unsafe:!0})},4916:function(t,e,i){var n=i(2109),i=i(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(t,e,i){var n=i(1320),r=i(9670),o=i(7293),a=i(7066),s=RegExp.prototype,l=s.toString,i=o(function(){return"/a/b"!=l.call({source:"a",flags:"b"})}),o="toString"!=l.name;(i||o)&&n(RegExp.prototype,"toString",function(){var t=r(this),e=String(t.source),i=t.flags;return"/"+e+"/"+String(void 0===i&&t instanceof RegExp&&!("flags"in s)?a.call(t):i)},{unsafe:!0})},8783:function(t,e,i){var n=i(8710).charAt,r=i(9909),i=i(654),o="String Iterator",a=r.set,s=r.getterFor(o);i(String,"String",function(t){a(this,{type:o,string:String(t),index:0})},function(){var t=s(this),e=t.string,i=t.index;return i>=e.length?{value:void 0,done:!0}:(e=n(e,i),t.index+=e.length,{value:e,done:!1})})},4723:function(t,e,i){var n=i(7007),h=i(9670),u=i(7466),r=i(4488),d=i(1530),f=i(7651);n("match",1,function(n,l,c){return[function(t){var e=r(this),i=null==t?void 0:t[n];return void 0!==i?i.call(t,e):new RegExp(t)[n](String(e))},function(t){var e=c(l,t,this);if(e.done)return e.value;var i=h(t),n=String(this);if(!i.global)return f(i,n);for(var r=i.unicode,o=[],a=i.lastIndex=0;null!==(s=f(i,n));){var s=String(s[0]);""===(o[a]=s)&&(i.lastIndex=d(n,u(i.lastIndex),r)),a++}return 0===a?null:o}]})},5306:function(t,e,i){var n=i(7007),C=i(9670),_=i(7466),E=i(9958),o=i(4488),O=i(1530),T=i(647),L=i(7651),M=Math.max,P=Math.min;n("replace",2,function(r,x,w,t){var k=t.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,A=t.REPLACE_KEEPS_$0,S=k?"$":"$0";return[function(t,e){var i=o(this),n=null==t?void 0:t[r];return void 0!==n?n.call(t,i,e):x.call(String(i),t,e)},function(t,e){if(!k&&A||"string"==typeof e&&-1===e.indexOf(S)){var i=w(x,t,this,e);if(i.done)return i.value}var n,r=C(t),o=String(this),a="function"==typeof e,s=(a||(e=String(e)),r.global);s&&(n=r.unicode,r.lastIndex=0);for(var l=[];null!==(f=L(r,o))&&(l.push(f),s);)""===String(f[0])&&(r.lastIndex=O(o,_(r.lastIndex),n));for(var c,h="",u=0,d=0;d<l.length;d++){for(var f=l[d],p=String(f[0]),g=M(P(E(f.index),o.length),0),m=[],b=1;b<f.length;b++)m.push(void 0===(c=f[b])?c:String(c));var v=f.groups,y=a?(y=[p].concat(m,g,o),void 0!==v&&y.push(v),String(e.apply(void 0,y))):T(p,o,g,m,v,e);u<=g&&(h+=o.slice(u,g)+y,u=g+p.length)}return h+o.slice(u)}]})},3123:function(t,e,i){var n=i(7007),h=i(7850),b=i(9670),u=i(4488),v=i(6707),y=i(1530),x=i(7466),w=i(7651),d=i(2261),i=i(7293),f=[].push,k=Math.min,A=4294967295,S=!i(function(){return!RegExp(A,"y")});n("split",2,function(r,p,g){var m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var i=String(u(this)),n=void 0===e?A:e>>>0;if(0==n)return[];if(void 0===t)return[i];if(!h(t))return p.call(i,t,n);for(var r,o,a,s=[],e=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,c=new RegExp(t.source,e+"g");(r=d.call(c,i))&&!((o=c.lastIndex)>l&&(s.push(i.slice(l,r.index)),1<r.length&&r.index<i.length&&f.apply(s,r.slice(1)),a=r[0].length,l=o,n<=s.length));)c.lastIndex===r.index&&c.lastIndex++;return l===i.length?!a&&c.test("")||s.push(""):s.push(i.slice(l)),n<s.length?s.slice(0,n):s}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:p.call(this,t,e)}:p;return[function(t,e){var i=u(this),n=null==t?void 0:t[r];return void 0!==n?n.call(t,i,e):m.call(String(i),t,e)},function(t,e){if((i=g(m,t,this,e,m!==p)).done)return i.value;var i=b(t),n=String(this),t=v(i,RegExp),r=i.unicode,o=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(S?"y":"g"),a=new t(S?i:"^(?:"+i.source+")",o),s=void 0===e?A:e>>>0;if(0==s)return[];if(0===n.length)return null===w(a,n)?[n]:[];for(var l=0,c=0,h=[];c<n.length;){a.lastIndex=S?c:0;var u,d=w(a,S?n:n.slice(c));if(null===d||(u=k(x(a.lastIndex+(S?0:c)),n.length))===l)c=y(n,c,r);else{if(h.push(n.slice(l,c)),h.length===s)return h;for(var f=1;f<=d.length-1;f++)if(h.push(d[f]),h.length===s)return h;c=l=u}}return h.push(n.slice(l)),h}]},!S)},3210:function(t,e,i){var n=i(2109),r=i(3111).trim;n({target:"String",proto:!0,forced:i(6091)("trim")},{trim:function(){return r(this)}})},2990:function(t,e,i){var n=i(260),r=i(1048),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",function(t,e){return r.call(o(this),t,e,2<arguments.length?arguments[2]:void 0)})},8927:function(t,e,i){var n=i(260),r=i(2092).every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",function(t){return r(o(this),t,1<arguments.length?arguments[1]:void 0)})},3105:function(t,e,i){var n=i(260),r=i(1285),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",function(t){return r.apply(o(this),arguments)})},5035:function(t,e,i){var n=i(260),r=i(2092).filter,o=i(3074),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",function(t){return t=r(a(this),t,1<arguments.length?arguments[1]:void 0),o(this,t)})},7174:function(t,e,i){var n=i(260),r=i(2092).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",function(t){return r(o(this),t,1<arguments.length?arguments[1]:void 0)})},4345:function(t,e,i){var n=i(260),r=i(2092).find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",function(t){return r(o(this),t,1<arguments.length?arguments[1]:void 0)})},2846:function(t,e,i){var n=i(260),r=i(2092).forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",function(t){r(o(this),t,1<arguments.length?arguments[1]:void 0)})},4731:function(t,e,i){var n=i(260),r=i(1318).includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",function(t){return r(o(this),t,1<arguments.length?arguments[1]:void 0)})},7209:function(t,e,i){var n=i(260),r=i(1318).indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",function(t){return r(o(this),t,1<arguments.length?arguments[1]:void 0)})},6319:function(t,e,i){function n(){return s.call(h(this))}var r=i(7854),o=i(260),a=i(6992),i=i(5112)("iterator"),r=r.Uint8Array,s=a.values,l=a.keys,c=a.entries,h=o.aTypedArray,a=o.exportTypedArrayMethod,r=!!(o=r&&r.prototype[i])&&("values"==o.name||null==o.name);a("entries",function(){return c.call(h(this))}),a("keys",function(){return l.call(h(this))}),a("values",n,!r),a(i,n,!r)},8867:function(t,e,i){var n=(i=i(260)).aTypedArray,i=i.exportTypedArrayMethod,r=[].join;i("join",function(t){return r.apply(n(this),arguments)})},7789:function(t,e,i){var n=i(260),r=i(6583),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",function(t){return r.apply(o(this),arguments)})},3739:function(t,e,i){var n=i(260),r=i(2092).map,o=i(6707),a=n.aTypedArray,s=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",function(t){return r(a(this),t,1<arguments.length?arguments[1]:void 0,function(t,e){return new(s(o(t,t.constructor)))(e)})})},4483:function(t,e,i){var n=i(260),r=i(3671).right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",function(t){return r(o(this),t,arguments.length,1<arguments.length?arguments[1]:void 0)})},9368:function(t,e,i){var n=i(260),r=i(3671).left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",function(t){return r(o(this),t,arguments.length,1<arguments.length?arguments[1]:void 0)})},2056:function(t,e,i){var r=(i=i(260)).aTypedArray,i=i.exportTypedArrayMethod,o=Math.floor;i("reverse",function(){for(var t,e=r(this).length,i=o(e/2),n=0;n<i;)t=this[n],this[n++]=this[--e],this[e]=t;return this})},3462:function(t,e,i){var n=i(260),a=i(7466),s=i(4590),l=i(7908),i=i(7293),c=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",function(t){c(this);var e=s(1<arguments.length?arguments[1]:void 0,1),i=this.length,n=l(t),r=a(n.length),o=0;if(i<r+e)throw RangeError("Wrong length");for(;o<r;)this[e+o]=n[o++]},i(function(){new Int8Array(1).set({})}))},678:function(t,e,i){var n=i(260),a=i(6707),i=i(7293),s=n.aTypedArray,l=n.aTypedArrayConstructor,n=n.exportTypedArrayMethod,c=[].slice;n("slice",function(t,e){for(var i=c.call(s(this),t,e),t=a(this,this.constructor),n=0,r=i.length,o=new(l(t))(r);n<r;)o[n]=i[n++];return o},i(function(){new Int8Array(1).slice()}))},7462:function(t,e,i){var n=i(260),r=i(2092).some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",function(t){return r(o(this),t,1<arguments.length?arguments[1]:void 0)})},3824:function(t,e,i){var n=(i=i(260)).aTypedArray,i=i.exportTypedArrayMethod,r=[].sort;i("sort",function(t){return r.call(n(this),t)})},5021:function(t,e,i){var n=i(260),r=i(7466),o=i(1400),a=i(6707),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",function(t,e){var i=s(this),n=i.length,t=o(t,n);return new(a(i,i.constructor))(i.buffer,i.byteOffset+t*i.BYTES_PER_ELEMENT,r((void 0===e?n:o(e,n))-t))})},2974:function(t,e,i){var n=i(7854),r=i(260),i=i(7293),o=n.Int8Array,a=r.aTypedArray,n=r.exportTypedArrayMethod,s=[].toLocaleString,l=[].slice,c=!!o&&i(function(){s.call(new o(1))});n("toLocaleString",function(){return s.apply(c?l.call(a(this)):a(this),arguments)},i(function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()})||!i(function(){o.prototype.toLocaleString.call([1,2])}))},5016:function(t,e,i){var n=i(260).exportTypedArrayMethod,r=i(7293),i=(i=i(7854).Uint8Array)&&i.prototype||{},o=[].toString,a=[].join,r=(r(function(){o.call({})})&&(o=function(){return a.call(this)}),i.toString!=o);n("toString",o,r)},2472:function(t,e,i){i(9843)("Uint8",function(n){return function(t,e,i){return n(this,t,e,i)}})},4747:function(t,e,i){var n,r=i(7854),o=i(8324),a=i(8533),s=i(8880);for(n in o){var l=r[n];if((l=l&&l.prototype)&&l.forEach!==a)try{s(l,"forEach",a)}catch(t){l.forEach=a}}},3948:function(t,e,i){var n,r=i(7854),o=i(8324),a=i(6992),s=i(8880),l=(i=i(5112))("iterator"),c=i("toStringTag"),h=a.values;for(n in o){var u=r[n],d=u&&u.prototype;if(d){if(d[l]!==h)try{s(d,l,h)}catch(t){d[l]=h}if(d[c]||s(d,c,n),o[n])for(var f in a)if(d[f]!==a[f])try{s(d,f,a[f])}catch(t){d[f]=a[f]}}}},1637:function(t,R,e){function i(t){return H[t]}function r(t){return encodeURIComponent(t).replace(B,i)}function h(t){this.entries.length=0,N(this.entries,t)}function c(t,e){if(t<e)throw TypeError("Not enough arguments")}function u(){g(this,u,E);var t,e,i,n,r,o,a,s,l=0<arguments.length?arguments[0]:void 0,c=[];if(T(this,{type:E,entries:c,updateURL:function(){},updateSearchParams:h}),void 0!==l)if(x(l))if("function"==typeof(t=S(l)))for(i=(e=t.call(l)).next;!(n=i.call(e)).done;){if((o=(r=(n=A(y(n.value))).next).call(n)).done||(a=r.call(n)).done||!r.call(n).done)throw TypeError("Expected sequence with length 2");c.push({key:o.value+"",value:a.value+""})}else for(s in l)m(l,s)&&c.push({key:s,value:l[s]+""});else N(c,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")}e(6992);var n=e(2109),o=e(5005),a=e(590),s=e(1320),l=e(2248),d=e(8003),f=e(4994),p=e(9909),g=e(5787),m=e(6656),b=e(9974),v=e(648),y=e(9670),x=e(111),w=e(30),k=e(9114),A=e(8554),S=e(1246),e=e(5112),C=o("fetch"),_=o("Headers"),o=e("iterator"),E="URLSearchParams",O="URLSearchParamsIterator",T=p.set,L=p.getterFor(E),M=p.getterFor(O),F=/\+/g,P=Array(4),j=function(t){return P[t-1]||(P[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},z=function(e){try{return decodeURIComponent(e)}catch(t){return e}},I=function(t){var e=t.replace(F," "),i=4;try{return decodeURIComponent(e)}catch(t){for(;i;)e=e.replace(j(i--),z);return e}},B=/[!'()~]|%20/g,H={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(t,e){if(e)for(var i,n=e.split("&"),r=0;r<n.length;)(i=n[r++]).length&&(i=i.split("="),t.push({key:I(i.shift()),value:I(i.join("="))}))},D=f(function(t,e){T(this,{type:O,iterator:A(L(t).entries),kind:e})},"Iterator",function(){var t=M(this),e=t.kind,i=(t=t.iterator.next()).value;return t.done||(t.value="keys"===e?i.key:"values"===e?i.value:[i.key,i.value]),t});l(e=u.prototype,{append:function(t,e){c(arguments.length,2);var i=L(this);i.entries.push({key:t+"",value:e+""}),i.updateURL()},delete:function(t){c(arguments.length,1);for(var e=L(this),i=e.entries,n=t+"",r=0;r<i.length;)i[r].key===n?i.splice(r,1):r++;e.updateURL()},get:function(t){c(arguments.length,1);for(var e=L(this).entries,i=t+"",n=0;n<e.length;n++)if(e[n].key===i)return e[n].value;return null},getAll:function(t){c(arguments.length,1);for(var e=L(this).entries,i=t+"",n=[],r=0;r<e.length;r++)e[r].key===i&&n.push(e[r].value);return n},has:function(t){c(arguments.length,1);for(var e=L(this).entries,i=t+"",n=0;n<e.length;)if(e[n++].key===i)return!0;return!1},set:function(t,e){c(arguments.length,1);for(var i,n=L(this),r=n.entries,o=!1,a=t+"",s=e+"",l=0;l<r.length;l++)(i=r[l]).key===a&&(o?r.splice(l--,1):(o=!0,i.value=s));o||r.push({key:a,value:s}),n.updateURL()},sort:function(){for(var t,e,i=L(this),n=i.entries,r=n.slice(),o=n.length=0;o<r.length;o++){for(t=r[o],e=0;e<o;e++)if(n[e].key>t.key){n.splice(e,0,t);break}e===o&&n.push(t)}i.updateURL()},forEach:function(t){for(var e,i=L(this).entries,n=b(t,1<arguments.length?arguments[1]:void 0,3),r=0;r<i.length;)n((e=i[r++]).value,e.key,this)},keys:function(){return new D(this,"keys")},values:function(){return new D(this,"values")},entries:function(){return new D(this,"entries")}},{enumerable:!0}),s(e,o,e.entries),s(e,"toString",function(){for(var t,e=L(this).entries,i=[],n=0;n<e.length;)t=e[n++],i.push(r(t.key)+"="+r(t.value));return i.join("&")},{enumerable:!0}),d(u,E),n({global:!0,forced:!a},{URLSearchParams:u}),a||"function"!=typeof C||"function"!=typeof _||n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,i,n,t=[t];return 1<arguments.length&&(x(e=arguments[1])&&(i=e.body,v(i)===E)&&((n=e.headers?new _(e.headers):new _).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=w(e,{body:k(0,String(i)),headers:k(0,n)})),t.push(e)),C.apply(this,t)}}),t.exports={URLSearchParams:u,getState:L}},285:function(m,F,t){function h(t){var e,i,n,r;if("number"==typeof t){for(e=[],i=0;i<4;i++)e.unshift(t%256),t=U(t/256);return e.join(".")}if("object"!=typeof t)return t;for(e="",n=(t=>{for(var e=null,i=1,n=null,r=0,o=0;o<8;o++)0!==t[o]?(i<r&&(e=n,i=r),n=null,r=0):(null===n&&(n=o),++r);return i<r&&(e=n,i=r),e})(t),i=0;i<8;i++)r&&0===t[i]||(r=r&&!1,n===i?(e+=i?":":"::",r=!0):(e+=t[i].toString(16),i<7&&(e+=":")));return"["+e+"]"}function r(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme}function s(t,e,i,n){var r,o,a,s=i||pt,l=0,c="",h=!1,u=!1,d=!1;for(i||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(ot,"")),e=e.replace(at,""),r=y(e);l<=r.length;){switch(o=r[l],s){case pt:if(!o||!K.test(o)){if(i)return x;s=mt;continue}c+=o.toLowerCase(),s=gt;break;case gt:if(o&&(Q.test(o)||"+"==o||"-"==o||"."==o))c+=o.toLowerCase();else{if(":"!=o){if(i)return x;c="",s=mt,l=0;continue}if(i&&(O(t)!=v(E,c)||"file"==c&&(T(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=c,i)return void(O(t)&&E[t.scheme]==t.port&&(t.port=null));c="","file"==t.scheme?s=Ct:O(t)&&n&&n.scheme==t.scheme?s=bt:O(t)?s=wt:"/"==r[l+1]?(s=vt,l++):(t.cannotBeABaseURL=!0,t.path.push(""),s=Ot)}break;case mt:if(!n||n.cannotBeABaseURL&&"#"!=o)return x;if(n.cannotBeABaseURL&&"#"==o){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,s=R;break}s="file"==n.scheme?Ct:yt;continue;case bt:if("/"!=o||"/"!=r[l+1]){s=yt;continue}s=M,l++;break;case vt:if("/"==o){s=P;break}s=N;continue;case yt:if(t.scheme=n.scheme,o==b)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==o||"\\"==o&&O(t))s=xt;else if("?"==o)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",s=D;else{if("#"!=o){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),s=N;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",s=R}break;case xt:if(!O(t)||"/"!=o&&"\\"!=o){if("/"!=o){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,s=N;continue}s=P}else s=M;break;case wt:if(s=M,"/"!=o||"/"!=c.charAt(l+1))continue;l++;break;case M:if("/"==o||"\\"==o)break;s=P;continue;case P:if("@"==o){h&&(c="%40"+c);for(var h=!0,f=y(c),p=0;p<f.length;p++){var g=f[p];":"!=g||d?(g=_(g,C),d?t.password+=g:t.username+=g):d=!0}c=""}else if(o==b||"/"==o||"?"==o||"#"==o||"\\"==o&&O(t)){if(h&&""==c)return"Invalid authority";l-=y(c).length+1,c="",s=kt}else c+=o;break;case kt:case At:if(i&&"file"==t.scheme){s=Et;continue}if(":"!=o||u){if(o==b||"/"==o||"?"==o||"#"==o||"\\"==o&&O(t)){if(O(t)&&""==c)return w;if(i&&""==c&&(T(t)||null!==t.port))return;if(a=A(t,c))return a;if(c="",s=I,i)return;continue}"["==o?u=!0:"]"==o&&(u=!1),c+=o}else{if(""==c)return w;if(a=A(t,c))return a;if(c="",s=St,i==At)return}break;case St:if(!k.test(o)){if(o==b||"/"==o||"?"==o||"#"==o||"\\"==o&&O(t)||i){if(""!=c){var m=parseInt(c,10);if(65535<m)return $;t.port=O(t)&&m===E[t.scheme]?null:m,c=""}if(i)return;s=I;continue}return $}c+=o;break;case Ct:if(t.scheme="file","/"==o||"\\"==o)s=_t;else{if(!n||"file"!=n.scheme){s=N;continue}if(o==b)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==o)t.host=n.host,t.path=n.path.slice(),t.query="",s=D;else{if("#"!=o){ut(r.slice(l).join(""))||(t.host=n.host,t.path=n.path.slice(),dt(t)),s=N;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",s=R}}break;case _t:if("/"==o||"\\"==o){s=Et;break}n&&"file"==n.scheme&&!ut(r.slice(l).join(""))&&(L(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),s=N;continue;case Et:if(o==b||"/"==o||"\\"==o||"?"==o||"#"==o){if(!i&&L(c))s=N;else{if(""==c){if(t.host="",i)return}else{if(a=A(t,c))return a;if("localhost"==t.host&&(t.host=""),i)return;c=""}s=I}continue}c+=o;break;case I:if(O(t)){if(s=N,"/"!=o&&"\\"!=o)continue}else if(i||"?"!=o)if(i||"#"!=o){if(o!=b&&(s=N,"/"!=o))continue}else t.fragment="",s=R;else t.query="",s=D;break;case N:if(o==b||"/"==o||"\\"==o&&O(t)||!i&&("?"==o||"#"==o)){if(".."===(m=(m=c).toLowerCase())||"%2e."===m||".%2e"===m||"%2e%2e"===m?(dt(t),"/"==o||"\\"==o&&O(t)||t.path.push("")):ft(c)?"/"==o||"\\"==o&&O(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&L(c)&&(t.host&&(t.host=""),c=c.charAt(0)+":"),t.path.push(c)),c="","file"==t.scheme&&(o==b||"?"==o||"#"==o))for(;1<t.path.length&&""===t.path[0];)t.path.shift();"?"==o?(t.query="",s=D):"#"==o&&(t.fragment="",s=R)}else c+=_(o,ht);break;case Ot:"?"==o?(t.query="",s=D):"#"==o?(t.fragment="",s=R):o!=b&&(t.path[0]+=_(o,S));break;case D:i||"#"!=o?o!=b&&("'"==o&&O(t)?t.query+="%27":t.query+="#"==o?"%23":_(o,S)):(t.fragment="",s=R);break;case R:o!=b&&(t.fragment+=_(o,ct))}l++}}function l(t){var e,i,n=H(this,l,"URL"),r=1<arguments.length?arguments[1]:void 0,t=String(t),o=V(n,{type:"URL"});if(void 0!==r)if(r instanceof l)e=p(r);else if(i=s(e={},String(r)))throw TypeError(i);if(i=s(o,t,null,e))throw TypeError(i);var a=o.searchParams=new G;(r=f(a)).updateSearchParams(o.query),r.updateURL=function(){o.query=String(a)||null},c||(n.href=g.call(n),n.origin=Tt.call(n),n.protocol=Lt.call(n),n.username=Mt.call(n),n.password=Pt.call(n),n.host=It.call(n),n.hostname=Nt.call(n),n.port=Dt.call(n),n.pathname=Rt.call(n),n.search=Ft.call(n),n.searchParams=jt.call(n),n.hash=zt.call(n))}function e(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}}t(8783);var b,i,n,j=t(2109),c=t(9781),z=t(590),o=t(7854),B=t(6048),a=t(1320),H=t(5787),v=t(6656),u=t(1574),y=t(8457),Y=t(8710).codeAt,X=t(3197),W=t(8003),q=t(1637),t=t(9909),d=o.URL,G=q.URLSearchParams,f=q.getState,V=t.set,p=t.getterFor("URL"),U=Math.floor,Z=Math.pow,x="Invalid scheme",w="Invalid host",$="Invalid port",K=/[A-Za-z]/,Q=/[\d+-.A-Za-z]/,k=/\d/,J=/^(0x|0X)/,tt=/^[0-7]+$/,et=/^\d+$/,it=/^[\dA-Fa-f]+$/,nt=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,rt=/[\u0000\t\u000A\u000D #/:?@[\\]]/,ot=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,at=/[\t\u000A\u000D]/g,A=function(t,e){var i,n,r;if("["==e.charAt(0))return"]"==e.charAt(e.length-1)&&(i=lt(e.slice(1,-1)))?void(t.host=i):w;if(O(t))return e=X(e),nt.test(e)||null===(i=st(e))?w:void(t.host=i);if(rt.test(e))return w;for(i="",n=y(e),r=0;r<n.length;r++)i+=_(n[r],S);t.host=i},st=function(t){var e,i,n,r,o,a,s,l=t.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),4<(e=l.length))return t;for(i=[],n=0;n<e;n++){if(""==(r=l[n]))return t;if(o=10,1<r.length&&"0"==r.charAt(0)&&(o=J.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)a=0;else{if(!(10==o?et:8==o?tt:it).test(r))return t;a=parseInt(r,o)}i.push(a)}for(n=0;n<e;n++)if(a=i[n],n==e-1){if(a>=Z(256,5-e))return null}else if(255<a)return null;for(s=i.pop(),n=0;n<i.length;n++)s+=i[n]*Z(256,3-n);return s},lt=function(t){function e(){return t.charAt(d)}var i,n,r,o,a,s,l,c=[0,0,0,0,0,0,0,0],h=0,u=null,d=0;if(":"==e()){if(":"!=t.charAt(1))return;d+=2,u=++h}for(;e();){if(8==h)return;if(":"!=e()){for(i=n=0;n<4&&it.test(e());)i=16*i+parseInt(e(),16),d++,n++;if("."==e()){if(0==n)return;if(d-=n,6<h)return;for(r=0;e();){if(o=null,0<r){if(!("."==e()&&r<4))return;d++}if(!k.test(e()))return;for(;k.test(e());){if(a=parseInt(e(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(255<o)return;d++}c[h]=256*c[h]+o,2!=++r&&4!=r||h++}if(4!=r)return;break}if(":"==e()){if(d++,!e())return}else if(e())return;c[h++]=i}else{if(null!==u)return;d++,u=++h}}if(null!==u)for(s=h-u,h=7;0!=h&&0<s;)l=c[h],c[h--]=c[u+s-1],c[u+--s]=l;else if(8!=h)return;return c},S={},ct=u({},S,{" ":1,'"':1,"<":1,">":1,"`":1}),ht=u({},ct,{"#":1,"?":1,"{":1,"}":1}),C=u({},ht,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),_=function(t,e){var i=Y(t,0);return 32<i&&i<127&&!v(e,t)?t:encodeURIComponent(t)},E={ftp:21,file:null,http:80,https:443,ws:80,wss:443},O=function(t){return v(E,t.scheme)},T=function(t){return""!=t.username||""!=t.password},L=function(t,e){return 2==t.length&&K.test(t.charAt(0))&&(":"==(t=t.charAt(1))||!e&&"|"==t)},ut=function(t){return 1<t.length&&L(t.slice(0,2))&&(2==t.length||"/"===(t=t.charAt(2))||"\\"===t||"?"===t||"#"===t)},dt=function(t){var e=t.path,i=e.length;!i||"file"==t.scheme&&1==i&&L(e[0],!0)||e.pop()},ft=function(t){return"."===t||"%2e"===t.toLowerCase()},pt={},gt={},mt={},bt={},vt={},yt={},xt={},wt={},M={},P={},kt={},At={},St={},Ct={},_t={},Et={},I={},N={},Ot={},D={},R={},o=l.prototype,g=function(){var t=p(this),e=t.scheme,i=t.username,n=t.password,r=t.host,o=t.port,a=t.path,s=t.query,l=t.fragment,c=e+":";return null!==r?(c+="//",T(t)&&(c+=i+(n?":"+n:"")+"@"),c+=h(r),null!==o&&(c+=":"+o)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Tt=function(){var t=p(this),e=t.scheme,i=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&O(t)?e+"://"+h(t.host)+(null!==i?":"+i:""):"null"},Lt=function(){return p(this).scheme+":"},Mt=function(){return p(this).username},Pt=function(){return p(this).password},It=function(){var t=(e=p(this)).host,e=e.port;return null===t?"":null===e?h(t):h(t)+":"+e},Nt=function(){var t=p(this).host;return null===t?"":h(t)},Dt=function(){var t=p(this).port;return null===t?"":String(t)},Rt=function(){var t=p(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ft=function(){var t=p(this).query;return t?"?"+t:""},jt=function(){return p(this).searchParams},zt=function(){var t=p(this).fragment;return t?"#"+t:""};c&&B(o,{href:e(g,function(t){var e=p(this);if(t=s(e,t=String(t)))throw TypeError(t);f(e.searchParams).updateSearchParams(e.query)}),origin:e(Tt),protocol:e(Lt,function(t){s(p(this),String(t)+":",pt)}),username:e(Mt,function(t){var e=p(this),i=y(String(t));if(!r(e)){e.username="";for(var n=0;n<i.length;n++)e.username+=_(i[n],C)}}),password:e(Pt,function(t){var e=p(this),i=y(String(t));if(!r(e)){e.password="";for(var n=0;n<i.length;n++)e.password+=_(i[n],C)}}),host:e(It,function(t){var e=p(this);e.cannotBeABaseURL||s(e,String(t),kt)}),hostname:e(Nt,function(t){var e=p(this);e.cannotBeABaseURL||s(e,String(t),At)}),port:e(Dt,function(t){var e=p(this);r(e)||(""==(t=String(t))?e.port=null:s(e,t,St))}),pathname:e(Rt,function(t){var e=p(this);e.cannotBeABaseURL||(e.path=[],s(e,t+"",I))}),search:e(Ft,function(t){var e=p(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",s(e,t,D)),f(e.searchParams).updateSearchParams(e.query)}),searchParams:e(jt),hash:e(zt,function(t){var e=p(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",s(e,t,R)):e.fragment=null})}),a(o,"toJSON",function(){return g.call(this)},{enumerable:!0}),a(o,"toString",function(){return g.call(this)},{enumerable:!0}),d&&(i=d.createObjectURL,n=d.revokeObjectURL,i&&a(l,"createObjectURL",function(t){return i.apply(d,arguments)}),n)&&a(l,"revokeObjectURL",function(t){return n.apply(d,arguments)}),W(l,"URL"),j({global:!0,forced:!z,sham:!c},{URL:l})}},n={};function r(t){var e;return(n[t]||(e=n[t]={exports:{}},i[t](e,e.exports,r),e)).exports}r.d=function(t,e){for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var t={};function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}(r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})})(t),r.d(t,{Dropzone:function(){return y},default:function(){return D}}),r(2222),r(7327),r(2772),r(6992),r(1249),r(7042),r(561),r(8264),r(8309),r(489),r(1539),r(4916),r(9714),r(8783),r(4723),r(5306),r(3123),r(3210),r(2472),r(2990),r(8927),r(3105),r(5035),r(4345),r(7174),r(2846),r(4731),r(7209),r(6319),r(8867),r(7789),r(3739),r(9368),r(4483),r(2056),r(3462),r(678),r(7462),r(3824),r(5021),r(2974),r(5016),r(4747),r(3948),r(285);var o=(()=>{function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")}for(var e=t.prototype,i=[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){this._callbacks=this._callbacks||{};for(var e=this._callbacks[t],i=arguments.length,n=new Array(1<i?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];if(e){var o,a=((t,e)=>{var i,n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=(t=>{var e;if(t)return"string"==typeof t?s(t,void 0):"Map"===(e="Object"===(e=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?s(t,void 0):void 0})(t))||t&&"number"==typeof t.length)return i&&(t=i),n=0,{s:e=function(){},n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e};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,o=!0,a=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}})(e);try{for(a.s();!(o=a.n()).done;)o.value.apply(this,n)}catch(t){a.e(t)}finally{a.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+t,{args:n})),this}},{key:"makeEvent",value:function(t,e){var i,e={bubbles:!0,cancelable:!0,detail:e};return"function"==typeof window.CustomEvent?new CustomEvent(t,e):((i=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i)}},{key:"off",value:function(t,e){if(this._callbacks&&0!==arguments.length){var i=this._callbacks[t];if(i)if(1===arguments.length)delete this._callbacks[t];else for(var n=0;n<i.length;n++)if(i[n]===e){i.splice(n,1);break}}else this._callbacks={};return this}}],n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return t})();function h(t,e){var i,n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=(t=>{var e;if(t)return"string"==typeof t?l(t,void 0):"Map"===(e="Object"===(e=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(t,void 0):void 0})(t))||e&&t&&"number"==typeof t.length)return i&&(t=i),n=0,{s:e=function(){},n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e};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,o=!0,a=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var a={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(t,e,i){if(i)return{dzuuid:i.file.upload.uuid,dzchunkindex:i.index,dztotalfilesize:i.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:i.file.upload.totalChunkCount,dzchunkbyteoffset:i.index*this.options.chunkSize}},accept:function(t,e){return e()},chunksUploaded:function(t,e){e()},fallback:function(){var t;this.element.className="".concat(this.element.className," dz-browser-not-supported");var e,i=h(this.element.getElementsByTagName("div"),!0);try{for(i.s();!(e=i.n()).done;){var n=e.value;if(/(^| )dz-message($| )/.test(n.className)){(t=n).className="dz-message";break}}}catch(t){i.e(t)}finally{i.f()}t||(t=y.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var r=t.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(t,e,i,n){var r={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},o=t.width/t.height,a=(null==e&&null==i?(e=r.srcWidth,i=r.srcHeight):null==e?e=i*o:null==i&&(i=e/o),(e=Math.min(e,r.srcWidth))/(i=Math.min(i,r.srcHeight)));if(r.srcWidth>e||r.srcHeight>i)if("crop"===n)a<o?(r.srcHeight=t.height,r.srcWidth=r.srcHeight*a):(r.srcWidth=t.width,r.srcHeight=r.srcWidth/a);else{if("contain"!==n)throw new Error("Unknown resizeMethod '".concat(n,"'"));a<o?i=e/o:e=i*o}return r.srcX=(t.width-r.srcWidth)/2,r.srcY=(t.height-r.srcHeight)/2,r.trgWidth=e,r.trgHeight=i,r},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},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(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var i=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){e.previewElement=y.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);var t,n=h(e.previewElement.querySelectorAll("[data-dz-name]"),!0);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.textContent=e.name}}catch(e){n.e(e)}finally{n.f()}var o,a=h(e.previewElement.querySelectorAll("[data-dz-size]"),!0);try{for(a.s();!(o=a.n()).done;)(r=o.value).innerHTML=this.filesize(e.size)}catch(e){a.e(e)}finally{a.f()}this.options.addRemoveLinks&&(e._removeLink=y.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),e.previewElement.appendChild(e._removeLink));var s,l=function(t){return t.preventDefault(),t.stopPropagation(),e.status===y.UPLOADING?y.confirm(i.options.dictCancelUploadConfirmation,function(){return i.removeFile(e)}):i.options.dictRemoveFileConfirmation?y.confirm(i.options.dictRemoveFileConfirmation,function(){return i.removeFile(e)}):i.removeFile(e)},c=h(e.previewElement.querySelectorAll("[data-dz-remove]"),!0);try{for(c.s();!(s=c.n()).done;)s.value.addEventListener("click",l)}catch(e){c.e(e)}finally{c.f()}}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");var i,n=h(t.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0);try{for(n.s();!(i=n.n()).done;){var r=i.value;r.alt=t.name,r.src=e}}catch(t){n.e(t)}finally{n.f()}return setTimeout(function(){return t.previewElement.classList.add("dz-image-preview")},1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"string"!=typeof e&&e.error&&(e=e.error);var i,n=h(t.previewElement.querySelectorAll("[data-dz-errormessage]"),!0);try{for(n.s();!(i=n.n()).done;)i.value.textContent=e}catch(t){n.e(t)}finally{n.f()}}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,i){if(t.previewElement){var n,r=h(t.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0);try{for(r.s();!(n=r.n()).done;){var o=n.value;"PROGRESS"===o.nodeName?o.value=e:o.style.width="".concat(e,"%")}}catch(t){r.e(t)}finally{r.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}};function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){var i,n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=(t=>{var e;if(t)return"string"==typeof t?u(t,void 0):"Map"===(e="Object"===(e=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,void 0):void 0})(t))||e&&t&&"number"==typeof t.length)return i&&(t=i),n=0,{s:e=function(){},n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e};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,o=!0,a=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e,i){e&&f(t.prototype,e),i&&f(t,i)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?b(t):e}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=(()=>{var t=w,e=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e);var i=w,n=(()=>{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(t){return!1}})(),r=function(){var t,e=v(i);return m(this,n?(t=v(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))};function w(t,e){var i;if(d(this,w),(i=r.call(this)).element=t,i.version=w.version,i.clickableElements=[],i.listeners=[],i.files=[],"string"==typeof i.element&&(i.element=document.querySelector(i.element)),!i.element||null==i.element.nodeType)throw new Error("Invalid dropzone element.");if(i.element.dropzone)throw new Error("Dropzone already attached.");if(w.instances.push(b(i)),i.element.dropzone=b(i),t=null!=(t=w.optionsForElement(i.element))?t:{},i.options=w.extend({},a,t,null!=e?e:{}),i.options.previewTemplate=i.options.previewTemplate.replace(/\n*/g,""),i.options.forceFallback||!w.isBrowserSupported())return m(i,i.options.fallback.call(b(i)));if(null==i.options.url&&(i.options.url=i.element.getAttribute("action")),!i.options.url)throw new Error("No URL provided.");if(i.options.acceptedFiles&&i.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(i.options.uploadMultiple&&i.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return i.options.acceptedMimeTypes&&(i.options.acceptedFiles=i.options.acceptedMimeTypes,delete i.options.acceptedMimeTypes),null!=i.options.renameFilename&&(i.options.renameFile=function(t){return i.options.renameFilename.call(b(i),t.name,t)}),"string"==typeof i.options.method&&(i.options.method=i.options.method.toUpperCase()),(t=i.getExistingFallback())&&t.parentNode&&t.parentNode.removeChild(t),!1!==i.options.previewsContainer&&(i.options.previewsContainer?i.previewsContainer=w.getElement(i.options.previewsContainer,"previewsContainer"):i.previewsContainer=i.element),i.options.clickable&&(!0===i.options.clickable?i.clickableElements=[i.element]:i.clickableElements=w.getElements(i.options.clickable,"clickable")),i.init(),i}return p(w,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(t){return t.accepted}).map(function(t){return t})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(t){return!t.accepted}).map(function(t){return t})}},{key:"getFilesWithStatus",value:function(e){return this.files.filter(function(t){return t.status===e}).map(function(t){return t})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(w.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(w.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(w.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(t){return t.status===w.UPLOADING||t.status===w.QUEUED}).map(function(t){return t})}},{key:"init",value:function(){var o=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(w.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length&&function r(){o.hiddenFileInput&&o.hiddenFileInput.parentNode.removeChild(o.hiddenFileInput),o.hiddenFileInput=document.createElement("input"),o.hiddenFileInput.setAttribute("type","file"),(null===o.options.maxFiles||1<o.options.maxFiles)&&o.hiddenFileInput.setAttribute("multiple","multiple"),o.hiddenFileInput.className="dz-hidden-input",null!==o.options.acceptedFiles&&o.hiddenFileInput.setAttribute("accept",o.options.acceptedFiles),null!==o.options.capture&&o.hiddenFileInput.setAttribute("capture",o.options.capture),o.hiddenFileInput.setAttribute("tabindex","-1"),o.hiddenFileInput.style.visibility="hidden",o.hiddenFileInput.style.position="absolute",o.hiddenFileInput.style.top="0",o.hiddenFileInput.style.left="0",o.hiddenFileInput.style.height="0",o.hiddenFileInput.style.width="0",w.getElement(o.options.hiddenInputContainer,"hiddenInputContainer").appendChild(o.hiddenFileInput),o.hiddenFileInput.addEventListener("change",function(){var t=o.hiddenFileInput.files;if(t.length){var e,i=k(t,!0);try{for(i.s();!(e=i.n()).done;){var n=e.value;o.addFile(n)}}catch(t){i.e(t)}finally{i.f()}}o.emit("addedfiles",t),r()})}(),this.URL=null!==window.URL?window.URL:window.webkitURL;var t,e=k(this.events,!0);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.on(i,this.options[i])}}catch(o){e.e(o)}finally{e.f()}function n(t){(t=>{if(t.dataTransfer.types)for(var e=0;e<t.dataTransfer.types.length;e++)if("Files"===t.dataTransfer.types[e])return 1})(t)&&(t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1)}return this.on("uploadprogress",function(){return o.updateTotalUploadProgress()}),this.on("removedfile",function(){return o.updateTotalUploadProgress()}),this.on("canceled",function(t){return o.emit("complete",t)}),this.on("complete",function(t){if(0===o.getAddedFiles().length&&0===o.getUploadingFiles().length&&0===o.getQueuedFiles().length)return setTimeout(function(){return o.emit("queuecomplete")},0)}),this.listeners=[{element:this.element,events:{dragstart:function(t){return o.emit("dragstart",t)},dragenter:function(t){return n(t),o.emit("dragenter",t)},dragover:function(t){var e;try{e=t.dataTransfer.effectAllowed}catch(t){}return t.dataTransfer.dropEffect="move"===e||"linkMove"===e?"move":"copy",n(t),o.emit("dragover",t)},dragleave:function(t){return o.emit("dragleave",t)},drop:function(t){return n(t),o.drop(t)},dragend:function(t){return o.emit("dragend",t)}}}],this.clickableElements.forEach(function(e){return o.listeners.push({element:e,events:{click:function(t){return e===o.element&&t.target!==o.element&&!w.elementInside(t.target,o.element.querySelector(".dz-message"))||o.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&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,w.instances.splice(w.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t,e=0,i=0;if(this.getActiveFiles().length){var n,r=k(this.getActiveFiles(),!0);try{for(r.s();!(n=r.n()).done;){var o=n.value;e+=o.upload.bytesSent,i+=o.upload.total}}catch(t){r.e(t)}finally{r.f()}t=100*e/i}else t=100;return this.emit("totaluploadprogress",t,i,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(t,"]"):"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,e;return(e=this.getExistingFallback())||(e='<div class="dz-fallback">',this.options.dictFallbackText&&(e+="<p>".concat(this.options.dictFallbackText,"</p>")),e+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>'),e=w.createElement(e),"FORM"!==this.element.tagName?(t=w.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(e):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:e)}},{key:"getExistingFallback",value:function(){for(var t,e=0,i=["div","form"];e<i.length;e++)if(t=(t=>{var e,i=k(t,!0);try{for(i.s();!(e=i.n()).done;){var n=e.value;if(/(^| )fallback($| )/.test(n.className))return n}}catch(t){i.e(t)}finally{i.f()}})(this.element.getElementsByTagName(i[e])))return t}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(t){var e,i=[];for(e in t.events){var n=t.events[e];i.push(t.element.addEventListener(e,n,!1))}return i})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(t){var e,i=[];for(e in t.events){var n=t.events[e];i.push(t.element.removeEventListener(e,n,!1))}return i})}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach(function(t){return t.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(t){return t.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,i="b";if(0<t){for(var n=["tb","gb","mb","kb","b"],r=0;r<n.length;r++){var o=n[r];if(t>=Math.pow(this.options.filesizeBase,4-r)/10){e=t/Math.pow(this.options.filesizeBase,4-r),i=o;break}}e=Math.round(10*e)/10}return"<strong>".concat(e,"</strong> ").concat(this.options.dictFileSizeUnits[i])}},{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(t){if(t.dataTransfer){this.emit("drop",t);for(var e,i=[],n=0;n<t.dataTransfer.files.length;n++)i[n]=t.dataTransfer.files[n];i.length&&((e=t.dataTransfer.items)&&e.length&&null!=e[0].webkitGetAsEntry?this._addFilesFromItems(e):this.handleFiles(i)),this.emit("addedfiles",i)}}},{key:"paste",value:function(t){var e;if(null!=(null!=(e=null!=t?t.clipboardData:void 0)?e.items:void 0))return this.emit("paste",t),(e=t.clipboardData.items).length?this._addFilesFromItems(e):void 0}},{key:"handleFiles",value:function(t){var e,i=k(t,!0);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.addFile(n)}}catch(t){i.e(t)}finally{i.f()}}},{key:"_addFilesFromItems",value:function(t){var e,i=[],n=k(t,!0);try{for(n.s();!(e=n.n()).done;){var r,o=e.value;null!=o.webkitGetAsEntry&&(r=o.webkitGetAsEntry())?r.isFile?i.push(this.addFile(o.getAsFile())):r.isDirectory?i.push(this._addFilesFromDirectory(r,r.name)):i.push(void 0):null==o.getAsFile||null!=o.kind&&"file"!==o.kind?i.push(void 0):i.push(this.addFile(o.getAsFile()))}}catch(t){n.e(t)}finally{n.f()}return i}},{key:"_addFilesFromDirectory",value:function(t,o){function e(t){var e;if(null!=(e=console)&&"function"==typeof e.log)return e.log(t)}var a=this,i=t.createReader();return function r(){return i.readEntries(function(t){if(0<t.length){var e,i=k(t,!0);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.isFile?n.file(function(t){if(!a.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath="".concat(o,"/").concat(t.name),a.addFile(t)}):n.isDirectory&&a._addFilesFromDirectory(n,"".concat(o,"/").concat(n.name))}}catch(t){i.e(t)}finally{i.f()}r()}return null},e)}()}},{key:"accept",value:function(t,e){this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):w.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var i=this;e.upload={uuid:w.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e)},this.files.push(e),e.status=w.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){t?(e.accepted=!1,i._errorProcessing([e],t)):(e.accepted=!0,i.options.autoQueue&&i.enqueueFile(e)),i._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(t){var e,i=k(t,!0);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.enqueueFile(n)}}catch(t){i.e(t)}finally{i.f()}return null}},{key:"enqueueFile",value:function(t){var e=this;if(t.status!==w.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=w.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return e.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout(function(){return e._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var e,i=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length)return this._processingThumbnail=!0,e=this._thumbnailQueue.shift(),this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(t){return i.emit("thumbnail",e,t),i._processingThumbnail=!1,i._processThumbnailQueue()})}},{key:"removeFile",value:function(t){if(t.status===w.UPLOADING&&this.cancelUpload(t),this.files=x(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);var e,i=k(this.files.slice(),!0);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.status===w.UPLOADING&&!t||this.removeFile(n)}}catch(t){i.e(t)}finally{i.f()}return null}},{key:"resizeImage",value:function(n,t,e,i,r){var o=this;return this.createThumbnail(n,t,e,i,!0,function(t,e){var i;return null==e?r(n):(null==(i=o.options.resizeMimeType)&&(i=n.type),e=e.toDataURL(i,o.options.resizeQuality),"image/jpeg"!==i&&"image/jpg"!==i||(e=S.restore(n.dataURL,e)),r(w.dataURItoBlob(e)))})}},{key:"createThumbnail",value:function(t,e,i,n,r,o){var a=this,s=new FileReader;s.onload=function(){t.dataURL=s.result,"image/svg+xml"!==t.type?a.createThumbnailFromUrl(t,e,i,n,r,o):null!=o&&o(s.result)},s.readAsDataURL(t)}},{key:"displayExistingFile",value:function(e,t,i,n){var r=this,o=!(4<arguments.length&&void 0!==arguments[4])||arguments[4];this.emit("addedfile",e),this.emit("complete",e),o?(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),i&&i()},n)):(this.emit("thumbnail",e,t),i&&i())}},{key:"createThumbnailFromUrl",value:function(r,o,a,s,e,l,t){var c=this,h=document.createElement("img");return t&&(h.crossOrigin=t),e="from-image"!=getComputedStyle(document.body).imageOrientation&&e,h.onload=function(){var t=function(t){return t(1)};return(t="undefined"!=typeof EXIF&&null!==EXIF&&e?function(t){return EXIF.getData(h,function(){return t(EXIF.getTag(this,"Orientation"))})}:t)(function(t){r.width=h.width,r.height=h.height;var e=c.options.resize.call(c,r,o,a,s),i=document.createElement("canvas"),n=i.getContext("2d");switch(i.width=e.trgWidth,i.height=e.trgHeight,4<t&&(i.width=e.trgHeight,i.height=e.trgWidth),t){case 2:n.translate(i.width,0),n.scale(-1,1);break;case 3:n.translate(i.width,i.height),n.rotate(Math.PI);break;case 4:n.translate(0,i.height),n.scale(1,-1);break;case 5:n.rotate(.5*Math.PI),n.scale(1,-1);break;case 6:n.rotate(.5*Math.PI),n.translate(0,-i.width);break;case 7:n.rotate(.5*Math.PI),n.translate(i.height,-i.width),n.scale(-1,1);break;case 8:n.rotate(-.5*Math.PI),n.translate(-i.height,0)}if(A(n,h,null!=e.srcX?e.srcX:0,null!=e.srcY?e.srcY:0,e.srcWidth,e.srcHeight,null!=e.trgX?e.trgX:0,null!=e.trgY?e.trgY:0,e.trgWidth,e.trgHeight),t=i.toDataURL("image/png"),null!=l)return l(t,i)})},null!=l&&(h.onerror=l),h.src=r.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,i=e;if(!(t<=e)){var n=this.getQueuedFiles();if(0<n.length){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,t-e));for(;i<t;){if(!n.length)return;this.processFile(n.shift()),i++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){var e,i=k(t,!0);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.processing=!0,n.status=w.UPLOADING,this.emit("processing",n)}}catch(t){i.e(t)}finally{i.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter(function(t){return t.xhr===e}).map(function(t){return t})}},{key:"cancelUpload",value:function(t){if(t.status===w.UPLOADING){var e,i=this._getFilesWithXhr(t.xhr),n=k(i,!0);try{for(n.s();!(e=n.n()).done;)e.value.status=w.CANCELED}catch(t){n.e(t)}finally{n.f()}void 0!==t.xhr&&t.xhr.abort();var r,o=k(i,!0);try{for(o.s();!(r=o.n()).done;){var a=r.value;this.emit("canceled",a)}}catch(t){o.e(t)}finally{o.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",i)}else t.status!==w.ADDED&&t.status!==w.QUEUED||(t.status=w.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){if("function"!=typeof t)return t;for(var e=arguments.length,i=new Array(1<e?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t.apply(this,i)}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(l){var c=this;this._transformFiles(l,function(t){var e;if(c.options.chunking&&(e=t[0],l[0].upload.chunked=c.options.chunking&&(c.options.forceChunking||e.size>c.options.chunkSize),l[0].upload.totalChunkCount=Math.ceil(e.size/c.options.chunkSize)),l[0].upload.chunked){var r=l[0],n=t[0],o=(r.upload.chunks=[],function(){for(var t,e,i=0;void 0!==r.upload.chunks[i];)i++;i>=r.upload.totalChunkCount||(e=i*c.options.chunkSize,t=Math.min(e+c.options.chunkSize,n.size),e={name:c._getParamName(0),data:n.webkitSlice?n.webkitSlice(e,t):n.slice(e,t),filename:r.upload.filename,chunkIndex:i},r.upload.chunks[i]={file:r,index:i,dataBlock:e,status:w.UPLOADING,progress:0,retries:0},c._uploadData(l,[e]))});if(r.upload.finishedChunkUpload=function(t,e){var i=!0;t.status=w.SUCCESS,t.dataBlock=null,t.xhr=null;for(var n=0;n<r.upload.totalChunkCount;n++){if(void 0===r.upload.chunks[n])return o();r.upload.chunks[n].status!==w.SUCCESS&&(i=!1)}i&&c.options.chunksUploaded(r,function(){c._finished(l,e,null)})},c.options.parallelChunkUploads)for(var i=0;i<r.upload.totalChunkCount;i++)o();else o()}else{for(var a=[],s=0;s<l.length;s++)a[s]={name:c._getParamName(s),data:t[s],filename:l[s].upload.filename};c._uploadData(l,a)}})}},{key:"_getChunk",value:function(t,e){for(var i=0;i<t.upload.totalChunkCount;i++)if(void 0!==t.upload.chunks[i]&&t.upload.chunks[i].xhr===e)return t.upload.chunks[i]}},{key:"_uploadData",value:function(e,t){var i,n=this,r=new XMLHttpRequest,o=k(e,!0);try{for(o.s();!(i=o.n()).done;)i.value.xhr=r}catch(e){o.e(e)}finally{o.f()}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var a,s=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e),c=(r.open(s,l,!0),this.resolveOption(this.options.timeout,e)&&(r.timeout=this.resolveOption(this.options.timeout,e)),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.ontimeout=function(){n._handleUploadError(e,r,"Request timedout after ".concat(n.options.timeout/1e3," seconds"))},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)},{Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"});for(a in this.options.headers&&w.extend(c,this.options.headers),c){var h=c[a];h&&r.setRequestHeader(a,h)}var u=new FormData;if(this.options.params){var d,f=this.options.params;for(d in f="function"==typeof f?f.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null):f){var p=f[d];if(Array.isArray(p))for(var g=0;g<p.length;g++)u.append(d,p[g]);else u.append(d,p)}}var m,b=k(e,!0);try{for(b.s();!(m=b.n()).done;){var v=m.value;this.emit("sending",v,r,u)}}catch(e){b.e(e)}finally{b.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,u),this._addFormElementData(u);for(var y=0;y<t.length;y++){var x=t[y];u.append(x.name,x.data,x.filename)}this.submitRequest(r,u,e)}},{key:"_transformFiles",value:function(i,n){for(var t=this,r=[],o=0,e=0;e<i.length;e++)(e=>{t.options.transformFile.call(t,i[e],function(t){r[e]=t,++o===i.length&&n(r)})})(e)}},{key:"_addFormElementData",value:function(t){if("FORM"===this.element.tagName){var e,i=k(this.element.querySelectorAll("input, textarea, select, button"),!0);try{for(i.s();!(e=i.n()).done;){var n=e.value,r=n.getAttribute("name"),o=(o=n.getAttribute("type"))&&o.toLowerCase();if(null!=r)if("SELECT"===n.tagName&&n.hasAttribute("multiple")){var a,s=k(n.options,!0);try{for(s.s();!(a=s.n()).done;){var l=a.value;l.selected&&t.append(r,l.value)}}catch(t){s.e(t)}finally{s.f()}}else(!o||"checkbox"!==o&&"radio"!==o||n.checked)&&t.append(r,n.value)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"_updateFilesUploadProgress",value:function(t,e,i){if(t[0].upload.chunked){var n=t[0],e=this._getChunk(n,e);i?(e.progress=100*i.loaded/i.total,e.total=i.total,e.bytesSent=i.loaded):(e.progress=100,e.bytesSent=e.total),n.upload.progress=0,n.upload.total=0;for(var r=n.upload.bytesSent=0;r<n.upload.totalChunkCount;r++)n.upload.chunks[r]&&void 0!==n.upload.chunks[r].progress&&(n.upload.progress+=n.upload.chunks[r].progress,n.upload.total+=n.upload.chunks[r].total,n.upload.bytesSent+=n.upload.chunks[r].bytesSent);n.upload.progress=n.upload.progress/n.upload.totalChunkCount,this.emit("uploadprogress",n,n.upload.progress,n.upload.bytesSent)}else{var o,a=k(t,!0);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.upload.total&&s.upload.bytesSent&&s.upload.bytesSent==s.upload.total||(i?(s.upload.progress=100*i.loaded/i.total,s.upload.total=i.total,s.upload.bytesSent=i.loaded):(s.upload.progress=100,s.upload.bytesSent=s.upload.total),this.emit("uploadprogress",s,s.upload.progress,s.upload.bytesSent))}}catch(t){a.e(t)}finally{a.f()}}}},{key:"_finishedUploading",value:function(t,e,i){var n;if(t[0].status!==w.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(n=e.responseText,e.getResponseHeader("content-type"))&&~e.getResponseHeader("content-type").indexOf("application/json"))try{n=JSON.parse(n)}catch(t){i=t,n="Invalid JSON response from server."}this._updateFilesUploadProgress(t,e),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e),n):this._finished(t,n,i):this._handleUploadError(t,e,n)}}},{key:"_handleUploadError",value:function(t,e,i){if(t[0].status!==w.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var n=this._getChunk(t[0],e);if(n.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[n.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(t,i||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}},{key:"submitRequest",value:function(t,e,i){1==t.readyState?t.send(e):console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.")}},{key:"_finished",value:function(t,e,i){var n,r=k(t,!0);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.status=w.SUCCESS,this.emit("success",o,e,i),this.emit("complete",o)}}catch(t){r.e(t)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,i),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,i){var n,r=k(t,!0);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.status=w.ERROR,this.emit("error",o,e,i),this.emit("complete",o)}}catch(t){r.e(t)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,i),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=o,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(t){for(var e=arguments.length,i=new Array(1<e?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r=0,o=i;r<o.length;r++){var a,s=o[r];for(a in s){var l=s[a];t[a]=l}}return t}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}}]),w})(),x=(y.initClass(),y.version="5.9.3",y.options={},y.optionsForElement=function(t){return t.getAttribute("id")?y.options[e(t.getAttribute("id"))]:void 0},y.instances=[],y.forElement=function(t){if(null==(null!=(t="string"==typeof t?document.querySelector(t):t)?t.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 t.dropzone},y.autoDiscover=!0,y.discover=function(){var o,t;document.querySelectorAll?o=document.querySelectorAll(".dropzone"):(o=[],(t=function(t){var e,i=[],n=k(t,!0);try{for(n.s();!(e=n.n()).done;){var r=e.value;/(^| )dropzone($| )/.test(r.className)?i.push(o.push(r)):i.push(void 0)}}catch(t){n.e(t)}finally{n.f()}})(document.getElementsByTagName("div")),t(document.getElementsByTagName("form")));var e,i=[],n=k(o,!0);try{for(n.s();!(e=n.n()).done;){var r=e.value;!1!==y.optionsForElement(r)?i.push(new y(r)):i.push(void 0)}}catch(t){n.e(t)}finally{n.f()}return i},y.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],y.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){void 0!==y.blacklistedBrowsers&&(y.blockedBrowsers=y.blacklistedBrowsers);var e,i=k(y.blockedBrowsers,!0);try{for(i.s();!(e=i.n()).done;)e.value.test(navigator.userAgent)&&(t=!1)}catch(t){i.e(t)}finally{i.f()}}else t=!1;else t=!1;return t},y.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),t=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),n=new Uint8Array(i),r=0,o=e.length,a=0<=o;a?r<=o:o<=r;a?r++:r--)n[r]=e.charCodeAt(r);return new Blob([i],{type:t})},function(t,e){return t.filter(function(t){return t!==e}).map(function(t){return t})}),e=function(t){return t.replace(/[\-_](\w)/g,function(t){return t.charAt(1).toUpperCase()})},A=(y.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},y.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},y.getElement=function(t,e){var i;if("string"==typeof t?i=document.querySelector(t):null!=t.nodeType&&(i=t),null==i)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector or a plain HTML element."));return i},y.getElements=function(t,e){var i;if(t instanceof Array){a=[];try{var n,r=k(t,!0);try{for(r.s();!(n=r.n()).done;)i=n.value,a.push(this.getElement(i,e))}catch(t){r.e(t)}finally{r.f()}}catch(t){a=null}}else if("string"==typeof t){var o,a=[],s=k(document.querySelectorAll(t),!0);try{for(s.s();!(o=s.n()).done;)i=o.value,a.push(i)}catch(t){s.e(t)}finally{s.f()}}else null!=t.nodeType&&(a=[t]);if(null!=a&&a.length)return a;throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."))},y.confirm=function(t,e,i){return window.confirm(t)?e():null!=i?i():void 0},y.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");var i,n=t.type,r=n.replace(/\/.*$/,""),o=k(e,!0);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("."===(a=a.trim()).charAt(0)){if(-1!==t.name.toLowerCase().indexOf(a.toLowerCase(),t.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}}catch(t){o.e(t)}finally{o.f()}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each(function(){return new y(this,t)})}),y.ADDED="added",y.QUEUED="queued",y.ACCEPTED=y.QUEUED,y.UPLOADING="uploading",y.PROCESSING=y.UPLOADING,y.CANCELED="canceled",y.ERROR="error",y.SUCCESS="success",function(t,e,i,n,r,o,a,s,l,c){var h=(t=>{t.naturalWidth;var e=t.naturalHeight,i=document.createElement("canvas");i.width=1,i.height=e,(i=i.getContext("2d")).drawImage(t,0,0);for(var n=i.getImageData(1,0,1,e).data,r=0,o=e,a=e;r<a;)0===n[4*(a-1)+3]?o=a:r=a,a=o+r>>1;return 0==(t=a/e)?1:t})(e);return t.drawImage(e,i,n,r,o,a,s,l,c/h)}),S=(p(w,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e,i,n,r,o="",a=void 0,s="",l=0;n=(e=t[l++])>>2,r=(3&e)<<4|(e=t[l++])>>4,a=(15&e)<<2|(i=t[l++])>>6,s=63&i,isNaN(e)?a=s=64:isNaN(i)&&(s=64),o=o+this.KEY_STR.charAt(n)+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(s),a=s="",l<t.length;);return o}},{key:"restore",value:function(t,e){return t.match("data:image/jpeg;base64,")?(t=this.decode64(t.replace("data:image/jpeg;base64,","")),t=this.slice2Segments(t),t=this.exifManipulation(e,t),"data:image/jpeg;base64,".concat(this.encode64(t))):e}},{key:"exifManipulation",value:function(t,e){return e=this.getExifArray(e),t=this.insertExif(t,e),new Uint8Array(t)}},{key:"getExifArray",value:function(t){for(var e,i=0;i<t.length;){if(255===(e=t[i])[0]&225===e[1])return e;i++}return[]}},{key:"insertExif",value:function(t,e){var t=t.replace("data:image/jpeg;base64,",""),i=(t=this.decode64(t)).indexOf(255,3),n=t.slice(0,i),t=t.slice(i);return n.concat(e).concat(t)}},{key:"slice2Segments",value:function(t){for(var e,i,n=0,r=[];!(255===t[n]&218===t[n+1]||(255===t[n]&216===t[n+1]?n+=2:(e=n+(256*t[n+2]+t[n+3])+2,i=t.slice(n,e),r.push(i),n=e),t.length<n)););return r}},{key:"decode64",value:function(t){var e,i,n,r,o,a=0,s=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(t)&&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."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=this.KEY_STR.indexOf(t.charAt(a++))<<2|(r=this.KEY_STR.indexOf(t.charAt(a++)))>>4,i=(15&r)<<4|(r=this.KEY_STR.indexOf(t.charAt(a++)))>>2,n=(3&r)<<6|(o=this.KEY_STR.indexOf(t.charAt(a++))),s.push(e),64!==r&&s.push(i),64!==o&&s.push(n),a<t.length;);return s}}]),w);function w(){d(this,w)}S.initClass(),y._autoDiscoverFunction=function(){if(y.autoDiscover)return y.discover()};var C=window,_=y._autoDiscoverFunction;function E(t){if("readystatechange"!==t.type||"complete"===L.readyState)return("load"===t.type?C:L)[I](N+t.type,E,!1),!O&&(O=!0)?_.call(C,t.type||t):void 0}var O=!1,T=!0,L=C.document,M=L.documentElement,P=L.addEventListener?"addEventListener":"attachEvent",I=L.addEventListener?"removeEventListener":"detachEvent",N=L.addEventListener?"":"on";if("complete"!==L.readyState){if(L.createEventObject&&M.doScroll){try{T=!C.frameElement}catch(C){}T&&function e(){try{M.doScroll("left")}catch(t){return void setTimeout(e,50)}return E("poll")}()}L[P](N+"DOMContentLoaded",E,!1),L[P](N+"readystatechange",E,!1),C[P](N+"load",E,!1)}var D=window.Dropzone=y;return t}),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).flatpickr=e()})(this,function(){var ct=function(){return(ct=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function ht(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),r=0,e=0;e<i;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)n[r]=o[a];return n}function ut(t,e){return("000"+t).slice(-1*(e=void 0===e?2:e))}function dt(t){return!0===t?1:0}var ft=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],pt={_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(t){return"undefined"!=typeof console&&console.warn(t)},getWeek:function(t){(t=new Date(t.getTime())).setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var e=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-e.getTime())/864e5-3+(e.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},gt={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(t){if(3<(t%=100)&&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};function mt(i,n){var r;return function(){var t=this,e=arguments;clearTimeout(r),r=setTimeout(function(){return i.apply(t,e)},n)}}function bt(t){return t instanceof Array?t:[t]}function vt(t,e,i){if(!0===i)return t.classList.add(e);t.classList.remove(e)}function yt(t,e,i){return i=i||"",(t=window.document.createElement(t)).className=e=e||"",void 0!==i&&(t.textContent=i),t}function xt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function wt(t,e){var i=yt("div","numInputWrapper"),n=yt("input","numInput "+t),t=yt("span","arrowUp"),r=yt("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==e)for(var o in e)n.setAttribute(o,e[o]);return i.appendChild(n),i.appendChild(t),i.appendChild(r),i}function kt(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}function t(){}function At(t,e,i){return i.months[e?"shorthand":"longhand"][t]}function St(t){var e=t.config,o=void 0===e?pt:e,i=void 0===(e=t.l10n)?gt:e,a=void 0!==(e=t.isMobile)&&e;return function(n,t,e){var r=e||i;return void 0===o.formatDate||a?t.split("").map(function(t,e,i){return s[t]&&"\\"!==i[e-1]?s[t](n,r,o):"\\"!==t?t:""}).join(""):o.formatDate(n,t,r)}}function Ct(t){var e=t.config,g=void 0===e?pt:e,m=void 0===(e=t.l10n)?gt:e;return function(t,e,i,n){if(0===t||t){var r,o=n||m,n=t;if(t instanceof Date)r=new Date(t.getTime());else if("string"!=typeof t&&void 0!==t.toFixed)r=new Date(t);else if("string"==typeof t){var a=e||(g||pt).dateFormat;if("today"===(e=String(t).trim()))r=new Date,i=!0;else if(g&&g.parseDate)r=g.parseDate(t,a);else if(/Z$/.test(e)||/GMT$/.test(e))r=new Date(t);else{for(var s=void 0,l=[],c=0,h=0,u="";c<a.length;c++){var d=a[c],f="\\"===d,p="\\"===a[c-1]||f;_t[d]&&!p?(u+=_t[d],(p=new RegExp(u).exec(t))&&(s=!0,l["Y"!==d?"push":"unshift"]({fn:b[d],val:p[++h]}))):f||(u+=".")}r=g&&g.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),l.forEach(function(t){var e=t.fn;return r=e(r,t.val,o)||r}),r=s?r:void 0}}if(r instanceof Date&&!isNaN(r.getTime()))return!0===i&&r.setHours(0,0,0,0),r;g.errorHandler(new Error("Invalid date provided: "+n))}}}var b={D:t,F:function(t,e,i){t.setMonth(i.months.longhand.indexOf(e))},G:function(t,e){t.setHours((12<=t.getHours()?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,i){t.setHours(t.getHours()%12+12*dt(new RegExp(i.amPM[1],"i").test(e)))},M:function(t,e,i){t.setMonth(i.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,i){return e=parseInt(e),(t=new Date(t.getFullYear(),0,2+7*(e-1),0,0,0,0)).setDate(t.getDate()-t.getDay()+i.firstDayOfWeek),t},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((12<=t.getHours()?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:t,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:t,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},_t={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})"},s={Z:function(t){return t.toISOString()},D:function(t,e,i){return e.weekdays.shorthand[s.w(t,e,i)]},F:function(t,e,i){return At(s.n(t,e,i)-1,!1,e)},G:function(t,e,i){return ut(s.h(t,e,i))},H:function(t){return ut(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[dt(11<t.getHours())]},M:function(t,e){return At(t.getMonth(),!0,e)},S:function(t){return ut(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,i){return i.getWeek(t)},Y:function(t){return ut(t.getFullYear(),4)},d:function(t){return ut(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return ut(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return ut(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}};function Et(t,e,i){return!1!==(i=void 0===i||i)?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}function Ot(t,e,i){return 3600*t+60*e+i}function Tt(t){var e,i,n,r=t.defaultHour,o=t.defaultMinute,a=t.defaultSeconds;return void 0!==t.minDate&&(i=t.minDate.getHours(),n=t.minDate.getMinutes(),e=t.minDate.getSeconds(),(r=r<i?i:r)===i&&o<n&&(o=n),r===i)&&o===n&&a<e&&(a=t.minDate.getSeconds()),void 0!==t.maxDate&&(i=t.maxDate.getHours(),n=t.maxDate.getMinutes(),(r=Math.min(r,i))===i&&(o=Math.min(n,o)),r===i)&&o===n&&(a=t.maxDate.getSeconds()),{hours:r,minutes:o,seconds:a}}function i(t,e){for(var i=Array.prototype.slice.call(t).filter(function(t){return t instanceof HTMLElement}),n=[],r=0;r<i.length;r++){var o=i[r];try{null===o.getAttribute("data-fp-omit")&&(void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=((c,R)=>{var g={config:ct(ct({},pt),Lt.defaultConfig),l10n:gt};function F(){var t;return(null==(t=g.calendarContainer)?void 0:t.getRootNode()).activeElement||document.activeElement}function j(t){return t.bind(g)}function z(){var e=g.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){var t;void 0!==g.calendarContainer&&(g.calendarContainer.style.visibility="hidden",g.calendarContainer.style.display="block"),void 0!==g.daysContainer&&(t=(g.days.offsetWidth+1)*e.showMonths,g.daysContainer.style.width=t+"px",g.calendarContainer.style.width=t+(void 0!==g.weekWrapper?g.weekWrapper.offsetWidth:0)+"px",g.calendarContainer.style.removeProperty("visibility"),g.calendarContainer.style.removeProperty("display"))})}function h(t){0===g.selectedDates.length&&(o=void 0===g.config.minDate||0<=Et(new Date,g.config.minDate)?new Date:new Date(g.config.minDate.getTime()),a=Tt(g.config),o.setHours(a.hours,a.minutes,a.seconds,o.getMilliseconds()),g.selectedDates=[o],g.latestSelectedDateObj=o),void 0!==t&&"blur"!==t.type&&((a=t).preventDefault(),o="keydown"===a.type,i=t=kt(a),void 0!==g.amPM&&t===g.amPM&&(g.amPM.textContent=g.l10n.amPM[dt(g.amPM.textContent===g.l10n.amPM[0])]),t=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),n=parseFloat(i.getAttribute("step")),a=(r=parseInt(i.value,10))+n*(o=a.delta||(o?38===a.which?1:-1:0)),void 0!==i.value)&&2===i.value.length&&(o=i===g.hourElement,e=i===g.minuteElement,a<t?(a=s+a+dt(!o)+(dt(o)&&dt(!g.amPM)),e&&l(void 0,-1,g.hourElement)):s<a&&(a=i===g.hourElement?a-s-dt(!g.amPM):t,e)&&l(void 0,1,g.hourElement),g.amPM&&o&&(1===n?a+r===23:Math.abs(a-r)>n)&&(g.amPM.textContent=g.l10n.amPM[dt(g.amPM.textContent===g.l10n.amPM[0])]),i.value=ut(a));var e,i,n,r,o,a,s=g._input.value;u(),E(),g._input.value!==s&&g._debouncedChange()}function u(){var t,e,i,n,r,o,a,s,l,c;void 0!==g.hourElement&&void 0!==g.minuteElement&&(i=(parseInt(g.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(g.minuteElement.value,10)||0)%60,r=void 0!==g.secondElement?(parseInt(g.secondElement.value,10)||0)%60:0,void 0!==g.amPM&&(i=(t=i)%12+12*dt((e=g.amPM.textContent)===g.l10n.amPM[1])),t=void 0!==g.config.minTime||g.config.minDate&&g.minDateHasTime&&g.latestSelectedDateObj&&0===Et(g.latestSelectedDateObj,g.config.minDate,!0),e=void 0!==g.config.maxTime||g.config.maxDate&&g.maxDateHasTime&&g.latestSelectedDateObj&&0===Et(g.latestSelectedDateObj,g.config.maxDate,!0),void 0!==g.config.maxTime&&void 0!==g.config.minTime&&g.config.minTime>g.config.maxTime?(o=Ot(g.config.minTime.getHours(),g.config.minTime.getMinutes(),g.config.minTime.getSeconds()),Ot(g.config.maxTime.getHours(),g.config.maxTime.getMinutes(),g.config.maxTime.getSeconds())<(a=Ot(i,n,r))&&a<o&&(s=o,i=(a=[l=Math.floor(s/3600),c=(s-3600*l)/60,s-3600*l-60*c])[0],n=a[1],r=a[2])):(e&&(o=void 0!==g.config.maxTime?g.config.maxTime:g.config.maxDate,(n=(i=Math.min(i,o.getHours()))===o.getHours()?Math.min(n,o.getMinutes()):n)===o.getMinutes())&&(r=Math.min(r,o.getSeconds())),t&&(a=void 0!==g.config.minTime?g.config.minTime:g.config.minDate,(n=(i=Math.max(i,a.getHours()))===a.getHours()&&n<a.getMinutes()?a.getMinutes():n)===a.getMinutes())&&(r=Math.max(r,a.getSeconds()))),d(i,n,r))}function n(t){(t=t||g.latestSelectedDateObj)&&t instanceof Date&&d(t.getHours(),t.getMinutes(),t.getSeconds())}function d(t,e,i){void 0!==g.latestSelectedDateObj&&g.latestSelectedDateObj.setHours(t%24,e,i||0,0),g.hourElement&&g.minuteElement&&!g.isMobile&&(g.hourElement.value=ut(g.config.time_24hr?t:(12+t)%12+12*dt(t%12==0)),g.minuteElement.value=ut(e),void 0!==g.amPM&&(g.amPM.textContent=g.l10n.amPM[dt(12<=t)]),void 0!==g.secondElement)&&(g.secondElement.value=ut(i))}function s(e,i,n,r){return i instanceof Array?i.forEach(function(t){return s(e,t,n,r)}):e instanceof Array?e.forEach(function(t){return s(t,i,n,r)}):(e.addEventListener(i,n,r),void g._handlers.push({remove:function(){return e.removeEventListener(i,n,r)}}))}function B(){C("onChange")}function r(t,e){var t=void 0!==t?g.parseDate(t):g.latestSelectedDateObj||(g.config.minDate&&g.config.minDate>g.now?g.config.minDate:g.config.maxDate&&g.config.maxDate<g.now?g.config.maxDate:g.now),i=g.currentYear,n=g.currentMonth;try{void 0!==t&&(g.currentYear=t.getFullYear(),g.currentMonth=t.getMonth())}catch(e){e.message="Invalid date supplied: "+t,g.config.errorHandler(e)}e&&g.currentYear!==i&&(C("onYearChange"),p()),!e||g.currentYear===i&&g.currentMonth===n||C("onMonthChange"),g.redraw()}function l(t,e,i){t=t&&kt(t),i=i||t&&t.parentNode&&t.parentNode.firstChild,(t=it("increment")).delta=e,i&&i.dispatchEvent(t)}function f(t,e,i,n){var r=w(e,!0),o=yt("span",t,e.getDate().toString());return o.dateObj=e,o.$i=n,o.setAttribute("aria-label",g.formatDate(e,g.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===Et(e,g.now)&&((g.todayDateElem=o).classList.add("today"),o.setAttribute("aria-current","date")),r?(o.tabIndex=-1,nt(e)&&(o.classList.add("selected"),g.selectedDateElem=o,"range"===g.config.mode)&&(vt(o,"startRange",g.selectedDates[0]&&0===Et(e,g.selectedDates[0],!0)),vt(o,"endRange",g.selectedDates[1]&&0===Et(e,g.selectedDates[1],!0)),"nextMonthDay"===t)&&o.classList.add("inRange")):o.classList.add("flatpickr-disabled"),"range"===g.config.mode&&(r=e,!("range"!==g.config.mode||g.selectedDates.length<2))&&0<=Et(r,g.selectedDates[0])&&Et(r,g.selectedDates[1])<=0&&!nt(e)&&o.classList.add("inRange"),g.weekNumbers&&1===g.config.showMonths&&"prevMonthDay"!==t&&n%7==6&&g.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+g.config.getWeek(e)+"</span>"),C("onDayCreate",o),o}function m(t){t.focus(),"range"===g.config.mode&&a(t)}function b(t){for(var e=0<t?0:g.config.showMonths-1,i=0<t?g.config.showMonths:-1,n=e;n!=i;n+=t)for(var r=g.daysContainer.children[n],o=0<t?0:r.children.length-1,a=0<t?r.children.length:-1,s=o;s!=a;s+=t){var l=r.children[s];if(-1===l.className.indexOf("hidden")&&w(l.dateObj))return l}}function v(t,e){var i=F(),n=k(i||document.body);if(void 0===(t=void 0!==t?t:n?i:void 0!==g.selectedDateElem&&k(g.selectedDateElem)?g.selectedDateElem:void 0!==g.todayDateElem&&k(g.todayDateElem)?g.todayDateElem:b(0<e?1:-1)))g._input.focus();else if(n){for(var r=t,o=e,a=-1===r.className.indexOf("Month")?r.dateObj.getMonth():g.currentMonth,s=0<o?g.config.showMonths:-1,l=0<o?1:-1,c=a-g.currentMonth;c!=s;c+=l)for(var h=g.daysContainer.children[c],u=a-g.currentMonth===c?r.$i+o:o<0?h.children.length-1:0,d=h.children.length,f=u;0<=f&&f<d&&f!=(0<o?d:-1);f+=l){var p=h.children[f];if(-1===p.className.indexOf("hidden")&&w(p.dateObj)&&Math.abs(r.$i-f)>=Math.abs(o))return m(p)}g.changeMonth(l),v(b(l),0)}else m(t)}function o(){if(void 0!==g.daysContainer){xt(g.daysContainer),g.weekNumbers&&xt(g.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e<g.config.showMonths;e++){var i=new Date(g.currentYear,g.currentMonth,1);i.setMonth(g.currentMonth+e),t.appendChild(((t,e)=>{for(var i=(new Date(t,e,1).getDay()-g.l10n.firstDayOfWeek+7)%7,n=g.utils.getDaysInMonth((e-1+12)%12,t),r=g.utils.getDaysInMonth(e,t),o=window.document.createDocumentFragment(),a=1<g.config.showMonths,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=n+1-i,h=0;c<=n;c++,h++)o.appendChild(f("flatpickr-day "+s,new Date(t,e-1,c),0,h));for(c=1;c<=r;c++,h++)o.appendChild(f("flatpickr-day",new Date(t,e,c),0,h));for(var u=r+1;u<=42-i&&(1===g.config.showMonths||h%7!=0);u++,h++)o.appendChild(f("flatpickr-day "+l,new Date(t,e+1,u%r),0,h));return(a=yt("div","dayContainer")).appendChild(o),a})(i.getFullYear(),i.getMonth()))}g.daysContainer.appendChild(t),g.days=g.daysContainer.firstChild,"range"===g.config.mode&&1===g.selectedDates.length&&a()}}function p(){if(!(1<g.config.showMonths||"dropdown"!==g.config.monthSelectorType)){g.monthsDropdownContainer.tabIndex=-1,g.monthsDropdownContainer.innerHTML="";for(var t,e=0;e<12;e++)t=e,void 0!==g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&t<g.config.minDate.getMonth()||void 0!==g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()&&t>g.config.maxDate.getMonth()||((t=yt("option","flatpickr-monthDropdown-month")).value=new Date(g.currentYear,e).getMonth().toString(),t.textContent=At(e,g.config.shorthandCurrentMonth,g.l10n),t.tabIndex=-1,g.currentMonth===e&&(t.selected=!0),g.monthsDropdownContainer.appendChild(t))}}function H(){xt(g.monthNav),g.monthNav.appendChild(g.prevMonthNav),g.config.showMonths&&(g.yearElements=[],g.monthElements=[]);for(var t,e,i,n,r,o=g.config.showMonths;o--;){r=n=a=e=t=void 0,t=yt("div","flatpickr-month"),e=window.document.createDocumentFragment(),i=1<g.config.showMonths||"static"===g.config.monthSelectorType?yt("span","cur-month"):(g.monthsDropdownContainer=yt("select","flatpickr-monthDropdown-months"),g.monthsDropdownContainer.setAttribute("aria-label",g.l10n.monthAriaLabel),s(g.monthsDropdownContainer,"change",function(t){t=kt(t),t=parseInt(t.value,10),g.changeMonth(t-g.currentMonth),C("onMonthChange")}),p(),g.monthsDropdownContainer),(n=(a=wt("cur-year",{tabindex:"-1"})).getElementsByTagName("input")[0]).setAttribute("aria-label",g.l10n.yearAriaLabel),g.config.minDate&&n.setAttribute("min",g.config.minDate.getFullYear().toString()),g.config.maxDate&&(n.setAttribute("max",g.config.maxDate.getFullYear().toString()),n.disabled=!!g.config.minDate&&g.config.minDate.getFullYear()===g.config.maxDate.getFullYear()),(r=yt("div","flatpickr-current-month")).appendChild(i),r.appendChild(a),e.appendChild(r),t.appendChild(e);var a={container:t,yearElement:n,monthElement:i};g.yearElements.push(a.yearElement),g.monthElements.push(a.monthElement),g.monthNav.appendChild(a.container)}g.monthNav.appendChild(g.nextMonthNav)}function Y(){g.weekdayContainer?xt(g.weekdayContainer):g.weekdayContainer=yt("div","flatpickr-weekdays");for(var t=g.config.showMonths;t--;){var e=yt("div","flatpickr-weekdaycontainer");g.weekdayContainer.appendChild(e)}return X(),g.weekdayContainer}function X(){if(g.weekdayContainer){var t=g.l10n.firstDayOfWeek,e=ht(g.l10n.weekdays.shorthand);0<t&&t<e.length&&(e=ht(e.splice(t,e.length),e.splice(0,t)));for(var i=g.config.showMonths;i--;)g.weekdayContainer.children[i].innerHTML="\n <span class='flatpickr-weekday'>\n "+e.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function W(t,e){(e=(e=void 0===e||e)?t:t-g.currentMonth)<0&&!0===g._hidePrevMonthArrow||0<e&&!0===g._hideNextMonthArrow||(g.currentMonth+=e,(g.currentMonth<0||11<g.currentMonth)&&(g.currentYear+=11<g.currentMonth?1:-1,g.currentMonth=(g.currentMonth+12)%12,C("onYearChange"),p()),o(),C("onMonthChange"),_())}function y(t){return g.calendarContainer.contains(t)}function q(t){var e,i;g.isOpen&&!g.config.inline&&(i=y(e=kt(t)),i=!(e===g.input||e===g.altInput||g.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(g.input)||~t.path.indexOf(g.altInput))||i||y(t.relatedTarget)),t=!g.config.ignoredFocusElements.some(function(t){return t.contains(e)}),i)&&t&&(g.config.allowInput&&g.setDate(g._input.value,!1,g.config.altInput?g.config.altFormat:g.config.dateFormat),void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement&&""!==g.input.value&&void 0!==g.input.value&&h(),g.close(),g.config)&&"range"===g.config.mode&&1===g.selectedDates.length&&g.clear(!1)}function x(t){var e;!t||g.config.minDate&&t<g.config.minDate.getFullYear()||g.config.maxDate&&t>g.config.maxDate.getFullYear()||(e=g.currentYear!==t,g.currentYear=t||g.currentYear,g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth=Math.min(g.config.maxDate.getMonth(),g.currentMonth):g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&(g.currentMonth=Math.max(g.config.minDate.getMonth(),g.currentMonth)),e&&(g.redraw(),C("onYearChange"),p()))}function w(t,e){var i=g.parseDate(t,void 0,e=void 0===e||e);if(g.config.minDate&&i&&Et(i,g.config.minDate,void 0!==e?e:!g.minDateHasTime)<0||g.config.maxDate&&i&&0<Et(i,g.config.maxDate,void 0!==e?e:!g.maxDateHasTime))return!1;if(!g.config.enable&&0===g.config.disable.length)return!0;if(void 0===i)return!1;for(var n,r=!!g.config.enable,o=null!=(t=g.config.enable)?t:g.config.disable,a=0,s=void 0;a<o.length;a++){if("function"==typeof(s=o[a])&&s(i))return r;if(s instanceof Date&&void 0!==i&&s.getTime()===i.getTime())return r;if("string"==typeof s)return(n=g.parseDate(s,void 0,!0))&&n.getTime()===i.getTime()?r:!r;if("object"==typeof s&&void 0!==i&&s.from&&s.to&&i.getTime()>=s.from.getTime()&&i.getTime()<=s.to.getTime())return r}return!r}function k(t){return void 0!==g.daysContainer&&-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&g.daysContainer.contains(t)}function G(t){var e=kt(t),i=g.config.wrap?c.contains(e):e===g._input,n=g.config.allowInput,r=g.isOpen&&(!n||!i),o=g.config.inline&&i&&!n;if(13===t.keyCode&&i){if(n)return g.setDate(g._input.value,!0,e===g.altInput?g.config.altFormat:g.config.dateFormat),g.close(),e.blur();g.open()}else if(y(e)||r||o){var a,s=!!g.timeContainer&&g.timeContainer.contains(e);switch(t.keyCode){case 13:s?(t.preventDefault(),h(),K()):Q(t);break;case 27:t.preventDefault(),K();break;case 8:case 46:i&&!g.config.allowInput&&(t.preventDefault(),g.clear());break;case 37:case 39:s||i?g.hourElement&&g.hourElement.focus():(t.preventDefault(),l=F(),void 0!==g.daysContainer&&(!1===n||l&&k(l))&&(l=39===t.keyCode?1:-1,t.ctrlKey?(t.stopPropagation(),W(l),v(b(1),0)):v(void 0,l)));break;case 38:case 40:t.preventDefault();var l=40===t.keyCode?1:-1;g.daysContainer&&void 0!==e.$i||e===g.input||e===g.altInput?t.ctrlKey?(t.stopPropagation(),x(g.currentYear-l),v(b(1),0)):s||v(void 0,7*l):e===g.currentYearElement?x(g.currentYear-l):g.config.enableTime&&(!s&&g.hourElement&&g.hourElement.focus(),h(t),g._debouncedChange());break;case 9:s?-1!==(a=(l=[g.hourElement,g.minuteElement,g.secondElement,g.amPM].concat(g.pluginElements).filter(function(t){return t})).indexOf(e))&&(l=l[a+(t.shiftKey?-1:1)],t.preventDefault(),(l||g._input).focus()):!g.config.noCalendar&&g.daysContainer&&g.daysContainer.contains(e)&&t.shiftKey&&(t.preventDefault(),g._input.focus())}}if(void 0!==g.amPM&&e===g.amPM)switch(t.key){case g.l10n.amPM[0].charAt(0):case g.l10n.amPM[0].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[0],u(),E();break;case g.l10n.amPM[1].charAt(0):case g.l10n.amPM[1].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[1],u(),E()}(i||y(e))&&C("onKeyDown",t)}function a(r,t){if(void 0===t&&(t="flatpickr-day"),1===g.selectedDates.length&&(!r||r.classList.contains(t)&&!r.classList.contains("flatpickr-disabled"))){for(var o=(r||g.days.firstElementChild).dateObj.getTime(),a=g.parseDate(g.selectedDates[0],void 0,!0).getTime(),e=Math.min(o,g.selectedDates[0].getTime()),i=Math.max(o,g.selectedDates[0].getTime()),s=!1,l=0,c=0,n=e;n<i;n+=864e5)w(new Date(n),!0)||(s=s||e<n&&n<i,n<a&&(!l||l<n)?l=n:a<n&&(!c||n<c)&&(c=n));Array.from(g.rContainer.querySelectorAll("*:nth-child(-n+"+g.config.showMonths+") > ."+t)).forEach(function(e){var t,i=e.dateObj.getTime(),n=0<l&&i<l||0<c&&c<i;n?(e.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(t){e.classList.remove(t)})):s&&!n||(["startRange","inRange","endRange","notAllowed"].forEach(function(t){e.classList.remove(t)}),void 0!==r&&(r.classList.add(o<=g.selectedDates[0].getTime()?"startRange":"endRange"),a<o&&i===a?e.classList.add("startRange"):o<a&&i===a&&e.classList.add("endRange"),l<=i)&&(0===c||i<=c)&&(n=a,t=o,i>Math.min(n,t))&&i<Math.max(n,t)&&e.classList.add("inRange"))})}}function V(i){return function(t){var t=g.config["_"+i+"Date"]=g.parseDate(t,g.config.dateFormat),e=g.config["_"+("min"===i?"max":"min")+"Date"];void 0!==t&&(g["min"===i?"minDateHasTime":"maxDateHasTime"]=0<t.getHours()||0<t.getMinutes()||0<t.getSeconds()),g.selectedDates&&(g.selectedDates=g.selectedDates.filter(function(t){return w(t)}),g.selectedDates.length||"min"!==i||n(t),E()),g.daysContainer&&($(),void 0!==t?g.currentYearElement[i]=t.getFullYear().toString():g.currentYearElement.removeAttribute(i),g.currentYearElement.disabled=!!e&&void 0!==t&&e.getFullYear()===t.getFullYear())}}function U(){return g.config.wrap?c.querySelector("[data-input]"):c}function Z(){"object"!=typeof g.config.locale&&void 0===Lt.l10ns[g.config.locale]&&g.config.errorHandler(new Error("flatpickr: invalid locale "+g.config.locale)),g.l10n=ct(ct({},Lt.l10ns.default),"object"==typeof g.config.locale?g.config.locale:"default"!==g.config.locale?Lt.l10ns[g.config.locale]:void 0),_t.D="("+g.l10n.weekdays.shorthand.join("|")+")",_t.l="("+g.l10n.weekdays.longhand.join("|")+")",_t.M="("+g.l10n.months.shorthand.join("|")+")",_t.F="("+g.l10n.months.longhand.join("|")+")",_t.K="("+g.l10n.amPM[0]+"|"+g.l10n.amPM[1]+"|"+g.l10n.amPM[0].toLowerCase()+"|"+g.l10n.amPM[1].toLowerCase()+")",void 0===ct(ct({},R),JSON.parse(JSON.stringify(c.dataset||{}))).time_24hr&&void 0===Lt.defaultConfig.time_24hr&&(g.config.time_24hr=g.l10n.time_24hr),g.formatDate=St(g),g.parseDate=Ct({config:g.config,l10n:g.l10n})}function A(t){var e,i,n,r,o,a;"function"==typeof g.config.position?g.config.position(g,t):void 0===g.calendarContainer||(C("onPreCalendarPosition"),t=t||g._positionElement,i=Array.prototype.reduce.call(g.calendarContainer.children,function(t,e){return t+e.offsetHeight},0),a=g.calendarContainer.offsetWidth,o=(n=g.config.position.split(" "))[0],n=1<n.length?n[1]:null,e=t.getBoundingClientRect(),r=window.innerHeight-e.bottom,o="above"===o||"below"!==o&&r<i&&e.top>i,r=window.pageYOffset+e.top+(o?-i-2:t.offsetHeight+2),vt(g.calendarContainer,"arrowTop",!o),vt(g.calendarContainer,"arrowBottom",o),g.config.inline)||(i=window.pageXOffset+e.left,o=t=!1,"center"===n?(i-=(a-e.width)/2,t=!0):"right"===n&&(i-=a-e.width,o=!0),vt(g.calendarContainer,"arrowLeft",!t&&!o),vt(g.calendarContainer,"arrowCenter",t),vt(g.calendarContainer,"arrowRight",o),n=window.document.body.offsetWidth-(window.pageXOffset+e.right),t=i+a>window.document.body.offsetWidth,o=n+a>window.document.body.offsetWidth,vt(g.calendarContainer,"rightMost",t),g.config.static)||(g.calendarContainer.style.top=r+"px",t?o?void 0!==(r=(()=>{for(var t,e=null,i=0;i<document.styleSheets.length;i++){var n=document.styleSheets[i];if(n.cssRules){e=n;break}}return null!=e?e:(t=document.createElement("style"),document.head.appendChild(t),t.sheet)})())&&(t=window.document.body.offsetWidth,o=Math.max(0,t/2-a/2),t=r.cssRules.length,a="{left:"+e.left+"px;right:auto;}",vt(g.calendarContainer,"rightMost",!1),vt(g.calendarContainer,"centerMost",!0),r.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+a,t),g.calendarContainer.style.left=o+"px",g.calendarContainer.style.right="auto"):(g.calendarContainer.style.left="auto",g.calendarContainer.style.right=n+"px"):(g.calendarContainer.style.left=i+"px",g.calendarContainer.style.right="auto"))}function $(){g.config.noCalendar||g.isMobile||(p(),_(),o())}function K(){g._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(g.close,0):g.close()}function Q(t){var e,i,n;t.preventDefault(),t.stopPropagation(),void 0!==(t=function t(e,i){return i(e)?e:e.parentNode?t(e.parentNode,i):void 0}(kt(t),function(t){return t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")}))&&(e=((i=g.latestSelectedDateObj=new Date(t.dateObj.getTime())).getMonth()<g.currentMonth||i.getMonth()>g.currentMonth+g.config.showMonths-1)&&"range"!==g.config.mode,g.selectedDateElem=t,"single"===g.config.mode?g.selectedDates=[i]:"multiple"===g.config.mode?(n=nt(i))?g.selectedDates.splice(parseInt(n),1):g.selectedDates.push(i):"range"===g.config.mode&&(2===g.selectedDates.length&&g.clear(!1,!1),g.latestSelectedDateObj=i,g.selectedDates.push(i),0!==Et(i,g.selectedDates[0],!0))&&g.selectedDates.sort(function(t,e){return t.getTime()-e.getTime()}),u(),e&&(n=g.currentYear!==i.getFullYear(),g.currentYear=i.getFullYear(),g.currentMonth=i.getMonth(),n&&(C("onYearChange"),p()),C("onMonthChange")),_(),o(),E(),e||"range"===g.config.mode||1!==g.config.showMonths?void 0!==g.selectedDateElem&&void 0===g.hourElement&&g.selectedDateElem&&g.selectedDateElem.focus():m(t),void 0!==g.hourElement&&void 0!==g.hourElement&&g.hourElement.focus(),g.config.closeOnSelect&&(i="single"===g.config.mode&&!g.config.enableTime,n="range"===g.config.mode&&2===g.selectedDates.length&&!g.config.enableTime,i||n)&&K(),B())}g.parseDate=Ct({config:g.config,l10n:g.l10n}),g._handlers=[],g.pluginElements=[],g.loadedPlugins=[],g._bind=s,g._setHoursFromDate=n,g._positionCalendar=A,g.changeMonth=W,g.changeYear=x,g.clear=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0),g.input.value="",void 0!==g.altInput&&(g.altInput.value=""),void 0!==g.mobileInput&&(g.mobileInput.value=""),g.selectedDates=[],!(g.latestSelectedDateObj=void 0)===e&&(g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth()),!0===g.config.enableTime&&d((e=Tt(g.config)).hours,e.minutes,e.seconds),g.redraw(),t&&C("onChange")},g.close=function(){g.isOpen=!1,g.isMobile||(void 0!==g.calendarContainer&&g.calendarContainer.classList.remove("open"),void 0!==g._input&&g._input.classList.remove("active")),C("onClose")},g.onMouseOver=a,g._createElement=yt,g.createDay=f,g.destroy=function(){void 0!==g.config&&C("onDestroy");for(var t=g._handlers.length;t--;)g._handlers[t].remove();if(g._handlers=[],g.mobileInput)g.mobileInput.parentNode&&g.mobileInput.parentNode.removeChild(g.mobileInput),g.mobileInput=void 0;else if(g.calendarContainer&&g.calendarContainer.parentNode)if(g.config.static&&g.calendarContainer.parentNode){var e=g.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else g.calendarContainer.parentNode.removeChild(g.calendarContainer);g.altInput&&(g.input.type="text",g.altInput.parentNode&&g.altInput.parentNode.removeChild(g.altInput),delete g.altInput),g.input&&(g.input.type=g.input._type,g.input.classList.remove("flatpickr-input"),g.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(t){try{delete g[t]}catch(t){}})},g.isEnabled=w,g.jumpToDate=r,g.updateValue=E,g.open=function(t,e){var i;void 0===e&&(e=g._positionElement),!0===g.isMobile?(t&&(t.preventDefault(),i=kt(t))&&i.blur(),void 0!==g.mobileInput&&(g.mobileInput.focus(),g.mobileInput.click()),C("onOpen")):g._input.disabled||g.config.inline||(i=g.isOpen,g.isOpen=!0,i||(g.calendarContainer.classList.add("open"),g._input.classList.add("active"),C("onOpen"),A(e)),!0!==g.config.enableTime)||!0!==g.config.noCalendar||!1!==g.config.allowInput||void 0!==t&&g.timeContainer.contains(t.relatedTarget)||setTimeout(function(){return g.hourElement.select()},50)},g.redraw=$,g.set=function(t,e){if(null!==t&&"object"==typeof t)for(var i in Object.assign(g.config,t),t)void 0!==S[i]&&S[i].forEach(function(t){return t()});else g.config[t]=e,void 0!==S[t]?S[t].forEach(function(t){return t()}):-1<ft.indexOf(t)&&(g.config[t]=bt(e));g.redraw(),E(!0)},g.setDate=function(t,e,i){if(void 0===e&&(e=!1),void 0===i&&(i=g.config.dateFormat),0!==t&&!t||t instanceof Array&&0===t.length)return g.clear(e);J(t,i),g.latestSelectedDateObj=g.selectedDates[g.selectedDates.length-1],g.redraw(),r(void 0,e),n(),0===g.selectedDates.length&&g.clear(!1),E(e),e&&C("onChange")},g.toggle=function(t){if(!0===g.isOpen)return g.close();g.open(t)};var S={locale:[Z,X],showMonths:[H,z,Y],minDate:[r],maxDate:[r],positionElement:[et],clickOpens:[function(){!0===g.config.clickOpens?(s(g._input,"focus",g.open),s(g._input,"click",g.open)):(g._input.removeEventListener("focus",g.open),g._input.removeEventListener("click",g.open))}]};function J(t,e){var i=[];if(t instanceof Array)i=t.map(function(t){return g.parseDate(t,e)});else if(t instanceof Date||"number"==typeof t)i=[g.parseDate(t,e)];else if("string"==typeof t)switch(g.config.mode){case"single":case"time":i=[g.parseDate(t,e)];break;case"multiple":i=t.split(g.config.conjunction).map(function(t){return g.parseDate(t,e)});break;case"range":i=t.split(g.l10n.rangeSeparator).map(function(t){return g.parseDate(t,e)})}else g.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));g.selectedDates=g.config.allowInvalidPreload?i:i.filter(function(t){return t instanceof Date&&w(t,!1)}),"range"===g.config.mode&&g.selectedDates.sort(function(t,e){return t.getTime()-e.getTime()})}function tt(t){return t.slice().map(function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date?g.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:g.parseDate(t.from,void 0),to:g.parseDate(t.to,void 0)}:t}).filter(function(t){return t})}function et(){g._positionElement=g.config.positionElement||g._input}function C(t,e){if(void 0!==g.config){var i=g.config[t];if(void 0!==i&&0<i.length)for(var n=0;i[n]&&n<i.length;n++)i[n](g.selectedDates,g.input.value,g,e);"onChange"===t&&(g.input.dispatchEvent(it("change")),g.input.dispatchEvent(it("input")))}}function it(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function nt(t){for(var e=0;e<g.selectedDates.length;e++){var i=g.selectedDates[e];if(i instanceof Date&&0===Et(i,t))return""+e}return!1}function _(){g.config.noCalendar||g.isMobile||!g.monthNav||(g.yearElements.forEach(function(t,e){var i=new Date(g.currentYear,g.currentMonth,1);i.setMonth(g.currentMonth+e),1<g.config.showMonths||"static"===g.config.monthSelectorType?g.monthElements[e].textContent=At(i.getMonth(),g.config.shorthandCurrentMonth,g.l10n)+" ":g.monthsDropdownContainer.value=i.getMonth().toString(),t.value=i.getFullYear().toString()}),g._hidePrevMonthArrow=void 0!==g.config.minDate&&(g.currentYear===g.config.minDate.getFullYear()?g.currentMonth<=g.config.minDate.getMonth():g.currentYear<g.config.minDate.getFullYear()),g._hideNextMonthArrow=void 0!==g.config.maxDate&&(g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth+1>g.config.maxDate.getMonth():g.currentYear>g.config.maxDate.getFullYear()))}function rt(t){var e=t||(g.config.altInput?g.config.altFormat:g.config.dateFormat);return g.selectedDates.map(function(t){return g.formatDate(t,e)}).filter(function(t,e,i){return"range"!==g.config.mode||g.config.enableTime||i.indexOf(t)===e}).join("range"!==g.config.mode?g.config.conjunction:g.l10n.rangeSeparator)}function E(t){void 0===t&&(t=!0),void 0!==g.mobileInput&&g.mobileFormatStr&&(g.mobileInput.value=void 0!==g.latestSelectedDateObj?g.formatDate(g.latestSelectedDateObj,g.mobileFormatStr):""),g.input.value=rt(g.config.dateFormat),void 0!==g.altInput&&(g.altInput.value=rt(g.config.altFormat)),!1!==t&&C("onValueUpdate")}g.element=g.input=c,g.isOpen=!1;var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],e=ct(ct({},JSON.parse(JSON.stringify(c.dataset||{}))),R),i={},O=(g.config.parseDate=e.parseDate,g.config.formatDate=e.formatDate,Object.defineProperty(g.config,"enable",{get:function(){return g.config._enable},set:function(t){g.config._enable=tt(t)}}),Object.defineProperty(g.config,"disable",{get:function(){return g.config._disable},set:function(t){g.config._disable=tt(t)}}),"time"===e.mode);function ot(e){return function(t){g.config["min"===e?"_minTime":"_maxTime"]=g.parseDate(t,"H:i:S")}}e.dateFormat||!e.enableTime&&!O||(L=Lt.defaultConfig.dateFormat||pt.dateFormat,i.dateFormat=e.noCalendar||O?"H:i"+(e.enableSeconds?":S":""):L+" H:i"+(e.enableSeconds?":S":"")),e.altInput&&(e.enableTime||O)&&!e.altFormat&&(L=Lt.defaultConfig.altFormat||pt.altFormat,i.altFormat=e.noCalendar||O?"h:i"+(e.enableSeconds?":S K":" K"):L+(" h:i"+(e.enableSeconds?":S":""))+" K"),Object.defineProperty(g.config,"minDate",{get:function(){return g.config._minDate},set:V("min")}),Object.defineProperty(g.config,"maxDate",{get:function(){return g.config._maxDate},set:V("max")}),Object.defineProperty(g.config,"minTime",{get:function(){return g.config._minTime},set:ot("min")}),Object.defineProperty(g.config,"maxTime",{get:function(){return g.config._maxTime},set:ot("max")}),"time"===e.mode&&(g.config.noCalendar=!0,g.config.enableTime=!0),Object.assign(g.config,i,e);for(var T,L,at,M,st,P,I=0;I<t.length;I++)g.config[t[I]]=!0===g.config[t[I]]||"true"===g.config[t[I]];for(ft.filter(function(t){return void 0!==g.config[t]}).forEach(function(t){g.config[t]=bt(g.config[t]||[]).map(j)}),g.isMobile=!g.config.disableMobile&&!g.config.inline&&"single"===g.config.mode&&!g.config.disable.length&&!g.config.enable&&!g.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),I=0;I<g.config.plugins.length;I++){var N,lt=g.config.plugins[I](g)||{};for(N in lt)-1<ft.indexOf(N)?g.config[N]=bt(lt[N]).map(j).concat(g.config[N]):void 0===e[N]&&(g.config[N]=lt[N])}if(e.altInputClass||(g.config.altInputClass=U().className+" "+g.config.altInputClass),C("onParseConfig"),Z(),g.input=U(),g.input?(g.input._type=g.input.type,g.input.type="text",g.input.classList.add("flatpickr-input"),g._input=g.input,g.config.altInput&&(g.altInput=yt(g.input.nodeName,g.config.altInputClass),g._input=g.altInput,g.altInput.placeholder=g.input.placeholder,g.altInput.disabled=g.input.disabled,g.altInput.required=g.input.required,g.altInput.tabIndex=g.input.tabIndex,g.altInput.type="text",g.input.setAttribute("type","hidden"),!g.config.static)&&g.input.parentNode&&g.input.parentNode.insertBefore(g.altInput,g.input.nextSibling),g.config.allowInput||g._input.setAttribute("readonly","readonly"),et()):g.config.errorHandler(new Error("Invalid input element specified")),g.selectedDates=[],g.now=g.parseDate(g.config.now)||new Date,(O=g.config.defaultDate||("INPUT"!==g.input.nodeName&&"TEXTAREA"!==g.input.nodeName||!g.input.placeholder||g.input.value!==g.input.placeholder?g.input.value:null))&&J(O,g.config.dateFormat),g._initialDate=0<g.selectedDates.length?g.selectedDates[0]:g.config.minDate&&g.config.minDate.getTime()>g.now.getTime()?g.config.minDate:g.config.maxDate&&g.config.maxDate.getTime()<g.now.getTime()?g.config.maxDate:g.now,g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth(),0<g.selectedDates.length&&(g.latestSelectedDateObj=g.selectedDates[0]),void 0!==g.config.minTime&&(g.config.minTime=g.parseDate(g.config.minTime,"H:i")),void 0!==g.config.maxTime&&(g.config.maxTime=g.parseDate(g.config.maxTime,"H:i")),g.minDateHasTime=!!g.config.minDate&&(0<g.config.minDate.getHours()||0<g.config.minDate.getMinutes()||0<g.config.minDate.getSeconds()),g.maxDateHasTime=!!g.config.maxDate&&(0<g.config.maxDate.getHours()||0<g.config.maxDate.getMinutes()||0<g.config.maxDate.getSeconds()),g.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=g.currentMonth),void 0===e&&(e=g.currentYear),1===t&&(e%4==0&&e%100!=0||e%400==0)?29:g.l10n.daysInMonth[t]}},g.isMobile||(L=window.document.createDocumentFragment(),g.calendarContainer=yt("div","flatpickr-calendar"),g.calendarContainer.tabIndex=-1,g.config.noCalendar||(L.appendChild((g.monthNav=yt("div","flatpickr-months"),g.yearElements=[],g.monthElements=[],g.prevMonthNav=yt("span","flatpickr-prev-month"),g.prevMonthNav.innerHTML=g.config.prevArrow,g.nextMonthNav=yt("span","flatpickr-next-month"),g.nextMonthNav.innerHTML=g.config.nextArrow,H(),Object.defineProperty(g,"_hidePrevMonthArrow",{get:function(){return g.__hidePrevMonthArrow},set:function(t){g.__hidePrevMonthArrow!==t&&(vt(g.prevMonthNav,"flatpickr-disabled",t),g.__hidePrevMonthArrow=t)}}),Object.defineProperty(g,"_hideNextMonthArrow",{get:function(){return g.__hideNextMonthArrow},set:function(t){g.__hideNextMonthArrow!==t&&(vt(g.nextMonthNav,"flatpickr-disabled",t),g.__hideNextMonthArrow=t)}}),g.currentYearElement=g.yearElements[0],_(),g.monthNav)),g.innerContainer=yt("div","flatpickr-innerContainer"),g.config.weekNumbers&&(g.calendarContainer.classList.add("hasWeeks"),(O=yt("div","flatpickr-weekwrapper")).appendChild(yt("span","flatpickr-weekday",g.l10n.weekAbbreviation)),P=yt("div","flatpickr-weeks"),O.appendChild(P),T=(P={weekWrapper:O,weekNumbers:P}).weekWrapper,P=P.weekNumbers,g.innerContainer.appendChild(T),g.weekNumbers=P,g.weekWrapper=T),g.rContainer=yt("div","flatpickr-rContainer"),g.rContainer.appendChild(Y()),g.daysContainer||(g.daysContainer=yt("div","flatpickr-days"),g.daysContainer.tabIndex=-1),o(),g.rContainer.appendChild(g.daysContainer),g.innerContainer.appendChild(g.rContainer),L.appendChild(g.innerContainer)),g.config.enableTime&&L.appendChild((g.calendarContainer.classList.add("hasTime"),g.config.noCalendar&&g.calendarContainer.classList.add("noCalendar"),O=Tt(g.config),g.timeContainer=yt("div","flatpickr-time"),g.timeContainer.tabIndex=-1,at=yt("span","flatpickr-time-separator",":"),M=wt("flatpickr-hour",{"aria-label":g.l10n.hourAriaLabel}),g.hourElement=M.getElementsByTagName("input")[0],st=wt("flatpickr-minute",{"aria-label":g.l10n.minuteAriaLabel}),g.minuteElement=st.getElementsByTagName("input")[0],g.hourElement.tabIndex=g.minuteElement.tabIndex=-1,g.hourElement.value=ut(g.latestSelectedDateObj?g.latestSelectedDateObj.getHours():g.config.time_24hr?O.hours:(t=>{switch(t%24){case 0:case 12:return 12;default:return t%12}})(O.hours)),g.minuteElement.value=ut(g.latestSelectedDateObj?g.latestSelectedDateObj.getMinutes():O.minutes),g.hourElement.setAttribute("step",g.config.hourIncrement.toString()),g.minuteElement.setAttribute("step",g.config.minuteIncrement.toString()),g.hourElement.setAttribute("min",g.config.time_24hr?"0":"1"),g.hourElement.setAttribute("max",g.config.time_24hr?"23":"12"),g.hourElement.setAttribute("maxlength","2"),g.minuteElement.setAttribute("min","0"),g.minuteElement.setAttribute("max","59"),g.minuteElement.setAttribute("maxlength","2"),g.timeContainer.appendChild(M),g.timeContainer.appendChild(at),g.timeContainer.appendChild(st),g.config.time_24hr&&g.timeContainer.classList.add("time24hr"),g.config.enableSeconds&&(g.timeContainer.classList.add("hasSeconds"),M=wt("flatpickr-second"),g.secondElement=M.getElementsByTagName("input")[0],g.secondElement.value=ut(g.latestSelectedDateObj?g.latestSelectedDateObj.getSeconds():O.seconds),g.secondElement.setAttribute("step",g.minuteElement.getAttribute("step")),g.secondElement.setAttribute("min","0"),g.secondElement.setAttribute("max","59"),g.secondElement.setAttribute("maxlength","2"),g.timeContainer.appendChild(yt("span","flatpickr-time-separator",":")),g.timeContainer.appendChild(M)),g.config.time_24hr||(g.amPM=yt("span","flatpickr-am-pm",g.l10n.amPM[dt(11<(g.latestSelectedDateObj?g.hourElement.value:g.config.defaultHour))]),g.amPM.title=g.l10n.toggleTitle,g.amPM.tabIndex=-1,g.timeContainer.appendChild(g.amPM)),g.timeContainer)),vt(g.calendarContainer,"rangeMode","range"===g.config.mode),vt(g.calendarContainer,"animate",!0===g.config.animate),vt(g.calendarContainer,"multiMonth",1<g.config.showMonths),g.calendarContainer.appendChild(L),P=void 0!==g.config.appendTo&&void 0!==g.config.appendTo.nodeType,(g.config.inline||g.config.static)&&(g.calendarContainer.classList.add(g.config.inline?"inline":"static"),g.config.inline&&(!P&&g.element.parentNode?g.element.parentNode.insertBefore(g.calendarContainer,g._input.nextSibling):void 0!==g.config.appendTo&&g.config.appendTo.appendChild(g.calendarContainer)),g.config.static)&&(T=yt("div","flatpickr-wrapper"),g.element.parentNode&&g.element.parentNode.insertBefore(T,g.element),T.appendChild(g.element),g.altInput&&T.appendChild(g.altInput),T.appendChild(g.calendarContainer)),g.config.static)||g.config.inline||(void 0!==g.config.appendTo?g.config.appendTo:window.document.body).appendChild(g.calendarContainer),g.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(g.element.querySelectorAll("[data-"+e+"]"),function(t){return s(t,"click",g[e])})}),g.isMobile){var D=g.config.enableTime?g.config.noCalendar?"time":"datetime-local":"date";g.mobileInput=yt("input",g.input.className+" flatpickr-mobile"),g.mobileInput.tabIndex=1,g.mobileInput.type=D,g.mobileInput.disabled=g.input.disabled,g.mobileInput.required=g.input.required,g.mobileInput.placeholder=g.input.placeholder,g.mobileFormatStr="datetime-local"==D?"Y-m-d\\TH:i:S":"date"==D?"Y-m-d":"H:i:S",0<g.selectedDates.length&&(g.mobileInput.defaultValue=g.mobileInput.value=g.formatDate(g.selectedDates[0],g.mobileFormatStr)),g.config.minDate&&(g.mobileInput.min=g.formatDate(g.config.minDate,"Y-m-d")),g.config.maxDate&&(g.mobileInput.max=g.formatDate(g.config.maxDate,"Y-m-d")),g.input.getAttribute("step")&&(g.mobileInput.step=String(g.input.getAttribute("step"))),g.input.type="hidden",void 0!==g.altInput&&(g.altInput.type="hidden");try{g.input.parentNode&&g.input.parentNode.insertBefore(g.mobileInput,g.input.nextSibling)}catch(t){}s(g.mobileInput,"change",function(t){g.setDate(kt(t).value,!1,g.mobileFormatStr),C("onChange"),C("onClose")})}else D=mt(function(){!g.isOpen||g.config.static||g.config.inline||A()},50),g._debouncedChange=mt(B,300),g.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&s(g.daysContainer,"mouseover",function(t){"range"===g.config.mode&&a(kt(t))}),s(g._input,"keydown",G),void 0!==g.calendarContainer&&s(g.calendarContainer,"keydown",G),g.config.inline||g.config.static||s(window,"resize",D),void 0!==window.ontouchstart?s(window.document,"touchstart",q):s(window.document,"mousedown",q),s(window.document,"focus",q,{capture:!0}),!0===g.config.clickOpens&&(s(g._input,"focus",g.open),s(g._input,"click",g.open)),void 0!==g.daysContainer&&(s(g.monthNav,"click",function(t){var t=kt(t),e=g.prevMonthNav.contains(t),i=g.nextMonthNav.contains(t);e||i?W(e?-1:1):0<=g.yearElements.indexOf(t)?t.select():t.classList.contains("arrowUp")?g.changeYear(g.currentYear+1):t.classList.contains("arrowDown")&&g.changeYear(g.currentYear-1)}),s(g.monthNav,["keyup","increment"],function(t){var e=kt(t);(1<(e=parseInt(e.value)+(t.delta||0))/1e3||"Enter"===t.key&&!/[^\d]/.test(e.toString()))&&x(e)}),s(g.daysContainer,"click",Q)),void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement&&(s(g.timeContainer,["increment"],h),s(g.timeContainer,"blur",h,{capture:!0}),s(g.timeContainer,"click",function(t){var e=kt(t);~e.className.indexOf("arrow")&&l(t,e.classList.contains("arrowUp")?1:-1)}),s([g.hourElement,g.minuteElement],["focus","click"],function(t){return kt(t).select()}),void 0!==g.secondElement&&s(g.secondElement,"focus",function(){return g.secondElement&&g.secondElement.select()}),void 0!==g.amPM)&&s(g.amPM,"click",function(t){h(t)}),g.config.allowInput&&s(g._input,"blur",function(t){var e=t.target===g._input,i=g._input.value.trimEnd()!==rt();!e||!i||t.relatedTarget&&y(t.relatedTarget)||g.setDate(g._input.value,!0,t.target===g.altInput?g.config.altFormat:g.config.dateFormat)});return(g.selectedDates.length||g.config.noCalendar)&&(g.config.enableTime&&n(g.config.noCalendar?g.latestSelectedDateObj:void 0),E(!1)),z(),i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),!g.isMobile&&i&&A(),C("onReady"),g})(o,e||{}),n.push(o._flatpickr))}catch(t){console.error(t)}}return 1===n.length?n[0]:n}"function"!=typeof Object.assign&&(Object.assign=function(i){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];if(!i)throw TypeError("Cannot convert undefined or null to object");for(var n=0,r=t;n<r.length;n++)(e=>{e&&Object.keys(e).forEach(function(t){return i[t]=e[t]})})(r[n]);return i}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return i(this,t)},HTMLElement.prototype.flatpickr=function(t){return i([this],t)});var Lt=function(t,e){return"string"==typeof t?i(window.document.querySelectorAll(t),e):t instanceof Node?i([t],e):i(t,e)};return Lt.defaultConfig={},Lt.l10ns={en:ct({},gt),default:ct({},gt)},Lt.localize=function(t){Lt.l10ns.default=ct(ct({},Lt.l10ns.default),t)},Lt.setDefaults=function(t){Lt.defaultConfig=ct(ct({},Lt.defaultConfig),t)},Lt.parseDate=Ct({}),Lt.formatDate=St({}),Lt.compareDates=Et,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(t){return i(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=Lt),Lt}),((t,e)=>{"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()})("undefined"!=typeof self?self:this,function(){return i=[function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(17),r=i(18),o=i(19),a=i(48),s=i(49),l=i(50),c=i(51),h=i(52),u=i(11),d=i(29),f=i(30),p=i(28),i={Scope:(i=i(1)).Scope,create:i.create,find:i.find,query:i.query,register:i.register,Container:n.default,Format:r.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:h.default,Attributor:{Attribute:u.default,Class:d.default,Style:f.default,Store:p.default}};e.default=i},function(t,n,e){function r(t,e){var i;if(void 0===e&&(e=c.ANY),"string"==typeof t)i=f[t]||h[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)i=f.text;else if("number"==typeof t)t&c.LEVEL&c.BLOCK?i=f.block:t&c.LEVEL&c.INLINE&&(i=f.inline);else if(t instanceof HTMLElement){var n,r=(t.getAttribute("class")||"").split(/\s+/);for(n in r)if(i=u[r[n]])break;i=i||d[t.tagName]}return null!=i&&e&c.LEVEL&i.scope&&e&c.TYPE&i.scope?i:null}var o,i,a=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(n,"__esModule",{value:!0}),a(l,i=Error),l);function l(t){var e=this;return(e=i.call(this,t="[Parchment] "+t)||this).message=t,e.name=e.constructor.name,e}n.ParchmentError=s;var c,h={},u={},d={},f={};n.DATA_KEY="__blot",(a=c=n.Scope||(n.Scope={}))[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY",n.create=function(t,e){var i=r(t);if(null==i)throw new s("Unable to create "+t+" blot");return new i(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(e),e)},n.find=function t(e,i){return void 0===i&&(i=!1),null==e?null:null!=e[n.DATA_KEY]?e[n.DATA_KEY].blot:i?t(e.parentNode,i):null},n.query=r,n.register=function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(1<t.length)return t.map(function(t){return e(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new s("Invalid definition");if("abstract"===n.blotName)throw new s("Cannot register abstract class");return"string"==typeof(f[n.blotName||n.attrName]=n).keyName?h[n.keyName]=n:(null!=n.className&&(u[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(function(t){null!=d[t]&&null!=n.className||(d[t]=n)}))),n}},function(t,e){function h(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===o.call(t)}function u(t){if(t&&"[object Object]"===o.call(t)){var e,i=r.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(!t.constructor||i||n){for(e in t);return void 0===e||r.call(t,e)}}}function d(t,e){i&&"__proto__"===e.name?i(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue}function f(t,e){if("__proto__"===e){if(!r.call(t,e))return;if(n)return n(t,e).value}return t[e]}var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor;t.exports=function t(){var e,i,n,r,o,a=arguments[0],s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},s=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});s<l;++s)if(null!=(e=arguments[s]))for(i in e)o=f(a,i),n=f(e,i),a!==n&&(c&&n&&(u(n)||(r=h(n)))?(o=r?(r=!1,o&&h(o)?o:[]):o&&u(o)?o:{},d(a,{name:i,newValue:t(c,o,n)})):void 0!==n&&d(a,{name:i,newValue:n}));return a}},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==t||("function"==typeof t.formats&&(e=(0,h.default)(e,t.formats())),null==t.parent)||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:s(t.parent,e)}function l(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:l(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}function c(t,e,i){e&&b(t.prototype,e),i&&b(t,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var h=n(i(2)),u=n(i(4)),d=n(i(0)),f=n(i(14)),p=n(i(5)),i=n(i(8)),g=(a(m,d.default.Embed),c(m,[{key:"attach",value:function(){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"attach",this).call(this),this.attributes=new d.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new u.default).insert(this.value(),(0,h.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){null!=(t=d.default.query(t,d.default.Scope.BLOCK_ATTRIBUTE))&&this.attributes.attribute(t,e)}},{key:"formatAt",value:function(t,e,i,n){this.format(i,n)}},{key:"insertAt",value:function(t,e,i){var n;"string"==typeof e&&e.endsWith("\n")?(n=d.default.create(v.blotName),this.parent.insertBefore(n,0===t?this:this.next),n.insertAt(0,e.slice(0,-1))):l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,t,e,i)}}]),m);function m(){return r(this,m),o(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}function b(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}g.scope=d.default.Scope.BLOCK_BLOT,a(y,d.default.Block),c(y,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(d.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),s(e))},new u.default).insert("\n",s(this))),this.cache.delta}},{key:"deleteAt",value:function(t,e){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"deleteAt",this).call(this,t,e),this.cache={}}},{key:"formatAt",value:function(t,e,i,n){e<=0||(d.default.query(i,d.default.Scope.BLOCK)?t+e===this.length()&&this.format(i,n):l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,t,Math.min(e,this.length()-t-1),i,n),this.cache={})}},{key:"insertAt",value:function(t,e,i){if(null!=i)return l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,t,e,i);var n;0!==e.length&&(0<(e=(i=e.split("\n")).shift()).length&&(t<this.length()-1||null==this.children.tail?l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),e):this.children.tail.insertAt(this.children.tail.length(),e),this.cache={}),n=this,i.reduce(function(t,e){return(n=n.split(t,!0)).insertAt(0,e),e.length},t+e.length))}},{key:"insertBefore",value:function(t,e){var i=this.children.head;l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,t,e),i instanceof f.default&&i.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,e){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"moveChildren",this).call(this,t,e),this.cache={}}},{key:"optimize",value:function(t){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var e,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return i&&(0===t||t>=this.length()-1)?(e=this.clone(),0===t?(this.parent.insertBefore(e,this),this):(this.parent.insertBefore(e,this.next),e)):(e=l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"split",this).call(this,t,i),this.cache={},e)}}]);var v=y;function y(t){return r(this,y),(t=o(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,t))).cache={},t}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[p.default,d.default.Embed,i.default],e.bubbleFormats=s,e.BlockEmbed=g,e.default=v},function(t,e,i){function h(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}var l=i(54),u=i(12),n=i(2),d=i(20),r=String.fromCharCode(0);h.prototype.insert=function(t,e){var i={};return 0===t.length?this:(i.insert=t,null!=e&&"object"==typeof e&&0<Object.keys(e).length&&(i.attributes=e),this.push(i))},h.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},h.prototype.retain=function(t,e){return t<=0?this:(t={retain:t},null!=e&&"object"==typeof e&&0<Object.keys(e).length&&(t.attributes=e),this.push(t))},h.prototype.push=function(t){var e=this.ops.length,i=this.ops[e-1];if(t=n(!0,{},t),"object"==typeof i){if("number"==typeof t.delete&&"number"==typeof i.delete)return this.ops[e-1]={delete:i.delete+t.delete},this;if("number"==typeof i.delete&&null!=t.insert&&"object"!=typeof(i=this.ops[--e-1]))return this.ops.unshift(t),this;if(u(t.attributes,i.attributes)){if("string"==typeof t.insert&&"string"==typeof i.insert)return this.ops[e-1]={insert:i.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof i.retain)return this.ops[e-1]={retain:i.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},h.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},h.prototype.filter=function(t){return this.ops.filter(t)},h.prototype.forEach=function(t){this.ops.forEach(t)},h.prototype.map=function(t){return this.ops.map(t)},h.prototype.partition=function(e){var i=[],n=[];return this.forEach(function(t){(e(t)?i:n).push(t)}),[i,n]},h.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},h.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+d.length(e):e.delete?t-e.delete:t},0)},h.prototype.length=function(){return this.reduce(function(t,e){return t+d.length(e)},0)},h.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var i,n=[],r=d.iterator(this.ops),o=0;o<e&&r.hasNext();)o<t?i=r.next(t-o):(i=r.next(e-o),n.push(i)),o+=d.length(i);return new h(n)},h.prototype.compose=function(t){var e=d.iterator(this.ops),i=d.iterator(t.ops),n=[];if(null!=(t=i.peek())&&"number"==typeof t.retain&&null==t.attributes){for(var r=t.retain;"insert"===e.peekType()&&e.peekLength()<=r;)r-=e.peekLength(),n.push(e.next());0<t.retain-r&&i.next(t.retain-r)}for(var o=new h(n);e.hasNext()||i.hasNext();)if("insert"===i.peekType())o.push(i.next());else if("delete"===e.peekType())o.push(e.next());else{var a=Math.min(e.peekLength(),i.peekLength()),s=e.next(a),l=i.next(a);if("number"==typeof l.retain){var c={};if("number"==typeof s.retain?c.retain=a:c.insert=s.insert,(a=d.attributes.compose(s.attributes,l.attributes,"number"==typeof s.retain))&&(c.attributes=a),o.push(c),!i.hasNext()&&u(o.ops[o.ops.length-1],c))return a=new h(e.rest()),o.concat(a).chop()}else"number"==typeof l.delete&&"number"==typeof s.retain&&o.push(l)}return o.chop()},h.prototype.concat=function(t){var e=new h(this.ops.slice());return 0<t.ops.length&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},h.prototype.diff=function(i,t){var o,e,a,s;return this.ops===i.ops?new h:(e=[this,i].map(function(e){return e.map(function(t){if(null!=t.insert)return"string"==typeof t.insert?t.insert:r;throw new Error("diff() called "+(e===i?"on":"with")+" non-document")}).join("")}),o=new h,e=l(e[0],e[1],t),a=d.iterator(this.ops),s=d.iterator(i.ops),e.forEach(function(t){for(var e=t[1].length;0<e;){var i=0;switch(t[0]){case l.INSERT:i=Math.min(s.peekLength(),e),o.push(s.next(i));break;case l.DELETE:i=Math.min(e,a.peekLength()),a.next(i),o.delete(i);break;case l.EQUAL:var i=Math.min(a.peekLength(),s.peekLength(),e),n=a.next(i),r=s.next(i);u(n.insert,r.insert)?o.retain(i,d.attributes.diff(n.attributes,r.attributes)):o.push(r).delete(i)}e-=i}}),o.chop())},h.prototype.eachLine=function(t,e){e=e||"\n";for(var i=d.iterator(this.ops),n=new h,r=0;i.hasNext();){if("insert"!==i.peekType())return;var o=i.peek(),a=d.length(o)-i.peekLength();if((o="string"==typeof o.insert?o.insert.indexOf(e,a)-a:-1)<0)n.push(i.next());else if(0<o)n.push(i.next(o));else{if(!1===t(n,i.next(1).attributes||{},r))return;r+=1,n=new h}}0<n.length()&&t(n,{},r)},h.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var i=d.iterator(this.ops),n=d.iterator(t.ops),r=new h;i.hasNext()||n.hasNext();)if("insert"!==i.peekType()||!e&&"insert"===n.peekType())if("insert"===n.peekType())r.push(n.next());else{var o=Math.min(i.peekLength(),n.peekLength()),a=i.next(o),s=n.next(o);if(a.delete)continue;s.delete?r.push(s):r.retain(o,d.attributes.transform(a.attributes,s.attributes,e))}else r.retain(d.length(i.next()));return r.chop()},h.prototype.transformPosition=function(t,e){e=!!e;for(var i=d.iterator(this.ops),n=0;i.hasNext()&&n<=t;){var r=i.peekLength(),o=i.peekType();i.next(),"delete"!==o?("insert"===o&&(n<t||!e)&&(t+=r),n+=r):t-=Math.min(r,t-n)}return t},t.exports=h},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function a(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:a(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(8)),s=n(i(0));function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(i=(t=>{function o(){var t;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");if(t=(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var e=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),t=[{key:"compare",value:function(t,e){var i=o.order.indexOf(t),n=o.order.indexOf(e);return 0<=i||0<=n?i-n:t===e?0:t<e?-1:1}}],l((e=o).prototype,[{key:"formatAt",value:function(t,e,i,n){var r;o.compare(this.statics.blotName,i)<0&&s.default.query(i,s.default.Scope.BLOT)?(r=this.isolate(t,e),n&&r.wrap(i,n)):a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"formatAt",this).call(this,t,e,i,n)}},{key:"optimize",value:function(t){a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"optimize",this).call(this,t),this.parent instanceof o&&0<o.compare(this.statics.blotName,this.parent.statics.blotName)&&(t=this.parent.isolate(this.offset(),this.length()),this.moveChildren(t),t.wrap(this))}}]),l(e,t),o})(s.default.Inline)).allowedChildren=[i,s.default.Embed,r.default],i.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=i},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t,i){if((i=(0,x.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},i)).theme&&i.theme!==S.DEFAULTS.theme){if(i.theme=S.import("themes/"+i.theme),null==i.theme)throw new Error("Invalid theme "+i.theme+". Did you register it?")}else i.theme=k.default;[t=(0,x.default)(!0,{},i.theme.DEFAULTS),i].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var e=Object.keys(t.modules).concat(Object.keys(i.modules)).reduce(function(t,e){var i=S.import("modules/"+e);return null==i?A.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=i.DEFAULTS||{},t},{});return null!=i.modules&&i.modules.toolbar&&i.modules.toolbar.constructor!==Object&&(i.modules.toolbar={container:i.modules.toolbar}),i=(0,x.default)(!0,{},S.DEFAULTS,{modules:e},t,i),["bounds","container","scrollingContainer"].forEach(function(t){"string"==typeof i[t]&&(i[t]=document.querySelector(i[t]))}),i.modules=Object.keys(i.modules).reduce(function(t,e){return i.modules[e]&&(t[e]=i.modules[e]),t},{}),i}function s(t,e,i,n){var r,o;return this.options.strict&&!this.isEnabled()&&e===g.default.sources.USER?new f.default:(o=null==i?null:this.getSelection(),r=this.editor.delta,t=t(),null!=o&&(!0===i&&(i=o.index),null==n?o=c(o,t,e):0!==n&&(o=c(o,i,n,e)),this.setSelection(o,g.default.sources.SILENT)),0<t.length()&&(i=[g.default.events.TEXT_CHANGE,t,r,e],(n=this.emitter).emit.apply(n,[g.default.events.EDITOR_CHANGE].concat(i)),e!==g.default.sources.SILENT)&&(o=this.emitter).emit.apply(o,i),t)}function l(t,e,i,n,r){var o={};return"number"==typeof t.index&&"number"==typeof t.length?("number"!=typeof e&&(r=n,n=i,i=e),e=t.length,t=t.index):"number"!=typeof e&&(r=n,n=i,i=e,e=0),"object"===(void 0===i?"undefined":h(i))?(o=i,r=n):"string"==typeof i&&(null!=n?o[i]=n:r=i),[t,e,o,r=r||g.default.sources.API]}function c(t,e,i,n){var r,o;return null==t?null:(r=void 0,o=(e instanceof f.default?(o=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,n!==g.default.sources.USER)}),r=(o=u(o,2))[0],o):(o=[t.index,t.index+t.length].map(function(t){return t<e||t===e&&n===g.default.sources.USER?t:0<=i?t+i:Math.max(e,t+i)}),r=(t=u(o,2))[0],t))[1],new v.Range(r,o-r))}function r(t,e,i){e&&d(t.prototype,e),i&&d(t,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")};function d(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i(53);var f=n(i(4)),p=n(i(57)),g=n(i(9)),m=n(i(7)),b=n(i(0)),v=i(22),y=n(v),x=n(i(2)),w=n(i(10)),k=n(i(32)),A=(0,w.default)("quill"),S=(r(C,null,[{key:"debug",value:function(t){w.default.level(t=!0===t?"log":t)}},{key:"find",value:function(t){return t.__quill||b.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&A.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(e,i){var t,n=this,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];"string"!=typeof e?"string"==typeof(t=e.attrName||e.blotName)?this.register("formats/"+t,e,i):Object.keys(e).forEach(function(t){n.register(t,e[t],i)}):(null==this.imports[e]||r||A.warn("Overwriting "+e+" with",i),this.imports[e]=i,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==i.blotName?b.default.register(i):e.startsWith("modules")&&"function"==typeof i.register&&i.register())}}]),r(C,[{key:"addContainer",value:function(t){var e,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t&&(e=t,(t=document.createElement("div")).classList.add(e)),this.container.insertBefore(t,i),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,i){var n=this,r=l(t,e,i),r=u(r,4);return t=r[0],e=r[1],s.call(this,function(){return n.editor.deleteText(t,e)},i=r[3],t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(i,n){var r=this,t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return s.call(this,function(){var t=r.getSelection(!0),e=new f.default;if(null!=t){if(b.default.query(i,b.default.Scope.BLOCK))e=r.editor.formatLine(t.index,t.length,o({},i,n));else{if(0===t.length)return r.selection.format(i,n),e;e=r.editor.formatText(t.index,t.length,o({},i,n))}r.setSelection(t,g.default.sources.SILENT)}return e},t)}},{key:"formatLine",value:function(t,e,i,n,r){var o,a=this,i=l(t,e,i,n,r),n=u(i,4);return t=n[0],e=n[1],o=n[2],s.call(this,function(){return a.editor.formatLine(t,e,o)},r=n[3],t,0)}},{key:"formatText",value:function(t,e,i,n,r){var o,a=this,i=l(t,e,i,n,r),n=u(i,4);return t=n[0],e=n[1],o=n[2],s.call(this,function(){return a.editor.formatText(t,e,o)},r=n[3],t,0)}},{key:"getBounds",value:function(t){var t="number"==typeof t?this.selection.getBounds(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(t.index,t.length),e=this.container.getBoundingClientRect();return{bottom:t.bottom-e.top,height:t.height,left:t.left-e.left,right:t.right-e.left,top:t.top-e.top,width:t.width}}},{key:"getContents",value:function(){var t=l(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-e),e=(t=u(t,2))[0];return this.editor.getContents(e,t[1])}},{key:"getFormat",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof t?this.editor.getFormat(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return 0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=l(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-e),e=(t=u(t,2))[0];return this.editor.getText(e,t[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,e,i){var n=this,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:C.sources.API;return s.call(this,function(){return n.editor.insertEmbed(t,e,i)},r,t)}},{key:"insertText",value:function(t,e,i,n,r){var o,a=this,i=l(t,0,i,n,r),n=u(i,4);return t=n[0],o=n[2],s.call(this,function(){return a.editor.insertText(t,e,o)},r=n[3],t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,i){this.clipboard.dangerouslyPasteHTML(t,e,i)}},{key:"removeFormat",value:function(t,e,i){var n=this,r=l(t,e,i),r=u(r,4);return t=r[0],e=r[1],s.call(this,function(){return n.editor.removeFormat(t,e)},i=r[3],t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(n){var r=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return s.call(this,function(){n=new f.default(n);var t=r.getLength(),t=r.editor.deleteText(0,t),e=r.editor.applyDelta(n),i=e.ops[e.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(r.editor.deleteText(r.getLength()-1,1),e.delete(1)),t.compose(e)},t)}},{key:"setSelection",value:function(t,e,i){var n;null==t?this.selection.setRange(null,e||C.sources.API):(n=l(t,e,i),t=(n=u(n,4))[0],i=n[3],this.selection.setRange(new v.Range(t,e=n[1]),i),i!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,t=(new f.default).insert(t);return this.setContents(t,e)}},{key:"update",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return s.call(this,function(){return t=new f.default(t),e.editor.applyDelta(t,i)},i,!0)}}]),C);function C(t){var r=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof C))throw new TypeError("Cannot call a class as a function");if(this.options=a(t,e),this.container=this.options.container,null==this.container)return A.error("Invalid Quill container",t);this.options.debug&&C.debug(this.options.debug),e=this.container.innerHTML.trim(),this.container.classList.add("ql-container"),this.container.innerHTML="",(this.container.__quill=this).root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=b.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new p.default(this.scroll),this.selection=new y.default(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.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(t){t===g.default.events.TEXT_CHANGE&&r.root.classList.toggle("ql-blank",r.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(t,e){var i=r.selection.lastRange,n=i&&0===i.length?i.index:void 0;s.call(r,function(){return r.editor.update(null,e,n)},t)}),t=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+e+"<p><br></p></div>"),this.setContents(t),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=g.default.events,S.sources=g.default.sources,S.version="1.3.7",S.imports={delta:f.default,parchment:b.default,"core/module":m.default,"core/theme":k.default},e.expandConfig=a,e.overload=l,e.default=S},function(t,e,i){function n(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this.quill=t,this.options=e}Object.defineProperty(e,"__esModule",{value:!0}),n.DEFAULTS={},e.default=n},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),i=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t),e})(((i=i(0))&&i.__esModule?i:{default:i}).default.Text),e.default=i},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(58)),s=(0,n(i(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){t.__quill&&t.__quill.emitter&&(t=t.__quill.emitter).handleDOM.apply(t,e)})})}),(i=(t=>{function e(){var t;if(this instanceof e)return(t=((t,e)=>{if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")})(this,(e.__proto__||Object.getPrototypeOf(e)).call(this))).listeners={},t.on("error",s.error),t;throw new TypeError("Cannot call a class as a function")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t);for(var n=(i=e).prototype,r=[{key:"emit",value:function(){s.log.apply(s,arguments),function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(i){for(var t=arguments.length,n=Array(1<t?t-1:0),e=1;e<t;e++)n[e-1]=arguments[e];(this.listeners[i.type]||[]).forEach(function(t){var e=t.node,t=t.handler;i.target!==e&&!e.contains(i.target)||t.apply(void 0,[i].concat(n))})}},{key:"listenDOM",value:function(t,e,i){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:i})}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return e})(r.default)).events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},i.sources={API:"api",SILENT:"silent",USER:"user"},e.default=i},function(t,e,i){function n(t){if(o.indexOf(t)<=o.indexOf(a)){for(var e,i=arguments.length,n=Array(1<i?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(e=console)[t].apply(e,n)}}function r(i){return o.reduce(function(t,e){return t[e]=n.bind(console,e,i),t},{})}Object.defineProperty(e,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";n.level=r.level=function(t){a=t},e.default=r},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(1);function r(t,e,i){void 0===i&&(i={}),this.attrName=t,this.keyName=e,t=n.Scope.TYPE&n.Scope.ATTRIBUTE,null!=i.scope?this.scope=i.scope&n.Scope.LEVEL|t:this.scope=n.Scope.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.whitelist)}r.keys=function(t){return[].map.call(t.attributes,function(t){return t.name})},r.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},r.prototype.canAdd=function(t,e){return null!=n.query(t,n.Scope.BLOT&(this.scope|n.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?-1<this.whitelist.indexOf(e.replace(/["']/g,"")):-1<this.whitelist.indexOf(e)))},r.prototype.remove=function(t){t.removeAttribute(this.keyName)},r.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},e.default=r},function(t,e,i){function s(t){return null==t}function l(t){return t&&"object"==typeof t&&"number"==typeof t.length&&"function"==typeof t.copy&&"function"==typeof t.slice&&!(0<t.length&&"number"!=typeof t[0])}var c=Array.prototype.slice,h=i(55),u=i(56),d=t.exports=function(t,e,i){return i=i||{},t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?i.strict?t===e:t==e:((t,e,i)=>{var n,r;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(u(t))return!!u(e)&&(t=c.call(t),e=c.call(e),d(t,e,i));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}try{var o=h(t),a=h(e)}catch(t){return!1}if(o.length!=a.length)return!1;for(o.sort(),a.sort(),n=o.length-1;0<=n;n--)if(o[n]!=a[n])return!1;for(n=o.length-1;0<=n;n--)if(r=o[n],!d(t[r],e[r],i))return!1;return typeof t==typeof e})(t,e,i))}},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:s(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}function l(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var c,h=n(i(4)),u=n(i(0)),d=n(i(3)),f=n(i(5)),p=n(i(8));function g(){return r(this,g),o(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}function m(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(){return r(this,b),o(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}a(g,f.default),(i=g).blotName="code",i.tagName="CODE",a(b,d.default),c=[{key:"create",value:function(t){return(t=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,t)).setAttribute("spellcheck",!1),t}},{key:"formats",value:function(){return!0}}],m((d=b).prototype,[{key:"delta",value:function(){var i=this,t=this.domNode.textContent;return(t=t.endsWith("\n")?t.slice(0,-1):t).split("\n").reduce(function(t,e){return t.insert(e).insert("\n",i.formats())},new h.default)}},{key:"format",value:function(t,e){var i;t===this.statics.blotName&&e||(null!=(i=l(i=this.descendant(p.default,this.length()-1),1)[0])&&i.deleteAt(i.length()-1,1),s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,t,e))}},{key:"formatAt",value:function(t,e,i,n){var r,o,a,s;0===e||null==u.default.query(i,u.default.Scope.BLOCK)||i===this.statics.blotName&&n===this.statics.formats(this.domNode)||(o=this.newlineIndex(t))<0||t+e<=o||(r=this.newlineIndex(t,!0)+1,s=(a=this.isolate(r,o=o-r+1)).next,a.format(i,n),s instanceof b&&s.formatAt(0,t-r+e-o,i,n))}},{key:"insertAt",value:function(t,e,i){null==i&&(t=l(i=this.descendant(p.default,t),2))[0].insertAt(t[1],e)}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e;return 1<arguments.length&&void 0!==arguments[1]&&arguments[1]?this.domNode.textContent.slice(0,t).lastIndexOf("\n"):-1<(e=this.domNode.textContent.slice(t).indexOf("\n"))?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,t);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===e.statics.formats(e.domNode)&&(e.optimize(t),e.moveChildren(this),e.remove())}},{key:"replace",value:function(t){s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()})}}]),m(d,c),(f=b).blotName="code-block",f.tagName="PRE",f.TAB=" ",e.Code=i,e.default=f},function(t,e,i){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),(i=(t=>{function i(){var t;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");if(t=(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var e=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),t=[{key:"value",value:function(){}}],n((e=i).prototype,[{key:"insertInto",value:function(t,e){0===t.children.length?function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0}(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"insertInto",this).call(this,t,e):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}]),n(e,t),i})(((i=i(0))&&i.__esModule?i:{default:i}).default.Embed)).blotName="break",i.tagName="BR",e.default=i},function(t,e,i){function n(t,e){var i=document.createElement("a"),t=(i.href=t,i.href.slice(0,i.href.indexOf(":")));return-1<e.indexOf(t)}function r(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:r(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0,(i=(t=>{function i(){var t;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");if(t=(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var e=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),t=[{key:"create",value:function(t){var e=r(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,t);return t=this.sanitize(t),e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return n(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}],o((e=i).prototype,[{key:"format",value:function(t,e){if(t!==this.statics.blotName||!e)return r(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,t,e);e=this.constructor.sanitize(e),this.domNode.setAttribute("href",e)}}]),o(e,t),i})(((i=i(5))&&i.__esModule?i:{default:i}).default)).blotName="link",i.tagName="A",i.SANITIZED_URL="about:blank",i.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=i,e.sanitize=n},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=n(i(25)),s=n(i(106)),l=0,i=(((t,e)=>{for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}})(c.prototype,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),r(this.label,"aria-expanded"),r(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,i=document.createElement("span");return i.tabIndex="0",i.setAttribute("role","button"),i.classList.add("ql-picker-item"),t.hasAttribute("value")&&i.setAttribute("data-value",t.getAttribute("value")),t.textContent&&i.setAttribute("data-label",t.textContent),i.addEventListener("click",function(){e.selectItem(i,!0)}),i.addEventListener("keydown",function(t){switch(t.keyCode){case a.default.keys.ENTER:e.selectItem(i,!0),t.preventDefault();break;case a.default.keys.ESCAPE:e.escape(),t.preventDefault()}}),i}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=s.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var i=this,n=document.createElement("span");n.classList.add("ql-picker-options"),n.setAttribute("aria-hidden","true"),n.tabIndex="-1",n.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",n.id),this.options=n,[].slice.call(this.select.options).forEach(function(t){var e=i.buildItem(t);n.appendChild(e),!0===t.selected&&i.selectItem(e)}),this.container.appendChild(n)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout(function(){return t.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=this.container.querySelector(".ql-selected");t!==i&&(null!=i&&i.classList.remove("ql-selected"),null!=t)&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e)&&("function"==typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"==typeof Event?"undefined":o(Event))&&((i=document.createEvent("Event")).initEvent("change",!0,!0),this.select.dispatchEvent(i)),this.close())}},{key:"update",value:function(){var t=void 0,e=(-1<this.select.selectedIndex?(e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex],t=this.select.options[this.select.selectedIndex],this.selectItem(e)):this.selectItem(null),null!=t&&t!==this.select.querySelector("option[selected]"));this.label.classList.toggle("ql-active",e)}}]),c);function c(t){var e=this;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){e.togglePicker()}),this.label.addEventListener("keydown",function(t){switch(t.keyCode){case a.default.keys.ENTER:e.togglePicker();break;case a.default.keys.ESCAPE:e.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}e.default=i},function(t,e,i){function o(e){var i=c.find(e);if(null==i)try{i=c.create(e)}catch(t){i=c.create(c.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(t){i.domNode.appendChild(t)}),e.parentNode&&e.parentNode.replaceChild(i.domNode,e),i.attach()}return i}var n,r,a=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),i(47)),l=i(27),c=i(1),i=(a(h,r=l.default),h.prototype.appendChild=function(t){this.insertBefore(t)},h.prototype.attach=function(){r.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},h.prototype.build=function(){var i=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var e=o(t);i.insertBefore(e,i.children.head||void 0)}catch(t){if(!(t instanceof c.ParchmentError))throw t}})},h.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,i){t.deleteAt(e,i)})},h.prototype.descendant=function(t,e){var i=(e=this.children.find(e))[0],e=e[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,e]:i instanceof h?i.descendant(t,e):[null,-1]},h.prototype.descendants=function(n,t,e){void 0===t&&(t=0),void 0===e&&(e=Number.MAX_VALUE);var r=[],o=e;return this.children.forEachAt(t,e,function(t,e,i){(null==n.blotName&&n(t)||null!=n.blotName&&t instanceof n)&&r.push(t),t instanceof h&&(r=r.concat(t.descendants(n,e,o))),o-=i}),r},h.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),r.prototype.detach.call(this)},h.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,i){t.formatAt(e,i,n,r)})},h.prototype.insertAt=function(t,e,i){var n=(t=this.children.find(t))[0];n?n.insertAt(t[1],e,i):(n=null==i?c.create("text",e):c.create(e,i),this.appendChild(n))},h.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new c.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},h.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},h.prototype.moveChildren=function(e,i){this.children.forEach(function(t){e.insertBefore(t,i)})},h.prototype.optimize=function(t){var e;r.prototype.optimize.call(this,t),0===this.children.length&&(null!=this.statics.defaultChild?(e=c.create(this.statics.defaultChild),this.appendChild(e),e.optimize(t)):this.remove())},h.prototype.path=function(t,e){var i=(n=this.children.find(t,e=void 0!==e&&e))[0],n=n[1],t=[[this,t]];return i instanceof h?t.concat(i.path(n,e)):(null!=i&&t.push([i,n]),t)},h.prototype.removeChild=function(t){this.children.remove(t)},h.prototype.replace=function(t){t instanceof h&&t.moveChildren(this),r.prototype.replace.call(this,t)},h.prototype.split=function(t,n){if(!(n=void 0!==n&&n)){if(0===t)return this;if(t===this.length())return this.next}var r=this.clone();return this.parent.insertBefore(r,this.next),this.children.forEachAt(t,this.length(),function(t,e,i){t=t.split(e,n),r.appendChild(t)}),r},h.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},h.prototype.update=function(t,e){var i=this,n=[],r=[];t.forEach(function(t){t.target===i.domNode&&"childList"===t.type&&(n.push.apply(n,t.addedNodes),r.push.apply(r,t.removedNodes))}),r.forEach(function(t){null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY||null==(t=c.find(t))||null!=t.domNode.parentNode&&t.domNode.parentNode!==i.domNode||t.detach()}),n.filter(function(t){return t.parentNode==i.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=c.find(t.nextSibling)),(t=o(t)).next==e&&null!=t.next||(null!=t.parent&&t.parent.removeChild(i),i.insertBefore(t,e||void 0))})},h);function h(t){return(t=r.call(this,t)||this).build(),t}e.default=i},function(t,e,i){var n,r,o=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),i(11)),s=i(28),l=i(17),c=i(1),i=(o(h,r=l.default),h.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},h.prototype.format=function(t,e){var i=c.query(t);i instanceof a.default?this.attributes.attribute(i,e):!e||null==i||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e)},h.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},h.prototype.replaceWith=function(t,e){return t=r.prototype.replaceWith.call(this,t,e),this.attributes.copy(t),t},h.prototype.update=function(t,e){var i=this;r.prototype.update.call(this,t,e),t.some(function(t){return t.target===i.domNode&&"attributes"===t.type})&&this.attributes.build()},h.prototype.wrap=function(t,e){return(t=r.prototype.wrap.call(this,t,e))instanceof h&&t.statics.scope===this.statics.scope&&this.attributes.move(t),t},h);function h(t){return(t=r.call(this,t)||this).attributes=new s.default(t.domNode),t}e.default=i},function(t,e,i){var n,r,o=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),i(27)),i=i(1),a=(o(s,r=a.default),s.value=function(t){return!0},s.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},s.prototype.position=function(t,e){var i=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return 0<t&&(i+=1),[this.parent.domNode,i]},s.prototype.value=function(){var t={};return t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},s.scope=i.Scope.INLINE_BLOT,s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=a},function(t,e,i){function n(t){this.ops=t,this.index=0,this.offset=0}var r=i(12),o=i(2),a={attributes:{compose:function(t,e,i){"object"!=typeof t&&(t={});var n,r=o(!0,{},e="object"!=typeof e?{}:e);for(n in i||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{})),t)void 0!==t[n]&&void 0===e[n]&&(r[n]=t[n]);return 0<Object.keys(r).length?r:void 0},diff:function(i,n){"object"!=typeof i&&(i={}),"object"!=typeof n&&(n={});var t=Object.keys(i).concat(Object.keys(n)).reduce(function(t,e){return r(i[e],n[e])||(t[e]=void 0===n[e]?null:n[e]),t},{});return 0<Object.keys(t).length?t:void 0},transform:function(i,n,t){return"object"!=typeof i?n:"object"==typeof n?t?(t=Object.keys(n).reduce(function(t,e){return void 0===i[e]&&(t[e]=n[e]),t},{}),0<Object.keys(t).length?t:void 0):n:void 0}},iterator:function(t){return new n(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};n.prototype.hasNext=function(){return this.peekLength()<1/0},n.prototype.next=function(t){t=t||1/0;var e,i,n=this.ops[this.index];return n?(e=this.offset,(i=a.length(n))-e<=t?(t=i-e,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof n.delete?{delete:t}:(i={},n.attributes&&(i.attributes=n.attributes),"number"==typeof n.retain?i.retain=t:"string"==typeof n.insert?i.insert=n.insert.substr(e,t):i.insert=n.insert,i)):{retain:1/0}},n.prototype.peek=function(){return this.ops[this.index]},n.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},n.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},n.prototype.rest=function(){var t,e,i,n;return this.hasNext()?0===this.offset?this.ops.slice(this.index):(t=this.offset,e=this.index,i=this.next(),n=this.ops.slice(this.index),this.offset=t,this.index=e,[i].concat(n)):[]},t.exports=a},function(t,e){var i=(()=>{function y(t,e){return null!=e&&t instanceof e}function x(t,f,e,p,g){"object"==typeof f&&(e=f.depth,p=f.prototype,g=f.includeNonEnumerable,f=f.circular);var m=[],b=[],v="undefined"!=typeof Buffer;return void 0===f&&(f=!0),function n(t,r){if(null===t)return null;if(0===r)return t;var i,e,o;if("object"!=typeof t)return t;if(y(t,k))i=new k;else if(y(t,A))i=new A;else if(y(t,S))i=new S(function(e,i){t.then(function(t){e(n(t,r-1))},function(t){i(n(t,r-1))})});else if(x.__isArray(t))i=[];else if(x.__isRegExp(t))i=new RegExp(t.source,w(t)),t.lastIndex&&(i.lastIndex=t.lastIndex);else if(x.__isDate(t))i=new Date(t.getTime());else{if(v&&Buffer.isBuffer(t))return i=Buffer.allocUnsafe?Buffer.allocUnsafe(t.length):new Buffer(t.length),t.copy(i),i;y(t,Error)?i=Object.create(t):void 0===p?(e=Object.getPrototypeOf(t),i=Object.create(e)):(i=Object.create(p),e=p)}if(f){var a=m.indexOf(t);if(-1!=a)return b[a];m.push(t),b.push(i)}for(l in y(t,k)&&t.forEach(function(t,e){e=n(e,r-1),t=n(t,r-1),i.set(e,t)}),y(t,A)&&t.forEach(function(t){t=n(t,r-1),i.add(t)}),t)(o=e?Object.getOwnPropertyDescriptor(e,l):o)&&null==o.set||(i[l]=n(t[l],r-1));if(Object.getOwnPropertySymbols)for(var s=Object.getOwnPropertySymbols(t),l=0;l<s.length;l++){var c=s[l];(u=Object.getOwnPropertyDescriptor(t,c))&&!u.enumerable&&!g||(i[c]=n(t[c],r-1),u.enumerable)||Object.defineProperty(i,c,{enumerable:!1})}if(g)for(var h=Object.getOwnPropertyNames(t),l=0;l<h.length;l++){var u,d=h[l];(u=Object.getOwnPropertyDescriptor(t,d))&&u.enumerable||(i[d]=n(t[d],r-1),Object.defineProperty(i,d,{enumerable:!1}))}return i}(t,e=void 0===e?1/0:e)}function e(t){return Object.prototype.toString.call(t)}function w(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var k,A,S;try{k=Map}catch(y){k=function(){}}try{A=Set}catch(y){A=function(){}}try{S=Promise}catch(y){S=function(){}}return x.clonePrototype=function(t){var e;return null===t?null:((e=function(){}).prototype=t,new e)},x.__objToStr=e,x.__isDate=function(t){return"object"==typeof t&&"[object Date]"===e(t)},x.__isArray=function(t){return"object"==typeof t&&"[object Array]"===e(t)},x.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===e(t)},x.__getRegExpFlags=w,x})();"object"==typeof t&&t.exports&&(t.exports=i)},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){try{e.parentNode}catch(t){return}return e instanceof Text&&(e=e.parentNode),t.contains(e)}function s(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;r(this,s),this.index=t,this.length=e}function l(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var c=n(i(0)),h=n(i(21)),u=n(i(12)),d=n(i(9)),f=(0,n(i(10)).default)("quill:selection"),i=(((t,e)=>{for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}})(p.prototype,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0}),this.root.addEventListener("compositionend",function(){var t;e.composing=!1,e.cursor.parent&&(t=e.cursor.restore())&&setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(d.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var i=this.getNativeRange();if(null!=i&&i.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(i.start.node!==this.cursor.textNode){var n,r=c.default.find(i.start.node,!1);if(null==r)return;r instanceof c.default.Leaf?(n=r.split(i.start.offset),r.parent.insertBefore(this.cursor,n)):r.insertBefore(this.cursor,i.start.node),this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length(),n=(t=Math.min(t,n-1),void(i=Math.min(t+i,n-1)-t)),r=(o=l(o=this.scroll.leaf(t),2))[0],o=o[1];return null==r?null:(n=(e=l(e=r.position(o,!0),2))[0],o=e[1],e=document.createRange(),0<i?(e.setStart(n,o),r=(i=l(t=this.scroll.leaf(t+i),2))[0],o=i[1],null==r?null:(n=(i=l(t=r.position(o,!0),2))[0],e.setEnd(n,o=i[1]),e.getBoundingClientRect())):(t="left",i=void 0,n instanceof Text?(o<n.data.length?(e.setStart(n,o),e.setEnd(n,o+1)):(e.setStart(n,o-1),e.setEnd(n,o),t="right"),i=e.getBoundingClientRect()):(i=r.domNode.getBoundingClientRect(),0<o&&(t="right")),{bottom:i.top+i.height,height:i.height,left:i[t],right:i[t],top:i.top,width:0}))}},{key:"getNativeRange",value:function(){var t=document.getSelection();return null==t||t.rangeCount<=0||null==(t=t.getRangeAt(0))?null:(t=this.normalizeNative(t),f.info("getNativeRange",t),t)}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var r=this,e=[[t.start.node,t.start.offset]],t=(t.native.collapsed||e.push([t.end.node,t.end.offset]),e.map(function(t){var e=(t=l(t,2))[0],t=t[1],i=c.default.find(e,!0),n=i.offset(r.scroll);return 0===t?n:i instanceof c.default.Container?n+i.length():n+i.index(e,t)})),e=Math.min(Math.max.apply(Math,o(t)),this.scroll.length()-1);return new s(t=Math.min.apply(Math,[e].concat(o(t))),e-t)}},{key:"normalizeNative",value:function(t){return a(this.root,t.startContainer)&&(t.collapsed||a(this.root,t.endContainer))?([(t={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t}).start,t.end].forEach(function(t){for(var e=t.node,i=t.offset;!(e instanceof Text)&&0<e.childNodes.length;)if(e.childNodes.length>i)e=e.childNodes[i],i=0;else{if(e.childNodes.length!==i)break;i=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=i}),t):null}},{key:"rangeToNative",value:function(t){var i=this,t=t.collapsed?[t.index]:[t.index,t.index+t.length],n=[],r=this.scroll.length();return t.forEach(function(t,e){t=Math.min(r-1,t),t=(t=l(t=i.scroll.leaf(t),2))[0].position(t[1],0!==e),t=(e=l(t,2))[0],n.push(t,e[1])}),n=n.length<2?n.concat(n):n}},{key:"scrollIntoView",value:function(t){var e,i,n,r,o=this.lastRange;null!=o&&null!=(e=this.getBounds(o.index,o.length))&&(r=this.scroll.length()-1,n=i=l(this.scroll.line(Math.min(o.index,r)),1)[0],0<o.length&&(n=l(this.scroll.line(Math.min(o.index+o.length,r)),1)[0]),null!=i)&&null!=n&&(r=t.getBoundingClientRect(),e.top<r.top?t.scrollTop-=r.top-e.top:e.bottom>r.bottom&&(t.scrollTop+=e.bottom-r.bottom))}},{key:"setNativeRange",value:function(t,e){var i,n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:t,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:e,a=4<arguments.length&&void 0!==arguments[4]&&arguments[4];f.info("setNativeRange",t,e,r,o),(null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=r.parentNode)&&null!=(i=document.getSelection())&&(null!=t?(this.hasFocus()||this.root.focus(),null!=(n=(this.getNativeRange()||{}).native)&&!a&&t===n.startContainer&&e===n.startOffset&&r===n.endContainer&&o===n.endOffset||("BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==r.tagName&&(o=[].indexOf.call(r.parentNode.childNodes,r),r=r.parentNode),(a=document.createRange()).setStart(t,e),a.setEnd(r,o),i.removeAllRanges(),i.addRange(a))):(i.removeAllRanges(),this.root.blur(),document.body.focus()))}},{key:"setRange",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;"string"==typeof e&&(i=e,e=!1),f.info("setRange",t),null!=t?(t=this.rangeToNative(t),this.setNativeRange.apply(this,o(t).concat([e]))):this.setNativeRange(null),this.update(i)}},{key:"update",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,e=this.lastRange,i=(n=l(n=this.getRange(),2))[0],n=n[1];this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),(0,u.default)(e,this.lastRange)||(!this.composing&&null!=n&&n.native.collapsed&&n.start.node!==this.cursor.textNode&&this.cursor.restore(),i=[d.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(e),t],(n=this.emitter).emit.apply(n,[d.default.events.EDITOR_CHANGE].concat(i)),t!==d.default.sources.SILENT&&(e=this.emitter).emit.apply(e,i))}}]),p);function p(t,e){var n=this;r(this,p),this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){n.mouseDown||setTimeout(n.update.bind(n,d.default.sources.USER),1)}),this.emitter.on(d.default.events.EDITOR_CHANGE,function(t,e){t===d.default.events.TEXT_CHANGE&&0<e.length()&&n.update(d.default.sources.SILENT)}),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,function(){var t;n.hasFocus()&&null!=(t=n.getNativeRange())&&t.start.node!==n.cursor.textNode&&n.emitter.once(d.default.events.SCROLL_UPDATE,function(){try{n.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,function(t,e){var i;e.range&&(i=(e=e.range).startNode,n.setNativeRange(i,e.startOffset,e.endNode,e.endOffset))}),this.update(d.default.sources.SILENT)}e.Range=s,e.default=i},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(0)),o=n(i=i(3));(r=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t),e})(r.default.Container)).allowedChildren=[o.default,i.BlockEmbed,r],e.default=r},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var n=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t);for(var n=(i=e).prototype,r=[{key:"value",value:function(t){return(t=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t)).startsWith("rgb(")?"#"+(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join(""):t}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return e})((i=(i=i(0))&&i.__esModule?i:{default:i}).default.Attributor.Style),r=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),i=new n("color","color",{scope:i.default.Scope.INLINE});e.ColorAttributor=n,e.ColorClass=r,e.ColorStyle=i},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i){e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}function o(i,n){var t=i===_.keys.LEFT?"prefix":"suffix",e={key:i,shiftKey:n,altKey:null};return r(e,t,/^$/),r(e,"handler",function(t){var e=t.index,e=(i===_.keys.RIGHT&&(e+=t.length+1),this.quill.getLeaf(e));return!(g(e,1)[0]instanceof w.default.Embed&&(i===_.keys.LEFT?n?this.quill.setSelection(t.index-1,t.length+1,k.default.sources.USER):this.quill.setSelection(t.index-1,k.default.sources.USER):n?this.quill.setSelection(t.index,t.length+1,k.default.sources.USER):this.quill.setSelection(t.index+t.length+1,k.default.sources.USER),1))}),e}function a(t,e){var i,n,r;0===t.index||this.quill.getLength()<=1||(i=this.quill.getLine(t.index),i=g(i,1)[0],n={},0===e.offset&&(r=this.quill.getLine(t.index-1),null!=(r=g(r,1)[0]))&&1<r.length()&&(r=i.formats(),i=this.quill.getFormat(t.index-1,1),n=x.default.attributes.diff(r,i)||{}),r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1,this.quill.deleteText(t.index-r,r,k.default.sources.USER),0<Object.keys(n).length&&this.quill.formatLine(t.index-r,r,n,k.default.sources.USER),this.quill.focus())}function s(t,e){var i,n,r,o,a=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;t.index>=this.quill.getLength()-a||(r={},o=0,i=this.quill.getLine(t.index),i=g(i,1)[0],e.offset>=i.length()-1&&(e=this.quill.getLine(t.index+1),e=g(e,1)[0])&&(i=i.formats(),n=this.quill.getFormat(t.index,1),r=x.default.attributes.diff(i,n)||{},o=e.length()),this.quill.deleteText(t.index,a,k.default.sources.USER),0<Object.keys(r).length&&this.quill.formatLine(t.index+o-1,a,r,k.default.sources.USER))}function l(t){var e,i=this.quill.getLines(t),n={};1<i.length&&(e=i[0].formats(),i=i[i.length-1].formats(),n=x.default.attributes.diff(i,e)||{}),this.quill.deleteText(t,k.default.sources.USER),0<Object.keys(n).length&&this.quill.formatLine(t.index,1,n,k.default.sources.USER),this.quill.setSelection(t.index,k.default.sources.SILENT),this.quill.focus()}function c(t,i){var e=this,n=(0<t.length&&this.quill.scroll.deleteAt(t.index,t.length),Object.keys(i.format).reduce(function(t,e){return w.default.query(e,w.default.Scope.BLOCK)&&!Array.isArray(i.format[e])&&(t[e]=i.format[e]),t},{}));this.quill.insertText(t.index,"\n",n,k.default.sources.USER),this.quill.setSelection(t.index+1,k.default.sources.SILENT),this.quill.focus(),Object.keys(i.format).forEach(function(t){null!=n[t]||Array.isArray(i.format[t])||"link"!==t&&e.quill.format(t,i.format[t],k.default.sources.USER)})}function h(l){return{key:_.keys.TAB,shiftKey:!l,format:{"code-block":!0},handler:function(t){var i,n=w.default.query("code-block"),r=t.index,o=t.length,t=this.quill.scroll.descendant(n,r),a=(t=g(t,2))[0],s=t[1];null!=a&&(t=this.quill.getIndex(a),i=a.newlineIndex(s,!0)+1,t=a.newlineIndex(t+s+o),t=a.domNode.textContent.slice(i,t).split("\n"),s=0,t.forEach(function(t,e){l?(a.insertAt(i+s,n.TAB),s+=n.TAB.length,0===e?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(a.deleteAt(i+s,n.TAB.length),s-=n.TAB.length,0===e?r-=n.TAB.length:o-=n.TAB.length),s+=t.length+1}),this.quill.update(k.default.sources.USER),this.quill.setSelection(r,o,k.default.sources.SILENT))}}}function u(i){return{key:i[0].toUpperCase(),shortKey:!0,handler:function(t,e){this.quill.format(i,!e.format[i],k.default.sources.USER)}}}function d(t){if("string"==typeof t||"number"==typeof t)return d({key:t});if("string"==typeof(t="object"===(void 0===t?"undefined":p(t))?(0,m.default)(t,!1):t).key)if(null!=_.keys[t.key.toUpperCase()])t.key=_.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[C]=t.shortKey,delete t.shortKey),t}function f(t,e,i){e&&E(t.prototype,e),i&&E(t,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")},m=n(i(21)),b=n(i(12)),v=n(i(2)),y=n(i(4)),x=n(i(20)),w=n(i(0)),k=n(i(6)),A=n(i(10)),i=n(i(7)),S=(0,A.default)("quill:keyboard"),C=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",_=(t=>{function u(e,t){var i;if(this instanceof u)return(i=((t,e)=>{if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")})(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e,t))).bindings={},Object.keys(i.options.bindings).forEach(function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&i.options.bindings[t]&&i.addBinding(i.options.bindings[t])}),i.addBinding({key:u.keys.ENTER,shiftKey:null},c),i.addBinding({key:u.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(i.addBinding({key:u.keys.BACKSPACE},{collapsed:!0},a),i.addBinding({key:u.keys.DELETE},{collapsed:!0},s)):(i.addBinding({key:u.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},a),i.addBinding({key:u.keys.DELETE},{collapsed:!0,suffix:/^.?$/},s)),i.addBinding({key:u.keys.BACKSPACE},{collapsed:!1},l),i.addBinding({key:u.keys.DELETE},{collapsed:!1},l),i.addBinding({key:u.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},a),i.listen(),i;throw new TypeError("Cannot call a class as a function")}var e=u;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),f(u,null,[{key:"match",value:function(e,i){return i=d(i),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(t){return!!i[t]!==e[t]&&null!==i[t]})&&i.key===(e.which||e.keyCode)}}]),f(u,[{key:"addBinding",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t=d(t);if(null==t||null==t.key)return S.warn("Attempted to add invalid keyboard binding",t);t=(0,v.default)(t,"function"==typeof e?{handler:e}:e,"function"==typeof i?{handler:i}:i),this.bindings[t.key]=this.bindings[t.key]||[],this.bindings[t.key].push(t)}},{key:"listen",value:function(){var h=this;this.quill.root.addEventListener("keydown",function(e){var t,i,n,r,o,a,s,l,c;e.defaultPrevented||(t=e.which||e.keyCode,0!==(t=(h.bindings[t]||[]).filter(function(t){return u.match(e,t)})).length&&null!=(i=h.quill.getSelection())&&h.quill.hasFocus()&&(r=h.quill.getLine(i.index),n=(r=g(r,2))[0],r=r[1],l=h.quill.getLeaf(i.index),s=(l=g(l,2))[0],l=l[1],a=0===i.length?[s,l]:h.quill.getLeaf(i.index+i.length),o=(a=g(a,2))[0],a=a[1],s=s instanceof w.default.Text?s.value().slice(0,l):"",l=o instanceof w.default.Text?o.value().slice(a):"",c={collapsed:0===i.length,empty:0===i.length&&n.length()<=1,format:h.quill.getFormat(i),offset:r,prefix:s,suffix:l},t.some(function(e){if(null!=e.collapsed&&e.collapsed!==c.collapsed)return!1;if(null!=e.empty&&e.empty!==c.empty)return!1;if(null!=e.offset&&e.offset!==c.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==c.format[t]}))return!1}else if("object"===p(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=c.format[t]:!1===e.format[t]?null==c.format[t]:(0,b.default)(e.format[t],c.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(c.prefix)||null!=e.suffix&&!e.suffix.test(c.suffix)||!0===e.handler.call(h,i,c))}))&&e.preventDefault())})}}]),u})(i.default);function E(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}_.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},_.DEFAULTS={bindings:{bold:u("bold"),italic:u("italic"),underline:u("underline"),indent:{key:_.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",k.default.sources.USER)}},outdent:{key:_.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",k.default.sources.USER)}},"outdent backspace":{key:_.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",k.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,k.default.sources.USER)}},"indent code-block":h(!0),"outdent code-block":h(!1),"remove tab":{key:_.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,k.default.sources.USER)}},tab:{key:_.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new y.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,k.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,k.default.sources.SILENT)}},"list empty enter":{key:_.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,k.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,k.default.sources.USER)}},"checklist enter":{key:_.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),i=(e=g(e,2))[0],e=e[1],n=(0,v.default)({},i.formats(),{list:"checked"}),n=(new y.default).retain(t.index).insert("\n",n).retain(i.length()-e-1).retain(1,{list:"unchecked"});this.quill.updateContents(n,k.default.sources.USER),this.quill.setSelection(t.index+1,k.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:_.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var i=this.quill.getLine(t.index),n=(i=g(i,2))[0],i=i[1],e=(new y.default).retain(t.index).insert("\n",e.format).retain(n.length()-i-1).retain(1,{header:null});this.quill.updateContents(e,k.default.sources.USER),this.quill.setSelection(t.index+1,k.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var i=e.prefix.length,n=this.quill.getLine(t.index),r=(n=g(n,2))[0];if(i<(n=n[1]))return!0;var o=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(t.index," ",k.default.sources.USER),this.quill.history.cutoff(),e=(new y.default).retain(t.index-n).delete(i+1).retain(r.length()-2-n).retain(1,{list:o}),this.quill.updateContents(e,k.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-i,k.default.sources.SILENT)}},"code exit":{key:_.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),i=(e=g(e,2))[0],e=e[1],t=(new y.default).retain(t.index+i.length()-e-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(t,k.default.sources.USER)}},"embed left":o(_.keys.LEFT,!1),"embed left shift":o(_.keys.LEFT,!0),"embed right":o(_.keys.RIGHT,!1),"embed right shift":o(_.keys.RIGHT,!0)}},e.default=_,e.SHORTKEY=C},function(t,e,i){t.exports={align:{"":i(75),center:i(76),right:i(77),justify:i(78)},background:i(79),blockquote:i(80),bold:i(81),clean:i(82),code:i(40),"code-block":i(40),color:i(83),direction:{"":i(84),rtl:i(85)},float:{center:i(86),full:i(87),left:i(88),right:i(89)},formula:i(90),header:{1:i(91),2:i(92)},italic:i(93),image:i(94),indent:{"+1":i(95),"-1":i(96)},link:i(97),list:{ordered:i(98),bullet:i(99),check:i(100)},script:{sub:i(101),super:i(102)},strike:i(103),underline:i(104),video:i(105)}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var r=i(1);function n(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}Object.defineProperty(n.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),n.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");return t=Array.isArray(this.tagName)?"number"==typeof(t="string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t)?parseInt(t):t)?document.createElement(this.tagName[t-1]):-1<this.tagName.indexOf(t)?document.createElement(t):document.createElement(this.tagName[0]):document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},n.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},n.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},n.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},n.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},n.prototype.formatAt=function(t,e,i,n){t=this.isolate(t,e),null!=r.query(i,r.Scope.BLOT)&&n?t.wrap(i,n):null!=r.query(i,r.Scope.ATTRIBUTE)&&(e=r.create(this.statics.scope),t.wrap(e),e.format(i,n))},n.prototype.insertAt=function(t,e,i){e=null==i?r.create("text",e):r.create(e,i),i=this.split(t),this.parent.insertBefore(e,i)},n.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var i=null;t.children.insertBefore(this,e),null!=e&&(i=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==i||t.domNode.insertBefore(this.domNode,i),this.parent=t,this.attach()},n.prototype.isolate=function(t,e){return(t=this.split(t)).split(e),t},n.prototype.length=function(){return 1},n.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},n.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},n.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},n.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},n.prototype.replaceWith=function(t,e){return(e="string"==typeof t?r.create(t,e):t).replace(this),e},n.prototype.split=function(t,e){return 0===t?this:this.next},n.prototype.update=function(t,e){},n.prototype.wrap=function(t,e){return e="string"==typeof t?r.create(t,e):t,null!=this.parent&&this.parent.insertBefore(e,this.next),e.appendChild(this),e},n.blotName="abstract",e.default=n},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var r=i(11),o=i(29),a=i(30),s=i(1);function n(t){this.attributes={},this.domNode=t,this.build()}n.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},n.prototype.build=function(){var e=this,t=(this.attributes={},r.default.keys(this.domNode)),i=o.default.keys(this.domNode),n=a.default.keys(this.domNode);t.concat(i).concat(n).forEach(function(t){(t=s.query(t,s.Scope.ATTRIBUTE))instanceof r.default&&(e.attributes[t.attrName]=t)})},n.prototype.copy=function(i){var n=this;Object.keys(this.attributes).forEach(function(t){var e=n.attributes[t].value(n.domNode);i.format(t,e)})},n.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},n.prototype.values=function(){var i=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=i.attributes[e].value(i.domNode),t},{})},e.default=n},function(t,e,i){function n(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var r,o,a=this&&this.__extends||(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),i(11)),i=(a(s,o=i.default),s.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},s.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},s.prototype.remove=function(e){n(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")},s.prototype.value=function(t){var e=(n(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){function n(t){var e=(t=t.split("-")).slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return t[0]+e}var r,o,a=this&&this.__extends||(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),i(11)),i=(a(s,o=i.default),s.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},s.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[n(this.keyName)]=e,!0)},s.prototype.remove=function(t){t.style[n(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},s.prototype.value=function(t){var e=t.style[n(this.keyName)];return this.canAdd(t,e)?e:""},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:r(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}function a(t,e,i){e&&o(t.prototype,e),i&&o(t,i)}Object.defineProperty(e,"__esModule",{value:!0});var s=n(i(0)),l=n(i(8));function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(i=(t=>{function o(t,e){if(this instanceof o)return(t=((t,e)=>{if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")})(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,t))).selection=e,t.textNode=document.createTextNode(o.CONTENTS),t.domNode.appendChild(t.textNode),t._length=0,t;throw new TypeError("Cannot call a class as a function")}var e=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),a(o,null,[{key:"value",value:function(){}}]),a(o,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,e){if(0!==this._length)return r(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,t,e);for(var i=this,n=0;null!=i&&i.statics.scope!==s.default.Scope.BLOCK_BLOT;)n+=i.offset(i.parent),i=i.parent;null!=i&&(this._length=o.CONTENTS.length,i.optimize(),i.formatAt(n,o.CONTENTS.length,t,e),this._length=0)}},{key:"index",value:function(t,e){return t===this.textNode?0:r(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,t,e)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,e=this.selection.getNativeRange(),i=void 0,n=void 0,r=void 0;for(null!=e&&e.start.node===t&&e.end.node===t&&(t=[t,e.start.offset,e.end.offset],i=t[0],n=t[1],r=t[2]);null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==o.CONTENTS&&(e=this.textNode.data.split(o.CONTENTS).join(""),this.next instanceof l.default?(i=this.next.domNode,this.next.insertAt(0,e),this.textNode.data=o.CONTENTS):(this.textNode.data=e,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(o.CONTENTS),this.domNode.appendChild(this.textNode))),this.remove(),null!=n)return n=(e=((t,e)=>{if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")})(t=[n,r].map(function(t){return Math.max(0,Math.min(i.data.length,t-1))}),2))[0],{startNode:i,startOffset:n,endNode:i,endOffset:r=e[1]}}}},{key:"update",value:function(t,e){var i=this;t.some(function(t){return"characterData"===t.type&&t.target===i.textNode})&&(t=this.restore())&&(e.range=t)}},{key:"value",value:function(){return""}}]),o})(s.default.Embed)).blotName="cursor",i.className="ql-cursor",i.tagName="span",i.CONTENTS="\ufeff",e.default=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});for(var n=l.prototype,r=[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}var s=l;function l(t,e){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function");this.quill=t,this.options=e,this.modules={}}s.DEFAULTS={modules:{}},s.themes={default:s},e.default=s},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=n(i(0)),l=n(i(8)),c="\ufeff",i=(t=>{function i(t){var e;if(this instanceof i)return(e=((t,e)=>{if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")})(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t))).contentNode=document.createElement("span"),e.contentNode.setAttribute("contenteditable",!1),[].slice.call(e.domNode.childNodes).forEach(function(t){e.contentNode.appendChild(t)}),e.leftGuard=document.createTextNode(c),e.rightGuard=document.createTextNode(c),e.domNode.appendChild(e.leftGuard),e.domNode.appendChild(e.contentNode),e.domNode.appendChild(e.rightGuard),e;throw new TypeError("Cannot call a class as a function")}var e=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t);for(var n=(e=i).prototype,r=[{key:"index",value:function(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0}(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,t,e)}},{key:"restore",value:function(t){var e,i=void 0,n=void 0,r=t.data.split(c).join("");return t===this.leftGuard?i=this.prev instanceof l.default?(e=this.prev.length(),this.prev.insertAt(e,r),{startNode:this.prev.domNode,startOffset:e+r.length}):(n=document.createTextNode(r),this.parent.insertBefore(s.default.create(n),this),{startNode:n,startOffset:r.length}):t===this.rightGuard&&(i=this.next instanceof l.default?(this.next.insertAt(0,r),{startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(s.default.create(n),this.next),{startNode:n,startOffset:r.length})),t.data=c,i}},{key:"update",value:function(t,e){var i=this;t.forEach(function(t){"characterData"!==t.type||t.target!==i.leftGuard&&t.target!==i.rightGuard||(t=i.restore(t.target))&&(e.range=t)})}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return i})(s.default.Embed);e.default=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var n={scope:(i=(i=i(0))&&i.__esModule?i:{default:i}).default.Scope.BLOCK,whitelist:["right","center","justify"]},r=new i.default.Attributor.Attribute("align","align",n),o=new i.default.Attributor.Class("align","ql-align",n),i=new i.default.Attributor.Style("align","text-align",n);e.AlignAttribute=r,e.AlignClass=o,e.AlignStyle=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var n=(n=i(0))&&n.__esModule?n:{default:n},i=i(24),r=new n.default.Attributor.Class("background","ql-bg",{scope:n.default.Scope.INLINE}),i=new i.ColorAttributor("background","background-color",{scope:n.default.Scope.INLINE});e.BackgroundClass=r,e.BackgroundStyle=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var n={scope:(i=(i=i(0))&&i.__esModule?i:{default:i}).default.Scope.BLOCK,whitelist:["rtl"]},r=new i.default.Attributor.Attribute("direction","dir",n),o=new i.default.Attributor.Class("direction","ql-direction",n),i=new i.default.Attributor.Style("direction","direction",n);e.DirectionAttribute=r,e.DirectionClass=o,e.DirectionStyle=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var n={scope:(i=(i=i(0))&&i.__esModule?i:{default:i}).default.Scope.INLINE,whitelist:["serif","monospace"]},r=new i.default.Attributor.Class("font","ql-font",n),i=new((t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t);for(var n=(i=e).prototype,r=[{key:"value",value:function(t){return function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return e})(i.default.Attributor.Style))("font","font-family",n);e.FontStyle=i,e.FontClass=r},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var n=new(i=(i=i(0))&&i.__esModule?i:{default:i}).default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),i=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=n,e.SizeStyle=i},function(t,e,i){function r(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:r(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),(i=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t),t=[{key:"create",value:function(){return r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}],n((i=e).prototype,[{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}]),n(i,t),e})(((i=i(5))&&i.__esModule?i:{default:i}).default)).blotName="bold",i.tagName=["STRONG","B"],e.default=i},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,i){function s(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:s(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}Object.defineProperty(e,"__esModule",{value:!0}),i=(t=>{function i(t,e){if(this instanceof i)return(t=((t,e)=>{if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")})(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t))).label.innerHTML=e,t.container.classList.add("ql-color-picker"),[].slice.call(t.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),t;throw new TypeError("Cannot call a class as a function")}var e=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t);for(var n=(e=i).prototype,r=[{key:"buildItem",value:function(t){var e=s(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"buildItem",this).call(this,t);return e.style.backgroundColor=t.getAttribute("value")||"",e}},{key:"selectItem",value:function(t,e){s(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"selectItem",this).call(this,t,e),e=this.label.querySelector(".ql-color-label"),t=t&&t.getAttribute("data-value")||"",e&&("line"===e.tagName?e.style.stroke=t:e.style.fill=t)}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return i})(((i=i(16))&&i.__esModule?i:{default:i}).default),e.default=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),i=(t=>{function i(t,e){if(this instanceof i)return(t=((t,e)=>{if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")})(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t))).container.classList.add("ql-icon-picker"),[].forEach.call(t.container.querySelectorAll(".ql-picker-item"),function(t){t.innerHTML=e[t.getAttribute("data-value")||""]}),t.defaultItem=t.container.querySelector(".ql-selected"),t.selectItem(t.defaultItem),t;throw new TypeError("Cannot call a class as a function")}var e=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t);for(var n=(e=i).prototype,r=[{key:"selectItem",value:function(t,e){(function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0})(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"selectItem",this).call(this,t,e),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return i})(((i=i(16))&&i.__esModule?i:{default:i}).default),e.default=i},function(t,e,i){function n(t,e){var i=this;if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}Object.defineProperty(e,"__esModule",{value:!0});for(var r=n.prototype,o=[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,i=t.bottom+this.quill.root.scrollTop,n=(this.root.style.left=e+"px",this.root.style.top=i+"px",this.root.classList.remove("ql-flip"),this.boundsContainer.getBoundingClientRect()),r=this.root.getBoundingClientRect(),o=0;return r.right>n.right&&(o=n.right-r.right,this.root.style.left=e+o+"px"),r.left<n.left&&(o=n.left-r.left,this.root.style.left=e+o+"px"),r.bottom>n.bottom&&(e=r.bottom-r.top,n=t.bottom-t.top+e,this.root.style.top=i-n+"px",this.root.classList.add("ql-flip")),o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}],a=0;a<o.length;a++){var s=o[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}e.default=n},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(i,t,e){var n=2<arguments.length&&void 0!==e&&e;t.forEach(function(t){var e=document.createElement("option");t===n?e.setAttribute("selected","selected"):e.setAttribute("value",t),i.appendChild(e)})}function l(t,e,i){e&&S(t.prototype,e),i&&S(t,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var c=n(i(2)),h=n(i(4)),u=n(i(9)),d=n(i(25)),f=n(i(32)),p=n(i(41)),g=n(i(42)),m=n(i(16)),i=n(i(43)),b=[!1,"center","right","justify"],v=["#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"],y=[!1,"serif","monospace"],x=["1","2","3",!1],w=["small",!1,"large","huge"],k=(a(A,f.default),l(A,[{key:"addModule",value:function(t){var e=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0}(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(e),e}},{key:"buildButtons",value:function(t,n){t.forEach(function(i){(i.getAttribute("class")||"").split(/\s+/).forEach(function(t){var e;t.startsWith("ql-")&&(t=t.slice("ql-".length),null!=n[t])&&("direction"===t?i.innerHTML=n[t][""]+n[t].rtl:"string"==typeof n[t]?i.innerHTML=n[t]:null!=(e=i.value||"")&&n[t][e]&&(i.innerHTML=n[t][e]))})})}},{key:"buildPickers",value:function(t,i){var e=this;this.pickers=t.map(function(t){var e;return t.classList.contains("ql-align")?(null==t.querySelector("option")&&s(t,b),new g.default(t,i.align)):t.classList.contains("ql-background")||t.classList.contains("ql-color")?(e=t.classList.contains("ql-background")?"background":"color",null==t.querySelector("option")&&s(t,v,"background"==e?"#ffffff":"#000000"),new p.default(t,i[e])):(null==t.querySelector("option")&&(t.classList.contains("ql-font")?s(t,y):t.classList.contains("ql-header")?s(t,x):t.classList.contains("ql-size")&&s(t,w)),new m.default(t))}),this.quill.on(u.default.events.EDITOR_CHANGE,function(){e.pickers.forEach(function(t){t.update()})})}}]),A);function A(i,t){r(this,A);var n=o(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,i,t));return i.emitter.listenDOM("click",document.body,function t(e){if(!document.body.contains(i.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(e.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach(function(t){t.container.contains(e.target)||t.close()})}),n}function S(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function C(t,e){return r(this,C),(t=o(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,t,e))).textbox=t.root.querySelector('input[type="text"]'),t.listen(),t}k.DEFAULTS=(0,c.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var i=this,n=this.container.querySelector("input.ql-image[type=file]");null==n&&((n=document.createElement("input")).setAttribute("type","file"),n.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),n.classList.add("ql-image"),n.addEventListener("change",function(){var t;null!=n.files&&null!=n.files[0]&&((t=new FileReader).onload=function(t){var e=i.quill.getSelection(!0);i.quill.updateContents((new h.default).retain(e.index).delete(e.length).insert({image:t.target.result}),u.default.sources.USER),i.quill.setSelection(e.index+1,u.default.sources.SILENT),n.value=""},t.readAsDataURL(n.files[0]))}),this.container.appendChild(n)),n.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}}),a(C,i.default),l(C,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){d.default.match(t,"enter")?(e.save(),t.preventDefault()):d.default.match(t,"escape")&&(e.cancel(),t.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t,e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var i=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,u.default.sources.USER)),this.quill.root.scrollTop=i;break;case"video":e=(t=(i=e).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||i.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=i.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":i;case"formula":e&&null!=(t=this.quill.getSelection(!0))&&(i=t.index+t.length,this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),e,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",u.default.sources.USER),this.quill.setSelection(i+2,u.default.sources.USER))}this.textbox.value="",this.hide()}}]),e.BaseTooltip=c=C,e.default=k},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(46)),o=i(34),a=i(36),s=i(62),l=n(i(63)),c=n(i(64)),h=i(65),u=n(h),d=i(35),f=i(24),p=i(37),g=i(38),m=n(i(39)),b=n(i(66)),v=n(i(15)),y=n(i(67)),x=n(i(68)),w=n(i(69)),k=n(i(70)),A=n(i(71)),S=i(13),C=n(S),_=n(i(72)),E=n(i(73)),O=n(i(74)),T=n(i(26)),L=n(i(16)),M=n(i(41)),P=n(i(42)),I=n(i(43)),N=n(i(107)),i=n(i(108));r.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":g.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":g.SizeClass,"formats/blockquote":l.default,"formats/code-block":C.default,"formats/header":c.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":S.Code,"formats/italic":b.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":x.default,"formats/underline":w.default,"formats/image":k.default,"formats/video":A.default,"formats/list/item":h.ListItem,"modules/formula":_.default,"modules/syntax":E.default,"modules/toolbar":O.default,"themes/bubble":N.default,"themes/snow":i.default,"ui/icons":T.default,"ui/picker":L.default,"ui/icon-picker":P.default,"ui/color-picker":M.default,"ui/tooltip":I.default},!0),e.default=r.default},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(0)),o=n(i(6)),a=i(3),s=n(a),l=n(i(14)),c=n(i(23)),h=n(i(31)),u=n(i(33)),d=n(i(5)),f=n(i(59)),p=n(i(8)),g=n(i(60)),m=n(i(61)),i=n(i(25));o.default.register({"blots/block":s.default,"blots/block/embed":a.BlockEmbed,"blots/break":l.default,"blots/container":c.default,"blots/cursor":h.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":g.default,"modules/history":m.default,"modules/keyboard":i.default}),r.default.register(s.default,l.default,h.default,d.default,f.default,p.default),e.default=o.default},function(t,e,i){function n(){this.head=this.tail=null,this.length=0}Object.defineProperty(e,"__esModule",{value:!0}),n.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),1<t.length&&this.append.apply(this,t.slice(1))},n.prototype.contains=function(t){for(var e,i=this.iterator();e=i();)if(e===t)return!0;return!1},n.prototype.insertBefore=function(t,e){t&&(null!=(t.next=e)?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?((this.tail.next=t).prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},n.prototype.offset=function(t){for(var e=0,i=this.head;null!=i;){if(i===t)return e;e+=i.length(),i=i.next}return-1},n.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),--this.length)},n.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},n.prototype.find=function(t,e){void 0===e&&(e=!1);for(var i,n=this.iterator();i=n();){var r=i.length();if(t<r||e&&t===r&&(null==i.next||0!==i.next.length()))return[i,t];t-=r}return[null,0]},n.prototype.forEach=function(t){for(var e,i=this.iterator();e=i();)t(e)},n.prototype.forEachAt=function(t,e,i){if(!(e<=0))for(var n,r=this.find(t),o=r[0],a=t-r[1],s=this.iterator(o);(n=s())&&a<t+e;){var l=n.length();a<t?i(n,t-a,Math.min(e,a+l-t)):i(n,0,Math.min(l,t+e-a)),a+=l}},n.prototype.map=function(i){return this.reduce(function(t,e){return t.push(i(e)),t},[])},n.prototype.reduce=function(t,e){for(var i,n=this.iterator();i=n();)e=t(e,i);return e},e.default=n},function(t,e,i){var n,l,r=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=(Object.defineProperty(e,"__esModule",{value:!0}),i(17)),h=i(1),o={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},i=(r(a,l=c.default),a.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},a.prototype.deleteAt=function(t,e){this.update(),0===t&&e===this.length()?this.children.forEach(function(t){t.remove()}):l.prototype.deleteAt.call(this,t,e)},a.prototype.formatAt=function(t,e,i,n){this.update(),l.prototype.formatAt.call(this,t,e,i,n)},a.prototype.insertAt=function(t,e,i){this.update(),l.prototype.insertAt.call(this,t,e,i)},a.prototype.optimize=function(t,e){var i=this;void 0===t&&(t=[]),void 0===e&&(e={}),l.prototype.optimize.call(this,e);for(var n=[].slice.call(this.observer.takeRecords());0<n.length;)t.push(n.pop());for(var r=function(t,e){void 0===e&&(e=!0),null!=t&&t!==i&&null!=t.domNode.parentNode&&(null==t.domNode[h.DATA_KEY].mutations&&(t.domNode[h.DATA_KEY].mutations=[]),e)&&r(t.parent)},o=function(t){null!=t.domNode[h.DATA_KEY]&&null!=t.domNode[h.DATA_KEY].mutations&&(t instanceof c.default&&t.children.forEach(o),t.optimize(e))},a=t,s=0;0<a.length;s+=1){if(100<=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(function(t){var e=h.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(r(h.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){t=h.find(t,!1),r(t,!1),t instanceof c.default&&t.children.forEach(function(t){r(t,!1)})})):"attributes"===t.type&&r(e.prev)),r(e))}),this.children.forEach(o),n=(a=[].slice.call(this.observer.takeRecords())).slice();0<n.length;)t.push(n.pop())}},a.prototype.update=function(t,e){var i=this;void 0===e&&(e={}),(t=t||this.observer.takeRecords()).map(function(t){var e=h.find(t.target,!0);return null==e?null:null==e.domNode[h.DATA_KEY].mutations?(e.domNode[h.DATA_KEY].mutations=[t],e):(e.domNode[h.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==i&&null!=t.domNode[h.DATA_KEY]&&t.update(t.domNode[h.DATA_KEY].mutations||[],e)}),null!=this.domNode[h.DATA_KEY].mutations&&l.prototype.update.call(this,this.domNode[h.DATA_KEY].mutations,e),this.optimize(t,e)},a.blotName="scroll",a.defaultChild="block",a.scope=h.Scope.BLOCK_BLOT,a.tagName="DIV",a);function a(t){var e=l.call(this,t)||this;return(e.scroll=e).observer=new MutationObserver(function(t){e.update(t)}),e.observer.observe(e.domNode,o),e.attach(),e}e.default=i},function(t,e,i){var n,r,o=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),i(18)),s=i(1),i=(o(l,r=a.default),l.formats=function(t){if(t.tagName!==l.tagName)return r.formats.call(this,t)},l.prototype.format=function(t,e){var i=this;t!==this.statics.blotName||e?r.prototype.format.call(this,t,e):(this.children.forEach(function(t){t instanceof a.default||(t=t.wrap(l.blotName,!0)),i.attributes.copy(t)}),this.unwrap())},l.prototype.formatAt=function(t,e,i,n){null!=this.formats()[i]||s.query(i,s.Scope.ATTRIBUTE)?this.isolate(t,e).format(i,n):r.prototype.formatAt.call(this,t,e,i,n)},l.prototype.optimize=function(t){if(r.prototype.optimize.call(this,t),t=this.formats(),0===Object.keys(t).length)return this.unwrap();var e=this.next;e instanceof l&&e.prev===this&&((t,e)=>{if(Object.keys(t).length===Object.keys(e).length){for(var i in t)if(t[i]!==e[i])return;return 1}})(t,e.formats())&&(e.moveChildren(this),e.remove())},l.blotName="inline",l.scope=s.Scope.INLINE_BLOT,l.tagName="SPAN",l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=i},function(t,e,i){var n,r,o=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),i(18)),s=i(1),i=(o(l,r=a.default),l.formats=function(t){var e=s.query(l.blotName).tagName;if(t.tagName!==e)return r.formats.call(this,t)},l.prototype.format=function(t,e){null!=s.query(t,s.Scope.BLOCK)&&(t!==this.statics.blotName||e?r.prototype.format.call(this,t,e):this.replaceWith(l.blotName))},l.prototype.formatAt=function(t,e,i,n){null!=s.query(i,s.Scope.BLOCK)?this.format(i,n):r.prototype.formatAt.call(this,t,e,i,n)},l.prototype.insertAt=function(t,e,i){null==i||null!=s.query(e,s.Scope.INLINE)?r.prototype.insertAt.call(this,t,e,i):(t=this.split(t),e=s.create(e,i),t.parent.insertBefore(e,t))},l.prototype.update=function(t,e){navigator.userAgent.match(/Trident/)?this.build():r.prototype.update.call(this,t,e)},l.blotName="block",l.scope=s.Scope.BLOCK_BLOT,l.tagName="P",l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=i},function(t,e,i){var n,r,o=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),i(19)),i=(o(a,r=i.default),a.formats=function(t){},a.prototype.format=function(t,e){r.prototype.formatAt.call(this,0,this.length(),t,e)},a.prototype.formatAt=function(t,e,i,n){0===t&&e===this.length()?this.format(i,n):r.prototype.formatAt.call(this,t,e,i,n)},a.prototype.formats=function(){return this.statics.formats(this.domNode)},a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=i},function(t,e,i){var n,r,o=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),i(19)),s=i(1),i=(o(l,r=a.default),l.create=function(t){return document.createTextNode(t)},l.value=function(t){return(t=t.data).normalize?t.normalize():t},l.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},l.prototype.index=function(t,e){return this.domNode===t?e:-1},l.prototype.insertAt=function(t,e,i){null==i?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):r.prototype.insertAt.call(this,t,e,i)},l.prototype.length=function(){return this.text.length},l.prototype.optimize=function(t){r.prototype.optimize.call(this,t),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof l&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},l.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},l.prototype.split=function(t,e){if(!(e=void 0!==e&&e)){if(0===t)return this;if(t===this.length())return this.next}return e=s.create(this.domNode.splitText(t)),this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},l.prototype.update=function(t,e){var i=this;t.some(function(t){return"characterData"===t.type&&t.target===i.domNode})&&(this.text=this.statics.value(this.domNode))},l.prototype.value=function(){return this.text},l.blotName="text",l.scope=s.Scope.INLINE_BLOT,l);function l(t){return(t=r.call(this,t)||this).text=t.statics.value(t.domNode),t}e.default=i},function(t,e,i){var n,r=document.createElement("div");r.classList.toggle("test-class",!1),r.classList.contains("test-class")&&(n=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(t,e){return 1<arguments.length&&!this.contains(t)==!e?e:n.call(this,t)}),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return this.substr(e=e||0,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var i=this.toString();return("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>i.length)&&(e=i.length),e-=t.length,-1!==(i=i.indexOf(t,e))&&i===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,r=arguments[1],o=0;o<n;o++)if(e=i[o],t.call(r,e,o,i))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){function B(t,e,i){if(t==e)return t?[[G,t]]:[];(i<0||t.length<i)&&(i=null);for(var n,r=Y(t,e),o=t.substring(0,r),a=(r=X(t=t.substring(r),e=e.substring(r)),t.substring(t.length-r)),t=((t,e)=>{if(!t)return[[q,e]];if(!e)return[[W,t]];var i,n,r,o,a,s,l,c,h,u=t.length>e.length?t:e,d=e.length<t.length?e:t,f=u.indexOf(d);if(-1!=f)return u=[[q,u.substring(0,f)],[G,d],[q,u.substring(f+d.length)]],t.length>e.length&&(u[0][0]=u[2][0]=W),u;if(1==d.length)return[[W,t],[q,e]];if(c=(i=t).length>(n=e).length?i:n,h=n.length<i.length?n:i,f=c.length<4||2*h.length<c.length||(r=p(c,h,Math.ceil(c.length/4)),h=p(c,h,Math.ceil(c.length/2)),!r&&!h)?null:(c=!h||r&&r[4].length>h[4].length?r:h,i.length>n.length?(o=c[0],a=c[1],s=c[2],l=c[3]):(s=c[0],l=c[1],o=c[2],a=c[3]),[o,a,s,l,c[4]]))return u=f[0],d=f[1],r=f[2],h=f[3],f=f[4],u=B(u,r),r=B(d,h),u.concat([[G,f]],r);function p(t,e,i){for(var n,r,o,a,s=t.substring(i,i+Math.floor(t.length/4)),l=-1,c="";-1!=(l=e.indexOf(s,l+1));){var h=Y(t.substring(i),e.substring(l)),u=X(t.substring(0,i),e.substring(0,l));c.length<u+h&&(c=e.substring(l-u,l)+e.substring(l,l+h),n=t.substring(0,i-u),r=t.substring(i+h),o=e.substring(0,l-u),a=e.substring(l+h))}return 2*c.length>=t.length?[n,r,o,a,c]:null}for(var g=t,m=e,b=g.length,v=m.length,y=Math.ceil((b+v)/2),x=y,w=2*y,k=new Array(w),A=new Array(w),S=0;S<w;S++)k[S]=-1,A[S]=-1;k[x+1]=0;for(var C=b-v,_=C%2!=(A[x+1]=0),R=0,F=0,j=0,z=0,E=0;E<y;E++){for(var O=-E+R;O<=E-F;O+=2){for(var T=x+O,L=(D=O==-E||O!=E&&k[T-1]<k[T+1]?k[T+1]:k[T-1]+1)-O;D<b&&L<v&&g.charAt(D)==m.charAt(L);)D++,L++;if(b<(k[T]=D))F+=2;else if(v<L)R+=2;else if(_&&0<=(I=x+C-O)&&I<w&&-1!=A[I]&&(P=b-A[I])<=D)return H(g,m,D,L)}for(var M=-E+j;M<=E-z;M+=2){for(var P,I=x+M,N=(P=M==-E||M!=E&&A[I-1]<A[I+1]?A[I+1]:A[I-1]+1)-M;P<b&&N<v&&g.charAt(b-P-1)==m.charAt(v-N-1);)P++,N++;if(b<(A[I]=P))z+=2;else if(v<N)j+=2;else if(!_&&0<=(T=x+C-M)&&T<w&&-1!=k[T]){var D=k[T],L=x+D-T;if((P=b-P)<=D)return H(g,m,D,L)}}}return[[W,g],[q,m]]})(t=t.substring(0,t.length-r),e=e.substring(0,e.length-r)),s=(o&&t.unshift([G,o]),a&&t.push([G,a]),function t(e){e.push([G,""]);for(var i,n=0,r=0,o=0,a="",s="";n<e.length;)switch(e[n][0]){case q:o++,s+=e[n][1],n++;break;case W:r++,a+=e[n][1],n++;break;case G:1<r+o?(0!==r&&0!==o&&(0!==(i=Y(s,a))&&(0<n-r-o&&e[n-r-o-1][0]==G?e[n-r-o-1][1]+=s.substring(0,i):(e.splice(0,0,[G,s.substring(0,i)]),n++),s=s.substring(i),a=a.substring(i)),0!==(i=X(s,a)))&&(e[n][1]=s.substring(s.length-i)+e[n][1],s=s.substring(0,s.length-i),a=a.substring(0,a.length-i)),0===r?e.splice(n-o,r+o,[q,s]):0===o?e.splice(n-r,r+o,[W,a]):e.splice(n-r-o,r+o,[W,a],[q,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&e[n-1][0]==G?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=o=0,s=a=""}""===e[e.length-1][1]&&e.pop();for(var l=!1,n=1;n<e.length-1;)e[n-1][0]==G&&e[n+1][0]==G&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),l=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),l=!0)),n++;l&&t(e)}(t),t=null!=i?(a=(o=(e=((t,e)=>{if(0===e)return[G,t];for(var i=0,n=0;n<t.length;n++){var r=t[n];if(r[0]===W||r[0]===G){var o,a,s=i+r[1].length;if(e===s)return[n+1,t];if(e<s)return t=t.slice(),a=[r[0],r[1].slice(0,o=e-i)],r=[r[0],r[1].slice(o)],t.splice(n,1,a,r),[n+1,t];i=s}}throw new Error("cursor_pos is out of bounds!")})(r=t,i))[1])[e=e[0]],i=o[e+1],null==a||a[0]!==G?r:null!=i&&a[1]+i[1]===i[1]+a[1]?(o.splice(e,2,i,a),d(o,e,2)):null==i||0!==i[1].indexOf(a[1])?r:(o.splice(e,2,[i[0],a[1]],[0,a[1]]),0<(r=i[1].slice(a[1].length)).length&&o.splice(e+2,0,[i[0],r]),d(o,e,3))):t),l=!1,c=function(t){return 56320<=t.charCodeAt(0)&&t.charCodeAt(0)<=57343},h=2;h<s.length;h+=1)s[h-2][0]===G&&55296<=(n=s[h-2][1]).charCodeAt(n.length-1)&&n.charCodeAt(n.length-1)<=56319&&s[h-1][0]===W&&c(s[h-1][1])&&s[h][0]===q&&c(s[h][1])&&(l=!0,s[h-1][1]=s[h-2][1].slice(-1)+s[h-1][1],s[h][1]=s[h-2][1].slice(-1)+s[h][1],s[h-2][1]=s[h-2][1].slice(0,-1));if(!l)return s;for(var u=[],h=0;h<s.length;h+=1)0<s[h][1].length&&u.push(s[h]);return u}function H(t,e,i,n){var r=t.substring(0,i),o=e.substring(0,n),t=t.substring(i),i=e.substring(n),e=B(r,o),n=B(t,i);return e.concat(n)}function Y(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var i=0,n=Math.min(t.length,e.length),r=n,o=0;i<r;)t.substring(o,r)==e.substring(o,r)?o=i=r:n=r,r=Math.floor((n-i)/2+i);return r}function X(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var i=0,n=Math.min(t.length,e.length),r=n,o=0;i<r;)t.substring(t.length-r,t.length-o)==e.substring(e.length-r,e.length-o)?o=i=r:n=r,r=Math.floor((n-i)/2+i);return r}function d(t,e,i){for(var n,r,o=e+i-1;0<=o&&e-1<=o;o--)o+1<t.length&&(n=t[o])[0]===(r=t[o+1])[1]&&t.splice(o,2,[n[0],n[1]+r[1]]);return t}var W=-1,q=1,G=0,i=B;i.INSERT=q,i.DELETE=W,i.EQUAL=G,t.exports=i},function(t,e){function i(t){var e,i=[];for(e in t)i.push(e);return i}(t.exports="function"==typeof Object.keys?Object.keys:i).shim=i},function(t,e){function i(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function n(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(e=t.exports=r?i:n).supported=i,e.unsupported=n},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=n(i(4)),f=n(i(20)),p=n(i(0)),c=n(i(13)),s=n(i(31)),g=i(3),m=n(g),r=n(i(14)),o=n(i(21)),l=n(i(12)),b=n(i(2)),v=/^[ -~]*$/,i=(((t,e)=>{for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}})(a.prototype,[{key:"applyDelta",value:function(t){var s=this,l=!1,c=(this.scroll.update(),this.scroll.length());return this.scroll.batchStart(),(t=t.reduce(function(t,e){var i;return 1===e.insert?(delete(i=(0,o.default)(e.attributes)).image,t.insert({image:e.attributes.image},i)):(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,o.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert?(i=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.insert(i,e.attributes)):t.push(e))},new d.default)).reduce(function(e,t){var i=t.retain||t.delete||t.insert.length||1,n=t.attributes||{};if(null!=t.insert){if("string"==typeof t.insert){(o=t.insert).endsWith("\n")&&l&&(l=!1,o=o.slice(0,-1)),c<=e&&!o.endsWith("\n")&&(l=!0),s.scroll.insertAt(e,o);var r=(o=h(o=s.scroll.line(e),2))[0],o=o[1],a=(0,b.default)({},(0,g.bubbleFormats)(r));r instanceof m.default&&(o=h(r=r.descendant(p.default.Leaf,o),1)[0],a=(0,b.default)(a,(0,g.bubbleFormats)(o))),n=f.default.attributes.diff(a,n)||{}}else if("object"===u(t.insert)){if(null==(r=Object.keys(t.insert)[0]))return e;s.scroll.insertAt(e,r,t.insert[r])}c+=i}return Object.keys(n).forEach(function(t){s.scroll.formatAt(e,i,t,n[t])}),e+i},0),t.reduce(function(t,e){return"number"==typeof e.delete?(s.scroll.deleteAt(t,e.delete),t):t+(e.retain||e.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new d.default).retain(t).delete(e))}},{key:"formatLine",value:function(a,e){var s=this,l=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(l).forEach(function(r){var t,o;null!=s.scroll.whitelist&&!s.scroll.whitelist[r]||(t=s.scroll.lines(a,Math.max(e,1)),o=e,t.forEach(function(t){var e,i,n=t.length();t instanceof c.default?(e=a-t.offset(s.scroll),i=t.newlineIndex(e+o)-e+1,t.formatAt(e,i,r,l[r])):t.format(r,l[r]),o-=n}))}),this.scroll.optimize(),this.update((new d.default).retain(a).retain(e,(0,o.default)(l)))}},{key:"formatText",value:function(e,i){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(t){n.scroll.formatAt(e,i,t,r[t])}),this.update((new d.default).retain(e).retain(i,(0,o.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new d.default)}},{key:"getFormat",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=[],n=[],t=(0===e?this.scroll.path(t).forEach(function(t){(t=h(t,1)[0])instanceof m.default?i.push(t):t instanceof p.default.Leaf&&n.push(t)}):(i=this.scroll.lines(t,e),n=this.scroll.descendants(p.default.Leaf,t,e)),[i,n].map(function(t){if(0===t.length)return{};for(var e=(0,g.bubbleFormats)(t.shift());0<Object.keys(e).length;){var i=t.shift();if(null==i)return e;e=((i,n)=>Object.keys(n).reduce(function(t,e){return null!=i[e]&&(n[e]===i[e]?t[e]=n[e]:Array.isArray(n[e])?n[e].indexOf(i[e])<0&&(t[e]=n[e].concat([i[e]])):t[e]=[n[e],i[e]]),t},{}))((0,g.bubbleFormats)(i),e)}return e}));return b.default.apply(b.default,t)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,i){return this.scroll.insertAt(t,e,i),this.update((new d.default).retain(t).insert((t=i,(i=e)in(e={})?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e)))}},{key:"insertText",value:function(e,i){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return i=i.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,i),Object.keys(r).forEach(function(t){n.scroll.formatAt(e,i.length,t,r[t])}),this.update((new d.default).retain(e).insert(i,(0,o.default)(r)))}},{key:"isBlank",value:function(){var t;return 0==this.scroll.children.length||!(1<this.scroll.children.length||(t=this.scroll.children.head).statics.blotName!==m.default.blotName||1<t.children.length)&&t.children.head instanceof r.default}},{key:"removeFormat",value:function(t,e){var i=this.getText(t,e),n=(r=h(this.scroll.line(t+e),2))[0],r=r[1],o=0,a=new d.default;return null!=n&&(o=n instanceof c.default?n.newlineIndex(r)-r+1:n.length()-r,a=n.delta().slice(r,r+o-1).insert("\n")),n=this.getContents(t,e+o).diff((new d.default).insert(i).concat(a)),r=(new d.default).retain(t).concat(n),this.applyDelta(r)}},{key:"update",value:function(t){var i,e,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,a=this.delta;return 1===r.length&&"characterData"===r[0].type&&r[0].target.data.match(v)&&p.default.find(r[0].target)?(n=p.default.find(r[0].target),i=(0,g.bubbleFormats)(n),e=n.offset(this.scroll),r=r[0].oldValue.replace(s.default.CONTENTS,""),r=(new d.default).insert(r),n=(new d.default).insert(n.value()),t=(new d.default).retain(e).concat(r.diff(n,o)).reduce(function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)},new d.default),this.delta=a.compose(t)):(this.delta=this.getDelta(),t&&(0,l.default)(a.compose(t),this.delta)||(t=a.diff(this.delta,o))),t}}]),a);function a(t){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.scroll=t,this.delta=this.getDelta()}e.default=i},function(t,e){function l(){}function n(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function i(){this._events=new l,this._eventsCount=0}var r=Object.prototype.hasOwnProperty,f="~";Object.create&&(l.prototype=Object.create(null),(new l).__proto__||(f=!1)),i.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)r.call(t,e)&&i.push(f?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},i.prototype.listeners=function(t,e){var t=f?f+t:t,i=this._events[t];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var n=0,r=i.length,o=new Array(r);n<r;n++)o[n]=i[n].fn;return o},i.prototype.emit=function(t,e,i,n,r,o){var a=f?f+t:t;if(!this._events[a])return!1;var s,l=this._events[a],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,i),!0;case 4:return l.fn.call(l.context,e,i,n),!0;case 5:return l.fn.call(l.context,e,i,n,r),!0;case 6:return l.fn.call(l.context,e,i,n,r,o),!0}for(d=1,s=new Array(c-1);d<c;d++)s[d-1]=arguments[d];l.fn.apply(l.context,s)}else for(var h,u=l.length,d=0;d<u;d++)switch(l[d].once&&this.removeListener(t,l[d].fn,void 0,!0),c){case 1:l[d].fn.call(l[d].context);break;case 2:l[d].fn.call(l[d].context,e);break;case 3:l[d].fn.call(l[d].context,e,i);break;case 4:l[d].fn.call(l[d].context,e,i,n);break;default:if(!s)for(h=1,s=new Array(c-1);h<c;h++)s[h-1]=arguments[h];l[d].fn.apply(l[d].context,s)}return!0},i.prototype.on=function(t,e,i){return e=new n(e,i||this),i=f?f+t:t,this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],e]:this._events[i].push(e):(this._events[i]=e,this._eventsCount++),this},i.prototype.once=function(t,e,i){return e=new n(e,i||this,!0),i=f?f+t:t,this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],e]:this._events[i].push(e):(this._events[i]=e,this._eventsCount++),this},i.prototype.removeListener=function(t,e,i,n){if(t=f?f+t:t,this._events[t])if(e){var r=this._events[t];if(r.fn)r.fn!==e||n&&!r.once||i&&r.context!==i||(0==--this._eventsCount?this._events=new l:delete this._events[t]);else{for(var o=0,a=[],s=r.length;o<s;o++)(r[o].fn!==e||n&&!r[o].once||i&&r[o].context!==i)&&a.push(r[o]);a.length?this._events[t]=1===a.length?a[0]:a:0==--this._eventsCount?this._events=new l:delete this._events[t]}}else 0==--this._eventsCount?this._events=new l:delete this._events[t];return this},i.prototype.removeAllListeners=function(t){return t?(t=f?f+t:t,this._events[t]&&(0==--this._eventsCount?this._events=new l:delete this._events[t])):(this._events=new l,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=f,i.EventEmitter=i,void 0!==t&&(t.exports=i)},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function s(t){return t instanceof r.default||t instanceof d.BlockEmbed}function l(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:l(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}function c(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")}Object.defineProperty(e,"__esModule",{value:!0});var h=n(i(0)),u=n(i(9)),d=i(3),r=n(d),f=n(i(14)),p=n(i(13)),i=n(i(23)),o=(t=>{function o(t,e){if(this instanceof o)return(t=((t,e)=>{if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")})(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,t))).emitter=e.emitter,Array.isArray(e.whitelist)&&(t.whitelist=e.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),t.domNode.addEventListener("DOMNodeInserted",function(){}),t.optimize(),t.enable(),t;throw new TypeError("Cannot call a class as a function")}var e=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t);for(var i=(e=o).prototype,n=[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,e){var i=(n=c(this.line(t),2))[0],n=n[1],r=c(r=this.line(t+e),1)[0];if(l(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"deleteAt",this).call(this,t,e),null!=r&&i!==r&&0<n){if(i instanceof d.BlockEmbed||r instanceof d.BlockEmbed)return void this.optimize();if(i instanceof p.default){if(-1<(t=i.newlineIndex(i.length(),!0))&&(i=i.split(t+1))===r)return void this.optimize()}else r instanceof p.default&&-1<(e=r.newlineIndex(0))&&r.split(e+1);n=r.children.head instanceof f.default?null:r.children.head,i.moveChildren(r,n),i.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(0<arguments.length&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(t,e,i,n){null!=this.whitelist&&!this.whitelist[i]||(l(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"formatAt",this).call(this,t,e,i,n),this.optimize())}},{key:"insertAt",value:function(t,e,i){var n;null!=i&&null!=this.whitelist&&!this.whitelist[e]||(t>=this.length()?null==i||null==h.default.query(e,h.default.Scope.BLOCK)?(n=h.default.create(this.statics.defaultChild),this.appendChild(n),null==i&&e.endsWith("\n")&&(e=e.slice(0,-1)),n.insertAt(0,e,i)):(n=h.default.create(e,i),this.appendChild(n)):l(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"insertAt",this).call(this,t,e,i),this.optimize())}},{key:"insertBefore",value:function(t,e){var i;t.statics.scope===h.default.Scope.INLINE_BLOT&&((i=h.default.create(this.statics.defaultChild)).appendChild(t),t=i),l(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"insertBefore",this).call(this,t,e)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(s,t)}},{key:"lines",value:function(){return function n(t,e,i){var r=[],o=i;return t.children.forEachAt(e,i,function(t,e,i){s(t)?r.push(t):t instanceof h.default.Container&&(r=r.concat(n(t,e,o))),o-=i}),r}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(l(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"optimize",this).call(this,t,e),0<t.length)&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,e)}},{key:"path",value:function(t){return l(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){var e;!0!==this.batch&&(e=u.default.sources.USER,"string"==typeof t&&(e=t),0<(t=Array.isArray(t)?t:this.observer.takeRecords()).length&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,e,t),l(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"update",this).call(this,t.concat([])),0<t.length)&&this.emitter.emit(u.default.events.SCROLL_UPDATE,e,t)}}],r=0;r<n.length;r++){var a=n[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}return o})(h.default.Scroll);o.blotName="scroll",o.className="ql-editor",o.tagName="DIV",o.defaultChild="block",o.allowedChildren=[r.default,d.BlockEmbed,i.default],e.default=o},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t,i,n){return"object"===(void 0===i?"undefined":m(i))?Object.keys(i).reduce(function(t,e){return a(t,e,i[e])},t):t.reduce(function(t,e){return e.attributes&&e.attributes[i]?t.push(e):t.insert(e.insert,(0,b.default)({},s({},i,n),e.attributes))},new v.default)}function r(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function l(t,e){for(var i="",n=t.ops.length-1;0<=n&&i.length<e.length;--n){var r=t.ops[n];if("string"!=typeof r.insert)break;i=r.insert+i}return i.slice(-1*e.length)===e}function o(t){return 0!==t.childNodes.length&&-1<["block","list-item"].indexOf(r(t).display)}function c(t,e,i){return a(i,t,!0)}function h(i,t){var e=y.default.Attributor.Attribute.keys(i),n=y.default.Attributor.Class.keys(i),r=y.default.Attributor.Style.keys(i),o={};return e.concat(n).concat(r).forEach(function(t){var e=y.default.query(t,y.default.Scope.ATTRIBUTE);null!=e&&(o[e.attrName]=e.value(i),o[e.attrName])||(null==(e=P[t])||e.attrName!==t&&e.keyName!==t||(o[e.attrName]=e.value(i)||void 0),null==(e=I[t]))||e.attrName!==t&&e.keyName!==t||(e=I[t],o[e.attrName]=e.value(i)||void 0)}),0<Object.keys(o).length?a(t,o):t}function u(t,e){var i,n,r=y.default.query(t);return null!=r&&(r.prototype instanceof y.default.Embed?(i={},null!=(n=r.value(t))&&(i[r.blotName]=n,e=(new v.default).insert(i,r.formats(t)))):"function"==typeof r.formats&&(e=a(e,r.blotName,r.formats(t)))),e}function d(t,e){return l(e,"\n")||(o(t)||0<e.length()&&t.nextSibling&&o(t.nextSibling))&&e.insert("\n"),e}function f(t,e){var i;return o(t)&&null!=t.nextElementSibling&&!l(e,"\n\n")&&(i=t.offsetHeight+parseFloat(r(t).marginTop)+parseFloat(r(t).marginBottom),t.nextElementSibling.offsetTop>t.offsetTop+1.5*i)&&e.insert("\n"),e}function p(t,e){var i,n=t.data;return"O:P"===t.parentNode.tagName?e.insert(n.trim()):0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard")?e:(!r(t.parentNode).whiteSpace.startsWith("pre")&&(i=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e},n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,i.bind(i,!0)),(null==t.previousSibling&&o(t.parentNode)||null!=t.previousSibling&&o(t.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),null==t.nextSibling&&o(t.parentNode)||null!=t.nextSibling&&o(t.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1))),e.insert(n))}function g(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=n(i(2)),v=n(i(4)),y=n(i(0)),x=n(i(6)),w=n(i(10)),k=n(i(7)),A=i(34),S=i(35),C=n(i(13)),_=i(24),E=i(36),O=i(37),i=i(38),T=(0,w.default)("quill:clipboard"),L="__ql-matcher",M=[[Node.TEXT_NODE,p],[Node.TEXT_NODE,d],["br",function(t,e){return l(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,d],[Node.ELEMENT_NODE,u],[Node.ELEMENT_NODE,f],[Node.ELEMENT_NODE,h],[Node.ELEMENT_NODE,function(t,e){var i={},n=t.style||{};return n.fontStyle&&"italic"===r(t).fontStyle&&(i.italic=!0),n.fontWeight&&(r(t).fontWeight.startsWith("bold")||700<=parseInt(r(t).fontWeight))&&(i.bold=!0),0<Object.keys(i).length&&(e=a(e,i)),0<parseFloat(n.textIndent||0)?(new v.default).insert("\t").concat(e):e}],["li",function(t,e){var i=y.default.query(t);if(null==i||"list-item"!==i.blotName||!l(e,"\n"))return e;for(var n=-1,r=t.parentNode;!r.classList.contains("ql-clipboard");)"list"===(y.default.query(r)||{}).blotName&&(n+=1),r=r.parentNode;return n<=0?e:e.compose((new v.default).retain(e.length()-1).retain(1,{indent:n}))}],["b",c.bind(c,"bold")],["i",c.bind(c,"italic")],["style",function(){return new v.default}]],P=[A.AlignAttribute,E.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),I=[A.AlignStyle,S.BackgroundStyle,_.ColorStyle,E.DirectionStyle,O.FontStyle,i.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{});(w=(t=>{function e(t,i){var n;if(this instanceof e)return(n=((t,e)=>{if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")})(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))).quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],M.concat(n.options.matchers).forEach(function(t){var e=(t=g(t,2))[0],t=t[1];!i.matchVisual&&t===f||n.addMatcher(e,t)}),n;throw new TypeError("Cannot call a class as a function")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t);for(var n=(i=e).prototype,r=[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){var e;return"string"==typeof t?(this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert()):(t=this.quill.getFormat(this.quill.selection.savedRange.index))[C.default.blotName]?(e=this.container.innerText,this.container.innerHTML="",(new v.default).insert(e,s({},C.default.blotName,t[C.default.blotName]))):(e=(t=g(e=this.prepareMatching(),2))[0],l(e=function n(r,o,a){return r.nodeType===r.TEXT_NODE?a.reduce(function(t,e){return e(r,t)},new v.default):r.nodeType===r.ELEMENT_NODE?[].reduce.call(r.childNodes||[],function(t,i){var e=n(i,o,a);return i.nodeType===r.ELEMENT_NODE&&(e=o.reduce(function(t,e){return e(i,t)},e),e=(i[L]||[]).reduce(function(t,e){return e(i,t)},e)),t.concat(e)},new v.default):new v.default}(this.container,e,t[1]),"\n")&&null==e.ops[e.ops.length-1].attributes&&(e=e.compose((new v.default).retain(e.length()-1).delete(1))),T.log("convert",this.container.innerHTML,e),this.container.innerHTML="",e)}},{key:"dangerouslyPasteHTML",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:x.default.sources.API;"string"==typeof t?(this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,x.default.sources.SILENT)):(e=this.convert(e),this.quill.updateContents((new v.default).retain(t).concat(e),i),this.quill.setSelection(t+e.length(),x.default.sources.SILENT))}},{key:"onPaste",value:function(t){var e,i,n,r=this;!t.defaultPrevented&&this.quill.isEnabled()&&(e=this.quill.getSelection(),i=(new v.default).retain(e.index),n=this.quill.scrollingContainer.scrollTop,this.container.focus(),this.quill.selection.update(x.default.sources.SILENT),setTimeout(function(){i=i.concat(r.convert()).delete(e.length),r.quill.updateContents(i,x.default.sources.USER),r.quill.setSelection(i.length()-e.length,x.default.sources.SILENT),r.quill.scrollingContainer.scrollTop=n,r.quill.focus()},1))}},{key:"prepareMatching",value:function(){var n=this,r=[],o=[];return this.matchers.forEach(function(t){var e=(t=g(t,2))[0],i=t[1];switch(e){case Node.TEXT_NODE:o.push(i);break;case Node.ELEMENT_NODE:r.push(i);break;default:[].forEach.call(n.container.querySelectorAll(e),function(t){t[L]=t[L]||[],t[L].push(i)})}}),[r,o]}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return e})(k.default)).DEFAULTS={matchers:[],matchVisual:!0},e.default=w,e.matchAttributor=h,e.matchBlot=u,e.matchNewline=d,e.matchSpacing=f,e.matchText=p},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function s(t){var e=t.reduce(function(t,e){return t+(e.delete||0)},0),e=t.length()-e;return null!=(t=t.ops[t.ops.length-1])&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(t){return null!=r.default.query(t,r.default.Scope.BLOCK)}))&&--e,e}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=n(i(0)),l=n(i(6));(i=(t=>{function i(t,e){var r;if(this instanceof i)return(r=((t,e)=>{if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")})(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t,e))).lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(l.default.events.EDITOR_CHANGE,function(t,e,i,n){t!==l.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&n!==l.default.sources.USER?r.transform(e):r.record(e,i))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r;throw new TypeError("Cannot call a class as a function")}var e=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t);for(var n=(e=i).prototype,r=[{key:"change",value:function(t,e){var i;0!==this.stack[t].length&&(i=this.stack[t].pop(),this.stack[e].push(i),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i[t],l.default.sources.USER),this.ignoreChange=!1,e=s(i[t]),this.quill.setSelection(e))}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){var i,n;0!==t.ops.length&&(this.stack.redo=[],e=this.quill.getContents().diff(e),i=Date.now(),this.lastRecorded+this.options.delay>i&&0<this.stack.undo.length?(n=this.stack.undo.pop(),e=e.compose(n.undo),t=n.redo.compose(t)):this.lastRecorded=i,this.stack.undo.push({redo:t,undo:e}),this.stack.undo.length>this.options.maxStack)&&this.stack.undo.shift()}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return i})(n(i(7)).default)).DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=i,e.getLastChangeIndex=s},function(t,e,i){function s(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:s(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0,i=new((t=>{function n(){var t;if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");if(t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var e=n;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t);for(var i=(e=n).prototype,r=[{key:"add",value:function(t,e){var i;return"+1"!==e&&"-1"!==e||(i=this.value(t)||0,e="+1"===e?i+1:i-1),0===e?(this.remove(t),!0):s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"add",this).call(this,t,e)}},{key:"canAdd",value:function(t,e){return s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"canAdd",this).call(this,t,e)||s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"canAdd",this).call(this,t,parseInt(e))}},{key:"value",value:function(t){return parseInt(s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"value",this).call(this,t))||void 0}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}return n})((i=(i=i(0))&&i.__esModule?i:{default:i}).default.Attributor.Class))("indent","ql-indent",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),e.IndentClass=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),(i=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t),e})(((i=i(3))&&i.__esModule?i:{default:i}).default)).blotName="blockquote",i.tagName="blockquote",e.default=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),(i=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t);for(var n=i=e,r=[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return e})(((i=i(3))&&i.__esModule?i:{default:i}).default)).blotName="header",i.tagName=["H1","H2","H3","H4","H5","H6"],e.default=i},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:s(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}function l(t,e,i){e&&f(t.prototype,e),i&&f(t,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var c=n(i(0)),h=n(i(3)),i=n(i(23)),u=(a(d,h.default),l(d,[{key:"format",value:function(t,e){t!==p.blotName||e?s(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,t,e):this.replaceWith(c.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():s(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,e){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,e),this):(this.parent.unwrap(),s(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replaceWith",this).call(this,t,e))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:s(d.__proto__||Object.getPrototypeOf(d),"formats",this).call(this,t)}}]),d);function d(){return r(this,d),o(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}function f(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}u.blotName="list-item",u.tagName="LI",a(g,i.default),l(g,null,[{key:"create",value:function(t){var e="ordered"===t?"OL":"UL",e=s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,e);return"checked"!==t&&"unchecked"!==t||e.setAttribute("data-checked","checked"===t),e}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),l(g,[{key:"format",value:function(t,e){0<this.children.length&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,i=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t;var t,e,i}},{key:"insertBefore",value:function(t,e){t instanceof u?s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,t,e):(e=null==e?this.length():e.offset(this),(e=this.split(e)).parent.insertBefore(t,e))}},{key:"optimize",value:function(t){s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,t),null!=(t=this.next)&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}},{key:"replace",value:function(t){var e;t.statics.blotName!==this.statics.blotName&&(e=c.default.create(this.statics.defaultChild),t.moveChildren(e),this.appendChild(e)),s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replace",this).call(this,t)}}]);var p=g;function g(i){function t(t){var e;t.target.parentNode===i&&(e=n.statics.formats(i),t=c.default.find(t.target),"checked"===e?t.format("list","unchecked"):"unchecked"===e&&t.format("list","checked"))}r(this,g);var n=o(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,i));return i.addEventListener("touchstart",t),i.addEventListener("mousedown",t),n}p.blotName="list",p.scope=c.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[u],e.ListItem=u,e.default=p},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),(i=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t),e})(((i=i(39))&&i.__esModule?i:{default:i}).default)).blotName="italic",i.tagName=["EM","I"],e.default=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),(i=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t);for(var n=i=e,r=[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}return e})(((i=i(5))&&i.__esModule?i:{default:i}).default)).blotName="script",i.tagName=["SUB","SUP"],e.default=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),(i=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t),e})(((i=i(5))&&i.__esModule?i:{default:i}).default)).blotName="strike",i.tagName="S",e.default=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),(i=(t=>{function e(){var t;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t),e})(((i=i(5))&&i.__esModule?i:{default:i}).default)).blotName="underline",i.tagName="U",e.default=i},function(t,e,i){function r(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:r(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}Object.defineProperty(e,"__esModule",{value:!0});var n=(n=i(0))&&n.__esModule?n:{default:n},o=i(15),a=["alt","height","width"];function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(i=(t=>{function i(){var t;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");if(t=(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var e=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),t=[{key:"create",value:function(t){var e=r(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,t);return"string"==typeof t&&e.setAttribute("src",this.sanitize(t)),e}},{key:"formats",value:function(i){return a.reduce(function(t,e){return i.hasAttribute(e)&&(t[e]=i.getAttribute(e)),t},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,o.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}],s((e=i).prototype,[{key:"format",value:function(t,e){-1<a.indexOf(t)?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):r(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,t,e)}}]),s(e,t),i})(n.default.Embed)).blotName="image",i.tagName="IMG",e.default=i},function(t,e,i){function r(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:r(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),o=(i=i(15))&&i.__esModule?i:{default:i},a=["height","width"];function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(i=(t=>{function i(){var t;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");if(t=(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments),this)return!t||"object"!=typeof t&&"function"!=typeof t?this:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var e=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),t=[{key:"create",value:function(t){var e=r(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen",!0),e.setAttribute("src",this.sanitize(t)),e}},{key:"formats",value:function(i){return a.reduce(function(t,e){return i.hasAttribute(e)&&(t[e]=i.getAttribute(e)),t},{})}},{key:"sanitize",value:function(t){return o.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}],s((e=i).prototype,[{key:"format",value:function(t,e){-1<a.indexOf(t)?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):r(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,t,e)}}]),s(e,t),i})(n.BlockEmbed)).blotName="video",i.className="ql-video",i.tagName="IFRAME",e.default=i},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,i){e&&d(t.prototype,e),i&&d(t,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var l=n(i(33)),c=n(i(6)),i=n(i(7)),h=(a(u,l.default),s(u,null,[{key:"create",value:function(t){var e=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0}(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),u);function u(){return r(this,u),o(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}function d(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(){r(this,f);var t=o(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}h.blotName="formula",h.className="ql-formula",h.tagName="SPAN",a(f,i.default),s(f,null,[{key:"register",value:function(){c.default.register(h,!0)}}]),l=f,e.FormulaBlot=h,e.default=l},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,i){e&&f(t.prototype,e),i&&f(t,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var l=n(i(0)),c=n(i(6)),h=n(i(7)),u=(a(d,n(i(13)).default),s(d,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);return void 0===r?null===(e=Object.getPrototypeOf(e))?void 0:t(e,i,n):"value"in r?r.value:void 0!==(e=r.get)?e.call(n):void 0}(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((0<e.trim().length||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),d);function d(){return r(this,d),o(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}function f(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}u.className="ql-syntax";var p=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE});function g(t,e){r(this,g);var i=o(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t,e));if("function"!=typeof i.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var n=null;return i.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(n),n=setTimeout(function(){i.highlight(),n=null},i.options.interval)}),i.highlight(),i}a(g,h.default),s(g,null,[{key:"register",value:function(){c.default.register(p,!0),c.default.register(u,!0)}}]),s(g,[{key:"highlight",value:function(){var t,e=this;this.quill.selection.composing||(this.quill.update(c.default.sources.USER),t=this.quill.getSelection(),this.quill.scroll.descendants(u).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(c.default.sources.SILENT),null!=t&&this.quill.setSelection(t,c.default.sources.SILENT))}}]),(i=g).DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=u,e.CodeToken=p,e.default=i},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function l(t,e,i){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+e),null!=i&&(n.value=i),t.appendChild(n)}function c(e,t){(t=Array.isArray(t[0])?t:[t]).forEach(function(t){var a=document.createElement("span");a.classList.add("ql-formats"),t.forEach(function(t){var e,i,n,r,o;"string"==typeof t?l(a,t):(e=t[t=Object.keys(t)[0]],Array.isArray(e)?(i=a,n=t,r=e,(o=document.createElement("select")).classList.add("ql-"+n),r.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),o.appendChild(e)}),i.appendChild(o)):l(a,t,e))}),e.appendChild(a)})}function h(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var u=n(i(4)),d=n(i(0)),f=n(i(6)),r=n(i(10)),i=n(i(7)),p=(0,r.default)("quill:toolbar");(r=(t=>{function n(t,e){var i;if(this instanceof n)return i=s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e)),Array.isArray(i.options.container)?(c(e=document.createElement("div"),i.options.container),t.container.parentNode.insertBefore(e,t.container),i.container=e):"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container,i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach(function(t){i.addHandler(t,i.options.handlers[t])}),[].forEach.call(i.container.querySelectorAll("button, select"),function(t){i.attach(t)}),i.quill.on(f.default.events.EDITOR_CHANGE,function(t,e){t===f.default.events.SELECTION_CHANGE&&i.update(e)}),i.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var t=h(i.quill.selection.getRange(),1)[0];i.update(t)}),i):(t=p.error("Container required for toolbar",i.options),s(i,t));throw new TypeError("Cannot call a class as a function")}var e=n;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t);for(var i=(e=n).prototype,r=[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(o){var a=this,s=[].find.call(o.classList,function(t){return 0===t.indexOf("ql-")});if(s){if(s=s.slice("ql-".length),"BUTTON"===o.tagName&&o.setAttribute("type","button"),null==this.handlers[s]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[s])return void p.warn("ignoring attaching to disabled format",s,o);if(null==d.default.query(s))return void p.warn("ignoring attaching to nonexistent format",s,o)}o.addEventListener("SELECT"===o.tagName?"change":"click",function(t){var e=void 0;if("SELECT"===o.tagName){if(o.selectedIndex<0)return;e=!(r=o.options[o.selectedIndex]).hasAttribute("selected")&&(r.value||!1)}else e=!o.classList.contains("ql-active")&&(o.value||!o.hasAttribute("value")),t.preventDefault();a.quill.focus();var i,n,r=a.quill.selection.getRange(),t=h(r,1)[0];if(null!=a.handlers[s])a.handlers[s].call(a,e);else if(d.default.query(s).prototype instanceof d.default.Embed){if(!(e=prompt("Enter "+s)))return;a.quill.updateContents((new u.default).retain(t.index).delete(t.length).insert((r=e,(n=s)in(i={})?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i)),f.default.sources.USER)}else a.quill.format(s,e,f.default.sources.USER);a.update(t)}),this.controls.push([s,o])}}},{key:"update",value:function(r){var o=null==r?{}:this.quill.getFormat(r);this.controls.forEach(function(t){var e,i,n=(t=h(t,2))[0];"SELECT"===(t=t[1]).tagName?(e=void 0,null==r?e=null:null==o[n]?e=t.querySelector("option[selected]"):Array.isArray(o[n])||("string"==typeof(i=o[n])&&(i=i.replace(/\"/g,'\\"')),e=t.querySelector('option[value="'+i+'"]')),null==e?(t.value="",t.selectedIndex=-1):e.selected=!0):null==r?t.classList.remove("ql-active"):t.hasAttribute("value")?(i=o[n]===t.getAttribute("value")||null!=o[n]&&o[n].toString()===t.getAttribute("value")||null==o[n]&&!t.getAttribute("value"),t.classList.toggle("ql-active",i)):t.classList.toggle("ql-active",null!=o[n])})}}],o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}return n})(i.default)).DEFAULTS={},r.DEFAULTS={container:null,handlers:{clean:function(){var t,e=this,i=this.quill.getSelection();null!=i&&(0==i.length?(t=this.quill.getFormat(),Object.keys(t).forEach(function(t){null!=d.default.query(t,d.default.Scope.INLINE)&&e.quill.format(t,!1)})):this.quill.removeFormat(i,f.default.sources.USER))},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",f.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",t,f.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),e=this.quill.getFormat(e),i=parseInt(e.indent||0);"+1"!==t&&"-1"!==t||(t="+1"===t?1:-1,"rtl"===e.direction&&(t*=-1),this.quill.format("indent",i+t,f.default.sources.USER))},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,f.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),e=this.quill.getFormat(e);"check"===t?"checked"===e.list||"unchecked"===e.list?this.quill.format("list",!1,f.default.sources.USER):this.quill.format("list","unchecked",f.default.sources.USER):this.quill.format("list",t,f.default.sources.USER)}}},e.default=r,e.addControls=c},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<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"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <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"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<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> <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></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<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></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <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></path> </svg>'},function(t,e){t.exports='<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>'},function(t,e){t.exports='<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>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <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> <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></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <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> <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> <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></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<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>'},function(t,e){t.exports='<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>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <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> <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></path> </svg>'},function(t,e){t.exports='<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></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:s(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}function l(t,e,i){e&&b(t.prototype,e),i&&b(t,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var c=n(i(2)),h=n(i(9)),u=i(44),d=n(u),f=i(22),p=n(i(26)),g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];function m(t,e){return o(this,m),null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=g),(t=a(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,t,e))).quill.container.classList.add("ql-bubble"),t}function b(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}r(m,d.default),l(m,[{key:"extendToolbar",value:function(t){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),p.default)}}]),(i=m).DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}}),r(y,u.BaseTooltip),l(y,[{key:"listen",value:function(){var e=this;s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){var t;e.root.classList.contains("ql-hidden")||null!=(t=e.quill.getSelection())&&e.position(e.quill.getBounds(t))},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var t=s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"position",this).call(this,t),e=this.root.querySelector(".ql-tooltip-arrow");if(e.style.marginLeft="",0===t)return t;e.style.marginLeft=-1*t-e.offsetWidth/2+"px"}}]);var v=y;function y(t,e){o(this,y);var r=a(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,t,e));return r.quill.on(h.default.events.EDITOR_CHANGE,function(t,e,i,n){t===h.default.events.SELECTION_CHANGE&&(null!=e&&0<e.length&&n===h.default.sources.USER?(r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px",1===(t=r.quill.getLines(e.index,e.length)).length?r.position(r.quill.getBounds(e)):(n=t[t.length-1],t=r.quill.getIndex(n),n=Math.min(n.length()-1,e.index+e.length-t),e=r.quill.getBounds(new f.Range(t,n)),r.position(e))):document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide())}),r}v.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(""),e.BubbleTooltip=v,e.default=i},function(t,e,i){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0===n?null===(t=Object.getPrototypeOf(t))?void 0:s(t,e,i):"value"in n?n.value:void 0!==(t=n.get)?t.call(i):void 0}function l(t,e,i){e&&v(t.prototype,e),i&&v(t,i)}Object.defineProperty(e,"__esModule",{value:!0});var c=n(i(2)),h=n(i(9)),u=i(44),d=n(u),f=n(i(15)),p=i(22),g=n(i(26)),m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];function b(t,e){return r(this,b),null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=m),(t=o(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,t,e))).quill.container.classList.add("ql-snow"),t}function v(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}a(b,d.default),l(b,[{key:"extendToolbar",value:function(i){i.container.classList.add("ql-snow"),this.buildButtons([].slice.call(i.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(i.container.querySelectorAll("select")),g.default),this.tooltip=new y(this.quill,this.options.bounds),i.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,e){i.handlers.link.call(i,!e.format.link)})}}]),(i=b).DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?null!=(t=this.quill.getSelection())&&0!=t.length&&(t=this.quill.getText(t),/^\S+@\S+\.\S+$/.test(t)&&0!==t.indexOf("mailto:")&&(t="mailto:"+t),this.quill.theme.tooltip.edit("link",t)):this.quill.format("link",!1)}}}}}),a(x,u.BaseTooltip),l(x,[{key:"listen",value:function(){var r=this;s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(t){r.root.classList.contains("ql-editing")?r.save():r.edit("link",r.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(t){var e;null!=r.linkRange&&(e=r.linkRange,r.restoreFocus(),r.quill.formatText(e,"link",!1,h.default.sources.USER),delete r.linkRange),t.preventDefault(),r.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(t,e,i){if(null!=t){if(0===t.length&&i===h.default.sources.USER){var n=(i=((t,e)=>{if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=t,n=e,r=[],o=!0,t=!1,e=void 0;try{for(var a,s=i[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(i){t=!0,e=i}finally{try{!o&&s.return&&s.return()}finally{if(t)throw e}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")})(i=r.quill.scroll.descendant(f.default,t.index),2))[0];if(null!=n)return r.linkRange=new p.Range(t.index-i[1],n.length()),t=f.default.formats(n.domNode),r.preview.textContent=t,r.preview.setAttribute("href",t),r.show(),void r.position(r.quill.getBounds(r.linkRange))}else delete r.linkRange;r.hide()}})}},{key:"show",value:function(){s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]);var y=x;function x(t,e){return r(this,x),(t=o(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,t,e))).preview=t.root.querySelector("a.ql-preview"),t}y.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(""),e.default=i}],r={},n.m=i,n.c=r,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=45).default;function n(t){var e;return(r[t]||(e=r[t]={i:t,l:!1,exports:{}},i[t].call(e.exports,e,e.exports,n),e.l=!0,e)).exports}var i,r}),(()=>{let t=Object.freeze({left:0,top:0,width:16,height:16}),s=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),d=Object.freeze({...t,...s}),c=Object.freeze({...d,body:"",hidden:!1}),R=Object.freeze({width:null,height:null}),F=Object.freeze({...R,...s}),j=/[\s,]+/,z={...F,preserveAspectRatio:""};function B(i){var e,t={...z},n=(t,e)=>i.getAttribute(t)||e;return t.width=n("width",null),t.height=n("height",null),t.rotate=(e=>{var t,i=e.replace(/^-?[0-9.]*/,"");function n(t){for(;t<0;)t+=4;return t%4}if(""===i)return t=parseInt(e),isNaN(t)?0:n(t);if(i!==e){let t=0;switch(i){case"%":t=25;break;case"deg":t=90}if(t)return e=parseFloat(e.slice(0,e.length-i.length)),isNaN(e)||(e/=t)%1!=0?0:n(e)}return 0})(n("rotate","")),e=t,n("flip","").split(j).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}let h=/^[a-z0-9]+(-[a-z0-9]+)*$/,f=(t,e,i,n="")=>{var r=t.split(":");if("@"===t.slice(0,1)){if(r.length<2||3<r.length)return null;n=r.shift().slice(1)}if(!(3<r.length)&&r.length){if(1<r.length)return t=r.pop(),o=r.pop(),o={provider:0<r.length?r[0]:n,prefix:o,name:t},e&&!a(o)?null:o;var o=(t=r[0]).split("-");if(1<o.length)return r={provider:n,prefix:o.shift(),name:o.join("-")},e&&!a(r)?null:r;if(i&&""===n)return o={provider:n,prefix:"",name:t},e&&!a(o,i)?null:o}return null},a=(t,e)=>!!t&&!(""!==t.provider&&!t.provider.match(h)||!(e&&""===t.prefix||t.prefix.match(h))||!t.name.match(h));function H(t,e){r={},!(i=t).hFlip!=!(n=e).hFlip&&(r.hFlip=!0),!i.vFlip!=!n.vFlip&&(r.vFlip=!0),(i=((i.rotate||0)+(n.rotate||0))%4)&&(r.rotate=i);var i,n,r,o,a=r;for(o in c)o in s?o in t&&!(o in a)&&(a[o]=s[o]):o in e?a[o]=e[o]:o in t&&(a[o]=t[o]);return a}function Y(t,e){let i=[];if("object"==typeof t&&"object"==typeof t.icons){t.not_found instanceof Array&&t.not_found.forEach(t=>{e(t,null),i.push(t)});var n,r=(()=>{let r=t.icons,o=t.aliases||Object.create(null),a=Object.create(null);return Object.keys(r).concat(Object.keys(o)).forEach(function t(e){var i,n;return r[e]?a[e]=[]:(e in a||(a[e]=null,(n=(i=o[e]&&o[e].parent)&&t(i))&&(a[e]=[i].concat(n))),a[e])}),a})();for(n in r){var o=r[n];o&&(e(n,((t,e,i)=>{let n=t.icons,r=t.aliases||Object.create(null),o={};function a(t){o=H(n[t]||r[t],o)}return a(e),i.forEach(a),H(t,o)})(t,n,o)),i.push(n))}}return i}let X={provider:"",aliases:{},not_found:{},...t};function u(t,e){for(var i in e)if(i in t&&typeof t[i]!=typeof e[i])return;return 1}function W(t){if("object"==typeof t&&null!==t){var e=t;if("string"==typeof e.prefix&&t.icons&&"object"==typeof t.icons&&u(t,X)){var i,n=e.icons;for(i in n){var r=n[i];if(!i.match(h)||"string"!=typeof r.body||!u(r,c))return}var o,a=e.aliases||Object.create(null);for(o in a){var s=a[o],l=s.parent;if(!o.match(h)||"string"!=typeof l||!n[l]&&!a[l]||!u(s,c))return}return e}}}let r=Object.create(null);function p(t,e){var i=r[t]||(r[t]=Object.create(null));return i[e]||(i[e]={provider:t,prefix:e,icons:Object.create(null),missing:new Set})}function g(i,t){return W(t)?Y(t,(t,e)=>{e?i.icons[t]=e:i.missing.add(t)}):[]}function q(t,e){let n=[];return("string"==typeof t?[t]:Object.keys(r)).forEach(i=>{("string"==typeof i&&"string"==typeof e?[e]:Object.keys(r[i]||{})).forEach(e=>{var t=p(i,e);n=n.concat(Object.keys(t.icons).map(t=>(""!==i?"@"+i+":":"")+e+":"+t))})}),n}let n=!1;function G(t){return n="boolean"==typeof t?t:n}function l(t){var e;if(t="string"==typeof t?f(t,!0,n):t)return e=p(t.provider,t.prefix),t=t.name,e.icons[t]||(e.missing.has(t)?null:void 0)}function V(t,e){if(t=f(t,!0,n)){var i=p(t.provider,t.prefix),t=t.name;try{if("string"==typeof e.body)return i.icons[t]={...e},!0}catch(i){}}return!1}function U(t,e){if("object"!=typeof t)return!1;var i;if("string"!=typeof e&&(e=t.provider||""),!n||e||t.prefix)return i=t.prefix,!!a({provider:e,prefix:i,name:"a"})&&!!g(p(e,i),t);{let i=!1;return W(t)&&(t.prefix="",Y(t,(t,e)=>{e&&V(t,e)&&(i=!0)})),i}}function Z(t){return!!l(t)}function $(t){return(t=l(t))?{...d,...t}:null}function K(t,i){t.forEach(t=>{var e=t.loaderCallbacks;e&&(t.loaderCallbacks=e.filter(t=>t.id!==i))})}let Q=0,i=Object.create(null);function J(t,e){i[t]=e}function m(t){return i[t]||i[""]}var e,tt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function et(t){let i={...tt,...t},n=[];function y(){n=n.filter(t=>"pending"===t().status)}return{query:function(t,e,v){return t=((s,e,i)=>{var t=s.resources.length,t=s.random?Math.floor(Math.random()*t):s.index;let l;if(s.random){let t=s.resources.slice(0);for(l=[];1<t.length;){var n=Math.floor(Math.random()*t.length);l.push(t[n]),t=t.slice(0,n).concat(t.slice(n+1))}l=l.concat(t)}else l=s.resources.slice(t).concat(s.resources.slice(0,t));let r=Date.now(),c,h="pending",u=0,d=null,f=[],p=[];function g(){d&&(clearTimeout(d),d=null)}function o(){"pending"===h&&(h="aborted"),g(),f.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),f=[]}function a(t,e){e&&(p=[]),"function"==typeof t&&p.push(t)}function m(){h="failed",p.forEach(t=>{t(void 0,c)})}function b(){f.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),f=[]}return p.push((t,e)=>{y(),v&&v(t,e)}),setTimeout(function a(){if("pending"===h){g();var t=l.shift();if(void 0===t)return f.length?void(d=setTimeout(()=>{g(),"pending"===h&&(b(),m())},s.timeout)):void m();let o={status:"pending",resource:t,callback:(t,e)=>{var i=o,n=e,r="success"!==t;switch(f=f.filter(t=>t!==i),h){case"pending":break;case"failed":if(r||!s.dataAfterTimeout)return;break;default:return}"abort"===t?(c=n,m()):r?(c=n,f.length||(l.length?a:m)()):(g(),b(),s.random||-1!==(e=s.resources.indexOf(i.resource))&&e!==s.index&&(s.index=e),h="completed",p.forEach(t=>{t(n)}))}};f.push(o),u++,d=setTimeout(a,s.rotate),i(t,e,o.callback)}}),function(){return{startTime:r,payload:e,status:h,queriesSent:u,queriesPending:f.length,subscribe:a,abort:o}}})(i,t,e),n.push(t),t},find:function(e){return n.find(t=>e(t))||null},setIndex:t=>{i.index=t},getIndex:()=>i.index,cleanup:y}}function b(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(!((e=t.resources)instanceof Array&&e.length))return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:!0===t.random,index:t.index||0,dataAfterTimeout:!1!==t.dataAfterTimeout}}let o=Object.create(null),v=["https://api.simplesvg.com","https://api.unisvg.com"],y=[];for(;0<v.length;)1===v.length||.5<Math.random()?y.push(v.shift()):y.push(v.pop());function it(t,e){return null!==(e=b(e))&&(o[t]=e,!0)}function x(t){return o[t]}function nt(){return Object.keys(o)}function rt(){}o[""]=b({resources:["https://api.iconify.design"].concat(y)});let w=Object.create(null);function ot(t,e,i){let n,r;if("string"==typeof t){if(!(o=m(t)))return i(void 0,424),rt;r=o.send,(o=(t=>{if(!w[t]){var e=x(t);if(!e)return;e={config:e,redundancy:et(e)},w[t]=e}return w[t]})(t))&&(n=o.redundancy)}else{var o;(o=b(t))&&(n=et(o),o=m(t.resources?t.resources[0]:""))&&(r=o.send)}return n&&r?n.query(e,r,i)().abort:(i(void 0,424),rt)}let at="iconify2",k="iconify",st=k+"-count",lt=k+"-version",ct=36e5,ht=168;function A(t,e){try{return t.getItem(e)}catch(t){}}function S(t,e,i){try{return t.setItem(e,i),!0}catch(t){}}function ut(t,e){try{t.removeItem(e)}catch(t){}}function C(t,e){return S(t,st,e.toString())}function _(t){return parseInt(A(t,st))||0}let E={local:!0,session:!0},dt={local:new Set,session:new Set},O=!1,T="undefined"==typeof window?{}:window;function ft(t){var e=t+"Storage";try{if(T&&T[e]&&"number"==typeof T[e].length)return T[e]}catch(t){}E[t]=!1}function pt(i,o){let a=ft(i);if(a){var t=A(a,lt);if(t!==at){if(t){var n=_(a);for(let t=0;t<n;t++)ut(a,k+t.toString())}return S(a,lt,at),C(a,0)}let r=Math.floor(Date.now()/ct)-ht,e=_(a);for(let t=e-1;0<=t;t--)(t=>{var e=k+t.toString(),i=A(a,e);if("string"==typeof i){try{var n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&o(n,t))return!0}catch(t){}ut(a,e)}})(t)||(t===e-1?(e--,C(a,e)):dt[i].add(t))}}function gt(){if(!O)for(var t in O=!0,E)pt(t,t=>{var e=t.data;return!!g(t=p(t.provider,e.prefix),e).length&&(e=e.lastModified||-1,t.lastModifiedCached=t.lastModifiedCached?Math.min(t.lastModifiedCached,e):e,!0)})}function mt(){}let L=(t,e)=>{let i=((t,e=!1)=>{let i=[];return t.forEach(t=>{(t="string"==typeof t?f(t,!0,e):t)&&i.push(t)}),i})(t,G()),n=(t=>{let r={loaded:[],missing:[],pending:[]},o=Object.create(null),a=(t.sort((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name)),{provider:"",prefix:"",name:""});return t.forEach(t=>{var e,i,n;a.name===t.name&&a.prefix===t.prefix&&a.provider===t.provider||(e=(a=t).provider,i=t.prefix,((t=t.name)in(n=(n=o[e]||(o[e]=Object.create(null)))[i]||(n[i]=p(e,i))).icons?r.loaded:""===i||n.missing.has(t)?r.missing:r.pending).push({provider:e,prefix:i,name:t}))}),r})(i);if(!n.pending.length){let t=!0;return e&&setTimeout(()=>{t&&e(n.loaded,n.missing,n.pending,mt)}),()=>{t=!1}}let r=Object.create(null),o=[],a,s;if(n.pending.forEach(t=>{var{provider:t,prefix:e}=t;e===s&&t===a||(a=t,s=e,o.push(p(t,e)),(t=r[t]||(r[t]=Object.create(null)))[e])||(t[e]=[])}),n.pending.forEach(t=>{var{provider:t,prefix:e,name:i}=t,n=p(t,e);(n=n.pendingIcons||(n.pendingIcons=new Set)).has(i)||(n.add(i),r[t][e].push(i))}),o.forEach(t=>{var s,{provider:e,prefix:i}=t;r[e][i].length&&(s=t,t=r[e][i],s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(t).sort():s.iconsToLoad=t,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;let{provider:t,prefix:e}=s,i=s.iconsToLoad,n;delete s.iconsToLoad,i&&(n=m(t))&&n.prepare(t,e,i).forEach(a=>{ot(t,a,t=>{if("object"!=typeof t)a.icons.forEach(t=>{s.missing.add(t)});else try{var i=g(s,t);if(!i.length)return;let e=s.pendingIcons;e&&i.forEach(t=>{e.delete(t)}),r=s,o=t,O||gt(),o.lastModified&&!((i,n)=>{var t=i.lastModifiedCached;if(t&&n<=t)return t===n;if(i.lastModifiedCached=n,t)for(var e in E)pt(e,t=>{var e=t.data;return t.provider!==i.provider||e.prefix!==i.prefix||e.lastModified===n});return 1})(r,o.lastModified)||Object.keys(o.icons).length&&(o.not_found&&delete(o=Object.assign({},o)).not_found,n("local")||n("session"))}catch(t){console.error(t)}function n(e){let i;if(E[e]&&(i=ft(e))){let t;if((e=dt[e]).size)e.delete(t=Array.from(e).shift());else if(50<=(t=_(i))||!C(i,t+1))return;return e={cached:Math.floor(Date.now()/ct),provider:r.provider,data:o},S(i,k+t.toString(),JSON.stringify(e))}}var r,o,e;(e=s).iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{var a;e.iconsLoaderFlag=!1,(a=e).pendingCallbacksFlag||(a.pendingCallbacksFlag=!0,setTimeout(()=>{a.pendingCallbacksFlag=!1;var t=a.loaderCallbacks?a.loaderCallbacks.slice(0):[];if(t.length){let n=!1,r=a.provider,o=a.prefix;t.forEach(t=>{let e=t.icons,i=e.pending.length;e.pending=e.pending.filter(t=>{if(t.prefix!==o)return!0;if(a.icons[t=t.name])e.loaded.push({provider:r,prefix:o,name:t});else{if(!a.missing.has(t))return n=!0;e.missing.push({provider:r,prefix:o,name:t})}return!1}),e.pending.length!==i&&(n||K([a],t.id),t.callback(e.loaded.slice(0),e.missing.slice(0),e.pending.slice(0),t.abort))})}}))}))})})})))}),e){var t=e,l=n,c=o,h=Q++,u=K.bind(null,c,h);if(l.pending.length){let e={id:h,icons:l,callback:t,abort:u};c.forEach(t=>{(t.loaderCallbacks||(t.loaderCallbacks=[])).push(e)})}return u}return mt},bt=r=>new Promise((e,i)=>{let n="string"==typeof r?f(r,!0):r;n?L([n||r],t=>{t.length&&n&&(t=l(n))?e({...d,...t}):i(r)}):i(r)}),vt=!1;try{vt=0===navigator.vendor.indexOf("Apple")}catch(t){}let yt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,xt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function M(t,e,i){if(1===e)return t;if(i=i||100,"number"==typeof t)return Math.ceil(t*e*i)/i;if("string"!=typeof t)return t;var n,r=t.split(yt);if(null===r||!r.length)return t;let o=[],a=r.shift(),s=xt.test(a);for(;;){if(!s||(n=parseFloat(a),isNaN(n))?o.push(a):o.push(Math.ceil(n*e*i)/i),void 0===(a=r.shift()))return o.join("");s=!s}}let wt=t=>"unset"===t||"undefined"===t||"none"===t;function kt(t,e){let i={...d,...t},n={...F,...e},a={left:i.left,top:i.top,width:i.width,height:i.height},s=i.body;[i,n].forEach(t=>{let e=[],i=t.hFlip,n=t.vFlip,r,o=t.rotate;switch(i?n?o+=2:(e.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),e.push("scale(-1 1)"),a.top=a.left=0):n&&(e.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),e.push("scale(1 -1)"),a.top=a.left=0),o<0&&(o-=4*Math.floor(o/4)),o%=4){case 1:r=a.height/2+a.top,e.unshift("rotate(90 "+r.toString()+" "+r.toString()+")");break;case 2:e.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:r=a.width/2+a.left,e.unshift("rotate(-90 "+r.toString()+" "+r.toString()+")")}o%2==1&&(a.left!==a.top&&(r=a.left,a.left=a.top,a.top=r),a.width!==a.height)&&(r=a.width,a.width=a.height,a.height=r),e.length&&(s=(t=s,i='<g transform="'+e.join(" ")+'">',n=(t=(t=>{let e="";for(var i=t.indexOf("<defs");0<=i;){var n=t.indexOf(">",i),r=t.indexOf("</defs");if(-1===n||-1===r)break;var o=t.indexOf(">",r);if(-1===o)break;e+=t.slice(n+1,r).trim(),t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:e,content:t}})(t)).defs,i=i+t.content+"</g>",n?"<defs>"+n+"</defs>"+i:i))});var t=n.width,e=n.height,r=a.width,o=a.height;let l,c,h=(null===t?(c=null===e?"1em":"auto"===e?o:e,l=M(c,r/o)):(l="auto"===t?r:t,c=null===e?M(l,o/r):"auto"===e?o:e),{}),u=(t,e)=>{wt(e)||(h[t]=e.toString())};return u("width",l),u("height",c),t=[a.left,a.top,r,o],h.viewBox=t.join(" "),{attributes:h,viewBox:t,body:s}}function P(t,e){let i=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(var n in e)i+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+i+">"+t+"</svg>"}function At(t){return'url("data:image/svg+xml,'+t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")+'")'}let I=(()=>{var t;try{if("function"==typeof(t=fetch))return t}catch(t){}})();function St(t){I=t}function Ct(){return I}let _t={prepare:(r,i,t)=>{let n=[],o=(t=>{var i=x(r);if(!i)return 0;let n;if(i.maxURL){let e=0;i.resources.forEach(t=>{e=Math.max(e,t.length)}),n=i.maxURL-e-i.path.length-(t+".json?icons=").length}else n=0;return n})(i),a={type:"icons",provider:r,prefix:i,icons:[]},s=0;return t.forEach((t,e)=>{(s+=t.length+1)>=o&&0<e&&(n.push(a),a={type:"icons",provider:r,prefix:i,icons:[]},s=t.length),a.icons.push(t)}),n.push(a),n},send:(e,n,r)=>{if(I){let t="string"==typeof(s=n.provider)&&(s=x(s))?s.path:"/";switch(n.type){case"icons":var o=n.prefix,a=n.icons.join(",");t+=o+".json?"+new URLSearchParams({icons:a}).toString();break;case"custom":o=n.uri,t+="/"===o.slice(0,1)?o.slice(1):o;break;default:return void r("abort",400)}let i=503;I(e+t).then(t=>{let e=t.status;if(200===e)return i=501,t.json();setTimeout(()=>{r(404===e?"abort":"next",e)})}).then(t=>{"object"==typeof t&&null!==t?setTimeout(()=>{r("success",t)}):setTimeout(()=>{404===t?r("abort",t):r("next",i)})}).catch(()=>{r("next",i)})}else r("abort",424);var s}};function Et(t,e){switch(t){case"local":case"session":E[t]=e;break;case"all":for(var i in E)E[i]=e}}let Ot="data-style",Tt="";function Lt(t){Tt=t}function Mt(t,e){let i=Array.from(t.childNodes).find(t=>t.hasAttribute&&t.hasAttribute(Ot));i||((i=document.createElement("style")).setAttribute(Ot,Ot),t.appendChild(i)),i.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Tt}let Pt={"background-color":"currentColor"},It={"background-color":"transparent"},Nt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Dt={"-webkit-mask":Pt,mask:Pt,background:It};for(e in Dt){var Rt,Ft=Dt[e];for(Rt in Nt)Ft[e+"-"+Rt]=Nt[Rt]}function jt(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}let N;function zt(t){return Array.from(t.childNodes).find(t=>"SPAN"===(t=t.tagName&&t.tagName.toUpperCase())||"SVG"===t)}function Bt(t,e){var i=e.icon.data,n=e.customisations,r=kt(i,n);n.preserveAspectRatio&&(r.attributes.preserveAspectRatio=n.preserveAspectRatio),r="svg"===(n=e.renderedMode)?(t=>{let e=document.createElement("span"),i=t.attributes,n="";return i.width||(n="width: inherit;"),i.height||(n+="height: inherit;"),n&&(i.style=n),t=P(t.body,i),e.innerHTML=(t=>{if(void 0===N)try{N=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch(t){N=null}return N?N.createHTML(t):t})(t),e.firstChild})(r):((t,e,i)=>{let n=document.createElement("span"),r=t.body;-1!==r.indexOf("<a")&&(r+="\x3c!-- "+Date.now()+" --\x3e");var o,t=t.attributes,e=At(P(r,{...t,width:e.width+"",height:e.height+""})),a=n.style,s={"--svg":e,width:jt(t.width),height:jt(t.height),...i?Pt:It};for(o in s)a.setProperty(o,s[o]);return n})(r,{...d,...i},"mask"===n),(e=zt(t))?"SPAN"===r.tagName&&e.tagName===r.tagName?e.setAttribute("style",r.getAttribute("style")):t.replaceChild(r,e):t.appendChild(r)}function Ht(t,e,i){return{rendered:!1,inline:e,icon:t,lastRender:i&&(i.rendered?i:i.lastRender)}}{let[e="iconify-icon"]=[],n,r;try{n=window.customElements,r=window.HTMLElement}catch(t){return}if(n&&r&&!n.get(e)){let t=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends r{_shadowRoot;_initialised=!1;_state;_checkQueued=!1;_connected=!1;_observer=null;_visible=!0;constructor(){super();var t=this._shadowRoot=this.attachShadow({mode:"open"}),e=this.hasAttribute("inline");Mt(t,e),this._state=Ht({value:""},e),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return t.slice(0)}attributeChangedCallback(t){switch(t){case"inline":var e=this.hasAttribute("inline"),i=this._state;e!==i.inline&&(i.inline=e,Mt(this._shadowRoot,e));break;case"noobserver":this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break;default:this._queueCheck()}}get icon(){var t=this.getAttribute("icon");if(t&&"{"===t.slice(0,1))try{return JSON.parse(t)}catch(t){}return t}set icon(t){"object"==typeof t&&(t=JSON.stringify(t)),this.setAttribute("icon",t)}get inline(){return this.hasAttribute("inline")}set inline(t){t?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(t){t?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){var t=this._state;if(t.rendered){var e=this._shadowRoot;if("svg"===t.renderedMode)try{return void e.lastChild.setCurrentTime(0)}catch(t){}Bt(e,t)}}get status(){var t=this._state;return t.rendered?"rendered":null===t.icon.data?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){var t,e,i;this._checkQueued&&(this._checkQueued=!1,t=this._state,(e=this.getAttribute("icon"))!==t.icon.value?this._iconChanged(e):t.rendered&&this._visible&&(e=this.getAttribute("mode"),i=B(this),t.attrMode===e&&!((t,e)=>{for(var i in z)if(t[i]!==e[i])return 1})(t.customisations,i)&&zt(this._shadowRoot)||this._renderIcon(t.icon,i,e)))}_iconChanged(t){(t=((t,e)=>{let i="string"==typeof t?f(t,!0,!0):null,n,r,o;return i?void 0===(n=l(i))&&i.prefix?(r=L([i],()=>e(t,i,l(i))),{value:t,name:i,loading:r}):{value:t,name:i,data:n}:(o=(t=>{try{var e="string"==typeof t?JSON.parse(t):t;if("string"==typeof e.body)return{...e}}catch(t){}})(t),{value:t,data:o})})(t,(t,e,i)=>{var n=this._state;n.rendered||this.getAttribute("icon")!==t||((t={value:t,name:e,data:i}).data?this._gotIconData(t):n.icon=t)})).data?this._gotIconData(t):this._state=Ht(t,this._state.inline,this._state)}_forceRender(){var t;this._visible?this._queueCheck():(t=zt(this._shadowRoot))&&this._shadowRoot.removeChild(t)}_gotIconData(t){this._checkQueued=!1,this._renderIcon(t,B(this),this.getAttribute("mode"))}_renderIcon(t,e,i){var n=((t,e)=>{switch(e){case"svg":case"bg":case"mask":return e}return"style"===e||!vt&&-1!==t.indexOf("<a")?-1===t.indexOf("currentColor")?"bg":"mask":"svg"})(t.data.body,i),r=this._state.inline;Bt(this._shadowRoot,this._state={rendered:!0,icon:t,inline:r,customisations:e,attrMode:i,renderedMode:n})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(t=>{(t=t.some(t=>t.isIntersecting))!==this._visible&&(this._visible=t,this._forceRender())}),this._observer.observe(this)}catch(t){if(this._observer){try{this._observer.disconnect()}catch(t){}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected)&&this._forceRender()}};t.forEach(e=>{e in i.prototype||Object.defineProperty(i.prototype,e,{get:function(){return this.getAttribute(e)},set:function(t){null!==t?this.setAttribute(e,t):this.removeAttribute(e)}})});var D,Yt=(()=>{let i;J("",_t),G(!0);try{i=window}catch(i){}if(i){if(gt(),void 0!==i.IconifyPreload){let t=i.IconifyPreload,e="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!U(t))&&console.error(e)}catch(t){console.error(e)}})}if(void 0!==i.IconifyProviders){var t=i.IconifyProviders;if("object"==typeof t&&null!==t)for(var e in t){var n="IconifyProviders["+e+"] is invalid.";try{var r=t[e];"object"==typeof r&&r&&void 0!==r.resources&&!it(e,r)&&console.error(n)}catch(i){console.error(n)}}}}return{enableCache:t=>Et(t,!0),disableCache:t=>Et(t,!1),iconLoaded:Z,iconExists:Z,getIcon:$,listIcons:q,addIcon:V,addCollection:U,calculateSize:M,buildIcon:kt,iconToHTML:P,svgToURL:At,loadIcons:L,loadIcon:bt,addAPIProvider:it,appendCustomStyle:Lt,_api:{getAPIConfig:x,setAPIModule:J,sendAPIQuery:ot,setFetch:St,getFetch:Ct,listAPIProviders:nt}}})();for(D in Yt)i[D]=i.prototype[D]=Yt[D];n.define(e,i)}}})();