Current File : /var/www/kurt6690.2978.w2868/site96340/wp-content/themes/hopeui/assets/js/bootstrap.min.js
"use strict";function _get(){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=_superPropBase(e,t);if(i)return(i=Object.getOwnPropertyDescriptor(i,t)).get?i.get.call(arguments.length<3?e:n):i.value}).apply(this,arguments)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function ownKeys(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)),i}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(n){var i=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(n);return _possibleConstructorReturn(this,i?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"===_typeof(e)?e:String(e)}function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(e.Popper)}(void 0,function(e){function x(n){var i;return n&&n.__esModule?n:(i=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i))}function H(e){for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e}function R(e){return(e=Y(e))&&document.querySelector(e)?e:null}function a(e){return(e=Y(e))?document.querySelector(e):null}function B(e){e.dispatchEvent(new Event(X))}function r(e){return f(e)?e.jquery?e[0]:e:"string"==typeof e&&0<e.length?d.findOne(e):null}function s(i,o,r){Object.keys(r).forEach(function(e){var t=r[e],n=o[e],n=n&&f(n)?"element":null==(n=n)?"".concat(n):{}.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(t).test(n))throw new TypeError("".concat(i.toUpperCase(),': Option "').concat(e,'" provided type "').concat(n,'" but expected type "').concat(t,'".'))})}function W(e){return!(!f(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")}function l(e){return!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")))}function z(e){var t;return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?z(e.parentNode):null:null}function q(){}function h(e){e.offsetHeight}function F(){var e=window.jQuery;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null}function c(){return"rtl"===document.documentElement.dir}function t(i){var e;e=function(){var e,t,n=F();n&&(e=i.NAME,t=n.fn[e],n.fn[e]=i.jQueryInterface,n.fn[e].Constructor=i,n.fn[e].noConflict=function(){return n.fn[e]=t,i.jQueryInterface})},"loading"===document.readyState?($.length||document.addEventListener("DOMContentLoaded",function(){$.forEach(function(e){return e()})}),$.push(e)):e()}function u(e){"function"==typeof e&&e()}function U(n,i){var e,t,o,r,a;2<arguments.length&&void 0!==arguments[2]&&!arguments[2]?u(n):(o=5+((e=i)&&(t=(e=window.getComputedStyle(e)).transitionDuration,e=e.transitionDelay,o=Number.parseFloat(t),r=Number.parseFloat(e),o||r)?(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Q):0),a=!1,i.addEventListener(X,function e(t){t.target===i&&(a=!0,i.removeEventListener(X,e),u(n))}),setTimeout(function(){a||B(i)},o))}function K(e,t,n,i){var o;return-1===(t=e.indexOf(t))?e[!n&&i?e.length-1:0]:(o=e.length,t+=n?1:-1,i&&(t=(t+o)%o),e[Math.max(0,Math.min(t,o-1))])}var V=x(e),d={find:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function(e,t){var n;return(n=[]).concat.apply(n,_toConsumableArray(e.children)).filter(function(e){return e.matches(t)})},parents:function(e,t){for(var n=[],i=e.parentNode;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(t)&&n.push(i),i=i.parentNode;return n},prev:function(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function(e,t){for(var n=e.nextElementSibling;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]}},Q=1e3,X="transitionend",Y=function(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){e=e.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;t=(e=e.includes("#")&&!e.startsWith("#")?"#".concat(e.split("#")[1]):e)&&"#"!==e?e.trim():null}return t},f=function(e){return!(!e||"object"!==_typeof(e))&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType},$=[],G=/[^.]*(?=\..*)\.|.*/,Z=/\..*/,J=/::\d+$/,ee={},te=1,ne={mouseenter:"mouseover",mouseleave:"mouseout"},ie=/^(mouseenter|mouseleave)/i,oe=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function re(e,t){return t&&"".concat(t,"::").concat(te++)||e.uidEvent||te++}function ae(e){var t=re(e);return e.uidEvent=t,ee[t]=ee[t]||{},ee[t]}function se(e,t,n){for(var i=2<arguments.length&&void 0!==n?n:null,o=Object.keys(e),r=0,a=o.length;r<a;r++){var s=e[o[r]];if(s.originalHandler===t&&s.delegationSelector===i)return s}return null}function ce(e,t,n){var i="string"==typeof t,n=i?n:t,t=fe(e);return[i,n,t=oe.has(t)?t:e]}function le(e,t,n,i,o){var r,a,s,c,l,u,f,h,d,_;"string"==typeof t&&e&&(n||(n=i,i=null),ie.test(t)&&(s=function(t){return function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)}},i?i=s(i):n=s(n)),r=(s=_slicedToArray(ce(t,n,i),3))[0],a=s[1],s=s[2],(l=se(c=(c=ae(e))[s]||(c[s]={}),a,r?n:null))?l.oneOff=l.oneOff&&o:(l=re(a,t.replace(G,"")),(t=r?(h=e,d=n,_=i,function e(t){for(var n=h.querySelectorAll(d),i=t.target;i&&i!==this;i=i.parentNode)for(var o=n.length;o--;)if(n[o]===i)return t.delegateTarget=i,e.oneOff&&p.off(h,t.type,d,_),_.apply(i,[t]);return null}):(u=e,f=n,function e(t){return t.delegateTarget=u,e.oneOff&&p.off(u,t.type,f),f.apply(u,[t])})).delegationSelector=r?n:null,t.originalHandler=a,t.oneOff=o,c[t.uidEvent=l]=t,e.addEventListener(s,t,r)))}function ue(e,t,n,i,o){i=se(t[n],i,o);i&&(e.removeEventListener(n,i,Boolean(o)),delete t[n][i.uidEvent])}function fe(e){return e=e.replace(Z,""),ne[e]||e}var p={on:function(e,t,n,i){le(e,t,n,i,!1)},one:function(e,t,n,i){le(e,t,n,i,!0)},off:function(a,s,e,t){if("string"==typeof s&&a){var t=_slicedToArray(ce(s,e,t),3),n=t[0],i=t[1],o=t[2],r=o!==s,c=ae(a),t=s.startsWith(".");if(void 0!==i)return c&&c[o]?void ue(a,c,o,i,n?e:null):void 0;t&&Object.keys(c).forEach(function(e){var t,n,i,o,r;t=a,n=c,i=e,o=s.slice(1),r=n[i]||{},Object.keys(r).forEach(function(e){e.includes(o)&&(e=r[e],ue(t,n,i,e.originalHandler,e.delegationSelector))})});var l=c[o]||{};Object.keys(l).forEach(function(e){var t=e.replace(J,"");r&&!s.includes(t)||(t=l[e],ue(a,c,o,t.originalHandler,t.delegationSelector))})}},trigger:function(e,t,n){var i,o,r,a,s,c,l,u,f;return"string"==typeof t&&e?(i=F(),r=t!==(o=fe(t)),a=oe.has(o),u=!(l=c=!0),f=null,r&&i&&(s=i.Event(t,n),i(e).trigger(s),c=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented()),a?(f=document.createEvent("HTMLEvents")).initEvent(o,c,!0):f=new CustomEvent(t,{bubbles:c,cancelable:!0}),void 0!==n&&Object.keys(n).forEach(function(e){Object.defineProperty(f,e,{get:function(){return n[e]}})}),u&&f.preventDefault(),l&&e.dispatchEvent(f),f.defaultPrevented&&void 0!==s&&s.preventDefault(),f):null}},i=new Map,he=function(e,t,n){i.has(e)||i.set(e,new Map);e=i.get(e);e.has(t)||0===e.size?e.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(e.keys())[0],"."))},de=function(e,t){return i.has(e)&&i.get(e).get(t)||null},_e=function(e,t){var n;i.has(e)&&((n=i.get(e)).delete(t),0===n.size&&i.delete(e))},_=function(){function t(e){_classCallCheck(this,t),(e=r(e))&&(this._element=e,he(this._element,this.constructor.DATA_KEY,this))}return _createClass(t,[{key:"dispose",value:function(){var t=this;_e(this._element,this.constructor.DATA_KEY),p.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(function(e){t[e]=null})}},{key:"_queueCallback",value:function(e,t){U(e,t,!(2<arguments.length&&void 0!==arguments[2])||arguments[2])}}],[{key:"getInstance",value:function(e){return de(e,this.DATA_KEY)}},{key:"getOrCreateInstance",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===_typeof(t)?t:null)}},{key:"VERSION",get:function(){return"5.0.2"}},{key:"NAME",get:function(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function(){return".".concat(this.DATA_KEY)}}]),t}(),e=".".concat("bs.alert"),pe="close".concat(e),ge="closed".concat(e),e="click".concat(e).concat(".data-api"),me=function(){_inherits(n,_);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"close",value:function(e){var e=e?this._getRootElement(e):this._element,t=this._triggerCloseEvent(e);null===t||t.defaultPrevented||this._removeElement(e)}},{key:"_getRootElement",value:function(e){return a(e)||e.closest(".".concat("alert"))}},{key:"_triggerCloseEvent",value:function(e){return p.trigger(e,pe)}},{key:"_removeElement",value:function(e){var t=this,n=(e.classList.remove("show"),e.classList.contains("fade"));this._queueCallback(function(){return t._destroyElement(e)},e,n)}},{key:"_destroyElement",value:function(e){e.remove(),p.trigger(e,ge)}}],[{key:"NAME",get:function(){return"alert"}},{key:"jQueryInterface",value:function(t){return this.each(function(){var e=n.getOrCreateInstance(this);"close"===t&&e[t](this)})}},{key:"handleDismiss",value:function(t){return function(e){e&&e.preventDefault(),t.close(this)}}}]),n}(),e=(p.on(document,e,'[data-bs-dismiss="alert"]',me.handleDismiss(new me)),t(me),".".concat("bs.button")),ve='[data-bs-toggle="button"]',e="click".concat(e).concat(".data-api"),ye=function(){_inherits(n,_);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"toggle",value:function(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}],[{key:"NAME",get:function(){return"button"}},{key:"jQueryInterface",value:function(t){return this.each(function(){var e=n.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}]),n}();function be(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function ke(e){return e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())})}p.on(document,e,ve,function(e){e.preventDefault();e=e.target.closest(ve);ye.getOrCreateInstance(e).toggle()}),t(ye);var g={setDataAttribute:function(e,t,n){e.setAttribute("data-bs-".concat(ke(t)),n)},removeDataAttribute:function(e,t){e.removeAttribute("data-bs-".concat(ke(t)))},getDataAttributes:function(n){var i;return n?(i={},Object.keys(n.dataset).filter(function(e){return e.startsWith("bs")}).forEach(function(e){var t=(t=e.replace(/^bs/,"")).charAt(0).toLowerCase()+t.slice(1,t.length);i[t]=be(n.dataset[e])}),i):{}},getDataAttribute:function(e,t){return be(e.getAttribute("data-bs-".concat(ke(t))))},offset:function(e){e=e.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:function(e){return{top:e.offsetTop,left:e.offsetLeft}}},Ee="carousel",e=".".concat("bs.carousel"),n=".data-api",we={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Ce={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},m="next",v="prev",y="left",b="right",Ae=(_defineProperty(o={},"ArrowLeft",b),_defineProperty(o,"ArrowRight",y),o),Te="slide".concat(e),Se="slid".concat(e),Oe="keydown".concat(e),Le="mouseenter".concat(e),je="mouseleave".concat(e),Ie="touchstart".concat(e),De="touchmove".concat(e),Pe="touchend".concat(e),Ne="pointerdown".concat(e),Me="pointerup".concat(e),xe="dragstart".concat(e),o="load".concat(e).concat(n),e="click".concat(e).concat(n),k="active",He=".active.carousel-item",E=function(){_inherits(o,_);var n=_createSuper(o);function o(e,t){return _classCallCheck(this,o),(e=n.call(this,e))._items=null,e._interval=null,e._activeElement=null,e._isPaused=!1,e._isSliding=!1,e.touchTimeout=null,e.touchStartX=0,e.touchDeltaX=0,e._config=e._getConfig(t),e._indicatorsElement=d.findOne(".carousel-indicators",e._element),e._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,e._pointerEvent=Boolean(window.PointerEvent),e._addEventListeners(),e}return _createClass(o,[{key:"next",value:function(){this._slide(m)}},{key:"nextWhenVisible",value:function(){!document.hidden&&W(this._element)&&this.next()}},{key:"prev",value:function(){this._slide(v)}},{key:"pause",value:function(e){e||(this._isPaused=!0),d.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(B(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function(e){var t=this,n=(this._activeElement=d.findOne(He,this._element),this._getItemIndex(this._activeElement));e>this._items.length-1||e<0||(this._isSliding?p.one(this._element,Se,function(){return t.to(e)}):n===e?(this.pause(),this.cycle()):this._slide(n<e?m:v,this._items[e]))}},{key:"_getConfig",value:function(e){return e=_objectSpread(_objectSpread(_objectSpread({},we),g.getDataAttributes(this._element)),"object"===_typeof(e)?e:{}),s(Ee,e,Ce),e}},{key:"_handleSwipe",value:function(){var e=Math.abs(this.touchDeltaX);e<=40||(e=e/this.touchDeltaX,this.touchDeltaX=0,e&&this._slide(0<e?b:y))}},{key:"_addEventListeners",value:function(){var t=this;this._config.keyboard&&p.on(this._element,Oe,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(p.on(this._element,Le,function(e){return t.pause(e)}),p.on(this._element,je,function(e){return t.cycle(e)})),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function(){function e(e){!n._pointerEvent||"pen"!==e.pointerType&&"touch"!==e.pointerType?n._pointerEvent||(n.touchStartX=e.touches[0].clientX):n.touchStartX=e.clientX}function t(e){!n._pointerEvent||"pen"!==e.pointerType&&"touch"!==e.pointerType||(n.touchDeltaX=e.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(e){return n.cycle(e)},500+n._config.interval))}var n=this;d.find(".carousel-item img",this._element).forEach(function(e){p.on(e,xe,function(e){return e.preventDefault()})}),this._pointerEvent?(p.on(this._element,Ne,e),p.on(this._element,Me,t),this._element.classList.add("pointer-event")):(p.on(this._element,Ie,e),p.on(this._element,De,function(e){e=e,n.touchDeltaX=e.touches&&1<e.touches.length?0:e.touches[0].clientX-n.touchStartX}),p.on(this._element,Pe,t))}},{key:"_keydown",value:function(e){var t;/input|textarea/i.test(e.target.tagName)||(t=Ae[e.key])&&(e.preventDefault(),this._slide(t))}},{key:"_getItemIndex",value:function(e){return this._items=e&&e.parentNode?d.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function(e,t){return K(this._items,t,e===m,this._config.wrap)}},{key:"_triggerSlideEvent",value:function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(d.findOne(He,this._element));return p.trigger(this._element,Te,{relatedTarget:e,direction:t,from:i,to:n})}},{key:"_setActiveIndicatorElement",value:function(e){if(this._indicatorsElement)for(var t=d.findOne(".active",this._indicatorsElement),n=(t.classList.remove(k),t.removeAttribute("aria-current"),d.find("[data-bs-target]",this._indicatorsElement)),i=0;i<n.length;i++)if(Number.parseInt(n[i].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){n[i].classList.add(k),n[i].setAttribute("aria-current","true");break}}},{key:"_updateInterval",value:function(){var e=this._activeElement||d.findOne(He,this._element);e&&((e=Number.parseInt(e.getAttribute("data-bs-interval"),10))?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval)}},{key:"_slide",value:function(e,t){var n,i=this,e=this._directionToOrder(e),o=d.findOne(He,this._element),r=this._getItemIndex(o),a=t||this._getItemByOrder(e,o),s=this._getItemIndex(a),t=Boolean(this._interval),c=e===m,l=c?"carousel-item-start":"carousel-item-end",u=c?"carousel-item-next":"carousel-item-prev",f=this._orderToDirection(e);a&&a.classList.contains(k)?this._isSliding=!1:this._isSliding||this._triggerSlideEvent(a,f).defaultPrevented||o&&a&&(this._isSliding=!0,t&&this.pause(),this._setActiveIndicatorElement(a),this._activeElement=a,n=function(){p.trigger(i._element,Se,{relatedTarget:a,direction:f,from:r,to:s})},this._element.classList.contains("slide")?(a.classList.add(u),h(a),o.classList.add(l),a.classList.add(l),this._queueCallback(function(){a.classList.remove(l,u),a.classList.add(k),o.classList.remove(k,u,l),i._isSliding=!1,setTimeout(n,0)},o,!0)):(o.classList.remove(k),a.classList.add(k),this._isSliding=!1,n()),t&&this.cycle())}},{key:"_directionToOrder",value:function(e){return[b,y].includes(e)?c()?e===y?v:m:e===y?m:v:e}},{key:"_orderToDirection",value:function(e){return[m,v].includes(e)?c()?e===v?y:b:e===v?b:y:e}}],[{key:"Default",get:function(){return we}},{key:"NAME",get:function(){return Ee}},{key:"carouselInterface",value:function(e,t){var e=o.getOrCreateInstance(e,t),n=e._config,i=("object"===_typeof(t)&&(n=_objectSpread(_objectSpread({},n),t)),"string"==typeof t?t:n.slide);if("number"==typeof t)e.to(t);else if("string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'.concat(i,'"'));e[i]()}else n.interval&&n.ride&&(e.pause(),e.cycle())}},{key:"jQueryInterface",value:function(e){return this.each(function(){o.carouselInterface(this,e)})}},{key:"dataApiClickHandler",value:function(e){var t,n,i=a(this);i&&i.classList.contains("carousel")&&(t=_objectSpread(_objectSpread({},g.getDataAttributes(i)),g.getDataAttributes(this)),(n=this.getAttribute("data-bs-slide-to"))&&(t.interval=!1),o.carouselInterface(i,t),n&&o.getInstance(i).to(n),e.preventDefault())}}]),o}(),Re=(p.on(document,e,"[data-bs-slide], [data-bs-slide-to]",E.dataApiClickHandler),p.on(window,o,function(){for(var e=d.find('[data-bs-ride="carousel"]'),t=0,n=e.length;t<n;t++)E.carouselInterface(e[t],E.getInstance(e[t]))}),t(E),"collapse"),Be="bs.collapse",n=".".concat(Be),We={toggle:!0,parent:""},ze={toggle:"boolean",parent:"(string|element)"},qe="show".concat(n),Fe="shown".concat(n),Ue="hide".concat(n),Ke="hidden".concat(n),e="click".concat(n).concat(".data-api"),w="show",C="collapse",Ve="collapsing",Qe="collapsed",A='[data-bs-toggle="collapse"]',Xe=function(){_inherits(u,_);var l=_createSuper(u);function u(e,t){_classCallCheck(this,u),(n=l.call(this,e))._isTransitioning=!1,n._config=n._getConfig(t),n._triggerArray=d.find("".concat(A,'[href="#').concat(n._element.id,'"],')+"".concat(A,'[data-bs-target="#').concat(n._element.id,'"]'));for(var n,i=d.find(A),o=0,r=i.length;o<r;o++){var a=i[o],s=R(a),c=d.find(s).filter(function(e){return e===n._element});null!==s&&c.length&&(n._selector=s,n._triggerArray.push(a))}return n._parent=n._config.parent?n._getParent():null,n._config.parent||n._addAriaAndCollapsedClass(n._element,n._triggerArray),n._config.toggle&&n.toggle(),n}return _createClass(u,[{key:"toggle",value:function(){this._element.classList.contains(w)?this.hide():this.show()}},{key:"show",value:function(){var t=this;if(!this._isTransitioning&&!this._element.classList.contains(w)){this._parent&&0===(n=d.find(".show, .collapsing",this._parent).filter(function(e){return"string"==typeof t._config.parent?e.getAttribute("data-bs-parent")===t._config.parent:e.classList.contains(C)})).length&&(n=null);var e,n,i=d.findOne(this._selector);if(n){var o,r=n.find(function(e){return i!==e});if((o=r?u.getInstance(r):null)&&o._isTransitioning)return}p.trigger(this._element,qe).defaultPrevented||(n&&n.forEach(function(e){i!==e&&u.collapseInterface(e,"hide"),o||he(e,Be,null)}),e=this._getDimension(),this._element.classList.remove(C),this._element.classList.add(Ve),this._element.style[e]=0,this._triggerArray.length&&this._triggerArray.forEach(function(e){e.classList.remove(Qe),e.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0),r=e[0].toUpperCase()+e.slice(1),n="scroll".concat(r),this._queueCallback(function(){t._element.classList.remove(Ve),t._element.classList.add(C,w),t._element.style[e]="",t.setTransitioning(!1),p.trigger(t._element,Fe)},this._element,!0),this._element.style[e]="".concat(this._element[n],"px"))}}},{key:"hide",value:function(){var e=this;if(!this._isTransitioning&&this._element.classList.contains(w)){var t=p.trigger(this._element,Ue);if(!t.defaultPrevented){var t=this._getDimension(),n=(this._element.style[t]="".concat(this._element.getBoundingClientRect()[t],"px"),h(this._element),this._element.classList.add(Ve),this._element.classList.remove(C,w),this._triggerArray.length);if(0<n)for(var i=0;i<n;i++){var o=this._triggerArray[i],r=a(o);r&&!r.classList.contains(w)&&(o.classList.add(Qe),o.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[t]="",this._queueCallback(function(){e.setTransitioning(!1),e._element.classList.remove(Ve),e._element.classList.add(C),p.trigger(e._element,Ke)},this._element,!0)}}}},{key:"setTransitioning",value:function(e){this._isTransitioning=e}},{key:"_getConfig",value:function(e){return(e=_objectSpread(_objectSpread({},We),e)).toggle=Boolean(e.toggle),s(Re,e,ze),e}},{key:"_getDimension",value:function(){return this._element.classList.contains("width")?"width":"height"}},{key:"_getParent",value:function(){var n=this,e=this._config.parent,e=r(e),t="".concat(A,'[data-bs-parent="').concat(e,'"]');return d.find(t,e).forEach(function(e){var t=a(e);n._addAriaAndCollapsedClass(t,[e])}),e}},{key:"_addAriaAndCollapsedClass",value:function(e,t){var n;e&&t.length&&(n=e.classList.contains(w),t.forEach(function(e){n?e.classList.remove(Qe):e.classList.add(Qe),e.setAttribute("aria-expanded",n)}))}}],[{key:"Default",get:function(){return We}},{key:"NAME",get:function(){return Re}},{key:"collapseInterface",value:function(e,t){var n=u.getInstance(e),i=_objectSpread(_objectSpread(_objectSpread({},We),g.getDataAttributes(e)),"object"===_typeof(t)&&t?t:{});if(!n&&i.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),n=n||new u(e,i),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}}},{key:"jQueryInterface",value:function(e){return this.each(function(){u.collapseInterface(this,e)})}}]),u}(),Ye=(p.on(document,e,A,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var n=g.getDataAttributes(this),e=R(this);d.find(e).forEach(function(e){var t=Xe.getInstance(e),t=t?(null===t._parent&&"string"==typeof n.parent&&(t._config.parent=n.parent,t._parent=t._getParent()),"toggle"):n;Xe.collapseInterface(e,t)})}),t(Xe),"dropdown"),o=".".concat("bs.dropdown"),n=".data-api",$e="Escape",Ge="ArrowUp",Ze="ArrowDown",Je=new RegExp("".concat(Ge,"|").concat(Ze,"|").concat($e)),et="hide".concat(o),tt="hidden".concat(o),nt="show".concat(o),it="shown".concat(o),ot="click".concat(o),e="click".concat(o).concat(n),T="keydown".concat(o).concat(n),o="keyup".concat(o).concat(n),S="show",O='[data-bs-toggle="dropdown"]',rt=".dropdown-menu",at=c()?"top-end":"top-start",st=c()?"top-start":"top-end",ct=c()?"bottom-end":"bottom-start",lt=c()?"bottom-start":"bottom-end",ut=c()?"left-start":"right-start",ft=c()?"right-start":"left-start",ht={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},dt={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},L=function(){_inherits(c,_);var n=_createSuper(c);function c(e,t){return _classCallCheck(this,c),(e=n.call(this,e))._popper=null,e._config=e._getConfig(t),e._menu=e._getMenuElement(),e._inNavbar=e._detectNavbar(),e._addEventListeners(),e}return _createClass(c,[{key:"toggle",value:function(){l(this._element)||(this._element.classList.contains(S)?this.hide():this.show())}},{key:"show",value:function(){if(!l(this._element)&&!this._menu.classList.contains(S)){var e=c.getParentFromElement(this._element),t={relatedTarget:this._element},n=p.trigger(this._element,nt,t);if(!n.defaultPrevented){if(this._inNavbar)g.setDataAttribute(this._menu,"popper","none");else{if(void 0===V)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var n=this._element,i=("parent"===this._config.reference?n=e:f(this._config.reference)?n=r(this._config.reference):"object"===_typeof(this._config.reference)&&(n=this._config.reference),this._getPopperConfig()),o=i.modifiers.find(function(e){return"applyStyles"===e.name&&!1===e.enabled});this._popper=V.createPopper(n,this._menu,i),o&&g.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&(n=[]).concat.apply(n,_toConsumableArray(document.body.children)).forEach(function(e){return p.on(e,"mouseover",q)}),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(S),this._element.classList.toggle(S),p.trigger(this._element,it,t)}}}},{key:"hide",value:function(){var e;!l(this._element)&&this._menu.classList.contains(S)&&(e={relatedTarget:this._element},this._completeHide(e))}},{key:"dispose",value:function(){this._popper&&this._popper.destroy(),_get(_getPrototypeOf(c.prototype),"dispose",this).call(this)}},{key:"update",value:function(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}},{key:"_addEventListeners",value:function(){var t=this;p.on(this._element,ot,function(e){e.preventDefault(),t.toggle()})}},{key:"_completeHide",value:function(e){var t;p.trigger(this._element,et,e).defaultPrevented||("ontouchstart"in document.documentElement&&(t=[]).concat.apply(t,_toConsumableArray(document.body.children)).forEach(function(e){return p.off(e,"mouseover",q)}),this._popper&&this._popper.destroy(),this._menu.classList.remove(S),this._element.classList.remove(S),this._element.setAttribute("aria-expanded","false"),g.removeDataAttribute(this._menu,"popper"),p.trigger(this._element,tt,e))}},{key:"_getConfig",value:function(e){if(e=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),g.getDataAttributes(this._element)),e),s(Ye,e,this.constructor.DefaultType),"object"!==_typeof(e.reference)||f(e.reference)||"function"==typeof e.reference.getBoundingClientRect)return e;throw new TypeError("".concat(Ye.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'))}},{key:"_getMenuElement",value:function(){return d.next(this._element,rt)[0]}},{key:"_getPlacement",value:function(){var e,t=this._element.parentNode;return t.classList.contains("dropend")?ut:t.classList.contains("dropstart")?ft:(e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(),t.classList.contains("dropup")?e?st:at:e?lt:ct)}},{key:"_detectNavbar",value:function(){return null!==this._element.closest(".".concat("navbar"))}},{key:"_getOffset",value:function(){var t=this,n=this._config.offset;return"string"==typeof n?n.split(",").map(function(e){return Number.parseInt(e,10)}):"function"==typeof n?function(e){return n(e,t._element)}:n}},{key:"_getPopperConfig",value:function(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),_objectSpread(_objectSpread({},e),"function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig)}},{key:"_selectMenuItem",value:function(e){var t=e.key,e=e.target,n=d.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(W);n.length&&K(n,e,t===Ze,!n.includes(e)).focus()}}],[{key:"Default",get:function(){return ht}},{key:"DefaultType",get:function(){return dt}},{key:"NAME",get:function(){return Ye}},{key:"dropdownInterface",value:function(e,t){e=c.getOrCreateInstance(e,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}}},{key:"jQueryInterface",value:function(e){return this.each(function(){c.dropdownInterface(this,e)})}},{key:"clearMenus",value:function(e){if(!e||2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(var t=d.find(O),n=0,i=t.length;n<i;n++){var o=c.getInstance(t[n]);if(o&&!1!==o._config.autoClose&&o._element.classList.contains(S)){var r={relatedTarget:o._element};if(e){var a=e.composedPath(),s=a.includes(o._menu);if(a.includes(o._element)||"inside"===o._config.autoClose&&!s||"outside"===o._config.autoClose&&s)continue;if(o._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(r.clickEvent=e)}o._completeHide(r)}}}},{key:"getParentFromElement",value:function(e){return a(e)||e.parentNode}},{key:"dataApiKeydownHandler",value:function(e){var t,n,i=this;(/input|textarea/i.test(e.target.tagName)?"Space"===e.key||e.key!==$e&&(e.key!==Ze&&e.key!==Ge||e.target.closest(rt)):!Je.test(e.key))||(!(t=this.classList.contains(S))&&e.key===$e||(e.preventDefault(),e.stopPropagation(),l(this)||(n=function(){return i.matches(O)?i:d.prev(i,O)[0]},e.key===$e?(n().focus(),c.clearMenus()):e.key===Ge||e.key===Ze?(t||n().click(),c.getInstance(n())._selectMenuItem(e)):t&&"Space"!==e.key||c.clearMenus())))}}]),c}(),_t=(p.on(document,T,O,L.dataApiKeydownHandler),p.on(document,T,rt,L.dataApiKeydownHandler),p.on(document,e,L.clearMenus),p.on(document,o,L.clearMenus),p.on(document,e,O,function(e){e.preventDefault(),L.dropdownInterface(this)}),t(L),".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"),pt=".sticky-top",gt=function(){function e(){_classCallCheck(this,e),this._element=document.body}return _createClass(e,[{key:"getWidth",value:function(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}},{key:"hide",value:function(){var t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",function(e){return e+t}),this._setElementAttributes(_t,"paddingRight",function(e){return e+t}),this._setElementAttributes(pt,"marginRight",function(e){return e-t})}},{key:"_disableOverFlow",value:function(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}},{key:"_setElementAttributes",value:function(e,n,i){var o=this,r=this.getWidth();this._applyManipulationCallback(e,function(e){var t;e!==o._element&&window.innerWidth>e.clientWidth+r||(o._saveInitialAttribute(e,n),t=window.getComputedStyle(e)[n],e.style[n]="".concat(i(Number.parseFloat(t)),"px"))})}},{key:"reset",value:function(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(_t,"paddingRight"),this._resetElementAttributes(pt,"marginRight")}},{key:"_saveInitialAttribute",value:function(e,t){var n=e.style[t];n&&g.setDataAttribute(e,t,n)}},{key:"_resetElementAttributes",value:function(e,n){this._applyManipulationCallback(e,function(e){var t=g.getDataAttribute(e,n);void 0===t?e.style.removeProperty(n):(g.removeDataAttribute(e,n),e.style[n]=t)})}},{key:"_applyManipulationCallback",value:function(e,t){f(e)?t(e):d.find(e,this._element).forEach(t)}},{key:"isOverflowing",value:function(){return 0<this.getWidth()}}]),e}(),mt={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},vt={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},yt="backdrop",bt="mousedown.bs.".concat(yt),kt=function(){function t(e){_classCallCheck(this,t),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}return _createClass(t,[{key:"show",value:function(e){this._config.isVisible?(this._append(),this._config.isAnimated&&h(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation(function(){u(e)})):u(e)}},{key:"hide",value:function(e){var t=this;this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(function(){t.dispose(),u(e)})):u(e)}},{key:"_getElement",value:function(){var e;return this._element||((e=document.createElement("div")).className="modal-backdrop",this._config.isAnimated&&e.classList.add("fade"),this._element=e),this._element}},{key:"_getConfig",value:function(e){return(e=_objectSpread(_objectSpread({},mt),"object"===_typeof(e)?e:{})).rootElement=r(e.rootElement),s(yt,e,vt),e}},{key:"_append",value:function(){var e=this;this._isAppended||(this._config.rootElement.appendChild(this._getElement()),p.on(this._getElement(),bt,function(){u(e._config.clickCallback)}),this._isAppended=!0)}},{key:"dispose",value:function(){this._isAppended&&(p.off(this._element,bt),this._element.remove(),this._isAppended=!1)}},{key:"_emulateAnimation",value:function(e){U(e,this._getElement(),this._config.isAnimated)}}]),t}(),j=".".concat("bs.modal"),Et={backdrop:!0,keyboard:!0,focus:!0},wt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Ct="hide".concat(j),At="hidePrevented".concat(j),Tt="hidden".concat(j),St="show".concat(j),Ot="shown".concat(j),Lt="focusin".concat(j),jt="resize".concat(j),It="click.dismiss".concat(j),Dt="keydown.dismiss".concat(j),Pt="mouseup.dismiss".concat(j),Nt="mousedown.dismiss".concat(j),n="click".concat(j).concat(".data-api"),Mt="modal-open",xt="modal-static",Ht=function(){_inherits(i,_);var n=_createSuper(i);function i(e,t){return _classCallCheck(this,i),(e=n.call(this,e))._config=e._getConfig(t),e._dialog=d.findOne(".modal-dialog",e._element),e._backdrop=e._initializeBackDrop(),e._isShown=!1,e._ignoreBackdropClick=!1,e._isTransitioning=!1,e._scrollBar=new gt,e}return _createClass(i,[{key:"toggle",value:function(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function(e){var t=this;this._isShown||this._isTransitioning||p.trigger(this._element,St,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Mt),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),p.on(this._element,It,'[data-bs-dismiss="modal"]',function(e){return t.hide(e)}),p.on(this._dialog,Nt,function(){p.one(t._element,Pt,function(e){e.target===t._element&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},{key:"hide",value:function(e){var t=this;e&&["A","AREA"].includes(e.target.tagName)&&e.preventDefault(),!this._isShown||this._isTransitioning||p.trigger(this._element,Ct).defaultPrevented||(this._isShown=!1,(e=this._isAnimated())&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),p.off(document,Lt),this._element.classList.remove("show"),p.off(this._element,It),p.off(this._dialog,Nt),this._queueCallback(function(){return t._hideModal()},this._element,e))}},{key:"dispose",value:function(){[window,this._dialog].forEach(function(e){return p.off(e,j)}),this._backdrop.dispose(),_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),p.off(document,Lt)}},{key:"handleUpdate",value:function(){this._adjustDialog()}},{key:"_initializeBackDrop",value:function(){return new kt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}},{key:"_getConfig",value:function(e){return e=_objectSpread(_objectSpread(_objectSpread({},Et),g.getDataAttributes(this._element)),"object"===_typeof(e)?e:{}),s("modal",e,wt),e}},{key:"_showElement",value:function(e){var t=this,n=this._isAnimated(),i=d.findOne(".modal-body",this._dialog);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"),this._element.scrollTop=0,i&&(i.scrollTop=0),n&&h(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus();this._queueCallback(function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,p.trigger(t._element,Ot,{relatedTarget:e})},this._dialog,n)}},{key:"_enforceFocus",value:function(){var t=this;p.off(document,Lt),p.on(document,Lt,function(e){document===e.target||t._element===e.target||t._element.contains(e.target)||t._element.focus()})}},{key:"_setEscapeEvent",value:function(){var t=this;this._isShown?p.on(this._element,Dt,function(e){t._config.keyboard&&"Escape"===e.key?(e.preventDefault(),t.hide()):t._config.keyboard||"Escape"!==e.key||t._triggerBackdropTransition()}):p.off(this._element,Dt)}},{key:"_setResizeEvent",value:function(){var e=this;this._isShown?p.on(window,jt,function(){return e._adjustDialog()}):p.off(window,jt)}},{key:"_hideModal",value:function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(function(){document.body.classList.remove(Mt),e._resetAdjustments(),e._scrollBar.reset(),p.trigger(e._element,Tt)})}},{key:"_showBackdrop",value:function(e){var t=this;p.on(this._element,It,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===t._config.backdrop?t.hide():"static"===t._config.backdrop&&t._triggerBackdropTransition())}),this._backdrop.show(e)}},{key:"_isAnimated",value:function(){return this._element.classList.contains("fade")}},{key:"_triggerBackdropTransition",value:function(){var e,t,n,i,o,r=this;p.trigger(this._element,At).defaultPrevented||(e=this._element,t=e.classList,n=e.scrollHeight,i=e.style,!(o=n>document.documentElement.clientHeight)&&"hidden"===i.overflowY||t.contains(xt)||(o||(i.overflowY="hidden"),t.add(xt),this._queueCallback(function(){t.remove(xt),o||r._queueCallback(function(){i.overflowY=""},r._dialog)},this._dialog),this._element.focus()))}},{key:"_adjustDialog",value:function(){var e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=0<t;(!n&&e&&!c()||n&&!e&&c())&&(this._element.style.paddingLeft="".concat(t,"px")),(n&&!e&&!c()||!n&&e&&c())&&(this._element.style.paddingRight="".concat(t,"px"))}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}],[{key:"Default",get:function(){return Et}},{key:"NAME",get:function(){return"modal"}},{key:"jQueryInterface",value:function(t,n){return this.each(function(){var e=i.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t](n)}})}}]),i}(),Rt=(p.on(document,n,'[data-bs-toggle="modal"]',function(e){var t=this,n=a(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),p.one(n,St,function(e){e.defaultPrevented||p.one(n,Tt,function(){W(t)&&t.focus()})}),Ht.getOrCreateInstance(n).toggle(this)}),t(Ht),"offcanvas"),T=".".concat("bs.offcanvas"),o=".data-api",e="load".concat(T).concat(o),Bt={backdrop:!0,keyboard:!0,scroll:!1},Wt={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},zt=".offcanvas.show",qt="show".concat(T),Ft="shown".concat(T),Ut="hide".concat(T),Kt="hidden".concat(T),Vt="focusin".concat(T),n="click".concat(T).concat(o),Qt="click.dismiss".concat(T),Xt="keydown.dismiss".concat(T),I=function(){_inherits(i,_);var n=_createSuper(i);function i(e,t){return _classCallCheck(this,i),(e=n.call(this,e))._config=e._getConfig(t),e._isShown=!1,e._backdrop=e._initializeBackDrop(),e._addEventListeners(),e}return _createClass(i,[{key:"toggle",value:function(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function(e){var t=this;this._isShown||p.trigger(this._element,qt,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||((new gt).hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback(function(){p.trigger(t._element,Ft,{relatedTarget:e})},this._element,!0))}},{key:"hide",value:function(){var e=this;this._isShown&&!p.trigger(this._element,Ut).defaultPrevented&&(p.off(document,Vt),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback(function(){e._element.setAttribute("aria-hidden",!0),e._element.removeAttribute("aria-modal"),e._element.removeAttribute("role"),e._element.style.visibility="hidden",e._config.scroll||(new gt).reset(),p.trigger(e._element,Kt)},this._element,!0))}},{key:"dispose",value:function(){this._backdrop.dispose(),_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),p.off(document,Vt)}},{key:"_getConfig",value:function(e){return e=_objectSpread(_objectSpread(_objectSpread({},Bt),g.getDataAttributes(this._element)),"object"===_typeof(e)?e:{}),s(Rt,e,Wt),e}},{key:"_initializeBackDrop",value:function(){var e=this;return new kt({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:function(){return e.hide()}})}},{key:"_enforceFocusOnElement",value:function(t){p.off(document,Vt),p.on(document,Vt,function(e){document===e.target||t===e.target||t.contains(e.target)||t.focus()}),t.focus()}},{key:"_addEventListeners",value:function(){var t=this;p.on(this._element,Qt,'[data-bs-dismiss="offcanvas"]',function(){return t.hide()}),p.on(this._element,Xt,function(e){t._config.keyboard&&"Escape"===e.key&&t.hide()})}}],[{key:"NAME",get:function(){return Rt}},{key:"Default",get:function(){return Bt}},{key:"jQueryInterface",value:function(t){return this.each(function(){var e=i.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError('No method named "'.concat(t,'"'));e[t](this)}})}}]),i}(),Yt=(p.on(document,n,'[data-bs-toggle="offcanvas"]',function(e){var t=this,n=a(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||(p.one(n,Kt,function(){W(t)&&t.focus()}),(e=d.findOne(zt))&&e!==n&&I.getInstance(e).hide(),I.getOrCreateInstance(n).toggle(this))}),p.on(window,e,function(){return d.find(zt).forEach(function(e){return I.getOrCreateInstance(e).show()})}),t(I),new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"])),$t=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Gt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,o={"*":["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:[]};function Zt(e,r,t){if(!e.length)return e;if(t&&"function"==typeof t)return t(e);for(var t=(new window.DOMParser).parseFromString(e,"text/html"),a=Object.keys(r),s=(e=[]).concat.apply(e,_toConsumableArray(t.body.querySelectorAll("*"))),n=function(e,t){var n=s[e],e=n.nodeName.toLowerCase();if(!a.includes(e))return n.remove(),"continue";var i=(i=[]).concat.apply(i,_toConsumableArray(n.attributes)),o=[].concat(r["*"]||[],r[e]||[]);i.forEach(function(e){!function(e,t){var n=e.nodeName.toLowerCase();if(t.includes(n))return!Yt.has(n)||Boolean($t.test(e.nodeValue)||Gt.test(e.nodeValue));for(var i=t.filter(function(e){return e instanceof RegExp}),o=0,r=i.length;o<r;o++)if(i[o].test(n))return!0;return!1}(e,o)&&n.removeAttribute(e.nodeName)})},i=0,o=s.length;i<o;i++)n(i);return t.body.innerHTML}var Jt="tooltip",T=".".concat("bs.tooltip"),en="bs-tooltip",tn=new RegExp("(^|\\s)".concat(en,"\\S+"),"g"),nn=new Set(["sanitize","allowList","sanitizeFn"]),on={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},rn={AUTO:"auto",TOP:"top",RIGHT:c()?"left":"right",BOTTOM:"bottom",LEFT:c()?"right":"left"},an={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:o,popperConfig:null},sn={HIDE:"hide".concat(T),HIDDEN:"hidden".concat(T),SHOW:"show".concat(T),SHOWN:"shown".concat(T),INSERTED:"inserted".concat(T),CLICK:"click".concat(T),FOCUSIN:"focusin".concat(T),FOCUSOUT:"focusout".concat(T),MOUSEENTER:"mouseenter".concat(T),MOUSELEAVE:"mouseleave".concat(T)},cn="fade",D="show",P="show",N="hover",ln="focus",un=function(){_inherits(i,_);var n=_createSuper(i);function i(e,t){if(_classCallCheck(this,i),void 0===V)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(e=n.call(this,e))._isEnabled=!0,e._timeout=0,e._hoverState="",e._activeTrigger={},e._popper=null,e._config=e._getConfig(t),e.tip=null,e._setListeners(),e}return _createClass(i,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function(e){this._isEnabled&&(e?((e=this._initializeOnDelegatedTarget(e))._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)):this.getTipElement().classList.contains(D)?this._leave(null,this):this._enter(null,this))}},{key:"dispose",value:function(){clearTimeout(this._timeout),p.off(this._element.closest(".".concat("modal")),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),_get(_getPrototypeOf(i.prototype),"dispose",this).call(this)}},{key:"show",value:function(){var e,t,n,i=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");this.isWithContent()&&this._isEnabled&&(t=p.trigger(this._element,this.constructor.Event.SHOW),n=(null===(n=z(this._element))?this._element.ownerDocument.documentElement:n).contains(this._element),!t.defaultPrevented&&n&&(t=this.getTipElement(),n=H(this.constructor.NAME),t.setAttribute("id",n),this._element.setAttribute("aria-describedby",n),this.setContent(),this._config.animation&&t.classList.add(cn),n="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,n=this._getAttachment(n),this._addAttachmentClass(n),e=this._config.container,he(t,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(e.appendChild(t),p.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=V.createPopper(this._element,t,this._getPopperConfig(n)),t.classList.add(D),(e="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass)&&(n=t.classList).add.apply(n,_toConsumableArray(e.split(" "))),"ontouchstart"in document.documentElement&&(t=[]).concat.apply(t,_toConsumableArray(document.body.children)).forEach(function(e){p.on(e,"mouseover",q)}),n=this.tip.classList.contains(cn),this._queueCallback(function(){var e=i._hoverState;i._hoverState=null,p.trigger(i._element,i.constructor.Event.SHOWN),"out"===e&&i._leave(null,i)},this.tip,n)))}},{key:"hide",value:function(){var e,t,n=this;this._popper&&(e=this.getTipElement(),p.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented||(e.classList.remove(D),"ontouchstart"in document.documentElement&&(t=[]).concat.apply(t,_toConsumableArray(document.body.children)).forEach(function(e){return p.off(e,"mouseover",q)}),this._activeTrigger.click=!1,this._activeTrigger[ln]=!1,this._activeTrigger[N]=!1,t=this.tip.classList.contains(cn),this._queueCallback(function(){n._isWithActiveTrigger()||(n._hoverState!==P&&e.remove(),n._cleanTipClass(),n._element.removeAttribute("aria-describedby"),p.trigger(n._element,n.constructor.Event.HIDDEN),n._popper&&(n._popper.destroy(),n._popper=null))},this.tip,t),this._hoverState=""))}},{key:"update",value:function(){null!==this._popper&&this._popper.update()}},{key:"isWithContent",value:function(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function(){var e;return this.tip||((e=document.createElement("div")).innerHTML=this._config.template,this.tip=e.children[0]),this.tip}},{key:"setContent",value:function(){var e=this.getTipElement();this.setElementContent(d.findOne(".tooltip-inner",e),this.getTitle()),e.classList.remove(cn,D)}},{key:"setElementContent",value:function(e,t){null!==e&&(f(t)?(t=r(t),this._config.html?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.textContent=t.textContent):this._config.html?(this._config.sanitize&&(t=Zt(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}},{key:"getTitle",value:function(){return this._element.getAttribute("data-bs-original-title")||("function"==typeof this._config.title?this._config.title.call(this._element):this._config.title)}},{key:"updateAttachment",value:function(e){return"right"===e?"end":"left"===e?"start":e}},{key:"_initializeOnDelegatedTarget",value:function(e,t){var n=this.constructor.DATA_KEY;return(t=t||de(e.delegateTarget,n))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),he(e.delegateTarget,n,t)),t}},{key:"_getOffset",value:function(){var t=this,n=this._config.offset;return"string"==typeof n?n.split(",").map(function(e){return Number.parseInt(e,10)}):"function"==typeof n?function(e){return n(e,t._element)}:n}},{key:"_getPopperConfig",value:function(e){var t=this,e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function(e){return t._handlePopperPlacementChange(e)}}],onFirstUpdate:function(e){e.options.placement!==e.placement&&t._handlePopperPlacementChange(e)}};return _objectSpread(_objectSpread({},e),"function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig)}},{key:"_addAttachmentClass",value:function(e){this.getTipElement().classList.add("".concat(en,"-").concat(this.updateAttachment(e)))}},{key:"_getAttachment",value:function(e){return rn[e.toUpperCase()]}},{key:"_setListeners",value:function(){var n=this;this._config.trigger.split(" ").forEach(function(e){var t;"click"===e?p.on(n._element,n.constructor.Event.CLICK,n._config.selector,function(e){return n.toggle(e)}):"manual"!==e&&(t=e===N?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,e=e===N?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,p.on(n._element,t,n._config.selector,function(e){return n._enter(e)}),p.on(n._element,e,n._config.selector,function(e){return n._leave(e)}))}),this._hideModalHandler=function(){n._element&&n.hide()},p.on(this._element.closest(".".concat("modal")),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config=_objectSpread(_objectSpread({},this._config),{},{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function(){var e=this._element.getAttribute("title"),t=_typeof(this._element.getAttribute("data-bs-original-title"));!e&&"string"===t||(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}},{key:"_enter",value:function(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?ln:N]=!0),t.getTipElement().classList.contains(D)||t._hoverState===P?t._hoverState=P:(clearTimeout(t._timeout),t._hoverState=P,t._config.delay&&t._config.delay.show?t._timeout=setTimeout(function(){t._hoverState===P&&t.show()},t._config.delay.show):t.show())}},{key:"_leave",value:function(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?ln:N]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t._config.delay&&t._config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t._config.delay.hide):t.hide())}},{key:"_isWithActiveTrigger",value:function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}},{key:"_getConfig",value:function(e){var t=g.getDataAttributes(this._element);return Object.keys(t).forEach(function(e){nn.has(e)&&delete t[e]}),(e=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),t),"object"===_typeof(e)&&e?e:{})).container=!1===e.container?document.body:r(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),s(Jt,e,this.constructor.DefaultType),e.sanitize&&(e.template=Zt(e.template,e.allowList,e.sanitizeFn)),e}},{key:"_getDelegateConfig",value:function(){var e={};if(this._config)for(var t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}},{key:"_cleanTipClass",value:function(){var t=this.getTipElement(),e=t.getAttribute("class").match(tn);null!==e&&0<e.length&&e.map(function(e){return e.trim()}).forEach(function(e){return t.classList.remove(e)})}},{key:"_handlePopperPlacementChange",value:function(e){e=e.state;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}}],[{key:"Default",get:function(){return an}},{key:"NAME",get:function(){return Jt}},{key:"Event",get:function(){return sn}},{key:"DefaultType",get:function(){return on}},{key:"jQueryInterface",value:function(t){return this.each(function(){var e=i.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}]),i}(),n=(t(un),".".concat("bs.popover")),fn="bs-popover",hn=new RegExp("(^|\\s)".concat(fn,"\\S+"),"g"),dn=_objectSpread(_objectSpread({},un.Default),{},{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),_n=_objectSpread(_objectSpread({},un.DefaultType),{},{content:"(string|element|function)"}),pn={HIDE:"hide".concat(n),HIDDEN:"hidden".concat(n),SHOW:"show".concat(n),SHOWN:"shown".concat(n),INSERTED:"inserted".concat(n),CLICK:"click".concat(n),FOCUSIN:"focusin".concat(n),FOCUSOUT:"focusout".concat(n),MOUSEENTER:"mouseenter".concat(n),MOUSELEAVE:"mouseleave".concat(n)},gn=".popover-header",mn=".popover-body",e=function(){_inherits(n,un);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"isWithContent",value:function(){return this.getTitle()||this._getContent()}},{key:"getTipElement",value:function(){return this.tip||(this.tip=_get(_getPrototypeOf(n.prototype),"getTipElement",this).call(this),this.getTitle()||d.findOne(gn,this.tip).remove(),this._getContent()||d.findOne(mn,this.tip).remove()),this.tip}},{key:"setContent",value:function(){var e=this.getTipElement(),t=(this.setElementContent(d.findOne(gn,e),this.getTitle()),this._getContent());"function"==typeof t&&(t=t.call(this._element)),this.setElementContent(d.findOne(mn,e),t),e.classList.remove("fade","show")}},{key:"_addAttachmentClass",value:function(e){this.getTipElement().classList.add("".concat(fn,"-").concat(this.updateAttachment(e)))}},{key:"_getContent",value:function(){return this._element.getAttribute("data-bs-content")||this._config.content}},{key:"_cleanTipClass",value:function(){var t=this.getTipElement(),e=t.getAttribute("class").match(hn);null!==e&&0<e.length&&e.map(function(e){return e.trim()}).forEach(function(e){return t.classList.remove(e)})}}],[{key:"Default",get:function(){return dn}},{key:"NAME",get:function(){return"popover"}},{key:"Event",get:function(){return pn}},{key:"DefaultType",get:function(){return _n}},{key:"jQueryInterface",value:function(t){return this.each(function(){var e=n.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}]),n}(),vn=(t(e),"scrollspy"),yn=".".concat("bs.scrollspy"),bn={offset:10,method:"auto",target:""},kn={offset:"number",method:"string",target:"(string|element)"},En="activate".concat(yn),wn="scroll".concat(yn),o="load".concat(yn).concat(".data-api"),Cn="dropdown-item",M="active",An=".nav-link",Tn=".list-group-item",Sn="position",On=function(){_inherits(o,_);var i=_createSuper(o);function o(e,t){var n;return _classCallCheck(this,o),(n=i.call(this,e))._scrollElement="BODY"===n._element.tagName?window:n._element,n._config=n._getConfig(t),n._selector="".concat(n._config.target," ").concat(An,", ").concat(n._config.target," ").concat(Tn,", ").concat(n._config.target," .").concat(Cn),n._offsets=[],n._targets=[],n._activeTarget=null,n._scrollHeight=0,p.on(n._scrollElement,wn,function(){return n._process()}),n.refresh(),n._process(),n}return _createClass(o,[{key:"refresh",value:function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":Sn,i="auto"===this._config.method?e:this._config.method,o=i===Sn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),d.find(this._selector).map(function(e){var e=R(e),t=e?d.findOne(e):null;if(t){var n=t.getBoundingClientRect();if(n.width||n.height)return[g[i](t).top+o,e]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})}},{key:"dispose",value:function(){p.off(this._scrollElement,yn),_get(_getPrototypeOf(o.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function(e){var t;return"string"!=typeof(e=_objectSpread(_objectSpread(_objectSpread({},bn),g.getDataAttributes(this._element)),"object"===_typeof(e)&&e?e:{})).target&&f(e.target)&&((t=e.target.id)||(t=H(vn),e.target.id=t),e.target="#".concat(t)),s(vn,e,kn),e}},{key:"_getScrollTop",value:function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e)t=this._targets[this._targets.length-1],this._activeTarget!==t&&this._activate(t);else if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])this._activeTarget=null,this._clear();else for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])}},{key:"_activate",value:function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return"".concat(e,'[data-bs-target="').concat(t,'"],').concat(e,'[href="').concat(t,'"]')}),e=d.findOne(e.join(","));e.classList.contains(Cn)?(d.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(M),e.classList.add(M)):(e.classList.add(M),d.parents(e,".nav, .list-group").forEach(function(e){d.prev(e,"".concat(An,", ").concat(Tn)).forEach(function(e){return e.classList.add(M)}),d.prev(e,".nav-item").forEach(function(e){d.children(e,An).forEach(function(e){return e.classList.add(M)})})})),p.trigger(this._scrollElement,En,{relatedTarget:t})}},{key:"_clear",value:function(){d.find(this._selector).filter(function(e){return e.classList.contains(M)}).forEach(function(e){return e.classList.remove(M)})}}],[{key:"Default",get:function(){return bn}},{key:"NAME",get:function(){return vn}},{key:"jQueryInterface",value:function(t){return this.each(function(){var e=o.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}]),o}(),T=(p.on(window,o,function(){d.find('[data-bs-spy="scroll"]').forEach(function(e){return new On(e)})}),t(On),".".concat("bs.tab")),Ln="hide".concat(T),jn="hidden".concat(T),In="show".concat(T),Dn="shown".concat(T),n="click".concat(T).concat(".data-api"),Pn="active",Nn=".active",Mn=":scope > li > .active",xn=function(){_inherits(n,_);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"show",value:function(){var e,t,n,i,o=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Pn)||(e=a(this._element),(t=this._element.closest(".nav, .list-group"))&&(i="UL"===t.nodeName||"OL"===t.nodeName?Mn:Nn,n=(n=d.find(i,t))[n.length-1]),i=n?p.trigger(n,Ln,{relatedTarget:this._element}):null,p.trigger(this._element,In,{relatedTarget:n}).defaultPrevented||null!==i&&i.defaultPrevented||(this._activate(this._element,t),i=function(){p.trigger(n,jn,{relatedTarget:o._element}),p.trigger(o._element,Dn,{relatedTarget:n})},e?this._activate(e,e.parentNode,i):i()))}},{key:"_activate",value:function(e,t,n){function i(){return o._transitionComplete(e,r,n)}var o=this,r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?d.children(t,Nn):d.find(Mn,t))[0],t=n&&r&&r.classList.contains("fade");r&&t?(r.classList.remove("show"),this._queueCallback(i,e,!0)):i()}},{key:"_transitionComplete",value:function(e,t,n){t&&(t.classList.remove(Pn),(i=d.findOne(":scope > .dropdown-menu .active",t.parentNode))&&i.classList.remove(Pn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)),e.classList.add(Pn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),h(e),e.classList.contains("fade")&&e.classList.add("show");var i=e.parentNode;(i=i&&"LI"===i.nodeName?i.parentNode:i)&&i.classList.contains("dropdown-menu")&&((t=e.closest(".dropdown"))&&d.find(".dropdown-toggle",t).forEach(function(e){return e.classList.add(Pn)}),e.setAttribute("aria-expanded",!0)),n&&n()}}],[{key:"NAME",get:function(){return"tab"}},{key:"jQueryInterface",value:function(t){return this.each(function(){var e=n.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}]),n}(),o=(p.on(document,n,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||xn.getOrCreateInstance(this).show()}),t(xn),".".concat("bs.toast")),Hn="click.dismiss".concat(o),Rn="mouseover".concat(o),Bn="mouseout".concat(o),Wn="focusin".concat(o),zn="focusout".concat(o),qn="hide".concat(o),Fn="hidden".concat(o),Un="show".concat(o),Kn="shown".concat(o),Vn="show",Qn="showing",Xn={animation:"boolean",autohide:"boolean",delay:"number"},Yn={animation:!0,autohide:!0,delay:5e3},T=function(){_inherits(i,_);var n=_createSuper(i);function i(e,t){return _classCallCheck(this,i),(e=n.call(this,e))._config=e._getConfig(t),e._timeout=null,e._hasMouseInteraction=!1,e._hasKeyboardInteraction=!1,e._setListeners(),e}return _createClass(i,[{key:"show",value:function(){var e=this;p.trigger(this._element,Un).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),h(this._element),this._element.classList.add(Qn),this._queueCallback(function(){e._element.classList.remove(Qn),e._element.classList.add(Vn),p.trigger(e._element,Kn),e._maybeScheduleHide()},this._element,this._config.animation))}},{key:"hide",value:function(){var e=this;this._element.classList.contains(Vn)&&!p.trigger(this._element,qn).defaultPrevented&&(this._element.classList.remove(Vn),this._queueCallback(function(){e._element.classList.add("hide"),p.trigger(e._element,Fn)},this._element,this._config.animation))}},{key:"dispose",value:function(){this._clearTimeout(),this._element.classList.contains(Vn)&&this._element.classList.remove(Vn),_get(_getPrototypeOf(i.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function(e){return e=_objectSpread(_objectSpread(_objectSpread({},Yn),g.getDataAttributes(this._element)),"object"===_typeof(e)&&e?e:{}),s("toast",e,this.constructor.DefaultType),e}},{key:"_maybeScheduleHide",value:function(){var e=this;!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(function(){e.hide()},this._config.delay))}},{key:"_onInteraction",value:function(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}t?this._clearTimeout():(e=e.relatedTarget,this._element===e||this._element.contains(e)||this._maybeScheduleHide())}},{key:"_setListeners",value:function(){var t=this;p.on(this._element,Hn,'[data-bs-dismiss="toast"]',function(){return t.hide()}),p.on(this._element,Rn,function(e){return t._onInteraction(e,!0)}),p.on(this._element,Bn,function(e){return t._onInteraction(e,!1)}),p.on(this._element,Wn,function(e){return t._onInteraction(e,!0)}),p.on(this._element,zn,function(e){return t._onInteraction(e,!1)})}},{key:"_clearTimeout",value:function(){clearTimeout(this._timeout),this._timeout=null}}],[{key:"DefaultType",get:function(){return Xn}},{key:"Default",get:function(){return Yn}},{key:"NAME",get:function(){return"toast"}},{key:"jQueryInterface",value:function(t){return this.each(function(){var e=i.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t](this)}})}}]),i}();return t(T),{Alert:me,Button:ye,Carousel:E,Collapse:Xe,Dropdown:L,Modal:Ht,Offcanvas:I,Popover:e,ScrollSpy:On,Tab:xn,Toast:T,Tooltip:un}});