((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{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&&1this._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||0this.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=ethis._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{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;yc[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),cNumber.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{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{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:"
"},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{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:'',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:'',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: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{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 0r;)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>>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"+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{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=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{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{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-1i?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{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{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&&79b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$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]*>)/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{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")})||!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='
';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=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=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{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;ie.length?t:e})),t.length>e.length?t:e},0)}},{key:"hexToRgba",value:function(){for(var t=0{}[\]\\/]/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=i/1.1){for(var n=e.length-3;0i.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||-1r&&a.globals.seriesX[e][n]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||(ne.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=4i.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\n '.concat(r,'\n - \n ').concat(o,"\n ");return'
'+(i||"")+'
'+n+": "+(t.w.globals.comboCharts&&"rangeArea"!==t.w.config.series[a].type&&"rangeBar"!==t.w.config.series[a].type?"".concat(l,""):s)+"
"}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\n '.concat(t.config.series[e].name||"series-"+(e+1),": ").concat(t.globals.series[e][i],"\n "):'
')+"
".concat(n[0],': ')+o+"
"+"
".concat(n[1],': ')+a+"
"+(s?"
".concat(n[2],': ')+s+"
":"")+"
".concat(n[3],': ')+l+"
"+"
".concat(n[4],': ')+c+"
"}}]),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&&1a.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;hf.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+ci.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=a.from&&(c{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{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{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;he.length?t:i},0),a=0;a{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{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(0e.globals.gridWidth&&!e.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var f=0;f{for(var e,i,n=t.xC,r=t.y1,o=t.y2,a=0;a{for(var e=t.xC,i=t.x1,n=t.y1,r=t.x2,o=t.y2,a=0;a=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=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=2o&&(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{!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=(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;fo.xaxis.max;m--);}for(var b=g;b<=m&&bh[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;rt.dataPoints&&0!==t.dataPoints&&(a=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(1e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0}).reverse(),o=new p({}),i=function(){var t=0t.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),0e.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.lefta.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(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;0n.config.xaxis.labels.maxHeight&&(this.xAxisHeight=n.config.xaxis.labels.maxHeight),n.config.xaxis.labels.minHeight&&this.xAxisHeightc&&(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 \n \n \n':'\n \n \n',title:r.localeValues["zoom"===t?"selectionZoom":"selection"],class:o.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(t,"-icon")})}var s=[];n("zoomIn",this.elZoomIn,'\n \n \n\n'),n("zoomOut",this.elZoomOut,'\n \n \n\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:'\n \n \n \n \n \n \n \n',title:this.localeValues.pan,class:o.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),n("reset",this.elZoomReset,'\n \n \n'),this.t.download&&s.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;lthis.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&&0i.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.endYMath.abs(n)&&0Math.abs(n)&&i<0?this.moveDirection="right":Math.abs(n)>Math.abs(i)&&0Math.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||(ti.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 *")):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"))){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="
",n="
";h.forEach(function(t,e){i+='
').concat(t.attrs.name,"
"),n+="
".concat(t.val,"
")}),p.innerHTML=i+"
",g.innerHTML=n+"
"},!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||-1n.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=2n.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(0i.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;ru.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{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{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,on.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||1a.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;nn.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=-1Math.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;ie.globals.minX&&e.globals.seriesX[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=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 0this.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=_.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{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{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{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,0g.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 0n.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=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?cthis.fullAngle?e.endAngle=e.endAngle-(n+a):n+a=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=e-10&&(t.y<0?r-=10:0e.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;on.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{for(var t=c-1;0{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{e=[],i=0,E.forEach(function(t){null!==t?i++:0{for(var e="",i=0;i=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&&(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=this.height)for(e=0;e=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;no-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-ii&&(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 5s.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;pc.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;bn+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{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&&afunction(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/,"").replace(/<\/svg>$/,"");e.innerHTML=""+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var i=0,n=e.firstChild.childNodes.length;i":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||ethis.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{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{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&&no.maxX-e.width&&(a=(n=o.maxX-e.width)-this.startPoints.box.x),null!=o.minY&&ro.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=0function(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),0o.maxX&&(t=o.maxX-r),void 0!==o.minY&&n+eo.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]))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{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;cN;)(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||nn)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>16},getUint16:function(t){return(t=c(this,2,t,1>>0},getFloat32:function(t){return M(c(this,4,t,1{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")}),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>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<>1,s=r-7,l=n-1,c=127&(r=t[l--]);for(r>>=7;0>=-s,s+=e;0"+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;or;)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{for(var e,i=[],n=(t=(t=>{for(var e=[],i=0,n=t.length;i=r&&ew((y-o)/u))throw RangeError(x);for(o+=(h-r)*u,r=h,s=0;sy)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{var i=0;for(t=c==l?w(t/700):t>>1,t+=w(t/e);455i)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{_(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:255v)throw TypeError(y);for(e=0;e=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=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>>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>>0;if(0==s)return[];if(0===n.length)return null===w(a,n)?[n]:[];for(var l=0,c=0,h=[];ct.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{for(var e=null,i=1,n=null,r=0,o=0;o<8;o++)0!==t[o]?(i=Z(256,5-e))return null}else if(255":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 32t.length)&&(e=t.length);for(var i=0,n=new Array(e);i{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{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{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'),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
Check
Error
',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('
'.concat(this.options.dictRemoveFile,"")),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{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('
"))),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{if(t.dataTransfer.types)for(var e=0;e',this.options.dictFallbackText&&(e+="

".concat(this.options.dictFallbackText,"

")),e+=''),e=w.createElement(e),"FORM"!==this.element.tagName?(t=w.createElement('
'))).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{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=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"".concat(e," ").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;n1024*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=!(4c.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{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{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>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",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",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{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,an)&&(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))&&ag.now?g.config.minDate:g.config.maxDate&&g.config.maxDate"+g.config.getWeek(e)+""),C("onDayCreate",o),o}function m(t){t.focus(),"range"===g.config.mode&&a(t)}function b(t){for(var e=0=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{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=1g.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\n "+e.join("")+"\n \n "}}function W(t,e){(e=(e=void 0===e||e)?t:t-g.currentMonth)<0&&!0===g._hidePrevMonthArrow||0g.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=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 ."+t)).forEach(function(e){var t,i=e.dateObj.getTime(),n=0Math.min(n,t))&&ii,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;ig.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()}):-1g.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;Ig.now.getTime()?g.config.minDate:g.config.maxDate&&g.config.maxDate.getTime(){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{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=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{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+"


"),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{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{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{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{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{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{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{for(var i=0;ii)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],0r.bottom&&(t.scrollTop+=e.bottom-r.bottom))}},{key:"setNativeRange",value:function(t,e){var i,n,r=2{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=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{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{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{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{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{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=' '},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{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;on.right&&(o=n.right-r.right,this.root.style.left=e+o+"px"),r.leftn.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{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 1i.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{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.lengthe.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.lengthh[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=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{if(0===e)return[G,t];for(var i=0,n=0;n{for(var i=0;iObject.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{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=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,0t.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{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 +\<"),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{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&&0this.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{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{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{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{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{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{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{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 '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},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','
','','',"
"].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{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=['','','',''].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!!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{"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{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{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='',n=(t=(t=>{let e="";for(var i=t.indexOf("",i),r=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+"",n?""+n+""+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'"+t+""}function At(t){return'url("data:image/svg+xml,'+t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").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{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("{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("{(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)}}})();