/*! * Mekari UI (https://bitbucket.org/mekariuitoolkit/mekari-ui-toolkit#readme) * Copyright 2011-2021 Mekari * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self)["mekari-ui"]={},t.jQuery,t.Popper)}(this,function(t,e,i){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,i=i&&i.hasOwnProperty("default")?i.default:i;const n="transitionend";function s(t){let i=!1;return e(this).one(o.TRANSITION_END,()=>{i=!0}),setTimeout(()=>{i||o.triggerTransitionEnd(this)},t),this}const o={TRANSITION_END:"bsTransitionEnd",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let i=e(t).css("transition-duration"),n=e(t).css("transition-delay");const s=parseFloat(i),o=parseFloat(n);return s||o?(i=i.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(i)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){e(t).trigger(n)},supportsTransitionEnd:()=>Boolean(n),isElement:t=>(t[0]||t).nodeType,typeCheckConfig(t,e,i){for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const r=i[s],a=e[s],l=a&&o.isElement(a)?"element":null===(n=a)||"undefined"==typeof n?`${n}`:{}.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(l))throw new Error(`${t.toUpperCase()}: `+`Option "${s}" provided type "${l}" `+`but expected type "${r}".`)}var n},findShadowRoot(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?o.findShadowRoot(t.parentNode):null},jQueryDetection(){if("undefined"==typeof e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");const t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};o.jQueryDetection(),e.fn.emulateTransitionEnd=s,e.event.special[o.TRANSITION_END]={bindType:n,delegateType:n,handle(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const r="4.5.2",a="bs.alert",l=`.${a}`,c=e.fn.alert,h=`close${l}`,d=`closed${l}`,g=`click${l}.data-api`,u="alert",f="fade",p="show";class m{constructor(t){this._element=t}static get VERSION(){return r}close(t){let e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}dispose(){e.removeData(this._element,a),this._element=null}_getRootElement(t){const i=o.getSelectorFromElement(t);let n=!1;return i&&(n=document.querySelector(i)),n||(n=e(t).closest(`.${u}`)[0]),n}_triggerCloseEvent(t){const i=e.Event(h);return e(t).trigger(i),i}_removeElement(t){if(e(t).removeClass(p),!e(t).hasClass(f))return void this._destroyElement(t);const i=o.getTransitionDurationFromElement(t);e(t).one(o.TRANSITION_END,e=>this._destroyElement(t,e)).emulateTransitionEnd(i)}_destroyElement(t){e(t).detach().trigger(d).remove()}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data(a);n||(n=new m(this),i.data(a,n)),"close"===t&&n[t](this)})}static _handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}e(document).on(g,'[data-dismiss="alert"]',m._handleDismiss(new m)),e.fn.alert=m._jQueryInterface,e.fn.alert.Constructor=m,e.fn.alert.noConflict=()=>(e.fn.alert=c,m._jQueryInterface);const _="4.5.2",y="bs.button",v=`.${y}`,w=e.fn.button,E="active",b='[data-toggle="buttons"]',C='input:not([type="hidden"])',T=".active",S=`click${v}.data-api`,N=`focus${v}.data-api `+`blur${v}.data-api`,A=`load${v}.data-api`;class ${constructor(t){this._element=t}static get VERSION(){return _}toggle(){let t=!0,i=!0;const n=e(this._element).closest(b)[0];if(n){const s=this._element.querySelector(C);if(s){if("radio"===s.type)if(s.checked&&this._element.classList.contains(E))t=!1;else{const t=n.querySelector(T);t&&e(t).removeClass(E)}t&&("checkbox"!==s.type&&"radio"!==s.type||(s.checked=!this._element.classList.contains(E)),e(s).trigger("change")),s.focus(),i=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(i&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(E)),t&&e(this._element).toggleClass(E))}dispose(){e.removeData(this._element,y),this._element=null}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(y);i||(i=new $(this),e(this).data(y,i)),"toggle"===t&&i[t]()})}}e(document).on(S,'[data-toggle^="button"]',t=>{let i=t.target;const n=i;if(e(i).hasClass("btn")||(i=e(i).closest(".btn")[0]),!i||i.hasAttribute("disabled")||i.classList.contains("disabled"))t.preventDefault();else{const s=i.querySelector(C);if(s&&(s.hasAttribute("disabled")||s.classList.contains("disabled")))return void t.preventDefault();("LABEL"!==n.tagName||s&&"checkbox"!==s.type)&&$._jQueryInterface.call(e(i),"toggle")}}).on(N,'[data-toggle^="button"]',t=>{const i=e(t.target).closest(".btn")[0];e(i).toggleClass("focus",/^focus(in)?$/.test(t.type))}),e(window).on(A,()=>{let t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn'));for(let e=0,i=t.length;e(e.fn.button=w,$._jQueryInterface);const D="collapse",k="4.5.2",I="bs.collapse",O=`.${I}`,j=e.fn[D],R={toggle:!0,parent:""},x={toggle:"boolean",parent:"(string|element)"},P=`show${O}`,L=`shown${O}`,F=`hide${O}`,q=`hidden${O}`,Q=`click${O}.data-api`,B="show",H="collapse",M="collapsing",U="collapsed",W="width",V="height",z=".show, .collapsing",K='[data-toggle="collapse"]';class Y{constructor(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll(`[data-toggle="collapse"][href="#${t.id}"],`+`[data-toggle="collapse"][data-target="#${t.id}"]`));const i=[].slice.call(document.querySelectorAll(K));for(let e=0,n=i.length;ee===t);null!==s&&r.length>0&&(this._selector=s,this._triggerArray.push(n))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get VERSION(){return k}static get Default(){return R}toggle(){e(this._element).hasClass(B)?this.hide():this.show()}show(){if(this._isTransitioning||e(this._element).hasClass(B))return;let t,i;if(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(z)).filter(t=>"string"==typeof this._config.parent?t.getAttribute("data-parent")===this._config.parent:t.classList.contains(H))).length&&(t=null),t&&(i=e(t).not(this._selector).data(I))&&i._isTransitioning)return;const n=e.Event(P);if(e(this._element).trigger(n),n.isDefaultPrevented())return;t&&(Y._jQueryInterface.call(e(t).not(this._selector),"hide"),i||e(t).data(I,null));const s=this._getDimension();e(this._element).removeClass(H).addClass(M),this._element.style[s]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(U).attr("aria-expanded",!0),this.setTransitioning(!0);const r=`scroll${s[0].toUpperCase()+s.slice(1)}`,a=o.getTransitionDurationFromElement(this._element);e(this._element).one(o.TRANSITION_END,()=>{e(this._element).removeClass(M).addClass(`${H} ${B}`),this._element.style[s]="",this.setTransitioning(!1),e(this._element).trigger(L)}).emulateTransitionEnd(a),this._element.style[s]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!e(this._element).hasClass(B))return;const t=e.Event(F);if(e(this._element).trigger(t),t.isDefaultPrevented())return;const i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,o.reflow(this._element),e(this._element).addClass(M).removeClass(`${H} ${B}`);const n=this._triggerArray.length;if(n>0)for(let t=0;t{this.setTransitioning(!1),e(this._element).removeClass(M).addClass(H).trigger(q)}).emulateTransitionEnd(s)}setTransitioning(t){this._isTransitioning=t}dispose(){e.removeData(this._element,I),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...R,...t}).toggle=Boolean(t.toggle),o.typeCheckConfig(D,t,x),t}_getDimension(){return e(this._element).hasClass(W)?W:V}_getParent(){let t;o.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);const i=`[data-toggle="collapse"][data-parent="${this._config.parent}"]`,n=[].slice.call(t.querySelectorAll(i));return e(n).each((t,e)=>{this._addAriaAndCollapsedClass(Y._getTargetFromElement(e),[e])}),t}_addAriaAndCollapsedClass(t,i){const n=e(t).hasClass(B);i.length&&e(i).toggleClass(U,!n).attr("aria-expanded",n)}static _getTargetFromElement(t){const e=o.getSelectorFromElement(t);return e?document.querySelector(e):null}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data(I);const s={...R,...i.data(),..."object"==typeof t&&t?t:{}};if(!n&&s.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(s.toggle=!1),n||(n=new Y(this,s),i.data(I,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}e(document).on(Q,K,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();const i=e(this),n=o.getSelectorFromElement(this),s=[].slice.call(document.querySelectorAll(n));e(s).each(function(){const t=e(this),n=t.data(I)?"toggle":i.data();Y._jQueryInterface.call(t,n)})}),e.fn[D]=Y._jQueryInterface,e.fn[D].Constructor=Y,e.fn[D].noConflict=()=>(e.fn[D]=j,Y._jQueryInterface);const J="dropdown",G="4.5.2",X="bs.dropdown",Z=`.${X}`,tt=e.fn[J],et=27,it=32,nt=9,st=38,ot=40,rt=3,at=new RegExp(`${st}|${ot}|${et}`),lt=`hide${Z}`,ct=`hidden${Z}`,ht=`show${Z}`,dt=`shown${Z}`,gt=`click${Z}`,ut=`click${Z}.data-api`,ft=`keydown${Z}.data-api`,pt=`keyup${Z}.data-api`,mt="disabled",_t="show",yt="dropup",vt="dropright",wt="dropleft",Et="dropdown-menu-right",bt="position-static",Ct='[data-toggle="dropdown"]',Tt=".dropdown-menu",St=".navbar-nav",Nt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",At="top-start",$t="top-end",Dt="bottom-start",kt="bottom-end",It="right-start",Ot="left-start",jt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Rt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"};class xt{constructor(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get VERSION(){return G}static get Default(){return jt}static get DefaultType(){return Rt}toggle(){if(this._element.disabled||e(this._element).hasClass(mt))return;const t=e(this._menu).hasClass(_t);xt._clearMenus(),t||this.show(!0)}show(t=!1){if(this._element.disabled||e(this._element).hasClass(mt)||e(this._menu).hasClass(_t))return;const n={relatedTarget:this._element},s=e.Event(ht,n),r=xt._getParentFromElement(this._element);if(e(r).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar&&t){if("undefined"==typeof i)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");let t=this._element;"parent"===this._config.reference?t=r:o.isElement(this._config.reference)&&(t=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(t=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(r).addClass(bt),this._popper=new i(t,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(r).closest(St).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(_t),e(r).toggleClass(_t).trigger(e.Event(dt,n))}}hide(){if(this._element.disabled||e(this._element).hasClass(mt)||!e(this._menu).hasClass(_t))return;const t={relatedTarget:this._element},i=e.Event(lt,t),n=xt._getParentFromElement(this._element);e(n).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass(_t),e(n).toggleClass(_t).trigger(e.Event(ct,t)))}dispose(){e.removeData(this._element,X),e(this._element).off(Z),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)}update(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()}_addEventListeners(){e(this._element).on(gt,t=>{t.preventDefault(),t.stopPropagation(),this.toggle()})}_getConfig(t){return t={...this.constructor.Default,...e(this._element).data(),...t},o.typeCheckConfig(J,t,this.constructor.DefaultType),t}_getMenuElement(){if(!this._menu){const t=xt._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Tt))}return this._menu}_getPlacement(){const t=e(this._element.parentNode);let i=Dt;return t.hasClass(yt)?i=e(this._menu).hasClass(Et)?$t:At:t.hasClass(vt)?i=It:t.hasClass(wt)?i=Ot:e(this._menu).hasClass(Et)&&(i=kt),i}_detectNavbar(){return e(this._element).closest(".navbar").length>0}_getOffset(){const t={};return"function"==typeof this._config.offset?t.fn=t=>(t.offsets={...t.offsets,...this._config.offset(t.offsets,this._element)||{}},t):t.offset=this._config.offset,t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),{...t,...this._config.popperConfig}}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(X);if(i||(i=new xt(this,"object"==typeof t?t:null),e(this).data(X,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}static _clearMenus(t){if(t&&(t.which===rt||"keyup"===t.type&&t.which!==nt))return;const i=[].slice.call(document.querySelectorAll(Ct));for(let n=0,s=i.length;ne(t).is(":visible"));if(0===s.length)return;let o=s.indexOf(t.target);t.which===st&&o>0&&o--,t.which===ot&&o{t.stopPropagation()}),e.fn[J]=xt._jQueryInterface,e.fn[J].Constructor=xt,e.fn[J].noConflict=()=>(e.fn[J]=tt,xt._jQueryInterface);const Pt="modal",Lt="4.5.2",Ft="bs.modal",qt=`.${Ft}`,Qt=e.fn[Pt],Bt=27,Ht={backdrop:!0,keyboard:!0,focus:!0,show:!0},Mt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Ut=`hide${qt}`,Wt=`hidePrevented${qt}`,Vt=`hidden${qt}`,zt=`show${qt}`,Kt=`shown${qt}`,Yt=`focusin${qt}`,Jt=`resize${qt}`,Gt=`click.dismiss${qt}`,Xt=`keydown.dismiss${qt}`,Zt=`mouseup.dismiss${qt}`,te=`mousedown.dismiss${qt}`,ee=`click${qt}.data-api`,ie="modal-dialog-scrollable",ne="modal-scrollbar-measure",se="modal-backdrop",oe="modal-open",re="fade",ae="show",le="modal-static",ce=".modal-dialog",he=".modal-body",de='[data-dismiss="modal"]',ge=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ue=".sticky-top";class fe{constructor(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(ce),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}static get VERSION(){return Lt}static get Default(){return Ht}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;e(this._element).hasClass(re)&&(this._isTransitioning=!0);const i=e.Event(zt,{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(Gt,de,t=>this.hide(t)),e(this._dialog).on(te,()=>{e(this._element).one(Zt,t=>{e(t.target).is(this._element)&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;const i=e.Event(Ut);if(e(this._element).trigger(i),!this._isShown||i.isDefaultPrevented())return;this._isShown=!1;const n=e(this._element).hasClass(re);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(Yt),e(this._element).removeClass(ae),e(this._element).off(Gt),e(this._dialog).off(te),n){const t=o.getTransitionDurationFromElement(this._element);e(this._element).one(o.TRANSITION_END,t=>this._hideModal(t)).emulateTransitionEnd(t)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach(t=>e(t).off(qt)),e(document).off(Yt),e.removeData(this._element,Ft),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null}handleUpdate(){this._adjustDialog()}_getConfig(t){return t={...Ht,...t},o.typeCheckConfig(Pt,t,Mt),t}_triggerBackdropTransition(){if("static"===this._config.backdrop){const t=e.Event(Wt);if(e(this._element).trigger(t),t.defaultPrevented)return;const i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add(le);const n=o.getTransitionDurationFromElement(this._dialog);e(this._element).off(o.TRANSITION_END),e(this._element).one(o.TRANSITION_END,()=>{this._element.classList.remove(le),i||e(this._element).one(o.TRANSITION_END,()=>{this._element.style.overflowY=""}).emulateTransitionEnd(this._element,n)}).emulateTransitionEnd(n),this._element.focus()}else this.hide()}_showElement(t){const i=e(this._element).hasClass(re),n=this._dialog?this._dialog.querySelector(he):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),e(this._dialog).hasClass(ie)&&n?n.scrollTop=0:this._element.scrollTop=0,i&&o.reflow(this._element),e(this._element).addClass(ae),this._config.focus&&this._enforceFocus();const s=e.Event(Kt,{relatedTarget:t}),r=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,e(this._element).trigger(s)};if(i){const t=o.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(o.TRANSITION_END,r).emulateTransitionEnd(t)}else r()}_enforceFocus(){e(document).off(Yt).on(Yt,t=>{document!==t.target&&this._element!==t.target&&0===e(this._element).has(t.target).length&&this._element.focus()})}_setEscapeEvent(){this._isShown?e(this._element).on(Xt,t=>{this._config.keyboard&&t.which===Bt?(t.preventDefault(),this.hide()):this._config.keyboard||t.which!==Bt||this._triggerBackdropTransition()}):this._isShown||e(this._element).off(Xt)}_setResizeEvent(){this._isShown?e(window).on(Jt,t=>this.handleUpdate(t)):e(window).off(Jt)}_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._showBackdrop(()=>{e(document.body).removeClass(oe),this._resetAdjustments(),this._resetScrollbar(),e(this._element).trigger(Vt)})}_removeBackdrop(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)}_showBackdrop(t){const i=e(this._element).hasClass(re)?re:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=se,i&&this._backdrop.classList.add(i),e(this._backdrop).appendTo(document.body),e(this._element).on(Gt,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&this._triggerBackdropTransition()}),i&&o.reflow(this._backdrop),e(this._backdrop).addClass(ae),!t)return;if(!i)return void t();const n=o.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(o.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(ae);const i=()=>{this._removeBackdrop(),t&&t()};if(e(this._element).hasClass(re)){const t=o.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(o.TRANSITION_END,i).emulateTransitionEnd(t)}else i()}else t&&t()}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=`${this._scrollbarWidth}px`),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=`${this._scrollbarWidth}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}_checkScrollbar(){const t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right){const n=i.style.paddingRight,s=e(i).css("padding-right");e(i).data("padding-right",n).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}),e(i).each((t,i)=>{const n=i.style.marginRight,s=e(i).css("margin-right");e(i).data("margin-right",n).css("margin-right",`${parseFloat(s)-this._scrollbarWidth}px`)});const n=document.body.style.paddingRight,s=e(document.body).css("padding-right");e(document.body).data("padding-right",n).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}e(document.body).addClass(oe)}_resetScrollbar(){const t=[].slice.call(document.querySelectorAll(ge));e(t).each((t,i)=>{const n=e(i).data("padding-right");e(i).removeData("padding-right"),i.style.paddingRight=n||""});const i=[].slice.call(document.querySelectorAll(`${ue}`));e(i).each((t,i)=>{const n=e(i).data("margin-right");"undefined"!=typeof n&&e(i).css("margin-right",n).removeData("margin-right")});const n=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""}_getScrollbarWidth(){const t=document.createElement("div");t.className=ne,document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}static _jQueryInterface(t,i){return this.each(function(){let n=e(this).data(Ft);const s={...Ht,...e(this).data(),..."object"==typeof t&&t?t:{}};if(n||(n=new fe(this,s),e(this).data(Ft,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t](i)}else s.show&&n.show(i)})}}e(document).on(ee,'[data-toggle="modal"]',function(t){let i;const n=o.getSelectorFromElement(this);n&&(i=document.querySelector(n));const s=e(i).data(Ft)?"toggle":{...e(i).data(),...e(this).data()};"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();const r=e(i).one(zt,t=>{t.isDefaultPrevented()||r.one(Vt,()=>{e(this).is(":visible")&&this.focus()})});fe._jQueryInterface.call(e(i),s,this)}),e.fn[Pt]=fe._jQueryInterface,e.fn[Pt].Constructor=fe,e.fn[Pt].noConflict=()=>(e.fn[Pt]=Qt,fe._jQueryInterface);const pe=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],me={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},_e=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,ye=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function ve(t,e){const i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===pe.indexOf(i)||Boolean(t.nodeValue.match(_e)||t.nodeValue.match(ye));const n=e.filter(t=>t instanceof RegExp);for(let t=0,e=n.length;t{ve(t,a)||i.removeAttribute(t.nodeName)})}return n.body.innerHTML}const Ee="tooltip",be="4.5.2",Ce="bs.tooltip",Te=`.${Ce}`,Se=e.fn[Ee],Ne="bs-tooltip",Ae=new RegExp(`(^|\\s)${Ne}\\S+`,"g"),$e=["sanitize","whiteList","sanitizeFn"],De={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},ke={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Ie={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:me,popperConfig:null},Oe="show",je="out",Re={HIDE:`hide${Te}`,HIDDEN:`hidden${Te}`,SHOW:`show${Te}`,SHOWN:`shown${Te}`,INSERTED:`inserted${Te}`,CLICK:`click${Te}`,FOCUSIN:`focusin${Te}`,FOCUSOUT:`focusout${Te}`,MOUSEENTER:`mouseenter${Te}`,MOUSELEAVE:`mouseleave${Te}`},xe="fade",Pe="show",Le=".tooltip-inner",Fe=".arrow",qe="hover",Qe="focus",Be="click",He="manual";class Me{constructor(t,e){if("undefined"==typeof i)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}static get VERSION(){return be}static get Default(){return Ie}static get NAME(){return Ee}static get DATA_KEY(){return Ce}static get Event(){return Re}static get EVENT_KEY(){return Te}static get DefaultType(){return De}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const i=this.constructor.DATA_KEY;let n=e(t.currentTarget).data(i);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(e(this.getTipElement()).hasClass(Pe))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null}show(){if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");const t=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(t);const n=o.findShadowRoot(this.element),s=e.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!s)return;const r=this.getTipElement(),a=o.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(r).addClass(xe);const l="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);const h=this._getContainer();e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(h),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,r,this._getPopperConfig(c)),e(r).addClass(Pe),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);const d=()=>{this.config.animation&&this._fixTransition();const t=this._hoverState;this._hoverState=null,e(this.element).trigger(this.constructor.Event.SHOWN),t===je&&this._leave(null,this)};if(e(this.tip).hasClass(xe)){const t=o.getTransitionDurationFromElement(this.tip);e(this.tip).one(o.TRANSITION_END,d).emulateTransitionEnd(t)}else d()}}hide(t){const i=this.getTipElement(),n=e.Event(this.constructor.Event.HIDE),s=()=>{this._hoverState!==Oe&&i.parentNode&&i.parentNode.removeChild(i),this._cleanTipClass(),this.element.removeAttribute("aria-describedby"),e(this.element).trigger(this.constructor.Event.HIDDEN),null!==this._popper&&this._popper.destroy(),t&&t()};if(e(this.element).trigger(n),!n.isDefaultPrevented()){if(e(i).removeClass(Pe),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[Be]=!1,this._activeTrigger[Qe]=!1,this._activeTrigger[qe]=!1,e(this.tip).hasClass(xe)){const t=o.getTransitionDurationFromElement(i);e(i).one(o.TRANSITION_END,s).emulateTransitionEnd(t)}else s();this._hoverState=""}}update(){null!==this._popper&&this._popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){e(this.getTipElement()).addClass(`${Ne}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(Le)),this.getTitle()),e(t).removeClass(`${xe} ${Pe}`)}setElementContent(t,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=we(i,this.config.whiteList,this.config.sanitizeFn)),t.html(i)):t.text(i):this.config.html?e(i).parent().is(t)||t.empty().append(i):t.text(e(i).text())}getTitle(){let t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t}_getPopperConfig(t){return{...{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Fe},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:t=>{t.originalPlacement!==t.placement&&this._handlePopperPlacementChange(t)},onUpdate:t=>this._handlePopperPlacementChange(t)},...this.config.popperConfig}}_getOffset(){const t={};return"function"==typeof this.config.offset?t.fn=t=>(t.offsets={...t.offsets,...this.config.offset(t.offsets,this.element)||{}},t):t.offset=this.config.offset,t}_getContainer(){return!1===this.config.container?document.body:o.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)}_getAttachment(t){return ke[t.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach(t=>{if("click"===t)e(this.element).on(this.constructor.Event.CLICK,this.config.selector,t=>this.toggle(t));else if(t!==He){const i=t===qe?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===qe?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;e(this.element).on(i,this.config.selector,t=>this._enter(t)).on(n,this.config.selector,t=>this._leave(t))}}),this._hideModalHandler=()=>{this.element&&this.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}_enter(t,i){const n=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusin"===t.type?Qe:qe]=!0),e(i.getTipElement()).hasClass(Pe)||i._hoverState===Oe?i._hoverState=Oe:(clearTimeout(i._timeout),i._hoverState=Oe,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(()=>{i._hoverState===Oe&&i.show()},i.config.delay.show):i.show())}_leave(t,i){const n=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusout"===t.type?Qe:qe]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=je,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(()=>{i._hoverState===je&&i.hide()},i.config.delay.hide):i.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const i=e(this.element).data();return Object.keys(i).forEach(t=>{-1!==$e.indexOf(t)&&delete i[t]}),"number"==typeof(t={...this.constructor.Default,...i,..."object"==typeof t&&t?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()),o.typeCheckConfig(Ee,t,this.constructor.DefaultType),t.sanitize&&(t.template=we(t.template,t.whiteList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this.config)for(const e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match(Ae);null!==i&&i.length&&t.removeClass(i.join(""))}_handlePopperPlacementChange(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))}_fixTransition(){const t=this.getTipElement(),i=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(xe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(Ce);const n="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new Me(this,n),e(this).data(Ce,i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e.fn[Ee]=Me._jQueryInterface,e.fn[Ee].Constructor=Me,e.fn[Ee].noConflict=()=>(e.fn[Ee]=Se,Me._jQueryInterface);const Ue="popover",We="4.5.2",Ve="bs.popover",ze=`.${Ve}`,Ke=e.fn[Ue],Ye="bs-popover",Je=new RegExp(`(^|\\s)${Ye}\\S+`,"g"),Ge={...Me.Default,placement:"right",trigger:"click",content:"",template:''},Xe={...Me.DefaultType,content:"(string|element|function)"},Ze="fade",ti="show",ei=".popover-header",ii=".popover-body",ni={HIDE:`hide${ze}`,HIDDEN:`hidden${ze}`,SHOW:`show${ze}`,SHOWN:`shown${ze}`,INSERTED:`inserted${ze}`,CLICK:`click${ze}`,FOCUSIN:`focusin${ze}`,FOCUSOUT:`focusout${ze}`,MOUSEENTER:`mouseenter${ze}`,MOUSELEAVE:`mouseleave${ze}`};class si extends Me{static get VERSION(){return We}static get Default(){return Ge}static get NAME(){return Ue}static get DATA_KEY(){return Ve}static get Event(){return ni}static get EVENT_KEY(){return ze}static get DefaultType(){return Xe}isWithContent(){return this.getTitle()||this._getContent()}addAttachmentClass(t){e(this.getTipElement()).addClass(`${Ye}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=e(this.getTipElement());this.setElementContent(t.find(ei),this.getTitle());let i=this._getContent();"function"==typeof i&&(i=i.call(this.element)),this.setElementContent(t.find(ii),i),t.removeClass(`${Ze} ${ti}`)}_getContent(){return this.element.getAttribute("data-content")||this.config.content}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match(Je);null!==i&&i.length>0&&t.removeClass(i.join(""))}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(Ve);const n="object"==typeof t?t:null;if((i||!/dispose|hide/.test(t))&&(i||(i=new si(this,n),e(this).data(Ve,i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e.fn[Ue]=si._jQueryInterface,e.fn[Ue].Constructor=si,e.fn[Ue].noConflict=()=>(e.fn[Ue]=Ke,si._jQueryInterface);const oi="scrollspy",ri="4.5.2",ai="bs.scrollspy",li=`.${ai}`,ci=e.fn[oi],hi={offset:10,method:"auto",target:""},di={offset:"number",method:"string",target:"(string|element)"},gi=`activate${li}`,ui=`scroll${li}`,fi=`load${li}.data-api`,pi="dropdown-item",mi="active",_i=".nav, .list-group",yi=".nav-link",vi=".nav-item",wi=".list-group-item",Ei=".dropdown",bi=".dropdown-item",Ci=".dropdown-toggle",Ti="offset",Si="position";class Ni{constructor(t,i){this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(i),this._selector=`${this._config.target} ${yi},`+`${this._config.target} ${wi},`+`${this._config.target} ${bi}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(ui,t=>this._process(t)),this.refresh(),this._process()}static get VERSION(){return ri}static get Default(){return hi}refresh(){const t=this._scrollElement===this._scrollElement.window?Ti:Si,i="auto"===this._config.method?t:this._config.method,n=i===Si?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(t=>{let s;const r=o.getSelectorFromElement(t);if(r&&(s=document.querySelector(r)),s){const t=s.getBoundingClientRect();if(t.width||t.height)return[e(s)[i]().top+n,r]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){e.removeData(this._element,ai),e(this._scrollElement).off(li),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(t){if("string"!=typeof(t={...hi,..."object"==typeof t&&t?t:{}}).target&&o.isElement(t.target)){let i=e(t.target).attr("id");i||(i=o.getUID(oi),e(t.target).attr("id",i)),t.target=`#${i}`}return o.typeCheckConfig(oi,t,di),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&("undefined"==typeof this._offsets[e+1]||t`${e}[data-target="${t}"],${e}[href="${t}"]`),n=e([].slice.call(document.querySelectorAll(i.join(","))));n.hasClass(pi)?(n.closest(Ei).find(Ci).addClass(mi),n.addClass(mi)):(n.addClass(mi),n.parents(_i).prev(`${yi}, ${wi}`).addClass(mi),n.parents(_i).prev(vi).children(yi).addClass(mi)),e(this._scrollElement).trigger(gi,{relatedTarget:t})}_clear(){[].slice.call(document.querySelectorAll(this._selector)).filter(t=>t.classList.contains(mi)).forEach(t=>t.classList.remove(mi))}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(ai);if(i||(i=new Ni(this,"object"==typeof t&&t),e(this).data(ai,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e(window).on(fi,()=>{const t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]'));for(let i=t.length;i--;){const n=e(t[i]);Ni._jQueryInterface.call(n,n.data())}}),e.fn[oi]=Ni._jQueryInterface,e.fn[oi].Constructor=Ni,e.fn[oi].noConflict=()=>(e.fn[oi]=ci,Ni._jQueryInterface);const Ai="4.5.2",$i="bs.tab",Di=`.${$i}`,ki=e.fn.tab,Ii=`hide${Di}`,Oi=`hidden${Di}`,ji=`show${Di}`,Ri=`shown${Di}`,xi=`click${Di}.data-api`,Pi="dropdown-menu",Li="active",Fi="disabled",qi="fade",Qi="show",Bi=".dropdown",Hi=".nav, .list-group",Mi=".active",Ui="> li > .active",Wi=".dropdown-toggle",Vi="> .dropdown-menu .active";class zi{constructor(t){this._element=t}static get VERSION(){return Ai}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(Li)||e(this._element).hasClass(Fi))return;let t,i;const n=e(this._element).closest(Hi)[0],s=o.getSelectorFromElement(this._element);if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?Ui:Mi;i=(i=e.makeArray(e(n).find(t)))[i.length-1]}const r=e.Event(Ii,{relatedTarget:this._element}),a=e.Event(ji,{relatedTarget:i});if(i&&e(i).trigger(r),e(this._element).trigger(a),a.isDefaultPrevented()||r.isDefaultPrevented())return;s&&(t=document.querySelector(s)),this._activate(this._element,n);const l=()=>{const t=e.Event(Oi,{relatedTarget:this._element}),n=e.Event(Ri,{relatedTarget:i});e(i).trigger(t),e(this._element).trigger(n)};t?this._activate(t,t.parentNode,l):l()}dispose(){e.removeData(this._element,$i),this._element=null}_activate(t,i,n){const s=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?e(i).children(Mi):e(i).find(Ui))[0],r=n&&s&&e(s).hasClass(qi),a=()=>this._transitionComplete(t,s,n);if(s&&r){const t=o.getTransitionDurationFromElement(s);e(s).removeClass(Qi).one(o.TRANSITION_END,a).emulateTransitionEnd(t)}else a()}_transitionComplete(t,i,n){if(i){e(i).removeClass(Li);const t=e(i.parentNode).find(Vi)[0];t&&e(t).removeClass(Li),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}if(e(t).addClass(Li),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),o.reflow(t),t.classList.contains(qi)&&t.classList.add(Qi),t.parentNode&&e(t.parentNode).hasClass(Pi)){const i=e(t).closest(Bi)[0];if(i){const t=[].slice.call(i.querySelectorAll(Wi));e(t).addClass(Li)}t.setAttribute("aria-expanded",!0)}n&&n()}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data($i);if(n||(n=new zi(this),i.data($i,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}e(document).on(xi,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),zi._jQueryInterface.call(e(this),"show")}),e.fn.tab=zi._jQueryInterface,e.fn.tab.Constructor=zi,e.fn.tab.noConflict=()=>(e.fn.tab=ki,zi._jQueryInterface);var Ki=function(){var t=e(".dropdown-with-pill"),i=e(".dropdown-with-select"),n=e(".dropdown-action--search");t.each(function(){var t=e(this).find(".dropdown-selected-list"),i=e(this).find(".dropdown-menu-list"),n=i.attr("data-select-name"),s=e(this).find(".dropdown-menu .is-selected").map(function(){return e(this).attr("data-val")}).get();t.length||(e(this).append(""),t=e(this).find(".dropdown-selected-list"));var o=s,r=Array.isArray(o),a=0;for(o=r?o:o[Symbol.iterator]();;){var l;if(r){if(a>=o.length)break;l=o[a++]}else{if((a=o.next()).done)break;l=a.value}var c=l,h=e(this).find(".dropdown-item[data-val='"+c+"']").attr("data-id");t.append(""+c+" ")}var d=e(".dropdown-with-pill .badge .ic");Yi(d),i.bind("DOMNodeInserted",function(t){t.target!==i[0]&&t.target.addEventListener("click",Ji)})}),i.each(function(){var t=e(this).find(".dropdown-menu-list").attr("data-select-name"),i=e(this).find(".dropdown-menu .is-selected"),n=i.attr("data-id"),s=i.text();s?(e(this).find(".dropdown-toggle").html(s),e(this).append("")):e(this).append("")});var s=e(".dropdown-with-pill .dropdown-item"),o=e(".dropdown-with-select .dropdown-item");s.click(Ji),o.click(Ji),n.each(function(){var t=e(this).find("input[type='text']"),i=t.closest(".dropdown-menu");t.keyup(function(t){var n=i.find(".dropdown-menu-list .dropdown-item").not(".text-link"),s=t.currentTarget.value.toLocaleLowerCase();n.each(function(){e(this).text().toLocaleLowerCase().includes(s)?e(this).removeClass("d-none"):e(this).addClass("d-none")});var o=i.find(".dropdown-menu-list .dropdown-item.d-none").not(".text-link"),r=i.find("span.dropdown-not-found");o.length===n.length?r.length?r.removeClass("d-none"):i.append('No data found'):r.addClass("d-none")})})},Yi=function(t){t.click(function(){var t=e(this).closest(".badge"),i=t.attr("data-val"),n=t.attr("data-id");t.closest(".dropdown-selected-list").find("input[value='"+n+"']").remove(),t.closest(".dropdown-with-pill").find(".is-selected[data-val='"+i+"']").removeClass("is-selected"),t.remove()})},Ji=function(){var t,i=e(event.currentTarget);if(i.closest(".dropdown").hasClass("dropdown-with-select")?t=".dropdown-with-select":i.closest(".dropdown").hasClass("dropdown-with-pill")&&(t=".dropdown-with-pill"),!i.hasClass("dropdown-action")){var n=i.closest(t),s=n.find(".dropdown-selected-list");".dropdown-with-select"==t&&n.find(".dropdown-item").removeClass("is-selected"),i.addClass("is-selected");var o=i.attr("data-id"),r=n.find(".dropdown-menu-list").attr("data-select-name");if(".dropdown-with-pill"==t){var a=i.attr("data-val");s.append(""+a+" ");var l=s.find(".badge[data-val='"+a+"'] .ic");Yi(l)}else".dropdown-with-select"==t&&(n.find(".dropdown-toggle").addClass("selected").html(i.text()),s.html(""))}};e(document).ready(function(){Ki()});var Gi=function(){Xi()},Xi=function(){e(".checkallbox-wrapper").each(function(){var t=e(this).attr("data-checkall"),i=e(this).find(".checkallbox-parent[data-checkall = '"+t+"']"),n=e(this).find("input[type='checkbox'][data-checkall = '"+t+"']").not(".checkallbox-parent");Zi(i,n),tn(i,n),en(i,n)})},Zi=function(t,i){var n=i.length;i.filter(function(){return!0===e(this).is(":checked")}).length===n&&n>0?t.prop("checked",!0):t.prop("checked",!1)},tn=function(t,i){t.change(function(){e(this).is(":checked")?i.prop("checked",!0):i.prop("checked",!1)})},en=function(t,e){e.change(function(){Zi(t,e)})};e(document).ready(function(){Gi()});var nn=function(){e('[data-toggle="tooltip"]').tooltip({trigger:"hover"})};e(document).ready(function(){nn()}),t.Alert=m,t.Button=$,t.Collapse=Y,t.Dropdown=xt,t.MekariDropdown=Ki,t.MekariForm=Gi,t.MekariTooltip=nn,t.Modal=fe,t.Popover=si,t.Scrollspy=Ni,t.Tab=zi,t.Tooltip=Me,t.Util=o,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=mekari-ui.min.js.map