understrap/js/theme-bootstrap4.min.js

32 lines
76 KiB
JavaScript

/*!
* Understrap v1.2.2 (https://understrap.com)
* Copyright 2013-2023 The Understrap Authors (https://github.com/understrap/understrap/graphs/contributors)
* Licensed under GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html)
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).understrap={},t.jQuery)}(this,(function(t,e){"use strict";const i="transitionend";function n(t){let i=!1;return e(this).one(s.TRANSITION_END,(()=>{i=!0})),setTimeout((()=>{i||s.triggerTransitionEnd(this)}),t),this}const s={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(i)},supportsTransitionEnd:()=>Boolean(i),isElement:t=>(t[0]||t).nodeType,typeCheckConfig(t,e,i){for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)){const r=i[o],a=e[o],l=a&&s.isElement(a)?"element":null==(n=a)?`${n}`:{}.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(l))throw new Error(`${t.toUpperCase()}: Option "${o}" 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?s.findShadowRoot(t.parentNode):null},jQueryDetection(){if(void 0===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")}};s.jQueryDetection(),e.fn.emulateTransitionEnd=n,e.event.special[s.TRANSITION_END]={bindType:i,delegateType:i,handle(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const o="alert",r="bs.alert",a=`.${r}`,l=e.fn[o],h=`close${a}`,c=`closed${a}`,d=`click${a}.data-api`;class u{constructor(t){this._element=t}static get VERSION(){return"4.6.2"}close(t){let e=this._element;t&&(e=this._getRootElement(t));this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}dispose(){e.removeData(this._element,r),this._element=null}_getRootElement(t){const i=s.getSelectorFromElement(t);let n=!1;return i&&(n=document.querySelector(i)),n||(n=e(t).closest(".alert")[0]),n}_triggerCloseEvent(t){const i=e.Event(h);return e(t).trigger(i),i}_removeElement(t){if(e(t).removeClass("show"),!e(t).hasClass("fade"))return void this._destroyElement(t);const i=s.getTransitionDurationFromElement(t);e(t).one(s.TRANSITION_END,(e=>this._destroyElement(t,e))).emulateTransitionEnd(i)}_destroyElement(t){e(t).detach().trigger(c).remove()}static _jQueryInterface(t){return this.each((function(){const i=e(this);let n=i.data(r);n||(n=new u(this),i.data(r,n)),"close"===t&&n[t](this)}))}static _handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}e(document).on(d,'[data-dismiss="alert"]',u._handleDismiss(new u)),e.fn[o]=u._jQueryInterface,e.fn[o].Constructor=u,e.fn[o].noConflict=()=>(e.fn[o]=l,u._jQueryInterface);const f="button",g="bs.button",p=`.${g}`,m=".data-api",_=e.fn[f],v="active",y=`click${p}${m}`,b=`focus${p}${m} blur${p}${m}`,E=`load${p}${m}`,w='[data-toggle^="button"]',T='input:not([type="hidden"])',C=".btn";class S{constructor(t){this._element=t,this.shouldAvoidTriggerChange=!1}static get VERSION(){return"4.6.2"}toggle(){let t=!0,i=!0;const n=e(this._element).closest('[data-toggle="buttons"]')[0];if(n){const s=this._element.querySelector(T);if(s){if("radio"===s.type)if(s.checked&&this._element.classList.contains(v))t=!1;else{const t=n.querySelector(".active");t&&e(t).removeClass(v)}t&&("checkbox"!==s.type&&"radio"!==s.type||(s.checked=!this._element.classList.contains(v)),this.shouldAvoidTriggerChange||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(v)),t&&e(this._element).toggleClass(v))}dispose(){e.removeData(this._element,g),this._element=null}static _jQueryInterface(t,i){return this.each((function(){const n=e(this);let s=n.data(g);s||(s=new S(this),n.data(g,s)),s.shouldAvoidTriggerChange=i,"toggle"===t&&s[t]()}))}}e(document).on(y,w,(t=>{let i=t.target;const n=i;if(e(i).hasClass("btn")||(i=e(i).closest(C)[0]),!i||i.hasAttribute("disabled")||i.classList.contains("disabled"))t.preventDefault();else{const s=i.querySelector(T);if(s&&(s.hasAttribute("disabled")||s.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===i.tagName||S._jQueryInterface.call(e(i),"toggle","INPUT"===n.tagName)}})).on(b,w,(t=>{const i=e(t.target).closest(C)[0];e(i).toggleClass("focus",/^focus(in)?$/.test(t.type))})),e(window).on(E,(()=>{let t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn'));for(let e=0,i=t.length;e<i;e++){const i=t[e],n=i.querySelector(T);n.checked||n.hasAttribute("checked")?i.classList.add(v):i.classList.remove(v)}t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'));for(let e=0,i=t.length;e<i;e++){const i=t[e];"true"===i.getAttribute("aria-pressed")?i.classList.add(v):i.classList.remove(v)}})),e.fn[f]=S._jQueryInterface,e.fn[f].Constructor=S,e.fn[f].noConflict=()=>(e.fn[f]=_,S._jQueryInterface);const D="carousel",N="bs.carousel",A=`.${N}`,$=".data-api",I=e.fn[D],O="active",x="next",k="prev",L=`slide${A}`,j=`slid${A}`,P=`keydown${A}`,F=`mouseenter${A}`,R=`mouseleave${A}`,B=`touchstart${A}`,H=`touchmove${A}`,M=`touchend${A}`,q=`pointerdown${A}`,Q=`pointerup${A}`,W=`dragstart${A}`,U=`load${A}${$}`,V=`click${A}${$}`,Y=".active.carousel-item",z={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},K={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},X={TOUCH:"touch",PEN:"pen"};class J{constructor(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}static get VERSION(){return"4.6.2"}static get Default(){return z}next(){this._isSliding||this._slide(x)}nextWhenVisible(){const t=e(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()}prev(){this._isSliding||this._slide(k)}pause(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(s.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=this._element.querySelector(Y);const i=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void e(this._element).one(j,(()=>this.to(t)));if(i===t)return this.pause(),void this.cycle();const n=t>i?x:k;this._slide(n,this._items[t])}dispose(){e(this._element).off(A),e.removeData(this._element,N),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}_getConfig(t){return t={...z,...t},s.typeCheckConfig(D,t,K),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}_addEventListeners(){this._config.keyboard&&e(this._element).on(P,(t=>this._keydown(t))),"hover"===this._config.pause&&e(this._element).on(F,(t=>this.pause(t))).on(R,(t=>this.cycle(t))),this._config.touch&&this._addTouchEventListeners()}_addTouchEventListeners(){if(!this._touchSupported)return;const t=t=>{this._pointerEvent&&X[t.originalEvent.pointerType.toUpperCase()]?this.touchStartX=t.originalEvent.clientX:this._pointerEvent||(this.touchStartX=t.originalEvent.touches[0].clientX)},i=t=>{this.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-this.touchStartX},n=t=>{this._pointerEvent&&X[t.originalEvent.pointerType.toUpperCase()]&&(this.touchDeltaX=t.originalEvent.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};e(this._element.querySelectorAll(".carousel-item img")).on(W,(t=>t.preventDefault())),this._pointerEvent?(e(this._element).on(q,(e=>t(e))),e(this._element).on(Q,(t=>n(t))),this._element.classList.add("pointer-event")):(e(this._element).on(B,(e=>t(e))),e(this._element).on(H,(t=>i(t))),e(this._element).on(M,(t=>n(t))))}_keydown(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}}_getItemIndex(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)}_getItemByDirection(t,e){const i=t===x,n=t===k,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;const r=(s+(t===k?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,i){const n=this._getItemIndex(t),s=this._getItemIndex(this._element.querySelector(Y)),o=e.Event(L,{relatedTarget:t,direction:i,from:s,to:n});return e(this._element).trigger(o),o}_setActiveIndicatorElement(t){if(this._indicatorsElement){const i=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));e(i).removeClass(O);const n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass(O)}}_updateInterval(){const t=this._activeElement||this._element.querySelector(Y);if(!t)return;const e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,i){const n=this._element.querySelector(Y),o=this._getItemIndex(n),r=i||n&&this._getItemByDirection(t,n),a=this._getItemIndex(r),l=Boolean(this._interval);let h,c,d;if(t===x?(h="carousel-item-left",c="carousel-item-next",d="left"):(h="carousel-item-right",c="carousel-item-prev",d="right"),r&&e(r).hasClass(O))return void(this._isSliding=!1);if(this._triggerSlideEvent(r,d).isDefaultPrevented())return;if(!n||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r;const u=e.Event(j,{relatedTarget:r,direction:d,from:o,to:a});if(e(this._element).hasClass("slide")){e(r).addClass(c),s.reflow(r),e(n).addClass(h),e(r).addClass(h);const t=s.getTransitionDurationFromElement(n);e(n).one(s.TRANSITION_END,(()=>{e(r).removeClass(`${h} ${c}`).addClass(O),e(n).removeClass(`${O} ${c} ${h}`),this._isSliding=!1,setTimeout((()=>e(this._element).trigger(u)),0)})).emulateTransitionEnd(t)}else e(n).removeClass(O),e(r).addClass(O),this._isSliding=!1,e(this._element).trigger(u);l&&this.cycle()}static _jQueryInterface(t){return this.each((function(){let i=e(this).data(N),n={...z,...e(this).data()};"object"==typeof t&&(n={...n,...t});const s="string"==typeof t?t:n.slide;if(i||(i=new J(this,n),e(this).data(N,i)),"number"==typeof t)i.to(t);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}))}static _dataApiClickHandler(t){const i=s.getSelectorFromElement(this);if(!i)return;const n=e(i)[0];if(!n||!e(n).hasClass("carousel"))return;const o={...e(n).data(),...e(this).data()},r=this.getAttribute("data-slide-to");r&&(o.interval=!1),J._jQueryInterface.call(e(n),o),r&&e(n).data(N).to(r),t.preventDefault()}}e(document).on(V,"[data-slide], [data-slide-to]",J._dataApiClickHandler),e(window).on(U,(()=>{const t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]'));for(let i=0,n=t.length;i<n;i++){const n=e(t[i]);J._jQueryInterface.call(n,n.data())}})),e.fn[D]=J._jQueryInterface,e.fn[D].Constructor=J,e.fn[D].noConflict=()=>(e.fn[D]=I,J._jQueryInterface);const G="collapse",Z="bs.collapse",tt=`.${Z}`,et=e.fn[G],it="show",nt="collapse",st="collapsing",ot="collapsed",rt="width",at=`show${tt}`,lt=`shown${tt}`,ht=`hide${tt}`,ct=`hidden${tt}`,dt=`click${tt}.data-api`,ut='[data-toggle="collapse"]',ft={toggle:!0,parent:""},gt={toggle:"boolean",parent:"(string|element)"};class pt{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(ut));for(let e=0,n=i.length;e<n;e++){const n=i[e],o=s.getSelectorFromElement(n),r=[].slice.call(document.querySelectorAll(o)).filter((e=>e===t));null!==o&&r.length>0&&(this._selector=o,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"4.6.2"}static get Default(){return ft}toggle(){e(this._element).hasClass(it)?this.hide():this.show()}show(){if(this._isTransitioning||e(this._element).hasClass(it))return;let t,i;if(this._parent&&(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((t=>"string"==typeof this._config.parent?t.getAttribute("data-parent")===this._config.parent:t.classList.contains(nt))),0===t.length&&(t=null)),t&&(i=e(t).not(this._selector).data(Z),i&&i._isTransitioning))return;const n=e.Event(at);if(e(this._element).trigger(n),n.isDefaultPrevented())return;t&&(pt._jQueryInterface.call(e(t).not(this._selector),"hide"),i||e(t).data(Z,null));const o=this._getDimension();e(this._element).removeClass(nt).addClass(st),this._element.style[o]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(ot).attr("aria-expanded",!0),this.setTransitioning(!0);const r=`scroll${o[0].toUpperCase()+o.slice(1)}`,a=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,(()=>{e(this._element).removeClass(st).addClass(`${nt} ${it}`),this._element.style[o]="",this.setTransitioning(!1),e(this._element).trigger(lt)})).emulateTransitionEnd(a),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!e(this._element).hasClass(it))return;const t=e.Event(ht);if(e(this._element).trigger(t),t.isDefaultPrevented())return;const i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,s.reflow(this._element),e(this._element).addClass(st).removeClass(`${nt} ${it}`);const n=this._triggerArray.length;if(n>0)for(let t=0;t<n;t++){const i=this._triggerArray[t],n=s.getSelectorFromElement(i);if(null!==n){e([].slice.call(document.querySelectorAll(n))).hasClass(it)||e(i).addClass(ot).attr("aria-expanded",!1)}}this.setTransitioning(!0);this._element.style[i]="";const o=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,(()=>{this.setTransitioning(!1),e(this._element).removeClass(st).addClass(nt).trigger(ct)})).emulateTransitionEnd(o)}setTransitioning(t){this._isTransitioning=t}dispose(){e.removeData(this._element,Z),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...ft,...t}).toggle=Boolean(t.toggle),s.typeCheckConfig(G,t,gt),t}_getDimension(){return e(this._element).hasClass(rt)?rt:"height"}_getParent(){let t;s.isElement(this._config.parent)?(t=this._config.parent,void 0!==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(pt._getTargetFromElement(e),[e])})),t}_addAriaAndCollapsedClass(t,i){const n=e(t).hasClass(it);i.length&&e(i).toggleClass(ot,!n).attr("aria-expanded",n)}static _getTargetFromElement(t){const e=s.getSelectorFromElement(t);return e?document.querySelector(e):null}static _jQueryInterface(t){return this.each((function(){const i=e(this);let n=i.data(Z);const s={...ft,...i.data(),..."object"==typeof t&&t?t:{}};if(!n&&s.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(s.toggle=!1),n||(n=new pt(this,s),i.data(Z,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}e(document).on(dt,ut,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();const i=e(this),n=s.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));e(o).each((function(){const t=e(this),n=t.data(Z)?"toggle":i.data();pt._jQueryInterface.call(t,n)}))})),e.fn[G]=pt._jQueryInterface,e.fn[G].Constructor=pt,e.fn[G].noConflict=()=>(e.fn[G]=et,pt._jQueryInterface);
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var mt="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,_t=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(mt&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var vt=mt&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),_t))}};function yt(t){return t&&"[object Function]"==={}.toString.call(t)}function bt(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i[e]:i}function Et(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function wt(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=bt(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/(auto|scroll|overlay)/.test(i+s+n)?t:wt(Et(t))}function Tt(t){return t&&t.referenceNode?t.referenceNode:t}var Ct=mt&&!(!window.MSInputMethodContext||!document.documentMode),St=mt&&/MSIE 10/.test(navigator.userAgent);function Dt(t){return 11===t?Ct:10===t?St:Ct||St}function Nt(t){if(!t)return document.documentElement;for(var e=Dt(10)?document.body:null,i=t.offsetParent||null;i===e&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===bt(i,"position")?Nt(i):i:t?t.ownerDocument.documentElement:document.documentElement}function At(t){return null!==t.parentNode?At(t.parentNode):t}function $t(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,s=i?e:t,o=document.createRange();o.setStart(n,0),o.setEnd(s,0);var r,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||n.contains(s))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&Nt(r.firstElementChild)!==r?Nt(l):l;var h=At(t);return h.host?$t(h.host,e):$t(t,At(e).host)}function It(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var n=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||n)[e]}return t[e]}function Ot(t,e){var i="x"===e?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"])+parseFloat(t["border"+n+"Width"])}function xt(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],Dt(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function kt(t){var e=t.body,i=t.documentElement,n=Dt(10)&&getComputedStyle(i);return{height:xt("Height",e,i,n),width:xt("Width",e,i,n)}}var Lt=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),jt=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},Pt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function Ft(t){return Pt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Rt(t){var e={};try{if(Dt(10)){e=t.getBoundingClientRect();var i=It(t,"top"),n=It(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var s={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?kt(t.ownerDocument):{},r=o.width||t.clientWidth||s.width,a=o.height||t.clientHeight||s.height,l=t.offsetWidth-r,h=t.offsetHeight-a;if(l||h){var c=bt(t);l-=Ot(c,"x"),h-=Ot(c,"y"),s.width-=l,s.height-=h}return Ft(s)}function Bt(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Dt(10),s="HTML"===e.nodeName,o=Rt(t),r=Rt(e),a=wt(t),l=bt(e),h=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);i&&s&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var d=Ft({top:o.top-r.top-h,left:o.left-r.left-c,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!n&&s){var u=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=h-u,d.bottom-=h-u,d.left-=c-f,d.right-=c-f,d.marginTop=u,d.marginLeft=f}return(n&&!i?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=It(e,"top"),s=It(e,"left"),o=i?-1:1;return t.top+=n*o,t.bottom+=n*o,t.left+=s*o,t.right+=s*o,t}(d,e)),d}function Ht(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===bt(t,"position"))return!0;var i=Et(t);return!!i&&Ht(i)}function Mt(t){if(!t||!t.parentElement||Dt())return document.documentElement;for(var e=t.parentElement;e&&"none"===bt(e,"transform");)e=e.parentElement;return e||document.documentElement}function qt(t,e,i,n){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},r=s?Mt(t):$t(t,Tt(e));if("viewport"===n)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=Bt(t,i),s=Math.max(i.clientWidth,window.innerWidth||0),o=Math.max(i.clientHeight,window.innerHeight||0),r=e?0:It(i),a=e?0:It(i,"left");return Ft({top:r-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:s,height:o})}(r,s);else{var a=void 0;"scrollParent"===n?"BODY"===(a=wt(Et(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===n?t.ownerDocument.documentElement:n;var l=Bt(a,r,s);if("HTML"!==a.nodeName||Ht(r))o=l;else{var h=kt(t.ownerDocument),c=h.height,d=h.width;o.top+=l.top-l.marginTop,o.bottom=c+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var u="number"==typeof(i=i||0);return o.left+=u?i:i.left||0,o.top+=u?i:i.top||0,o.right-=u?i:i.right||0,o.bottom-=u?i:i.bottom||0,o}function Qt(t,e,i,n,s){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=qt(i,n,o,s),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map((function(t){return Pt({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),h=l.filter((function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight})),c=h.length>0?h[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function Wt(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Bt(i,n?Mt(e):$t(e,Tt(i)),n)}function Ut(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),i=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function Vt(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function Yt(t,e,i){i=i.split("-")[0];var n=Ut(t),s={width:n.width,height:n.height},o=-1!==["right","left"].indexOf(i),r=o?"top":"left",a=o?"left":"top",l=o?"height":"width",h=o?"width":"height";return s[r]=e[r]+e[l]/2-n[l]/2,s[a]=i===a?e[a]-n[h]:e[Vt(a)],s}function zt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Kt(t,e,i){return(void 0===i?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===i}));var n=zt(t,(function(t){return t[e]===i}));return t.indexOf(n)}(t,"name",i))).forEach((function(t){t.function;var i=t.function||t.fn;t.enabled&&yt(i)&&(e.offsets.popper=Ft(e.offsets.popper),e.offsets.reference=Ft(e.offsets.reference),e=i(e,t))})),e}function Xt(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Wt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Qt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Yt(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Kt(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Jt(t,e){return t.some((function(t){var i=t.name;return t.enabled&&i===e}))}function Gt(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var s=e[n],o=s?""+s+i:t;if(void 0!==document.body.style[o])return o}return null}function Zt(){return this.state.isDestroyed=!0,Jt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Gt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function te(t){var e=t.ownerDocument;return e?e.defaultView:window}function ee(t,e,i,n){var s="BODY"===t.nodeName,o=s?t.ownerDocument.defaultView:t;o.addEventListener(e,i,{passive:!0}),s||ee(wt(o.parentNode),e,i,n),n.push(o)}function ie(t,e,i,n){i.updateBound=n,te(t).addEventListener("resize",i.updateBound,{passive:!0});var s=wt(t);return ee(s,"scroll",i.updateBound,i.scrollParents),i.scrollElement=s,i.eventsEnabled=!0,i}function ne(){this.state.eventsEnabled||(this.state=ie(this.reference,this.options,this.state,this.scheduleUpdate))}function se(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,te(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function oe(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function re(t,e){Object.keys(e).forEach((function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&oe(e[i])&&(n="px"),t.style[i]=e[i]+n}))}var ae=mt&&/Firefox/i.test(navigator.userAgent);function le(t,e,i){var n=zt(t,(function(t){return t.name===e})),s=!!n&&t.some((function(t){return t.name===i&&t.enabled&&t.order<n.order}));if(!s);return s}var he=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ce=he.slice(3);function de(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=ce.indexOf(t),n=ce.slice(i+1).concat(ce.slice(0,i));return e?n.reverse():n}var ue="flip",fe="clockwise",ge="counterclockwise";function pe(t,e,i,n){var s=[0,0],o=-1!==["right","left"].indexOf(n),r=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=r.indexOf(zt(r,(function(t){return-1!==t.search(/,|\s/)})));r[a]&&r[a].indexOf(",");var l=/\s*,\s*|\s+/,h=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return h=h.map((function(t,n){var s=(1===n?!o:o)?"height":"width",r=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,i,n){var s=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+s[1],r=s[2];if(!o)return t;if(0===r.indexOf("%")){return Ft("%p"===r?i:n)[e]/100*o}if("vh"===r||"vw"===r)return("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,s,e,i)}))})),h.forEach((function(t,e){t.forEach((function(i,n){oe(i)&&(s[e]+=i*("-"===t[n-1]?-1:1))}))})),s}var me={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var s=t.offsets,o=s.reference,r=s.popper,a=-1!==["bottom","top"].indexOf(i),l=a?"left":"top",h=a?"width":"height",c={start:jt({},l,o[l]),end:jt({},l,o[l]+o[h]-r[h])};t.offsets.popper=Pt({},r,c[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i=e.offset,n=t.placement,s=t.offsets,o=s.popper,r=s.reference,a=n.split("-")[0],l=void 0;return l=oe(+i)?[+i,0]:pe(i,o,r,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var i=e.boundariesElement||Nt(t.instance.popper);t.instance.reference===i&&(i=Nt(i));var n=Gt("transform"),s=t.instance.popper.style,o=s.top,r=s.left,a=s[n];s.top="",s.left="",s[n]="";var l=qt(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);s.top=o,s.left=r,s[n]=a,e.boundaries=l;var h=e.priority,c=t.offsets.popper,d={primary:function(t){var i=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(i=Math.max(c[t],l[t])),jt({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=c[i];return c[t]>l[t]&&!e.escapeWithReference&&(n=Math.min(c[i],l[t]-("right"===t?c.width:c.height))),jt({},i,n)}};return h.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=Pt({},c,d[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,s=t.placement.split("-")[0],o=Math.floor,r=-1!==["top","bottom"].indexOf(s),a=r?"right":"bottom",l=r?"left":"top",h=r?"width":"height";return i[a]<o(n[l])&&(t.offsets.popper[l]=o(n[l])-i[h]),i[l]>o(n[a])&&(t.offsets.popper[l]=o(n[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!le(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return t;var s=t.placement.split("-")[0],o=t.offsets,r=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(s),h=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),u=l?"left":"top",f=l?"bottom":"right",g=Ut(n)[h];a[f]-g<r[d]&&(t.offsets.popper[d]-=r[d]-(a[f]-g)),a[d]+g>r[f]&&(t.offsets.popper[d]+=a[d]+g-r[f]),t.offsets.popper=Ft(t.offsets.popper);var p=a[d]+a[h]/2-g/2,m=bt(t.instance.popper),_=parseFloat(m["margin"+c]),v=parseFloat(m["border"+c+"Width"]),y=p-t.offsets.popper[d]-_-v;return y=Math.max(Math.min(r[h]-g,y),0),t.arrowElement=n,t.offsets.arrow=(jt(i={},d,Math.round(y)),jt(i,u,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Jt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=qt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],s=Vt(n),o=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case ue:r=[n,s];break;case fe:r=de(n);break;case ge:r=de(n,!0);break;default:r=e.behavior}return r.forEach((function(a,l){if(n!==a||r.length===l+1)return t;n=t.placement.split("-")[0],s=Vt(n);var h=t.offsets.popper,c=t.offsets.reference,d=Math.floor,u="left"===n&&d(h.right)>d(c.left)||"right"===n&&d(h.left)<d(c.right)||"top"===n&&d(h.bottom)>d(c.top)||"bottom"===n&&d(h.top)<d(c.bottom),f=d(h.left)<d(i.left),g=d(h.right)>d(i.right),p=d(h.top)<d(i.top),m=d(h.bottom)>d(i.bottom),_="left"===n&&f||"right"===n&&g||"top"===n&&p||"bottom"===n&&m,v=-1!==["top","bottom"].indexOf(n),y=!!e.flipVariations&&(v&&"start"===o&&f||v&&"end"===o&&g||!v&&"start"===o&&p||!v&&"end"===o&&m),b=!!e.flipVariationsByContent&&(v&&"start"===o&&g||v&&"end"===o&&f||!v&&"start"===o&&m||!v&&"end"===o&&p),E=y||b;(u||_||E)&&(t.flipped=!0,(u||_)&&(n=r[l+1]),E&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=n+(o?"-"+o:""),t.offsets.popper=Pt({},t.offsets.popper,Yt(t.instance.popper,t.offsets.reference,t.placement)),t=Kt(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,s=n.popper,o=n.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return s[r?"left":"top"]=o[i]-(a?s[r?"width":"height"]:0),t.placement=Vt(e),t.offsets.popper=Ft(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!le(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=zt(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var i=e.x,n=e.y,s=t.offsets.popper,o=zt(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,r=void 0!==o?o:e.gpuAcceleration,a=Nt(t.instance.popper),l=Rt(a),h={position:s.position},c=function(t,e){var i=t.offsets,n=i.popper,s=i.reference,o=Math.round,r=Math.floor,a=function(t){return t},l=o(s.width),h=o(n.width),c=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),u=e?c||d||l%2==h%2?o:r:a,f=e?o:a;return{left:u(l%2==1&&h%2==1&&!d&&e?n.left-1:n.left),top:f(n.top),bottom:f(n.bottom),right:u(n.right)}}(t,window.devicePixelRatio<2||!ae),d="bottom"===i?"top":"bottom",u="right"===n?"left":"right",f=Gt("transform"),g=void 0,p=void 0;if(p="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-l.height+c.bottom:c.top,g="right"===u?"HTML"===a.nodeName?-a.clientWidth+c.right:-l.width+c.right:c.left,r&&f)h[f]="translate3d("+g+"px, "+p+"px, 0)",h[d]=0,h[u]=0,h.willChange="transform";else{var m="bottom"===d?-1:1,_="right"===u?-1:1;h[d]=p*m,h[u]=g*_,h.willChange=d+", "+u}var v={"x-placement":t.placement};return t.attributes=Pt({},v,t.attributes),t.styles=Pt({},h,t.styles),t.arrowStyles=Pt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,i;return re(t.instance.popper,t.styles),e=t.instance.popper,i=t.attributes,Object.keys(i).forEach((function(t){!1!==i[t]?e.setAttribute(t,i[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&re(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i,n,s){var o=Wt(s,e,t,i.positionFixed),r=Qt(i.placement,o,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",r),re(e,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}},_e={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:me},ve=function(){function t(e,i){var n=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=vt(this.update.bind(this)),this.options=Pt({},t.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(Pt({},t.Defaults.modifiers,s.modifiers)).forEach((function(e){n.options.modifiers[e]=Pt({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return Pt({name:t},n.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&yt(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Lt(t,[{key:"update",value:function(){return Xt.call(this)}},{key:"destroy",value:function(){return Zt.call(this)}},{key:"enableEventListeners",value:function(){return ne.call(this)}},{key:"disableEventListeners",value:function(){return se.call(this)}}]),t}();ve.Utils=("undefined"!=typeof window?window:global).PopperUtils,ve.placements=he,ve.Defaults=_e;var ye=ve;const be="dropdown",Ee="bs.dropdown",we=`.${Ee}`,Te=".data-api",Ce=e.fn[be],Se=new RegExp("38|40|27"),De="disabled",Ne="show",Ae="dropdown-menu-right",$e=`hide${we}`,Ie=`hidden${we}`,Oe=`show${we}`,xe=`shown${we}`,ke=`click${we}`,Le=`click${we}${Te}`,je=`keydown${we}${Te}`,Pe=`keyup${we}${Te}`,Fe='[data-toggle="dropdown"]',Re=".dropdown-menu",Be={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},He={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"};class Me{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"4.6.2"}static get Default(){return Be}static get DefaultType(){return He}toggle(){if(this._element.disabled||e(this._element).hasClass(De))return;const t=e(this._menu).hasClass(Ne);Me._clearMenus(),t||this.show(!0)}show(t=!1){if(this._element.disabled||e(this._element).hasClass(De)||e(this._menu).hasClass(Ne))return;const i={relatedTarget:this._element},n=e.Event(Oe,i),o=Me._getParentFromElement(this._element);if(e(o).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===ye)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=o:s.isElement(this._config.reference)&&(t=this._config.reference,void 0!==this._config.reference.jquery&&(t=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(o).addClass("position-static"),this._popper=new ye(t,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(o).closest(".navbar-nav").length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(Ne),e(o).toggleClass(Ne).trigger(e.Event(xe,i))}}hide(){if(this._element.disabled||e(this._element).hasClass(De)||!e(this._menu).hasClass(Ne))return;const t={relatedTarget:this._element},i=e.Event($e,t),n=Me._getParentFromElement(this._element);e(n).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass(Ne),e(n).toggleClass(Ne).trigger(e.Event(Ie,t)))}dispose(){e.removeData(this._element,Ee),e(this._element).off(we),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(ke,(t=>{t.preventDefault(),t.stopPropagation(),this.toggle()}))}_getConfig(t){return t={...this.constructor.Default,...e(this._element).data(),...t},s.typeCheckConfig(be,t,this.constructor.DefaultType),t}_getMenuElement(){if(!this._menu){const t=Me._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Re))}return this._menu}_getPlacement(){const t=e(this._element.parentNode);let i="bottom-start";return t.hasClass("dropup")?i=e(this._menu).hasClass(Ae)?"top-end":"top-start":t.hasClass("dropright")?i="right-start":t.hasClass("dropleft")?i="left-start":e(this._menu).hasClass(Ae)&&(i="bottom-end"),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(Ee);if(i||(i=new Me(this,"object"==typeof t?t:null),e(this).data(Ee,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}static _clearMenus(t){if(t&&(3===t.which||"keyup"===t.type&&9!==t.which))return;const i=[].slice.call(document.querySelectorAll(Fe));for(let n=0,s=i.length;n<s;n++){const s=Me._getParentFromElement(i[n]),o=e(i[n]).data(Ee),r={relatedTarget:i[n]};if(t&&"click"===t.type&&(r.clickEvent=t),!o)continue;const a=o._menu;if(!e(s).hasClass(Ne))continue;if(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(s,t.target))continue;const l=e.Event($e,r);e(s).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),i[n].setAttribute("aria-expanded","false"),o._popper&&o._popper.destroy(),e(a).removeClass(Ne),e(s).removeClass(Ne).trigger(e.Event(Ie,r)))}}static _getParentFromElement(t){let e;const i=s.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode}static _dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||e(t.target).closest(Re).length):!Se.test(t.which))return;if(this.disabled||e(this).hasClass(De))return;const i=Me._getParentFromElement(this),n=e(i).hasClass(Ne);if(!n&&27===t.which)return;if(t.preventDefault(),t.stopPropagation(),!n||27===t.which||32===t.which)return 27===t.which&&e(i.querySelector(Fe)).trigger("focus"),void e(this).trigger("click");const s=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((t=>e(t).is(":visible")));if(0===s.length)return;let o=s.indexOf(t.target);38===t.which&&o>0&&o--,40===t.which&&o<s.length-1&&o++,o<0&&(o=0),s[o].focus()}}e(document).on(je,Fe,Me._dataApiKeydownHandler).on(je,Re,Me._dataApiKeydownHandler).on(`${Le} ${Pe}`,Me._clearMenus).on(Le,Fe,(function(t){t.preventDefault(),t.stopPropagation(),Me._jQueryInterface.call(e(this),"toggle")})).on(Le,".dropdown form",(t=>{t.stopPropagation()})),e.fn[be]=Me._jQueryInterface,e.fn[be].Constructor=Me,e.fn[be].noConflict=()=>(e.fn[be]=Ce,Me._jQueryInterface);const qe="modal",Qe="bs.modal",We=`.${Qe}`,Ue=e.fn[qe],Ve="modal-open",Ye="fade",ze="show",Ke="modal-static",Xe=`hide${We}`,Je=`hidePrevented${We}`,Ge=`hidden${We}`,Ze=`show${We}`,ti=`shown${We}`,ei=`focusin${We}`,ii=`resize${We}`,ni=`click.dismiss${We}`,si=`keydown.dismiss${We}`,oi=`mouseup.dismiss${We}`,ri=`mousedown.dismiss${We}`,ai=`click${We}.data-api`,li=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hi=".sticky-top",ci={backdrop:!0,keyboard:!0,focus:!0,show:!0},di={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"};class ui{constructor(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}static get VERSION(){return"4.6.2"}static get Default(){return ci}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;const i=e.Event(Ze,{relatedTarget:t});e(this._element).trigger(i),i.isDefaultPrevented()||(this._isShown=!0,e(this._element).hasClass(Ye)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(ni,'[data-dismiss="modal"]',(t=>this.hide(t))),e(this._dialog).on(ri,(()=>{e(this._element).one(oi,(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(Xe);if(e(this._element).trigger(i),!this._isShown||i.isDefaultPrevented())return;this._isShown=!1;const n=e(this._element).hasClass(Ye);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(ei),e(this._element).removeClass(ze),e(this._element).off(ni),e(this._dialog).off(ri),n){const t=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,(t=>this._hideModal(t))).emulateTransitionEnd(t)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach((t=>e(t).off(We))),e(document).off(ei),e.removeData(this._element,Qe),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={...ci,...t},s.typeCheckConfig(qe,t,di),t}_triggerBackdropTransition(){const t=e.Event(Je);if(e(this._element).trigger(t),t.isDefaultPrevented())return;const i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add(Ke);const n=s.getTransitionDurationFromElement(this._dialog);e(this._element).off(s.TRANSITION_END),e(this._element).one(s.TRANSITION_END,(()=>{this._element.classList.remove(Ke),i||e(this._element).one(s.TRANSITION_END,(()=>{this._element.style.overflowY=""})).emulateTransitionEnd(this._element,n)})).emulateTransitionEnd(n),this._element.focus()}_showElement(t){const i=e(this._element).hasClass(Ye),n=this._dialog?this._dialog.querySelector(".modal-body"):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("modal-dialog-scrollable")&&n?n.scrollTop=0:this._element.scrollTop=0,i&&s.reflow(this._element),e(this._element).addClass(ze),this._config.focus&&this._enforceFocus();const o=e.Event(ti,{relatedTarget:t}),r=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,e(this._element).trigger(o)};if(i){const t=s.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(s.TRANSITION_END,r).emulateTransitionEnd(t)}else r()}_enforceFocus(){e(document).off(ei).on(ei,(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(si,(t=>{this._config.keyboard&&27===t.which?(t.preventDefault(),this.hide()):this._config.keyboard||27!==t.which||this._triggerBackdropTransition()})):this._isShown||e(this._element).off(si)}_setResizeEvent(){this._isShown?e(window).on(ii,(t=>this.handleUpdate(t))):e(window).off(ii)}_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(Ve),this._resetAdjustments(),this._resetScrollbar(),e(this._element).trigger(Ge)}))}_removeBackdrop(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)}_showBackdrop(t){const i=e(this._element).hasClass(Ye)?Ye:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),e(this._backdrop).appendTo(document.body),e(this._element).on(ni,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===this._config.backdrop?this._triggerBackdropTransition():this.hide())})),i&&s.reflow(this._backdrop),e(this._backdrop).addClass(ze),!t)return;if(!i)return void t();const n=s.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(s.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(ze);const i=()=>{this._removeBackdrop(),t&&t()};if(e(this._element).hasClass(Ye)){const t=s.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(s.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)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()}_setScrollbar(){if(this._isBodyOverflowing){const t=[].slice.call(document.querySelectorAll(li)),i=[].slice.call(document.querySelectorAll(hi));e(t).each(((t,i)=>{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(Ve)}_resetScrollbar(){const t=[].slice.call(document.querySelectorAll(li));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(`${hi}`));e(i).each(((t,i)=>{const n=e(i).data("margin-right");void 0!==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="modal-scrollbar-measure",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(Qe);const s={...ci,...e(this).data(),..."object"==typeof t&&t?t:{}};if(n||(n=new ui(this,s),e(this).data(Qe,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](i)}else s.show&&n.show(i)}))}}e(document).on(ai,'[data-toggle="modal"]',(function(t){let i;const n=s.getSelectorFromElement(this);n&&(i=document.querySelector(n));const o=e(i).data(Qe)?"toggle":{...e(i).data(),...e(this).data()};"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();const r=e(i).one(Ze,(t=>{t.isDefaultPrevented()||r.one(Ge,(()=>{e(this).is(":visible")&&this.focus()}))}));ui._jQueryInterface.call(e(i),o,this)})),e.fn[qe]=ui._jQueryInterface,e.fn[qe].Constructor=ui,e.fn[qe].noConflict=()=>(e.fn[qe]=Ue,ui._jQueryInterface);const fi=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],gi={"*":["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:[]},pi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,mi=/^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 _i(t,e){const i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===fi.indexOf(i)||Boolean(pi.test(t.nodeValue)||mi.test(t.nodeValue));const n=e.filter((t=>t instanceof RegExp));for(let t=0,e=n.length;t<e;t++)if(n[t].test(i))return!0;return!1}function vi(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=Object.keys(e),o=[].slice.call(n.body.querySelectorAll("*"));for(let t=0,i=o.length;t<i;t++){const i=o[t],n=i.nodeName.toLowerCase();if(-1===s.indexOf(i.nodeName.toLowerCase())){i.parentNode.removeChild(i);continue}const r=[].slice.call(i.attributes),a=[].concat(e["*"]||[],e[n]||[]);r.forEach((t=>{_i(t,a)||i.removeAttribute(t.nodeName)}))}return n.body.innerHTML}const yi="tooltip",bi="bs.tooltip",Ei=`.${bi}`,wi=e.fn[yi],Ti="bs-tooltip",Ci=new RegExp(`(^|\\s)${Ti}\\S+`,"g"),Si=["sanitize","whiteList","sanitizeFn"],Di="fade",Ni="show",Ai="show",$i="out",Ii="hover",Oi="focus",xi={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ki={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:gi,popperConfig:null},Li={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)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},ji={HIDE:`hide${Ei}`,HIDDEN:`hidden${Ei}`,SHOW:`show${Ei}`,SHOWN:`shown${Ei}`,INSERTED:`inserted${Ei}`,CLICK:`click${Ei}`,FOCUSIN:`focusin${Ei}`,FOCUSOUT:`focusout${Ei}`,MOUSEENTER:`mouseenter${Ei}`,MOUSELEAVE:`mouseleave${Ei}`};class Pi{constructor(t,e){if(void 0===ye)throw new TypeError("Bootstrap's tooltips require Popper (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"4.6.2"}static get Default(){return ki}static get NAME(){return yi}static get DATA_KEY(){return bi}static get Event(){return ji}static get EVENT_KEY(){return Ei}static get DefaultType(){return Li}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(Ni))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 i=s.findShadowRoot(this.element),n=e.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;const o=this.getTipElement(),r=s.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&e(o).addClass(Di);const a="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,l=this._getAttachment(a);this.addAttachmentClass(l);const h=this._getContainer();e(o).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(o).appendTo(h),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new ye(this.element,o,this._getPopperConfig(l)),e(o).addClass(Ni),e(o).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);const c=()=>{this.config.animation&&this._fixTransition();const t=this._hoverState;this._hoverState=null,e(this.element).trigger(this.constructor.Event.SHOWN),t===$i&&this._leave(null,this)};if(e(this.tip).hasClass(Di)){const t=s.getTransitionDurationFromElement(this.tip);e(this.tip).one(s.TRANSITION_END,c).emulateTransitionEnd(t)}else c()}}hide(t){const i=this.getTipElement(),n=e.Event(this.constructor.Event.HIDE),o=()=>{this._hoverState!==Ai&&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(Ni),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger.click=!1,this._activeTrigger[Oi]=!1,this._activeTrigger[Ii]=!1,e(this.tip).hasClass(Di)){const t=s.getTransitionDurationFromElement(i);e(i).one(s.TRANSITION_END,o).emulateTransitionEnd(t)}else o();this._hoverState=""}}update(){null!==this._popper&&this._popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){e(this.getTipElement()).addClass(`${Ti}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(".tooltip-inner")),this.getTitle()),e(t).removeClass(`${Di} ${Ni}`)}setElementContent(t,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=vi(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:".arrow"},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:s.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)}_getAttachment(t){return xi[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("manual"!==t){const i=t===Ii?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===Ii?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?Oi:Ii]=!0),e(i.getTipElement()).hasClass(Ni)||i._hoverState===Ai?i._hoverState=Ai:(clearTimeout(i._timeout),i._hoverState=Ai,i.config.delay&&i.config.delay.show?i._timeout=setTimeout((()=>{i._hoverState===Ai&&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?Oi:Ii]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=$i,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout((()=>{i._hoverState===$i&&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!==Si.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()),s.typeCheckConfig(yi,t,this.constructor.DefaultType),t.sanitize&&(t.template=vi(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(Ci);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(Di),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)}static _jQueryInterface(t){return this.each((function(){const i=e(this);let n=i.data(bi);const s="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new Pi(this,s),i.data(bi,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}e.fn[yi]=Pi._jQueryInterface,e.fn[yi].Constructor=Pi,e.fn[yi].noConflict=()=>(e.fn[yi]=wi,Pi._jQueryInterface);const Fi="popover",Ri="bs.popover",Bi=`.${Ri}`,Hi=e.fn[Fi],Mi="bs-popover",qi=new RegExp(`(^|\\s)${Mi}\\S+`,"g"),Qi={...Pi.Default,placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Wi={...Pi.DefaultType,content:"(string|element|function)"},Ui={HIDE:`hide${Bi}`,HIDDEN:`hidden${Bi}`,SHOW:`show${Bi}`,SHOWN:`shown${Bi}`,INSERTED:`inserted${Bi}`,CLICK:`click${Bi}`,FOCUSIN:`focusin${Bi}`,FOCUSOUT:`focusout${Bi}`,MOUSEENTER:`mouseenter${Bi}`,MOUSELEAVE:`mouseleave${Bi}`};class Vi extends Pi{static get VERSION(){return"4.6.2"}static get Default(){return Qi}static get NAME(){return Fi}static get DATA_KEY(){return Ri}static get Event(){return Ui}static get EVENT_KEY(){return Bi}static get DefaultType(){return Wi}isWithContent(){return this.getTitle()||this._getContent()}addAttachmentClass(t){e(this.getTipElement()).addClass(`${Mi}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=e(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());let i=this._getContent();"function"==typeof i&&(i=i.call(this.element)),this.setElementContent(t.find(".popover-body"),i),t.removeClass("fade show")}_getContent(){return this.element.getAttribute("data-content")||this.config.content}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match(qi);null!==i&&i.length>0&&t.removeClass(i.join(""))}static _jQueryInterface(t){return this.each((function(){let i=e(this).data(Ri);const n="object"==typeof t?t:null;if((i||!/dispose|hide/.test(t))&&(i||(i=new Vi(this,n),e(this).data(Ri,i)),"string"==typeof t)){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}e.fn[Fi]=Vi._jQueryInterface,e.fn[Fi].Constructor=Vi,e.fn[Fi].noConflict=()=>(e.fn[Fi]=Hi,Vi._jQueryInterface);const Yi="scrollspy",zi="bs.scrollspy",Ki=`.${zi}`,Xi=e.fn[Yi],Ji="active",Gi=`activate${Ki}`,Zi=`scroll${Ki}`,tn=`load${Ki}.data-api`,en="position",nn=".nav, .list-group",sn=".nav-link",on=".list-group-item",rn={offset:10,method:"auto",target:""},an={offset:"number",method:"string",target:"(string|element)"};class ln{constructor(t,i){this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(i),this._selector=`${this._config.target} ${sn},${this._config.target} ${on},${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(Zi,(t=>this._process(t))),this.refresh(),this._process()}static get VERSION(){return"4.6.2"}static get Default(){return rn}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":en,i="auto"===this._config.method?t:this._config.method,n=i===en?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map((t=>{let o;const r=s.getSelectorFromElement(t);if(r&&(o=document.querySelector(r)),o){const t=o.getBoundingClientRect();if(t.width||t.height)return[e(o)[i]().top+n,r]}return null})).filter(Boolean).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){e.removeData(this._element,zi),e(this._scrollElement).off(Ki),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={...rn,..."object"==typeof t&&t?t:{}}).target&&s.isElement(t.target)){let i=e(t.target).attr("id");i||(i=s.getUID(Yi),e(t.target).attr("id",i)),t.target=`#${i}`}return s.typeCheckConfig(Yi,t,an),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&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}}_activate(t){this._activeTarget=t,this._clear();const i=this._selector.split(",").map((e=>`${e}[data-target="${t}"],${e}[href="${t}"]`)),n=e([].slice.call(document.querySelectorAll(i.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(Ji),n.addClass(Ji)):(n.addClass(Ji),n.parents(nn).prev(`${sn}, ${on}`).addClass(Ji),n.parents(nn).prev(".nav-item").children(sn).addClass(Ji)),e(this._scrollElement).trigger(Gi,{relatedTarget:t})}_clear(){[].slice.call(document.querySelectorAll(this._selector)).filter((t=>t.classList.contains(Ji))).forEach((t=>t.classList.remove(Ji)))}static _jQueryInterface(t){return this.each((function(){let i=e(this).data(zi);if(i||(i=new ln(this,"object"==typeof t&&t),e(this).data(zi,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}e(window).on(tn,(()=>{const t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]'));for(let i=t.length;i--;){const n=e(t[i]);ln._jQueryInterface.call(n,n.data())}})),e.fn[Yi]=ln._jQueryInterface,e.fn[Yi].Constructor=ln,e.fn[Yi].noConflict=()=>(e.fn[Yi]=Xi,ln._jQueryInterface);const hn="tab",cn="bs.tab",dn=`.${cn}`,un=e.fn[hn],fn="active",gn="fade",pn="show",mn=`hide${dn}`,_n=`hidden${dn}`,vn=`show${dn}`,yn=`shown${dn}`,bn=`click${dn}.data-api`,En=".active",wn="> li > .active";class Tn{constructor(t){this._element=t}static get VERSION(){return"4.6.2"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(fn)||e(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))return;let t,i;const n=e(this._element).closest(".nav, .list-group")[0],o=s.getSelectorFromElement(this._element);if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?wn:En;i=e.makeArray(e(n).find(t)),i=i[i.length-1]}const r=e.Event(mn,{relatedTarget:this._element}),a=e.Event(vn,{relatedTarget:i});if(i&&e(i).trigger(r),e(this._element).trigger(a),a.isDefaultPrevented()||r.isDefaultPrevented())return;o&&(t=document.querySelector(o)),this._activate(this._element,n);const l=()=>{const t=e.Event(_n,{relatedTarget:this._element}),n=e.Event(yn,{relatedTarget:i});e(i).trigger(t),e(this._element).trigger(n)};t?this._activate(t,t.parentNode,l):l()}dispose(){e.removeData(this._element,cn),this._element=null}_activate(t,i,n){const o=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?e(i).children(En):e(i).find(wn))[0],r=n&&o&&e(o).hasClass(gn),a=()=>this._transitionComplete(t,o,n);if(o&&r){const t=s.getTransitionDurationFromElement(o);e(o).removeClass(pn).one(s.TRANSITION_END,a).emulateTransitionEnd(t)}else a()}_transitionComplete(t,i,n){if(i){e(i).removeClass(fn);const t=e(i.parentNode).find("> .dropdown-menu .active")[0];t&&e(t).removeClass(fn),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}e(t).addClass(fn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),s.reflow(t),t.classList.contains(gn)&&t.classList.add(pn);let o=t.parentNode;if(o&&"LI"===o.nodeName&&(o=o.parentNode),o&&e(o).hasClass("dropdown-menu")){const i=e(t).closest(".dropdown")[0];if(i){const t=[].slice.call(i.querySelectorAll(".dropdown-toggle"));e(t).addClass(fn)}t.setAttribute("aria-expanded",!0)}n&&n()}static _jQueryInterface(t){return this.each((function(){const i=e(this);let n=i.data(cn);if(n||(n=new Tn(this),i.data(cn,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}e(document).on(bn,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),Tn._jQueryInterface.call(e(this),"show")})),e.fn[hn]=Tn._jQueryInterface,e.fn[hn].Constructor=Tn,e.fn[hn].noConflict=()=>(e.fn[hn]=un,Tn._jQueryInterface);const Cn="toast",Sn="bs.toast",Dn=`.${Sn}`,Nn=e.fn[Cn],An="hide",$n="show",In="showing",On=`click.dismiss${Dn}`,xn=`hide${Dn}`,kn=`hidden${Dn}`,Ln=`show${Dn}`,jn=`shown${Dn}`,Pn={animation:!0,autohide:!0,delay:500},Fn={animation:"boolean",autohide:"boolean",delay:"number"};class Rn{constructor(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}static get VERSION(){return"4.6.2"}static get DefaultType(){return Fn}static get Default(){return Pn}show(){const t=e.Event(Ln);if(e(this._element).trigger(t),t.isDefaultPrevented())return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");const i=()=>{this._element.classList.remove(In),this._element.classList.add($n),e(this._element).trigger(jn),this._config.autohide&&(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay))};if(this._element.classList.remove(An),s.reflow(this._element),this._element.classList.add(In),this._config.animation){const t=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,i).emulateTransitionEnd(t)}else i()}hide(){if(!this._element.classList.contains($n))return;const t=e.Event(xn);e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}dispose(){this._clearTimeout(),this._element.classList.contains($n)&&this._element.classList.remove($n),e(this._element).off(On),e.removeData(this._element,Sn),this._element=null,this._config=null}_getConfig(t){return t={...Pn,...e(this._element).data(),..."object"==typeof t&&t?t:{}},s.typeCheckConfig(Cn,t,this.constructor.DefaultType),t}_setListeners(){e(this._element).on(On,'[data-dismiss="toast"]',(()=>this.hide()))}_close(){const t=()=>{this._element.classList.add(An),e(this._element).trigger(kn)};if(this._element.classList.remove($n),this._config.animation){const i=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,t).emulateTransitionEnd(i)}else t()}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static _jQueryInterface(t){return this.each((function(){const i=e(this);let n=i.data(Sn);if(n||(n=new Rn(this,"object"==typeof t&&t),i.data(Sn,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](this)}}))}}var Bn,Hn,Mn;e.fn[Cn]=Rn._jQueryInterface,e.fn[Cn].Constructor=Rn,e.fn[Cn].noConflict=()=>(e.fn[Cn]=Nn,Rn._jQueryInterface),Bn=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,Hn=navigator.userAgent.toLowerCase().indexOf("opera")>-1,Mn=navigator.userAgent.toLowerCase().indexOf("msie")>-1,(Bn||Hn||Mn)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}),!1),t.Alert=u,t.Button=S,t.Carousel=J,t.Collapse=pt,t.Dropdown=Me,t.Modal=ui,t.Popover=Vi,t.Scrollspy=ln,t.Tab=Tn,t.Toast=Rn,t.Tooltip=Pi}));
//# sourceMappingURL=theme-bootstrap4.min.js.map