2 * Bootstrap v4.6.0 (https://getbootstrap.com/)
3 * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6(function (global, factory) {
7 typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
8 typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
9 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bootstrap = {}, global.jQuery, global.Popper));
10}(this, (function (exports, $, Popper) { 'use strict';
12 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14 var $__default = /*#__PURE__*/_interopDefaultLegacy($);
15 var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper);
17 function _defineProperties(target, props) {
18 for (var i = 0; i < props.length; i++) {
19 var descriptor = props[i];
20 descriptor.enumerable = descriptor.enumerable || false;
21 descriptor.configurable = true;
22 if ("value" in descriptor) descriptor.writable = true;
23 Object.defineProperty(target, descriptor.key, descriptor);
27 function _createClass(Constructor, protoProps, staticProps) {
28 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29 if (staticProps) _defineProperties(Constructor, staticProps);
34 _extends = Object.assign || function (target) {
35 for (var i = 1; i < arguments.length; i++) {
36 var source = arguments[i];
38 for (var key in source) {
39 if (Object.prototype.hasOwnProperty.call(source, key)) {
40 target[key] = source[key];
48 return _extends.apply(this, arguments);
51 function _inheritsLoose(subClass, superClass) {
52 subClass.prototype = Object.create(superClass.prototype);
53 subClass.prototype.constructor = subClass;
54 subClass.__proto__ = superClass;
58 * --------------------------------------------------------------------------
59 * Bootstrap (v4.6.0): util.js
60 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
61 * --------------------------------------------------------------------------
64 * ------------------------------------------------------------------------
65 * Private TransitionEnd Helpers
66 * ------------------------------------------------------------------------
69 var TRANSITION_END = 'transitionend';
70 var MAX_UID = 1000000;
71 var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
73 function toType(obj) {
74 if (obj === null || typeof obj === 'undefined') {
78 return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
81 function getSpecialTransitionEndEvent() {
83 bindType: TRANSITION_END,
84 delegateType: TRANSITION_END,
85 handle: function handle(event) {
86 if ($__default['default'](event.target).is(this)) {
87 return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
95 function transitionEndEmulator(duration) {
99 $__default['default'](this).one(Util.TRANSITION_END, function () {
102 setTimeout(function () {
104 Util.triggerTransitionEnd(_this);
110 function setTransitionEndSupport() {
111 $__default['default'].fn.emulateTransitionEnd = transitionEndEmulator;
112 $__default['default'].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
115 * --------------------------------------------------------------------------
117 * --------------------------------------------------------------------------
122 TRANSITION_END: 'bsTransitionEnd',
123 getUID: function getUID(prefix) {
125 prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
126 } while (document.getElementById(prefix));
130 getSelectorFromElement: function getSelectorFromElement(element) {
131 var selector = element.getAttribute('data-target');
133 if (!selector || selector === '#') {
134 var hrefAttr = element.getAttribute('href');
135 selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
139 return document.querySelector(selector) ? selector : null;
144 getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
147 } // Get transition-duration of the element
150 var transitionDuration = $__default['default'](element).css('transition-duration');
151 var transitionDelay = $__default['default'](element).css('transition-delay');
152 var floatTransitionDuration = parseFloat(transitionDuration);
153 var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
155 if (!floatTransitionDuration && !floatTransitionDelay) {
157 } // If multiple durations are defined, take the first
160 transitionDuration = transitionDuration.split(',')[0];
161 transitionDelay = transitionDelay.split(',')[0];
162 return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
164 reflow: function reflow(element) {
165 return element.offsetHeight;
167 triggerTransitionEnd: function triggerTransitionEnd(element) {
168 $__default['default'](element).trigger(TRANSITION_END);
170 supportsTransitionEnd: function supportsTransitionEnd() {
171 return Boolean(TRANSITION_END);
173 isElement: function isElement(obj) {
174 return (obj[0] || obj).nodeType;
176 typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
177 for (var property in configTypes) {
178 if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
179 var expectedTypes = configTypes[property];
180 var value = config[property];
181 var valueType = value && Util.isElement(value) ? 'element' : toType(value);
183 if (!new RegExp(expectedTypes).test(valueType)) {
184 throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
189 findShadowRoot: function findShadowRoot(element) {
190 if (!document.documentElement.attachShadow) {
192 } // Can find the shadow root otherwise it'll return the document
195 if (typeof element.getRootNode === 'function') {
196 var root = element.getRootNode();
197 return root instanceof ShadowRoot ? root : null;
200 if (element instanceof ShadowRoot) {
202 } // when we don't find a shadow root
205 if (!element.parentNode) {
209 return Util.findShadowRoot(element.parentNode);
211 jQueryDetection: function jQueryDetection() {
212 if (typeof $__default['default'] === 'undefined') {
213 throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
216 var version = $__default['default'].fn.jquery.split(' ')[0].split('.');
223 if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
224 throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
228 Util.jQueryDetection();
229 setTransitionEndSupport();
232 * ------------------------------------------------------------------------
234 * ------------------------------------------------------------------------
238 var VERSION = '4.6.0';
239 var DATA_KEY = 'bs.alert';
240 var EVENT_KEY = "." + DATA_KEY;
241 var DATA_API_KEY = '.data-api';
242 var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
243 var SELECTOR_DISMISS = '[data-dismiss="alert"]';
244 var EVENT_CLOSE = "close" + EVENT_KEY;
245 var EVENT_CLOSED = "closed" + EVENT_KEY;
246 var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
247 var CLASS_NAME_ALERT = 'alert';
248 var CLASS_NAME_FADE = 'fade';
249 var CLASS_NAME_SHOW = 'show';
251 * ------------------------------------------------------------------------
253 * ------------------------------------------------------------------------
256 var Alert = /*#__PURE__*/function () {
257 function Alert(element) {
258 this._element = element;
262 var _proto = Alert.prototype;
265 _proto.close = function close(element) {
266 var rootElement = this._element;
269 rootElement = this._getRootElement(element);
272 var customEvent = this._triggerCloseEvent(rootElement);
274 if (customEvent.isDefaultPrevented()) {
278 this._removeElement(rootElement);
281 _proto.dispose = function dispose() {
282 $__default['default'].removeData(this._element, DATA_KEY);
283 this._element = null;
287 _proto._getRootElement = function _getRootElement(element) {
288 var selector = Util.getSelectorFromElement(element);
292 parent = document.querySelector(selector);
296 parent = $__default['default'](element).closest("." + CLASS_NAME_ALERT)[0];
302 _proto._triggerCloseEvent = function _triggerCloseEvent(element) {
303 var closeEvent = $__default['default'].Event(EVENT_CLOSE);
304 $__default['default'](element).trigger(closeEvent);
308 _proto._removeElement = function _removeElement(element) {
311 $__default['default'](element).removeClass(CLASS_NAME_SHOW);
313 if (!$__default['default'](element).hasClass(CLASS_NAME_FADE)) {
314 this._destroyElement(element);
319 var transitionDuration = Util.getTransitionDurationFromElement(element);
320 $__default['default'](element).one(Util.TRANSITION_END, function (event) {
321 return _this._destroyElement(element, event);
322 }).emulateTransitionEnd(transitionDuration);
325 _proto._destroyElement = function _destroyElement(element) {
326 $__default['default'](element).detach().trigger(EVENT_CLOSED).remove();
330 Alert._jQueryInterface = function _jQueryInterface(config) {
331 return this.each(function () {
332 var $element = $__default['default'](this);
333 var data = $element.data(DATA_KEY);
336 data = new Alert(this);
337 $element.data(DATA_KEY, data);
340 if (config === 'close') {
346 Alert._handleDismiss = function _handleDismiss(alertInstance) {
347 return function (event) {
349 event.preventDefault();
352 alertInstance.close(this);
356 _createClass(Alert, null, [{
358 get: function get() {
366 * ------------------------------------------------------------------------
367 * Data Api implementation
368 * ------------------------------------------------------------------------
372 $__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
374 * ------------------------------------------------------------------------
376 * ------------------------------------------------------------------------
379 $__default['default'].fn[NAME] = Alert._jQueryInterface;
380 $__default['default'].fn[NAME].Constructor = Alert;
382 $__default['default'].fn[NAME].noConflict = function () {
383 $__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
384 return Alert._jQueryInterface;
388 * ------------------------------------------------------------------------
390 * ------------------------------------------------------------------------
393 var NAME$1 = 'button';
394 var VERSION$1 = '4.6.0';
395 var DATA_KEY$1 = 'bs.button';
396 var EVENT_KEY$1 = "." + DATA_KEY$1;
397 var DATA_API_KEY$1 = '.data-api';
398 var JQUERY_NO_CONFLICT$1 = $__default['default'].fn[NAME$1];
399 var CLASS_NAME_ACTIVE = 'active';
400 var CLASS_NAME_BUTTON = 'btn';
401 var CLASS_NAME_FOCUS = 'focus';
402 var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]';
403 var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]';
404 var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
405 var SELECTOR_DATA_TOGGLES_BUTTONS = '[data-toggle="buttons"] .btn';
406 var SELECTOR_INPUT = 'input:not([type="hidden"])';
407 var SELECTOR_ACTIVE = '.active';
408 var SELECTOR_BUTTON = '.btn';
409 var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$1 + DATA_API_KEY$1;
410 var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$1 + DATA_API_KEY$1 + " " + ("blur" + EVENT_KEY$1 + DATA_API_KEY$1);
411 var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$1 + DATA_API_KEY$1;
413 * ------------------------------------------------------------------------
415 * ------------------------------------------------------------------------
418 var Button = /*#__PURE__*/function () {
419 function Button(element) {
420 this._element = element;
421 this.shouldAvoidTriggerChange = false;
425 var _proto = Button.prototype;
428 _proto.toggle = function toggle() {
429 var triggerChangeEvent = true;
430 var addAriaPressed = true;
431 var rootElement = $__default['default'](this._element).closest(SELECTOR_DATA_TOGGLES)[0];
434 var input = this._element.querySelector(SELECTOR_INPUT);
437 if (input.type === 'radio') {
438 if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE)) {
439 triggerChangeEvent = false;
441 var activeElement = rootElement.querySelector(SELECTOR_ACTIVE);
444 $__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE);
449 if (triggerChangeEvent) {
450 // if it's not a radio button or checkbox don't add a pointless/invalid checked property to the input
451 if (input.type === 'checkbox' || input.type === 'radio') {
452 input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE);
455 if (!this.shouldAvoidTriggerChange) {
456 $__default['default'](input).trigger('change');
461 addAriaPressed = false;
465 if (!(this._element.hasAttribute('disabled') || this._element.classList.contains('disabled'))) {
466 if (addAriaPressed) {
467 this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE));
470 if (triggerChangeEvent) {
471 $__default['default'](this._element).toggleClass(CLASS_NAME_ACTIVE);
476 _proto.dispose = function dispose() {
477 $__default['default'].removeData(this._element, DATA_KEY$1);
478 this._element = null;
482 Button._jQueryInterface = function _jQueryInterface(config, avoidTriggerChange) {
483 return this.each(function () {
484 var $element = $__default['default'](this);
485 var data = $element.data(DATA_KEY$1);
488 data = new Button(this);
489 $element.data(DATA_KEY$1, data);
492 data.shouldAvoidTriggerChange = avoidTriggerChange;
494 if (config === 'toggle') {
500 _createClass(Button, null, [{
502 get: function get() {
510 * ------------------------------------------------------------------------
511 * Data Api implementation
512 * ------------------------------------------------------------------------
516 $__default['default'](document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
517 var button = event.target;
518 var initialButton = button;
520 if (!$__default['default'](button).hasClass(CLASS_NAME_BUTTON)) {
521 button = $__default['default'](button).closest(SELECTOR_BUTTON)[0];
524 if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
525 event.preventDefault(); // work around Firefox bug #1540995
527 var inputBtn = button.querySelector(SELECTOR_INPUT);
529 if (inputBtn && (inputBtn.hasAttribute('disabled') || inputBtn.classList.contains('disabled'))) {
530 event.preventDefault(); // work around Firefox bug #1540995
535 if (initialButton.tagName === 'INPUT' || button.tagName !== 'LABEL') {
536 Button._jQueryInterface.call($__default['default'](button), 'toggle', initialButton.tagName === 'INPUT');
539 }).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
540 var button = $__default['default'](event.target).closest(SELECTOR_BUTTON)[0];
541 $__default['default'](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
543 $__default['default'](window).on(EVENT_LOAD_DATA_API, function () {
544 // ensure correct active class is set to match the controls' actual values/states
545 // find all checkboxes/readio buttons inside data-toggle groups
546 var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));
548 for (var i = 0, len = buttons.length; i < len; i++) {
549 var button = buttons[i];
550 var input = button.querySelector(SELECTOR_INPUT);
552 if (input.checked || input.hasAttribute('checked')) {
553 button.classList.add(CLASS_NAME_ACTIVE);
555 button.classList.remove(CLASS_NAME_ACTIVE);
557 } // find all button toggles
560 buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE));
562 for (var _i = 0, _len = buttons.length; _i < _len; _i++) {
563 var _button = buttons[_i];
565 if (_button.getAttribute('aria-pressed') === 'true') {
566 _button.classList.add(CLASS_NAME_ACTIVE);
568 _button.classList.remove(CLASS_NAME_ACTIVE);
573 * ------------------------------------------------------------------------
575 * ------------------------------------------------------------------------
578 $__default['default'].fn[NAME$1] = Button._jQueryInterface;
579 $__default['default'].fn[NAME$1].Constructor = Button;
581 $__default['default'].fn[NAME$1].noConflict = function () {
582 $__default['default'].fn[NAME$1] = JQUERY_NO_CONFLICT$1;
583 return Button._jQueryInterface;
587 * ------------------------------------------------------------------------
589 * ------------------------------------------------------------------------
592 var NAME$2 = 'carousel';
593 var VERSION$2 = '4.6.0';
594 var DATA_KEY$2 = 'bs.carousel';
595 var EVENT_KEY$2 = "." + DATA_KEY$2;
596 var DATA_API_KEY$2 = '.data-api';
597 var JQUERY_NO_CONFLICT$2 = $__default['default'].fn[NAME$2];
598 var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
600 var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
602 var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
604 var SWIPE_THRESHOLD = 40;
614 interval: '(number|boolean)',
616 slide: '(boolean|string)',
617 pause: '(string|boolean)',
621 var DIRECTION_NEXT = 'next';
622 var DIRECTION_PREV = 'prev';
623 var DIRECTION_LEFT = 'left';
624 var DIRECTION_RIGHT = 'right';
625 var EVENT_SLIDE = "slide" + EVENT_KEY$2;
626 var EVENT_SLID = "slid" + EVENT_KEY$2;
627 var EVENT_KEYDOWN = "keydown" + EVENT_KEY$2;
628 var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$2;
629 var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$2;
630 var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$2;
631 var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$2;
632 var EVENT_TOUCHEND = "touchend" + EVENT_KEY$2;
633 var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$2;
634 var EVENT_POINTERUP = "pointerup" + EVENT_KEY$2;
635 var EVENT_DRAG_START = "dragstart" + EVENT_KEY$2;
636 var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$2 + DATA_API_KEY$2;
637 var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$2 + DATA_API_KEY$2;
638 var CLASS_NAME_CAROUSEL = 'carousel';
639 var CLASS_NAME_ACTIVE$1 = 'active';
640 var CLASS_NAME_SLIDE = 'slide';
641 var CLASS_NAME_RIGHT = 'carousel-item-right';
642 var CLASS_NAME_LEFT = 'carousel-item-left';
643 var CLASS_NAME_NEXT = 'carousel-item-next';
644 var CLASS_NAME_PREV = 'carousel-item-prev';
645 var CLASS_NAME_POINTER_EVENT = 'pointer-event';
646 var SELECTOR_ACTIVE$1 = '.active';
647 var SELECTOR_ACTIVE_ITEM = '.active.carousel-item';
648 var SELECTOR_ITEM = '.carousel-item';
649 var SELECTOR_ITEM_IMG = '.carousel-item img';
650 var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
651 var SELECTOR_INDICATORS = '.carousel-indicators';
652 var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]';
653 var SELECTOR_DATA_RIDE = '[data-ride="carousel"]';
659 * ------------------------------------------------------------------------
661 * ------------------------------------------------------------------------
664 var Carousel = /*#__PURE__*/function () {
665 function Carousel(element, config) {
667 this._interval = null;
668 this._activeElement = null;
669 this._isPaused = false;
670 this._isSliding = false;
671 this.touchTimeout = null;
672 this.touchStartX = 0;
673 this.touchDeltaX = 0;
674 this._config = this._getConfig(config);
675 this._element = element;
676 this._indicatorsElement = this._element.querySelector(SELECTOR_INDICATORS);
677 this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
678 this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent);
680 this._addEventListeners();
684 var _proto = Carousel.prototype;
687 _proto.next = function next() {
688 if (!this._isSliding) {
689 this._slide(DIRECTION_NEXT);
693 _proto.nextWhenVisible = function nextWhenVisible() {
694 var $element = $__default['default'](this._element); // Don't call next when the page isn't visible
695 // or the carousel or its parent isn't visible
697 if (!document.hidden && $element.is(':visible') && $element.css('visibility') !== 'hidden') {
702 _proto.prev = function prev() {
703 if (!this._isSliding) {
704 this._slide(DIRECTION_PREV);
708 _proto.pause = function pause(event) {
710 this._isPaused = true;
713 if (this._element.querySelector(SELECTOR_NEXT_PREV)) {
714 Util.triggerTransitionEnd(this._element);
718 clearInterval(this._interval);
719 this._interval = null;
722 _proto.cycle = function cycle(event) {
724 this._isPaused = false;
727 if (this._interval) {
728 clearInterval(this._interval);
729 this._interval = null;
732 if (this._config.interval && !this._isPaused) {
733 this._updateInterval();
735 this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
739 _proto.to = function to(index) {
742 this._activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM);
744 var activeIndex = this._getItemIndex(this._activeElement);
746 if (index > this._items.length - 1 || index < 0) {
750 if (this._isSliding) {
751 $__default['default'](this._element).one(EVENT_SLID, function () {
752 return _this.to(index);
757 if (activeIndex === index) {
763 var direction = index > activeIndex ? DIRECTION_NEXT : DIRECTION_PREV;
765 this._slide(direction, this._items[index]);
768 _proto.dispose = function dispose() {
769 $__default['default'](this._element).off(EVENT_KEY$2);
770 $__default['default'].removeData(this._element, DATA_KEY$2);
773 this._element = null;
774 this._interval = null;
775 this._isPaused = null;
776 this._isSliding = null;
777 this._activeElement = null;
778 this._indicatorsElement = null;
782 _proto._getConfig = function _getConfig(config) {
783 config = _extends({}, Default, config);
784 Util.typeCheckConfig(NAME$2, config, DefaultType);
788 _proto._handleSwipe = function _handleSwipe() {
789 var absDeltax = Math.abs(this.touchDeltaX);
791 if (absDeltax <= SWIPE_THRESHOLD) {
795 var direction = absDeltax / this.touchDeltaX;
796 this.touchDeltaX = 0; // swipe left
808 _proto._addEventListeners = function _addEventListeners() {
811 if (this._config.keyboard) {
812 $__default['default'](this._element).on(EVENT_KEYDOWN, function (event) {
813 return _this2._keydown(event);
817 if (this._config.pause === 'hover') {
818 $__default['default'](this._element).on(EVENT_MOUSEENTER, function (event) {
819 return _this2.pause(event);
820 }).on(EVENT_MOUSELEAVE, function (event) {
821 return _this2.cycle(event);
825 if (this._config.touch) {
826 this._addTouchEventListeners();
830 _proto._addTouchEventListeners = function _addTouchEventListeners() {
833 if (!this._touchSupported) {
837 var start = function start(event) {
838 if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {
839 _this3.touchStartX = event.originalEvent.clientX;
840 } else if (!_this3._pointerEvent) {
841 _this3.touchStartX = event.originalEvent.touches[0].clientX;
845 var move = function move(event) {
846 // ensure swiping with one touch and not pinching
847 if (event.originalEvent.touches && event.originalEvent.touches.length > 1) {
848 _this3.touchDeltaX = 0;
850 _this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX;
854 var end = function end(event) {
855 if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {
856 _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX;
859 _this3._handleSwipe();
861 if (_this3._config.pause === 'hover') {
862 // If it's a touch-enabled device, mouseenter/leave are fired as
863 // part of the mouse compatibility events on first tap - the carousel
864 // would stop cycling until user tapped out of it;
865 // here, we listen for touchend, explicitly pause the carousel
866 // (as if it's the second time we tap on it, mouseenter compat event
867 // is NOT fired) and after a timeout (to allow for mouse compatibility
868 // events to fire) we explicitly restart cycling
871 if (_this3.touchTimeout) {
872 clearTimeout(_this3.touchTimeout);
875 _this3.touchTimeout = setTimeout(function (event) {
876 return _this3.cycle(event);
877 }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval);
881 $__default['default'](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
882 return e.preventDefault();
885 if (this._pointerEvent) {
886 $__default['default'](this._element).on(EVENT_POINTERDOWN, function (event) {
889 $__default['default'](this._element).on(EVENT_POINTERUP, function (event) {
893 this._element.classList.add(CLASS_NAME_POINTER_EVENT);
895 $__default['default'](this._element).on(EVENT_TOUCHSTART, function (event) {
898 $__default['default'](this._element).on(EVENT_TOUCHMOVE, function (event) {
901 $__default['default'](this._element).on(EVENT_TOUCHEND, function (event) {
907 _proto._keydown = function _keydown(event) {
908 if (/input|textarea/i.test(event.target.tagName)) {
912 switch (event.which) {
913 case ARROW_LEFT_KEYCODE:
914 event.preventDefault();
918 case ARROW_RIGHT_KEYCODE:
919 event.preventDefault();
925 _proto._getItemIndex = function _getItemIndex(element) {
926 this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(SELECTOR_ITEM)) : [];
927 return this._items.indexOf(element);
930 _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {
931 var isNextDirection = direction === DIRECTION_NEXT;
932 var isPrevDirection = direction === DIRECTION_PREV;
934 var activeIndex = this._getItemIndex(activeElement);
936 var lastItemIndex = this._items.length - 1;
937 var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;
939 if (isGoingToWrap && !this._config.wrap) {
940 return activeElement;
943 var delta = direction === DIRECTION_PREV ? -1 : 1;
944 var itemIndex = (activeIndex + delta) % this._items.length;
945 return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
948 _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
949 var targetIndex = this._getItemIndex(relatedTarget);
951 var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM));
953 var slideEvent = $__default['default'].Event(EVENT_SLIDE, {
954 relatedTarget: relatedTarget,
955 direction: eventDirectionName,
959 $__default['default'](this._element).trigger(slideEvent);
963 _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
964 if (this._indicatorsElement) {
965 var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1));
966 $__default['default'](indicators).removeClass(CLASS_NAME_ACTIVE$1);
968 var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
971 $__default['default'](nextIndicator).addClass(CLASS_NAME_ACTIVE$1);
976 _proto._updateInterval = function _updateInterval() {
977 var element = this._activeElement || this._element.querySelector(SELECTOR_ACTIVE_ITEM);
983 var elementInterval = parseInt(element.getAttribute('data-interval'), 10);
985 if (elementInterval) {
986 this._config.defaultInterval = this._config.defaultInterval || this._config.interval;
987 this._config.interval = elementInterval;
989 this._config.interval = this._config.defaultInterval || this._config.interval;
993 _proto._slide = function _slide(direction, element) {
996 var activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM);
998 var activeElementIndex = this._getItemIndex(activeElement);
1000 var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);
1002 var nextElementIndex = this._getItemIndex(nextElement);
1004 var isCycling = Boolean(this._interval);
1005 var directionalClassName;
1007 var eventDirectionName;
1009 if (direction === DIRECTION_NEXT) {
1010 directionalClassName = CLASS_NAME_LEFT;
1011 orderClassName = CLASS_NAME_NEXT;
1012 eventDirectionName = DIRECTION_LEFT;
1014 directionalClassName = CLASS_NAME_RIGHT;
1015 orderClassName = CLASS_NAME_PREV;
1016 eventDirectionName = DIRECTION_RIGHT;
1019 if (nextElement && $__default['default'](nextElement).hasClass(CLASS_NAME_ACTIVE$1)) {
1020 this._isSliding = false;
1024 var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);
1026 if (slideEvent.isDefaultPrevented()) {
1030 if (!activeElement || !nextElement) {
1031 // Some weirdness is happening, so we bail
1035 this._isSliding = true;
1041 this._setActiveIndicatorElement(nextElement);
1043 this._activeElement = nextElement;
1044 var slidEvent = $__default['default'].Event(EVENT_SLID, {
1045 relatedTarget: nextElement,
1046 direction: eventDirectionName,
1047 from: activeElementIndex,
1048 to: nextElementIndex
1051 if ($__default['default'](this._element).hasClass(CLASS_NAME_SLIDE)) {
1052 $__default['default'](nextElement).addClass(orderClassName);
1053 Util.reflow(nextElement);
1054 $__default['default'](activeElement).addClass(directionalClassName);
1055 $__default['default'](nextElement).addClass(directionalClassName);
1056 var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
1057 $__default['default'](activeElement).one(Util.TRANSITION_END, function () {
1058 $__default['default'](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$1);
1059 $__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1 + " " + orderClassName + " " + directionalClassName);
1060 _this4._isSliding = false;
1061 setTimeout(function () {
1062 return $__default['default'](_this4._element).trigger(slidEvent);
1064 }).emulateTransitionEnd(transitionDuration);
1066 $__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1);
1067 $__default['default'](nextElement).addClass(CLASS_NAME_ACTIVE$1);
1068 this._isSliding = false;
1069 $__default['default'](this._element).trigger(slidEvent);
1078 Carousel._jQueryInterface = function _jQueryInterface(config) {
1079 return this.each(function () {
1080 var data = $__default['default'](this).data(DATA_KEY$2);
1082 var _config = _extends({}, Default, $__default['default'](this).data());
1084 if (typeof config === 'object') {
1085 _config = _extends({}, _config, config);
1088 var action = typeof config === 'string' ? config : _config.slide;
1091 data = new Carousel(this, _config);
1092 $__default['default'](this).data(DATA_KEY$2, data);
1095 if (typeof config === 'number') {
1097 } else if (typeof action === 'string') {
1098 if (typeof data[action] === 'undefined') {
1099 throw new TypeError("No method named \"" + action + "\"");
1103 } else if (_config.interval && _config.ride) {
1110 Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
1111 var selector = Util.getSelectorFromElement(this);
1117 var target = $__default['default'](selector)[0];
1119 if (!target || !$__default['default'](target).hasClass(CLASS_NAME_CAROUSEL)) {
1123 var config = _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
1125 var slideIndex = this.getAttribute('data-slide-to');
1128 config.interval = false;
1131 Carousel._jQueryInterface.call($__default['default'](target), config);
1134 $__default['default'](target).data(DATA_KEY$2).to(slideIndex);
1137 event.preventDefault();
1140 _createClass(Carousel, null, [{
1142 get: function get() {
1147 get: function get() {
1155 * ------------------------------------------------------------------------
1156 * Data Api implementation
1157 * ------------------------------------------------------------------------
1161 $__default['default'](document).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
1162 $__default['default'](window).on(EVENT_LOAD_DATA_API$1, function () {
1163 var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE));
1165 for (var i = 0, len = carousels.length; i < len; i++) {
1166 var $carousel = $__default['default'](carousels[i]);
1168 Carousel._jQueryInterface.call($carousel, $carousel.data());
1172 * ------------------------------------------------------------------------
1174 * ------------------------------------------------------------------------
1177 $__default['default'].fn[NAME$2] = Carousel._jQueryInterface;
1178 $__default['default'].fn[NAME$2].Constructor = Carousel;
1180 $__default['default'].fn[NAME$2].noConflict = function () {
1181 $__default['default'].fn[NAME$2] = JQUERY_NO_CONFLICT$2;
1182 return Carousel._jQueryInterface;
1186 * ------------------------------------------------------------------------
1188 * ------------------------------------------------------------------------
1191 var NAME$3 = 'collapse';
1192 var VERSION$3 = '4.6.0';
1193 var DATA_KEY$3 = 'bs.collapse';
1194 var EVENT_KEY$3 = "." + DATA_KEY$3;
1195 var DATA_API_KEY$3 = '.data-api';
1196 var JQUERY_NO_CONFLICT$3 = $__default['default'].fn[NAME$3];
1201 var DefaultType$1 = {
1203 parent: '(string|element)'
1205 var EVENT_SHOW = "show" + EVENT_KEY$3;
1206 var EVENT_SHOWN = "shown" + EVENT_KEY$3;
1207 var EVENT_HIDE = "hide" + EVENT_KEY$3;
1208 var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
1209 var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
1210 var CLASS_NAME_SHOW$1 = 'show';
1211 var CLASS_NAME_COLLAPSE = 'collapse';
1212 var CLASS_NAME_COLLAPSING = 'collapsing';
1213 var CLASS_NAME_COLLAPSED = 'collapsed';
1214 var DIMENSION_WIDTH = 'width';
1215 var DIMENSION_HEIGHT = 'height';
1216 var SELECTOR_ACTIVES = '.show, .collapsing';
1217 var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="collapse"]';
1219 * ------------------------------------------------------------------------
1221 * ------------------------------------------------------------------------
1224 var Collapse = /*#__PURE__*/function () {
1225 function Collapse(element, config) {
1226 this._isTransitioning = false;
1227 this._element = element;
1228 this._config = this._getConfig(config);
1229 this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
1230 var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$1));
1232 for (var i = 0, len = toggleList.length; i < len; i++) {
1233 var elem = toggleList[i];
1234 var selector = Util.getSelectorFromElement(elem);
1235 var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
1236 return foundElem === element;
1239 if (selector !== null && filterElement.length > 0) {
1240 this._selector = selector;
1242 this._triggerArray.push(elem);
1246 this._parent = this._config.parent ? this._getParent() : null;
1248 if (!this._config.parent) {
1249 this._addAriaAndCollapsedClass(this._element, this._triggerArray);
1252 if (this._config.toggle) {
1258 var _proto = Collapse.prototype;
1261 _proto.toggle = function toggle() {
1262 if ($__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
1269 _proto.show = function show() {
1272 if (this._isTransitioning || $__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
1280 actives = [].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES)).filter(function (elem) {
1281 if (typeof _this._config.parent === 'string') {
1282 return elem.getAttribute('data-parent') === _this._config.parent;
1285 return elem.classList.contains(CLASS_NAME_COLLAPSE);
1288 if (actives.length === 0) {
1294 activesData = $__default['default'](actives).not(this._selector).data(DATA_KEY$3);
1296 if (activesData && activesData._isTransitioning) {
1301 var startEvent = $__default['default'].Event(EVENT_SHOW);
1302 $__default['default'](this._element).trigger(startEvent);
1304 if (startEvent.isDefaultPrevented()) {
1309 Collapse._jQueryInterface.call($__default['default'](actives).not(this._selector), 'hide');
1312 $__default['default'](actives).data(DATA_KEY$3, null);
1316 var dimension = this._getDimension();
1318 $__default['default'](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
1319 this._element.style[dimension] = 0;
1321 if (this._triggerArray.length) {
1322 $__default['default'](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
1325 this.setTransitioning(true);
1327 var complete = function complete() {
1328 $__default['default'](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
1329 _this._element.style[dimension] = '';
1331 _this.setTransitioning(false);
1333 $__default['default'](_this._element).trigger(EVENT_SHOWN);
1336 var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
1337 var scrollSize = "scroll" + capitalizedDimension;
1338 var transitionDuration = Util.getTransitionDurationFromElement(this._element);
1339 $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
1340 this._element.style[dimension] = this._element[scrollSize] + "px";
1343 _proto.hide = function hide() {
1346 if (this._isTransitioning || !$__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
1350 var startEvent = $__default['default'].Event(EVENT_HIDE);
1351 $__default['default'](this._element).trigger(startEvent);
1353 if (startEvent.isDefaultPrevented()) {
1357 var dimension = this._getDimension();
1359 this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
1360 Util.reflow(this._element);
1361 $__default['default'](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
1362 var triggerArrayLength = this._triggerArray.length;
1364 if (triggerArrayLength > 0) {
1365 for (var i = 0; i < triggerArrayLength; i++) {
1366 var trigger = this._triggerArray[i];
1367 var selector = Util.getSelectorFromElement(trigger);
1369 if (selector !== null) {
1370 var $elem = $__default['default']([].slice.call(document.querySelectorAll(selector)));
1372 if (!$elem.hasClass(CLASS_NAME_SHOW$1)) {
1373 $__default['default'](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
1379 this.setTransitioning(true);
1381 var complete = function complete() {
1382 _this2.setTransitioning(false);
1384 $__default['default'](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
1387 this._element.style[dimension] = '';
1388 var transitionDuration = Util.getTransitionDurationFromElement(this._element);
1389 $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
1392 _proto.setTransitioning = function setTransitioning(isTransitioning) {
1393 this._isTransitioning = isTransitioning;
1396 _proto.dispose = function dispose() {
1397 $__default['default'].removeData(this._element, DATA_KEY$3);
1398 this._config = null;
1399 this._parent = null;
1400 this._element = null;
1401 this._triggerArray = null;
1402 this._isTransitioning = null;
1406 _proto._getConfig = function _getConfig(config) {
1407 config = _extends({}, Default$1, config);
1408 config.toggle = Boolean(config.toggle); // Coerce string values
1410 Util.typeCheckConfig(NAME$3, config, DefaultType$1);
1414 _proto._getDimension = function _getDimension() {
1415 var hasWidth = $__default['default'](this._element).hasClass(DIMENSION_WIDTH);
1416 return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT;
1419 _proto._getParent = function _getParent() {
1424 if (Util.isElement(this._config.parent)) {
1425 parent = this._config.parent; // It's a jQuery object
1427 if (typeof this._config.parent.jquery !== 'undefined') {
1428 parent = this._config.parent[0];
1431 parent = document.querySelector(this._config.parent);
1434 var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
1435 var children = [].slice.call(parent.querySelectorAll(selector));
1436 $__default['default'](children).each(function (i, element) {
1437 _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
1442 _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
1443 var isOpen = $__default['default'](element).hasClass(CLASS_NAME_SHOW$1);
1445 if (triggerArray.length) {
1446 $__default['default'](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
1451 Collapse._getTargetFromElement = function _getTargetFromElement(element) {
1452 var selector = Util.getSelectorFromElement(element);
1453 return selector ? document.querySelector(selector) : null;
1456 Collapse._jQueryInterface = function _jQueryInterface(config) {
1457 return this.each(function () {
1458 var $element = $__default['default'](this);
1459 var data = $element.data(DATA_KEY$3);
1461 var _config = _extends({}, Default$1, $element.data(), typeof config === 'object' && config ? config : {});
1463 if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
1464 _config.toggle = false;
1468 data = new Collapse(this, _config);
1469 $element.data(DATA_KEY$3, data);
1472 if (typeof config === 'string') {
1473 if (typeof data[config] === 'undefined') {
1474 throw new TypeError("No method named \"" + config + "\"");
1482 _createClass(Collapse, null, [{
1484 get: function get() {
1489 get: function get() {
1497 * ------------------------------------------------------------------------
1498 * Data Api implementation
1499 * ------------------------------------------------------------------------
1503 $__default['default'](document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
1504 // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
1505 if (event.currentTarget.tagName === 'A') {
1506 event.preventDefault();
1509 var $trigger = $__default['default'](this);
1510 var selector = Util.getSelectorFromElement(this);
1511 var selectors = [].slice.call(document.querySelectorAll(selector));
1512 $__default['default'](selectors).each(function () {
1513 var $target = $__default['default'](this);
1514 var data = $target.data(DATA_KEY$3);
1515 var config = data ? 'toggle' : $trigger.data();
1517 Collapse._jQueryInterface.call($target, config);
1521 * ------------------------------------------------------------------------
1523 * ------------------------------------------------------------------------
1526 $__default['default'].fn[NAME$3] = Collapse._jQueryInterface;
1527 $__default['default'].fn[NAME$3].Constructor = Collapse;
1529 $__default['default'].fn[NAME$3].noConflict = function () {
1530 $__default['default'].fn[NAME$3] = JQUERY_NO_CONFLICT$3;
1531 return Collapse._jQueryInterface;
1535 * ------------------------------------------------------------------------
1537 * ------------------------------------------------------------------------
1540 var NAME$4 = 'dropdown';
1541 var VERSION$4 = '4.6.0';
1542 var DATA_KEY$4 = 'bs.dropdown';
1543 var EVENT_KEY$4 = "." + DATA_KEY$4;
1544 var DATA_API_KEY$4 = '.data-api';
1545 var JQUERY_NO_CONFLICT$4 = $__default['default'].fn[NAME$4];
1546 var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
1548 var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
1550 var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
1552 var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
1554 var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
1556 var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
1558 var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
1559 var EVENT_HIDE$1 = "hide" + EVENT_KEY$4;
1560 var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$4;
1561 var EVENT_SHOW$1 = "show" + EVENT_KEY$4;
1562 var EVENT_SHOWN$1 = "shown" + EVENT_KEY$4;
1563 var EVENT_CLICK = "click" + EVENT_KEY$4;
1564 var EVENT_CLICK_DATA_API$4 = "click" + EVENT_KEY$4 + DATA_API_KEY$4;
1565 var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
1566 var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
1567 var CLASS_NAME_DISABLED = 'disabled';
1568 var CLASS_NAME_SHOW$2 = 'show';
1569 var CLASS_NAME_DROPUP = 'dropup';
1570 var CLASS_NAME_DROPRIGHT = 'dropright';
1571 var CLASS_NAME_DROPLEFT = 'dropleft';
1572 var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
1573 var CLASS_NAME_POSITION_STATIC = 'position-static';
1574 var SELECTOR_DATA_TOGGLE$2 = '[data-toggle="dropdown"]';
1575 var SELECTOR_FORM_CHILD = '.dropdown form';
1576 var SELECTOR_MENU = '.dropdown-menu';
1577 var SELECTOR_NAVBAR_NAV = '.navbar-nav';
1578 var SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';
1579 var PLACEMENT_TOP = 'top-start';
1580 var PLACEMENT_TOPEND = 'top-end';
1581 var PLACEMENT_BOTTOM = 'bottom-start';
1582 var PLACEMENT_BOTTOMEND = 'bottom-end';
1583 var PLACEMENT_RIGHT = 'right-start';
1584 var PLACEMENT_LEFT = 'left-start';
1588 boundary: 'scrollParent',
1589 reference: 'toggle',
1593 var DefaultType$2 = {
1594 offset: '(number|string|function)',
1596 boundary: '(string|element)',
1597 reference: '(string|element)',
1599 popperConfig: '(null|object)'
1602 * ------------------------------------------------------------------------
1604 * ------------------------------------------------------------------------
1607 var Dropdown = /*#__PURE__*/function () {
1608 function Dropdown(element, config) {
1609 this._element = element;
1610 this._popper = null;
1611 this._config = this._getConfig(config);
1612 this._menu = this._getMenuElement();
1613 this._inNavbar = this._detectNavbar();
1615 this._addEventListeners();
1619 var _proto = Dropdown.prototype;
1622 _proto.toggle = function toggle() {
1623 if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED)) {
1627 var isActive = $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2);
1629 Dropdown._clearMenus();
1638 _proto.show = function show(usePopper) {
1639 if (usePopper === void 0) {
1643 if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) {
1647 var relatedTarget = {
1648 relatedTarget: this._element
1650 var showEvent = $__default['default'].Event(EVENT_SHOW$1, relatedTarget);
1652 var parent = Dropdown._getParentFromElement(this._element);
1654 $__default['default'](parent).trigger(showEvent);
1656 if (showEvent.isDefaultPrevented()) {
1658 } // Totally disable Popper for Dropdowns in Navbar
1661 if (!this._inNavbar && usePopper) {
1663 * Check for Popper dependency
1664 * Popper - https://popper.js.org
1666 if (typeof Popper__default['default'] === 'undefined') {
1667 throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
1670 var referenceElement = this._element;
1672 if (this._config.reference === 'parent') {
1673 referenceElement = parent;
1674 } else if (Util.isElement(this._config.reference)) {
1675 referenceElement = this._config.reference; // Check if it's jQuery element
1677 if (typeof this._config.reference.jquery !== 'undefined') {
1678 referenceElement = this._config.reference[0];
1680 } // If boundary is not `scrollParent`, then set position to `static`
1681 // to allow the menu to "escape" the scroll parent's boundaries
1682 // https://github.com/twbs/bootstrap/issues/24251
1685 if (this._config.boundary !== 'scrollParent') {
1686 $__default['default'](parent).addClass(CLASS_NAME_POSITION_STATIC);
1689 this._popper = new Popper__default['default'](referenceElement, this._menu, this._getPopperConfig());
1690 } // If this is a touch-enabled device we add extra
1691 // empty mouseover listeners to the body's immediate children;
1692 // only needed because of broken event delegation on iOS
1693 // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
1696 if ('ontouchstart' in document.documentElement && $__default['default'](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
1697 $__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
1700 this._element.focus();
1702 this._element.setAttribute('aria-expanded', true);
1704 $__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2);
1705 $__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_SHOWN$1, relatedTarget));
1708 _proto.hide = function hide() {
1709 if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || !$__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) {
1713 var relatedTarget = {
1714 relatedTarget: this._element
1716 var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget);
1718 var parent = Dropdown._getParentFromElement(this._element);
1720 $__default['default'](parent).trigger(hideEvent);
1722 if (hideEvent.isDefaultPrevented()) {
1727 this._popper.destroy();
1730 $__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2);
1731 $__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget));
1734 _proto.dispose = function dispose() {
1735 $__default['default'].removeData(this._element, DATA_KEY$4);
1736 $__default['default'](this._element).off(EVENT_KEY$4);
1737 this._element = null;
1740 if (this._popper !== null) {
1741 this._popper.destroy();
1743 this._popper = null;
1747 _proto.update = function update() {
1748 this._inNavbar = this._detectNavbar();
1750 if (this._popper !== null) {
1751 this._popper.scheduleUpdate();
1756 _proto._addEventListeners = function _addEventListeners() {
1759 $__default['default'](this._element).on(EVENT_CLICK, function (event) {
1760 event.preventDefault();
1761 event.stopPropagation();
1767 _proto._getConfig = function _getConfig(config) {
1768 config = _extends({}, this.constructor.Default, $__default['default'](this._element).data(), config);
1769 Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
1773 _proto._getMenuElement = function _getMenuElement() {
1775 var parent = Dropdown._getParentFromElement(this._element);
1778 this._menu = parent.querySelector(SELECTOR_MENU);
1785 _proto._getPlacement = function _getPlacement() {
1786 var $parentDropdown = $__default['default'](this._element.parentNode);
1787 var placement = PLACEMENT_BOTTOM; // Handle dropup
1789 if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
1790 placement = $__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
1791 } else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
1792 placement = PLACEMENT_RIGHT;
1793 } else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
1794 placement = PLACEMENT_LEFT;
1795 } else if ($__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
1796 placement = PLACEMENT_BOTTOMEND;
1802 _proto._detectNavbar = function _detectNavbar() {
1803 return $__default['default'](this._element).closest('.navbar').length > 0;
1806 _proto._getOffset = function _getOffset() {
1811 if (typeof this._config.offset === 'function') {
1812 offset.fn = function (data) {
1813 data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
1817 offset.offset = this._config.offset;
1823 _proto._getPopperConfig = function _getPopperConfig() {
1824 var popperConfig = {
1825 placement: this._getPlacement(),
1827 offset: this._getOffset(),
1829 enabled: this._config.flip
1832 boundariesElement: this._config.boundary
1835 }; // Disable Popper if we have a static display
1837 if (this._config.display === 'static') {
1838 popperConfig.modifiers.applyStyle = {
1843 return _extends({}, popperConfig, this._config.popperConfig);
1847 Dropdown._jQueryInterface = function _jQueryInterface(config) {
1848 return this.each(function () {
1849 var data = $__default['default'](this).data(DATA_KEY$4);
1851 var _config = typeof config === 'object' ? config : null;
1854 data = new Dropdown(this, _config);
1855 $__default['default'](this).data(DATA_KEY$4, data);
1858 if (typeof config === 'string') {
1859 if (typeof data[config] === 'undefined') {
1860 throw new TypeError("No method named \"" + config + "\"");
1868 Dropdown._clearMenus = function _clearMenus(event) {
1869 if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
1873 var toggles = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$2));
1875 for (var i = 0, len = toggles.length; i < len; i++) {
1876 var parent = Dropdown._getParentFromElement(toggles[i]);
1878 var context = $__default['default'](toggles[i]).data(DATA_KEY$4);
1879 var relatedTarget = {
1880 relatedTarget: toggles[i]
1883 if (event && event.type === 'click') {
1884 relatedTarget.clickEvent = event;
1891 var dropdownMenu = context._menu;
1893 if (!$__default['default'](parent).hasClass(CLASS_NAME_SHOW$2)) {
1897 if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default['default'].contains(parent, event.target)) {
1901 var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget);
1902 $__default['default'](parent).trigger(hideEvent);
1904 if (hideEvent.isDefaultPrevented()) {
1906 } // If this is a touch-enabled device we remove the extra
1907 // empty mouseover listeners we added for iOS support
1910 if ('ontouchstart' in document.documentElement) {
1911 $__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
1914 toggles[i].setAttribute('aria-expanded', 'false');
1916 if (context._popper) {
1917 context._popper.destroy();
1920 $__default['default'](dropdownMenu).removeClass(CLASS_NAME_SHOW$2);
1921 $__default['default'](parent).removeClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget));
1925 Dropdown._getParentFromElement = function _getParentFromElement(element) {
1927 var selector = Util.getSelectorFromElement(element);
1930 parent = document.querySelector(selector);
1933 return parent || element.parentNode;
1934 } // eslint-disable-next-line complexity
1937 Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
1938 // If not input/textarea:
1939 // - And not a key in REGEXP_KEYDOWN => not a dropdown command
1940 // If input/textarea:
1941 // - If space key => not a dropdown command
1942 // - If key is other than escape
1943 // - If key is not up or down => not a dropdown command
1944 // - If trigger inside the menu => not a dropdown command
1945 if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default['default'](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
1949 if (this.disabled || $__default['default'](this).hasClass(CLASS_NAME_DISABLED)) {
1953 var parent = Dropdown._getParentFromElement(this);
1955 var isActive = $__default['default'](parent).hasClass(CLASS_NAME_SHOW$2);
1957 if (!isActive && event.which === ESCAPE_KEYCODE) {
1961 event.preventDefault();
1962 event.stopPropagation();
1964 if (!isActive || event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE) {
1965 if (event.which === ESCAPE_KEYCODE) {
1966 $__default['default'](parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
1969 $__default['default'](this).trigger('click');
1973 var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) {
1974 return $__default['default'](item).is(':visible');
1977 if (items.length === 0) {
1981 var index = items.indexOf(event.target);
1983 if (event.which === ARROW_UP_KEYCODE && index > 0) {
1988 if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
1997 items[index].focus();
2000 _createClass(Dropdown, null, [{
2002 get: function get() {
2007 get: function get() {
2012 get: function get() {
2013 return DefaultType$2;
2020 * ------------------------------------------------------------------------
2021 * Data Api implementation
2022 * ------------------------------------------------------------------------
2026 $__default['default'](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) {
2027 event.preventDefault();
2028 event.stopPropagation();
2030 Dropdown._jQueryInterface.call($__default['default'](this), 'toggle');
2031 }).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) {
2032 e.stopPropagation();
2035 * ------------------------------------------------------------------------
2037 * ------------------------------------------------------------------------
2040 $__default['default'].fn[NAME$4] = Dropdown._jQueryInterface;
2041 $__default['default'].fn[NAME$4].Constructor = Dropdown;
2043 $__default['default'].fn[NAME$4].noConflict = function () {
2044 $__default['default'].fn[NAME$4] = JQUERY_NO_CONFLICT$4;
2045 return Dropdown._jQueryInterface;
2049 * ------------------------------------------------------------------------
2051 * ------------------------------------------------------------------------
2054 var NAME$5 = 'modal';
2055 var VERSION$5 = '4.6.0';
2056 var DATA_KEY$5 = 'bs.modal';
2057 var EVENT_KEY$5 = "." + DATA_KEY$5;
2058 var DATA_API_KEY$5 = '.data-api';
2059 var JQUERY_NO_CONFLICT$5 = $__default['default'].fn[NAME$5];
2060 var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key
2068 var DefaultType$3 = {
2069 backdrop: '(boolean|string)',
2070 keyboard: 'boolean',
2074 var EVENT_HIDE$2 = "hide" + EVENT_KEY$5;
2075 var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY$5;
2076 var EVENT_HIDDEN$2 = "hidden" + EVENT_KEY$5;
2077 var EVENT_SHOW$2 = "show" + EVENT_KEY$5;
2078 var EVENT_SHOWN$2 = "shown" + EVENT_KEY$5;
2079 var EVENT_FOCUSIN = "focusin" + EVENT_KEY$5;
2080 var EVENT_RESIZE = "resize" + EVENT_KEY$5;
2081 var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY$5;
2082 var EVENT_KEYDOWN_DISMISS = "keydown.dismiss" + EVENT_KEY$5;
2083 var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY$5;
2084 var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY$5;
2085 var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$5 + DATA_API_KEY$5;
2086 var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
2087 var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
2088 var CLASS_NAME_BACKDROP = 'modal-backdrop';
2089 var CLASS_NAME_OPEN = 'modal-open';
2090 var CLASS_NAME_FADE$1 = 'fade';
2091 var CLASS_NAME_SHOW$3 = 'show';
2092 var CLASS_NAME_STATIC = 'modal-static';
2093 var SELECTOR_DIALOG = '.modal-dialog';
2094 var SELECTOR_MODAL_BODY = '.modal-body';
2095 var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="modal"]';
2096 var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
2097 var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
2098 var SELECTOR_STICKY_CONTENT = '.sticky-top';
2100 * ------------------------------------------------------------------------
2102 * ------------------------------------------------------------------------
2105 var Modal = /*#__PURE__*/function () {
2106 function Modal(element, config) {
2107 this._config = this._getConfig(config);
2108 this._element = element;
2109 this._dialog = element.querySelector(SELECTOR_DIALOG);
2110 this._backdrop = null;
2111 this._isShown = false;
2112 this._isBodyOverflowing = false;
2113 this._ignoreBackdropClick = false;
2114 this._isTransitioning = false;
2115 this._scrollbarWidth = 0;
2119 var _proto = Modal.prototype;
2122 _proto.toggle = function toggle(relatedTarget) {
2123 return this._isShown ? this.hide() : this.show(relatedTarget);
2126 _proto.show = function show(relatedTarget) {
2129 if (this._isShown || this._isTransitioning) {
2133 if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) {
2134 this._isTransitioning = true;
2137 var showEvent = $__default['default'].Event(EVENT_SHOW$2, {
2138 relatedTarget: relatedTarget
2140 $__default['default'](this._element).trigger(showEvent);
2142 if (this._isShown || showEvent.isDefaultPrevented()) {
2146 this._isShown = true;
2148 this._checkScrollbar();
2150 this._setScrollbar();
2152 this._adjustDialog();
2154 this._setEscapeEvent();
2156 this._setResizeEvent();
2158 $__default['default'](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
2159 return _this.hide(event);
2161 $__default['default'](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
2162 $__default['default'](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
2163 if ($__default['default'](event.target).is(_this._element)) {
2164 _this._ignoreBackdropClick = true;
2169 this._showBackdrop(function () {
2170 return _this._showElement(relatedTarget);
2174 _proto.hide = function hide(event) {
2178 event.preventDefault();
2181 if (!this._isShown || this._isTransitioning) {
2185 var hideEvent = $__default['default'].Event(EVENT_HIDE$2);
2186 $__default['default'](this._element).trigger(hideEvent);
2188 if (!this._isShown || hideEvent.isDefaultPrevented()) {
2192 this._isShown = false;
2193 var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1);
2196 this._isTransitioning = true;
2199 this._setEscapeEvent();
2201 this._setResizeEvent();
2203 $__default['default'](document).off(EVENT_FOCUSIN);
2204 $__default['default'](this._element).removeClass(CLASS_NAME_SHOW$3);
2205 $__default['default'](this._element).off(EVENT_CLICK_DISMISS);
2206 $__default['default'](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
2209 var transitionDuration = Util.getTransitionDurationFromElement(this._element);
2210 $__default['default'](this._element).one(Util.TRANSITION_END, function (event) {
2211 return _this2._hideModal(event);
2212 }).emulateTransitionEnd(transitionDuration);
2218 _proto.dispose = function dispose() {
2219 [window, this._element, this._dialog].forEach(function (htmlElement) {
2220 return $__default['default'](htmlElement).off(EVENT_KEY$5);
2223 * `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
2224 * Do not move `document` in `htmlElements` array
2225 * It will remove `EVENT_CLICK_DATA_API` event that should remain
2228 $__default['default'](document).off(EVENT_FOCUSIN);
2229 $__default['default'].removeData(this._element, DATA_KEY$5);
2230 this._config = null;
2231 this._element = null;
2232 this._dialog = null;
2233 this._backdrop = null;
2234 this._isShown = null;
2235 this._isBodyOverflowing = null;
2236 this._ignoreBackdropClick = null;
2237 this._isTransitioning = null;
2238 this._scrollbarWidth = null;
2241 _proto.handleUpdate = function handleUpdate() {
2242 this._adjustDialog();
2246 _proto._getConfig = function _getConfig(config) {
2247 config = _extends({}, Default$3, config);
2248 Util.typeCheckConfig(NAME$5, config, DefaultType$3);
2252 _proto._triggerBackdropTransition = function _triggerBackdropTransition() {
2255 var hideEventPrevented = $__default['default'].Event(EVENT_HIDE_PREVENTED);
2256 $__default['default'](this._element).trigger(hideEventPrevented);
2258 if (hideEventPrevented.isDefaultPrevented()) {
2262 var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2264 if (!isModalOverflowing) {
2265 this._element.style.overflowY = 'hidden';
2268 this._element.classList.add(CLASS_NAME_STATIC);
2270 var modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog);
2271 $__default['default'](this._element).off(Util.TRANSITION_END);
2272 $__default['default'](this._element).one(Util.TRANSITION_END, function () {
2273 _this3._element.classList.remove(CLASS_NAME_STATIC);
2275 if (!isModalOverflowing) {
2276 $__default['default'](_this3._element).one(Util.TRANSITION_END, function () {
2277 _this3._element.style.overflowY = '';
2278 }).emulateTransitionEnd(_this3._element, modalTransitionDuration);
2280 }).emulateTransitionEnd(modalTransitionDuration);
2282 this._element.focus();
2285 _proto._showElement = function _showElement(relatedTarget) {
2288 var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1);
2289 var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null;
2291 if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
2292 // Don't move modal's DOM position
2293 document.body.appendChild(this._element);
2296 this._element.style.display = 'block';
2298 this._element.removeAttribute('aria-hidden');
2300 this._element.setAttribute('aria-modal', true);
2302 this._element.setAttribute('role', 'dialog');
2304 if ($__default['default'](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
2305 modalBody.scrollTop = 0;
2307 this._element.scrollTop = 0;
2311 Util.reflow(this._element);
2314 $__default['default'](this._element).addClass(CLASS_NAME_SHOW$3);
2316 if (this._config.focus) {
2317 this._enforceFocus();
2320 var shownEvent = $__default['default'].Event(EVENT_SHOWN$2, {
2321 relatedTarget: relatedTarget
2324 var transitionComplete = function transitionComplete() {
2325 if (_this4._config.focus) {
2326 _this4._element.focus();
2329 _this4._isTransitioning = false;
2330 $__default['default'](_this4._element).trigger(shownEvent);
2334 var transitionDuration = Util.getTransitionDurationFromElement(this._dialog);
2335 $__default['default'](this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
2337 transitionComplete();
2341 _proto._enforceFocus = function _enforceFocus() {
2344 $__default['default'](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
2345 .on(EVENT_FOCUSIN, function (event) {
2346 if (document !== event.target && _this5._element !== event.target && $__default['default'](_this5._element).has(event.target).length === 0) {
2347 _this5._element.focus();
2352 _proto._setEscapeEvent = function _setEscapeEvent() {
2355 if (this._isShown) {
2356 $__default['default'](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
2357 if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
2358 event.preventDefault();
2361 } else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
2362 _this6._triggerBackdropTransition();
2365 } else if (!this._isShown) {
2366 $__default['default'](this._element).off(EVENT_KEYDOWN_DISMISS);
2370 _proto._setResizeEvent = function _setResizeEvent() {
2373 if (this._isShown) {
2374 $__default['default'](window).on(EVENT_RESIZE, function (event) {
2375 return _this7.handleUpdate(event);
2378 $__default['default'](window).off(EVENT_RESIZE);
2382 _proto._hideModal = function _hideModal() {
2385 this._element.style.display = 'none';
2387 this._element.setAttribute('aria-hidden', true);
2389 this._element.removeAttribute('aria-modal');
2391 this._element.removeAttribute('role');
2393 this._isTransitioning = false;
2395 this._showBackdrop(function () {
2396 $__default['default'](document.body).removeClass(CLASS_NAME_OPEN);
2398 _this8._resetAdjustments();
2400 _this8._resetScrollbar();
2402 $__default['default'](_this8._element).trigger(EVENT_HIDDEN$2);
2406 _proto._removeBackdrop = function _removeBackdrop() {
2407 if (this._backdrop) {
2408 $__default['default'](this._backdrop).remove();
2409 this._backdrop = null;
2413 _proto._showBackdrop = function _showBackdrop(callback) {
2416 var animate = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
2418 if (this._isShown && this._config.backdrop) {
2419 this._backdrop = document.createElement('div');
2420 this._backdrop.className = CLASS_NAME_BACKDROP;
2423 this._backdrop.classList.add(animate);
2426 $__default['default'](this._backdrop).appendTo(document.body);
2427 $__default['default'](this._element).on(EVENT_CLICK_DISMISS, function (event) {
2428 if (_this9._ignoreBackdropClick) {
2429 _this9._ignoreBackdropClick = false;
2433 if (event.target !== event.currentTarget) {
2437 if (_this9._config.backdrop === 'static') {
2438 _this9._triggerBackdropTransition();
2445 Util.reflow(this._backdrop);
2448 $__default['default'](this._backdrop).addClass(CLASS_NAME_SHOW$3);
2459 var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
2460 $__default['default'](this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
2461 } else if (!this._isShown && this._backdrop) {
2462 $__default['default'](this._backdrop).removeClass(CLASS_NAME_SHOW$3);
2464 var callbackRemove = function callbackRemove() {
2465 _this9._removeBackdrop();
2472 if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) {
2473 var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
2475 $__default['default'](this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
2479 } else if (callback) {
2482 } // ----------------------------------------------------------------------
2483 // the following methods are used to handle overflowing modals
2484 // todo (fat): these should probably be refactored out of modal.js
2485 // ----------------------------------------------------------------------
2488 _proto._adjustDialog = function _adjustDialog() {
2489 var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2491 if (!this._isBodyOverflowing && isModalOverflowing) {
2492 this._element.style.paddingLeft = this._scrollbarWidth + "px";
2495 if (this._isBodyOverflowing && !isModalOverflowing) {
2496 this._element.style.paddingRight = this._scrollbarWidth + "px";
2500 _proto._resetAdjustments = function _resetAdjustments() {
2501 this._element.style.paddingLeft = '';
2502 this._element.style.paddingRight = '';
2505 _proto._checkScrollbar = function _checkScrollbar() {
2506 var rect = document.body.getBoundingClientRect();
2507 this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth;
2508 this._scrollbarWidth = this._getScrollbarWidth();
2511 _proto._setScrollbar = function _setScrollbar() {
2514 if (this._isBodyOverflowing) {
2515 // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
2516 // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
2517 var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
2518 var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding
2520 $__default['default'](fixedContent).each(function (index, element) {
2521 var actualPadding = element.style.paddingRight;
2522 var calculatedPadding = $__default['default'](element).css('padding-right');
2523 $__default['default'](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
2524 }); // Adjust sticky content margin
2526 $__default['default'](stickyContent).each(function (index, element) {
2527 var actualMargin = element.style.marginRight;
2528 var calculatedMargin = $__default['default'](element).css('margin-right');
2529 $__default['default'](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
2530 }); // Adjust body padding
2532 var actualPadding = document.body.style.paddingRight;
2533 var calculatedPadding = $__default['default'](document.body).css('padding-right');
2534 $__default['default'](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
2537 $__default['default'](document.body).addClass(CLASS_NAME_OPEN);
2540 _proto._resetScrollbar = function _resetScrollbar() {
2541 // Restore fixed content padding
2542 var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
2543 $__default['default'](fixedContent).each(function (index, element) {
2544 var padding = $__default['default'](element).data('padding-right');
2545 $__default['default'](element).removeData('padding-right');
2546 element.style.paddingRight = padding ? padding : '';
2547 }); // Restore sticky content
2549 var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT));
2550 $__default['default'](elements).each(function (index, element) {
2551 var margin = $__default['default'](element).data('margin-right');
2553 if (typeof margin !== 'undefined') {
2554 $__default['default'](element).css('margin-right', margin).removeData('margin-right');
2556 }); // Restore body padding
2558 var padding = $__default['default'](document.body).data('padding-right');
2559 $__default['default'](document.body).removeData('padding-right');
2560 document.body.style.paddingRight = padding ? padding : '';
2563 _proto._getScrollbarWidth = function _getScrollbarWidth() {
2565 var scrollDiv = document.createElement('div');
2566 scrollDiv.className = CLASS_NAME_SCROLLBAR_MEASURER;
2567 document.body.appendChild(scrollDiv);
2568 var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
2569 document.body.removeChild(scrollDiv);
2570 return scrollbarWidth;
2574 Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
2575 return this.each(function () {
2576 var data = $__default['default'](this).data(DATA_KEY$5);
2578 var _config = _extends({}, Default$3, $__default['default'](this).data(), typeof config === 'object' && config ? config : {});
2581 data = new Modal(this, _config);
2582 $__default['default'](this).data(DATA_KEY$5, data);
2585 if (typeof config === 'string') {
2586 if (typeof data[config] === 'undefined') {
2587 throw new TypeError("No method named \"" + config + "\"");
2590 data[config](relatedTarget);
2591 } else if (_config.show) {
2592 data.show(relatedTarget);
2597 _createClass(Modal, null, [{
2599 get: function get() {
2604 get: function get() {
2612 * ------------------------------------------------------------------------
2613 * Data Api implementation
2614 * ------------------------------------------------------------------------
2618 $__default['default'](document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) {
2622 var selector = Util.getSelectorFromElement(this);
2625 target = document.querySelector(selector);
2628 var config = $__default['default'](target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
2630 if (this.tagName === 'A' || this.tagName === 'AREA') {
2631 event.preventDefault();
2634 var $target = $__default['default'](target).one(EVENT_SHOW$2, function (showEvent) {
2635 if (showEvent.isDefaultPrevented()) {
2636 // Only register focus restorer if modal will actually get shown
2640 $target.one(EVENT_HIDDEN$2, function () {
2641 if ($__default['default'](_this11).is(':visible')) {
2647 Modal._jQueryInterface.call($__default['default'](target), config, this);
2650 * ------------------------------------------------------------------------
2652 * ------------------------------------------------------------------------
2655 $__default['default'].fn[NAME$5] = Modal._jQueryInterface;
2656 $__default['default'].fn[NAME$5].Constructor = Modal;
2658 $__default['default'].fn[NAME$5].noConflict = function () {
2659 $__default['default'].fn[NAME$5] = JQUERY_NO_CONFLICT$5;
2660 return Modal._jQueryInterface;
2664 * --------------------------------------------------------------------------
2665 * Bootstrap (v4.6.0): tools/sanitizer.js
2666 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2667 * --------------------------------------------------------------------------
2669 var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href'];
2670 var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
2671 var DefaultWhitelist = {
2672 // Global attributes allowed on any supplied element below.
2673 '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
2674 a: ['target', 'href', 'title', 'rel'],
2690 img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
2705 * A pattern that recognizes a commonly useful subset of URLs that are safe.
2707 * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
2710 var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi;
2712 * A pattern that matches safe data URLs. Only matches image, video and audio types.
2714 * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
2717 var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
2719 function allowedAttribute(attr, allowedAttributeList) {
2720 var attrName = attr.nodeName.toLowerCase();
2722 if (allowedAttributeList.indexOf(attrName) !== -1) {
2723 if (uriAttrs.indexOf(attrName) !== -1) {
2724 return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
2730 var regExp = allowedAttributeList.filter(function (attrRegex) {
2731 return attrRegex instanceof RegExp;
2732 }); // Check if a regular expression validates the attribute.
2734 for (var i = 0, len = regExp.length; i < len; i++) {
2735 if (attrName.match(regExp[i])) {
2743 function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) {
2744 if (unsafeHtml.length === 0) {
2748 if (sanitizeFn && typeof sanitizeFn === 'function') {
2749 return sanitizeFn(unsafeHtml);
2752 var domParser = new window.DOMParser();
2753 var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');
2754 var whitelistKeys = Object.keys(whiteList);
2755 var elements = [].slice.call(createdDocument.body.querySelectorAll('*'));
2757 var _loop = function _loop(i, len) {
2758 var el = elements[i];
2759 var elName = el.nodeName.toLowerCase();
2761 if (whitelistKeys.indexOf(el.nodeName.toLowerCase()) === -1) {
2762 el.parentNode.removeChild(el);
2766 var attributeList = [].slice.call(el.attributes);
2767 var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
2768 attributeList.forEach(function (attr) {
2769 if (!allowedAttribute(attr, whitelistedAttributes)) {
2770 el.removeAttribute(attr.nodeName);
2775 for (var i = 0, len = elements.length; i < len; i++) {
2776 var _ret = _loop(i);
2778 if (_ret === "continue") continue;
2781 return createdDocument.body.innerHTML;
2785 * ------------------------------------------------------------------------
2787 * ------------------------------------------------------------------------
2790 var NAME$6 = 'tooltip';
2791 var VERSION$6 = '4.6.0';
2792 var DATA_KEY$6 = 'bs.tooltip';
2793 var EVENT_KEY$6 = "." + DATA_KEY$6;
2794 var JQUERY_NO_CONFLICT$6 = $__default['default'].fn[NAME$6];
2795 var CLASS_PREFIX = 'bs-tooltip';
2796 var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
2797 var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
2798 var DefaultType$4 = {
2799 animation: 'boolean',
2801 title: '(string|element|function)',
2803 delay: '(number|object)',
2805 selector: '(string|boolean)',
2806 placement: '(string|function)',
2807 offset: '(number|string|function)',
2808 container: '(string|element|boolean)',
2809 fallbackPlacement: '(string|array)',
2810 boundary: '(string|element)',
2811 customClass: '(string|function)',
2812 sanitize: 'boolean',
2813 sanitizeFn: '(null|function)',
2814 whiteList: 'object',
2815 popperConfig: '(null|object)'
2817 var AttachmentMap = {
2826 template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
2827 trigger: 'hover focus',
2835 fallbackPlacement: 'flip',
2836 boundary: 'scrollParent',
2840 whiteList: DefaultWhitelist,
2843 var HOVER_STATE_SHOW = 'show';
2844 var HOVER_STATE_OUT = 'out';
2846 HIDE: "hide" + EVENT_KEY$6,
2847 HIDDEN: "hidden" + EVENT_KEY$6,
2848 SHOW: "show" + EVENT_KEY$6,
2849 SHOWN: "shown" + EVENT_KEY$6,
2850 INSERTED: "inserted" + EVENT_KEY$6,
2851 CLICK: "click" + EVENT_KEY$6,
2852 FOCUSIN: "focusin" + EVENT_KEY$6,
2853 FOCUSOUT: "focusout" + EVENT_KEY$6,
2854 MOUSEENTER: "mouseenter" + EVENT_KEY$6,
2855 MOUSELEAVE: "mouseleave" + EVENT_KEY$6
2857 var CLASS_NAME_FADE$2 = 'fade';
2858 var CLASS_NAME_SHOW$4 = 'show';
2859 var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
2860 var SELECTOR_ARROW = '.arrow';
2861 var TRIGGER_HOVER = 'hover';
2862 var TRIGGER_FOCUS = 'focus';
2863 var TRIGGER_CLICK = 'click';
2864 var TRIGGER_MANUAL = 'manual';
2866 * ------------------------------------------------------------------------
2868 * ------------------------------------------------------------------------
2871 var Tooltip = /*#__PURE__*/function () {
2872 function Tooltip(element, config) {
2873 if (typeof Popper__default['default'] === 'undefined') {
2874 throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
2878 this._isEnabled = true;
2880 this._hoverState = '';
2881 this._activeTrigger = {};
2882 this._popper = null; // Protected
2884 this.element = element;
2885 this.config = this._getConfig(config);
2888 this._setListeners();
2892 var _proto = Tooltip.prototype;
2895 _proto.enable = function enable() {
2896 this._isEnabled = true;
2899 _proto.disable = function disable() {
2900 this._isEnabled = false;
2903 _proto.toggleEnabled = function toggleEnabled() {
2904 this._isEnabled = !this._isEnabled;
2907 _proto.toggle = function toggle(event) {
2908 if (!this._isEnabled) {
2913 var dataKey = this.constructor.DATA_KEY;
2914 var context = $__default['default'](event.currentTarget).data(dataKey);
2917 context = new this.constructor(event.currentTarget, this._getDelegateConfig());
2918 $__default['default'](event.currentTarget).data(dataKey, context);
2921 context._activeTrigger.click = !context._activeTrigger.click;
2923 if (context._isWithActiveTrigger()) {
2924 context._enter(null, context);
2926 context._leave(null, context);
2929 if ($__default['default'](this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)) {
2930 this._leave(null, this);
2935 this._enter(null, this);
2939 _proto.dispose = function dispose() {
2940 clearTimeout(this._timeout);
2941 $__default['default'].removeData(this.element, this.constructor.DATA_KEY);
2942 $__default['default'](this.element).off(this.constructor.EVENT_KEY);
2943 $__default['default'](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
2946 $__default['default'](this.tip).remove();
2949 this._isEnabled = null;
2950 this._timeout = null;
2951 this._hoverState = null;
2952 this._activeTrigger = null;
2955 this._popper.destroy();
2958 this._popper = null;
2959 this.element = null;
2964 _proto.show = function show() {
2967 if ($__default['default'](this.element).css('display') === 'none') {
2968 throw new Error('Please use show on visible elements');
2971 var showEvent = $__default['default'].Event(this.constructor.Event.SHOW);
2973 if (this.isWithContent() && this._isEnabled) {
2974 $__default['default'](this.element).trigger(showEvent);
2975 var shadowRoot = Util.findShadowRoot(this.element);
2976 var isInTheDom = $__default['default'].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
2978 if (showEvent.isDefaultPrevented() || !isInTheDom) {
2982 var tip = this.getTipElement();
2983 var tipId = Util.getUID(this.constructor.NAME);
2984 tip.setAttribute('id', tipId);
2985 this.element.setAttribute('aria-describedby', tipId);
2988 if (this.config.animation) {
2989 $__default['default'](tip).addClass(CLASS_NAME_FADE$2);
2992 var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
2994 var attachment = this._getAttachment(placement);
2996 this.addAttachmentClass(attachment);
2998 var container = this._getContainer();
3000 $__default['default'](tip).data(this.constructor.DATA_KEY, this);
3002 if (!$__default['default'].contains(this.element.ownerDocument.documentElement, this.tip)) {
3003 $__default['default'](tip).appendTo(container);
3006 $__default['default'](this.element).trigger(this.constructor.Event.INSERTED);
3007 this._popper = new Popper__default['default'](this.element, tip, this._getPopperConfig(attachment));
3008 $__default['default'](tip).addClass(CLASS_NAME_SHOW$4);
3009 $__default['default'](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra
3010 // empty mouseover listeners to the body's immediate children;
3011 // only needed because of broken event delegation on iOS
3012 // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
3014 if ('ontouchstart' in document.documentElement) {
3015 $__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
3018 var complete = function complete() {
3019 if (_this.config.animation) {
3020 _this._fixTransition();
3023 var prevHoverState = _this._hoverState;
3024 _this._hoverState = null;
3025 $__default['default'](_this.element).trigger(_this.constructor.Event.SHOWN);
3027 if (prevHoverState === HOVER_STATE_OUT) {
3028 _this._leave(null, _this);
3032 if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) {
3033 var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
3034 $__default['default'](this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
3041 _proto.hide = function hide(callback) {
3044 var tip = this.getTipElement();
3045 var hideEvent = $__default['default'].Event(this.constructor.Event.HIDE);
3047 var complete = function complete() {
3048 if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
3049 tip.parentNode.removeChild(tip);
3052 _this2._cleanTipClass();
3054 _this2.element.removeAttribute('aria-describedby');
3056 $__default['default'](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
3058 if (_this2._popper !== null) {
3059 _this2._popper.destroy();
3067 $__default['default'](this.element).trigger(hideEvent);
3069 if (hideEvent.isDefaultPrevented()) {
3073 $__default['default'](tip).removeClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
3074 // empty mouseover listeners we added for iOS support
3076 if ('ontouchstart' in document.documentElement) {
3077 $__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
3080 this._activeTrigger[TRIGGER_CLICK] = false;
3081 this._activeTrigger[TRIGGER_FOCUS] = false;
3082 this._activeTrigger[TRIGGER_HOVER] = false;
3084 if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) {
3085 var transitionDuration = Util.getTransitionDurationFromElement(tip);
3086 $__default['default'](tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
3091 this._hoverState = '';
3094 _proto.update = function update() {
3095 if (this._popper !== null) {
3096 this._popper.scheduleUpdate();
3101 _proto.isWithContent = function isWithContent() {
3102 return Boolean(this.getTitle());
3105 _proto.addAttachmentClass = function addAttachmentClass(attachment) {
3106 $__default['default'](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
3109 _proto.getTipElement = function getTipElement() {
3110 this.tip = this.tip || $__default['default'](this.config.template)[0];
3114 _proto.setContent = function setContent() {
3115 var tip = this.getTipElement();
3116 this.setElementContent($__default['default'](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
3117 $__default['default'](tip).removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$4);
3120 _proto.setElementContent = function setElementContent($element, content) {
3121 if (typeof content === 'object' && (content.nodeType || content.jquery)) {
3122 // Content is a DOM node or a jQuery
3123 if (this.config.html) {
3124 if (!$__default['default'](content).parent().is($element)) {
3125 $element.empty().append(content);
3128 $element.text($__default['default'](content).text());
3134 if (this.config.html) {
3135 if (this.config.sanitize) {
3136 content = sanitizeHtml(content, this.config.whiteList, this.config.sanitizeFn);
3139 $element.html(content);
3141 $element.text(content);
3145 _proto.getTitle = function getTitle() {
3146 var title = this.element.getAttribute('data-original-title');
3149 title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
3156 _proto._getPopperConfig = function _getPopperConfig(attachment) {
3159 var defaultBsConfig = {
3160 placement: attachment,
3162 offset: this._getOffset(),
3164 behavior: this.config.fallbackPlacement
3167 element: SELECTOR_ARROW
3170 boundariesElement: this.config.boundary
3173 onCreate: function onCreate(data) {
3174 if (data.originalPlacement !== data.placement) {
3175 _this3._handlePopperPlacementChange(data);
3178 onUpdate: function onUpdate(data) {
3179 return _this3._handlePopperPlacementChange(data);
3182 return _extends({}, defaultBsConfig, this.config.popperConfig);
3185 _proto._getOffset = function _getOffset() {
3190 if (typeof this.config.offset === 'function') {
3191 offset.fn = function (data) {
3192 data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element) || {});
3196 offset.offset = this.config.offset;
3202 _proto._getContainer = function _getContainer() {
3203 if (this.config.container === false) {
3204 return document.body;
3207 if (Util.isElement(this.config.container)) {
3208 return $__default['default'](this.config.container);
3211 return $__default['default'](document).find(this.config.container);
3214 _proto._getAttachment = function _getAttachment(placement) {
3215 return AttachmentMap[placement.toUpperCase()];
3218 _proto._setListeners = function _setListeners() {
3221 var triggers = this.config.trigger.split(' ');
3222 triggers.forEach(function (trigger) {
3223 if (trigger === 'click') {
3224 $__default['default'](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
3225 return _this5.toggle(event);
3227 } else if (trigger !== TRIGGER_MANUAL) {
3228 var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
3229 var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
3230 $__default['default'](_this5.element).on(eventIn, _this5.config.selector, function (event) {
3231 return _this5._enter(event);
3232 }).on(eventOut, _this5.config.selector, function (event) {
3233 return _this5._leave(event);
3238 this._hideModalHandler = function () {
3239 if (_this5.element) {
3244 $__default['default'](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
3246 if (this.config.selector) {
3247 this.config = _extends({}, this.config, {
3256 _proto._fixTitle = function _fixTitle() {
3257 var titleType = typeof this.element.getAttribute('data-original-title');
3259 if (this.element.getAttribute('title') || titleType !== 'string') {
3260 this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
3261 this.element.setAttribute('title', '');
3265 _proto._enter = function _enter(event, context) {
3266 var dataKey = this.constructor.DATA_KEY;
3267 context = context || $__default['default'](event.currentTarget).data(dataKey);
3270 context = new this.constructor(event.currentTarget, this._getDelegateConfig());
3271 $__default['default'](event.currentTarget).data(dataKey, context);
3275 context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
3278 if ($__default['default'](context.getTipElement()).hasClass(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
3279 context._hoverState = HOVER_STATE_SHOW;
3283 clearTimeout(context._timeout);
3284 context._hoverState = HOVER_STATE_SHOW;
3286 if (!context.config.delay || !context.config.delay.show) {
3291 context._timeout = setTimeout(function () {
3292 if (context._hoverState === HOVER_STATE_SHOW) {
3295 }, context.config.delay.show);
3298 _proto._leave = function _leave(event, context) {
3299 var dataKey = this.constructor.DATA_KEY;
3300 context = context || $__default['default'](event.currentTarget).data(dataKey);
3303 context = new this.constructor(event.currentTarget, this._getDelegateConfig());
3304 $__default['default'](event.currentTarget).data(dataKey, context);
3308 context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
3311 if (context._isWithActiveTrigger()) {
3315 clearTimeout(context._timeout);
3316 context._hoverState = HOVER_STATE_OUT;
3318 if (!context.config.delay || !context.config.delay.hide) {
3323 context._timeout = setTimeout(function () {
3324 if (context._hoverState === HOVER_STATE_OUT) {
3327 }, context.config.delay.hide);
3330 _proto._isWithActiveTrigger = function _isWithActiveTrigger() {
3331 for (var trigger in this._activeTrigger) {
3332 if (this._activeTrigger[trigger]) {
3340 _proto._getConfig = function _getConfig(config) {
3341 var dataAttributes = $__default['default'](this.element).data();
3342 Object.keys(dataAttributes).forEach(function (dataAttr) {
3343 if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
3344 delete dataAttributes[dataAttr];
3347 config = _extends({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
3349 if (typeof config.delay === 'number') {
3356 if (typeof config.title === 'number') {
3357 config.title = config.title.toString();
3360 if (typeof config.content === 'number') {
3361 config.content = config.content.toString();
3364 Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType);
3366 if (config.sanitize) {
3367 config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
3373 _proto._getDelegateConfig = function _getDelegateConfig() {
3377 for (var key in this.config) {
3378 if (this.constructor.Default[key] !== this.config[key]) {
3379 config[key] = this.config[key];
3387 _proto._cleanTipClass = function _cleanTipClass() {
3388 var $tip = $__default['default'](this.getTipElement());
3389 var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
3391 if (tabClass !== null && tabClass.length) {
3392 $tip.removeClass(tabClass.join(''));
3396 _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
3397 this.tip = popperData.instance.popper;
3399 this._cleanTipClass();
3401 this.addAttachmentClass(this._getAttachment(popperData.placement));
3404 _proto._fixTransition = function _fixTransition() {
3405 var tip = this.getTipElement();
3406 var initConfigAnimation = this.config.animation;
3408 if (tip.getAttribute('x-placement') !== null) {
3412 $__default['default'](tip).removeClass(CLASS_NAME_FADE$2);
3413 this.config.animation = false;
3416 this.config.animation = initConfigAnimation;
3420 Tooltip._jQueryInterface = function _jQueryInterface(config) {
3421 return this.each(function () {
3422 var $element = $__default['default'](this);
3423 var data = $element.data(DATA_KEY$6);
3425 var _config = typeof config === 'object' && config;
3427 if (!data && /dispose|hide/.test(config)) {
3432 data = new Tooltip(this, _config);
3433 $element.data(DATA_KEY$6, data);
3436 if (typeof config === 'string') {
3437 if (typeof data[config] === 'undefined') {
3438 throw new TypeError("No method named \"" + config + "\"");
3446 _createClass(Tooltip, null, [{
3448 get: function get() {
3453 get: function get() {
3458 get: function get() {
3463 get: function get() {
3468 get: function get() {
3473 get: function get() {
3478 get: function get() {
3479 return DefaultType$4;
3486 * ------------------------------------------------------------------------
3488 * ------------------------------------------------------------------------
3492 $__default['default'].fn[NAME$6] = Tooltip._jQueryInterface;
3493 $__default['default'].fn[NAME$6].Constructor = Tooltip;
3495 $__default['default'].fn[NAME$6].noConflict = function () {
3496 $__default['default'].fn[NAME$6] = JQUERY_NO_CONFLICT$6;
3497 return Tooltip._jQueryInterface;
3501 * ------------------------------------------------------------------------
3503 * ------------------------------------------------------------------------
3506 var NAME$7 = 'popover';
3507 var VERSION$7 = '4.6.0';
3508 var DATA_KEY$7 = 'bs.popover';
3509 var EVENT_KEY$7 = "." + DATA_KEY$7;
3510 var JQUERY_NO_CONFLICT$7 = $__default['default'].fn[NAME$7];
3511 var CLASS_PREFIX$1 = 'bs-popover';
3512 var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
3514 var Default$5 = _extends({}, Tooltip.Default, {
3518 template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
3521 var DefaultType$5 = _extends({}, Tooltip.DefaultType, {
3522 content: '(string|element|function)'
3525 var CLASS_NAME_FADE$3 = 'fade';
3526 var CLASS_NAME_SHOW$5 = 'show';
3527 var SELECTOR_TITLE = '.popover-header';
3528 var SELECTOR_CONTENT = '.popover-body';
3530 HIDE: "hide" + EVENT_KEY$7,
3531 HIDDEN: "hidden" + EVENT_KEY$7,
3532 SHOW: "show" + EVENT_KEY$7,
3533 SHOWN: "shown" + EVENT_KEY$7,
3534 INSERTED: "inserted" + EVENT_KEY$7,
3535 CLICK: "click" + EVENT_KEY$7,
3536 FOCUSIN: "focusin" + EVENT_KEY$7,
3537 FOCUSOUT: "focusout" + EVENT_KEY$7,
3538 MOUSEENTER: "mouseenter" + EVENT_KEY$7,
3539 MOUSELEAVE: "mouseleave" + EVENT_KEY$7
3542 * ------------------------------------------------------------------------
3544 * ------------------------------------------------------------------------
3547 var Popover = /*#__PURE__*/function (_Tooltip) {
3548 _inheritsLoose(Popover, _Tooltip);
3550 function Popover() {
3551 return _Tooltip.apply(this, arguments) || this;
3554 var _proto = Popover.prototype;
3557 _proto.isWithContent = function isWithContent() {
3558 return this.getTitle() || this._getContent();
3561 _proto.addAttachmentClass = function addAttachmentClass(attachment) {
3562 $__default['default'](this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
3565 _proto.getTipElement = function getTipElement() {
3566 this.tip = this.tip || $__default['default'](this.config.template)[0];
3570 _proto.setContent = function setContent() {
3571 var $tip = $__default['default'](this.getTipElement()); // We use append for html objects to maintain js events
3573 this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle());
3575 var content = this._getContent();
3577 if (typeof content === 'function') {
3578 content = content.call(this.element);
3581 this.setElementContent($tip.find(SELECTOR_CONTENT), content);
3582 $tip.removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$5);
3586 _proto._getContent = function _getContent() {
3587 return this.element.getAttribute('data-content') || this.config.content;
3590 _proto._cleanTipClass = function _cleanTipClass() {
3591 var $tip = $__default['default'](this.getTipElement());
3592 var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);
3594 if (tabClass !== null && tabClass.length > 0) {
3595 $tip.removeClass(tabClass.join(''));
3600 Popover._jQueryInterface = function _jQueryInterface(config) {
3601 return this.each(function () {
3602 var data = $__default['default'](this).data(DATA_KEY$7);
3604 var _config = typeof config === 'object' ? config : null;
3606 if (!data && /dispose|hide/.test(config)) {
3611 data = new Popover(this, _config);
3612 $__default['default'](this).data(DATA_KEY$7, data);
3615 if (typeof config === 'string') {
3616 if (typeof data[config] === 'undefined') {
3617 throw new TypeError("No method named \"" + config + "\"");
3625 _createClass(Popover, null, [{
3628 get: function get() {
3633 get: function get() {
3638 get: function get() {
3643 get: function get() {
3648 get: function get() {
3653 get: function get() {
3658 get: function get() {
3659 return DefaultType$5;
3666 * ------------------------------------------------------------------------
3668 * ------------------------------------------------------------------------
3672 $__default['default'].fn[NAME$7] = Popover._jQueryInterface;
3673 $__default['default'].fn[NAME$7].Constructor = Popover;
3675 $__default['default'].fn[NAME$7].noConflict = function () {
3676 $__default['default'].fn[NAME$7] = JQUERY_NO_CONFLICT$7;
3677 return Popover._jQueryInterface;
3681 * ------------------------------------------------------------------------
3683 * ------------------------------------------------------------------------
3686 var NAME$8 = 'scrollspy';
3687 var VERSION$8 = '4.6.0';
3688 var DATA_KEY$8 = 'bs.scrollspy';
3689 var EVENT_KEY$8 = "." + DATA_KEY$8;
3690 var DATA_API_KEY$6 = '.data-api';
3691 var JQUERY_NO_CONFLICT$8 = $__default['default'].fn[NAME$8];
3697 var DefaultType$6 = {
3700 target: '(string|element)'
3702 var EVENT_ACTIVATE = "activate" + EVENT_KEY$8;
3703 var EVENT_SCROLL = "scroll" + EVENT_KEY$8;
3704 var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$8 + DATA_API_KEY$6;
3705 var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
3706 var CLASS_NAME_ACTIVE$2 = 'active';
3707 var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
3708 var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
3709 var SELECTOR_NAV_LINKS = '.nav-link';
3710 var SELECTOR_NAV_ITEMS = '.nav-item';
3711 var SELECTOR_LIST_ITEMS = '.list-group-item';
3712 var SELECTOR_DROPDOWN = '.dropdown';
3713 var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
3714 var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
3715 var METHOD_OFFSET = 'offset';
3716 var METHOD_POSITION = 'position';
3718 * ------------------------------------------------------------------------
3720 * ------------------------------------------------------------------------
3723 var ScrollSpy = /*#__PURE__*/function () {
3724 function ScrollSpy(element, config) {
3727 this._element = element;
3728 this._scrollElement = element.tagName === 'BODY' ? window : element;
3729 this._config = this._getConfig(config);
3730 this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + "," + (this._config.target + " " + SELECTOR_LIST_ITEMS + ",") + (this._config.target + " " + SELECTOR_DROPDOWN_ITEMS);
3733 this._activeTarget = null;
3734 this._scrollHeight = 0;
3735 $__default['default'](this._scrollElement).on(EVENT_SCROLL, function (event) {
3736 return _this._process(event);
3744 var _proto = ScrollSpy.prototype;
3747 _proto.refresh = function refresh() {
3750 var autoMethod = this._scrollElement === this._scrollElement.window ? METHOD_OFFSET : METHOD_POSITION;
3751 var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
3752 var offsetBase = offsetMethod === METHOD_POSITION ? this._getScrollTop() : 0;
3755 this._scrollHeight = this._getScrollHeight();
3756 var targets = [].slice.call(document.querySelectorAll(this._selector));
3757 targets.map(function (element) {
3759 var targetSelector = Util.getSelectorFromElement(element);
3761 if (targetSelector) {
3762 target = document.querySelector(targetSelector);
3766 var targetBCR = target.getBoundingClientRect();
3768 if (targetBCR.width || targetBCR.height) {
3769 // TODO (fat): remove sketch reliance on jQuery position/offset
3770 return [$__default['default'](target)[offsetMethod]().top + offsetBase, targetSelector];
3775 }).filter(function (item) {
3777 }).sort(function (a, b) {
3779 }).forEach(function (item) {
3780 _this2._offsets.push(item[0]);
3782 _this2._targets.push(item[1]);
3786 _proto.dispose = function dispose() {
3787 $__default['default'].removeData(this._element, DATA_KEY$8);
3788 $__default['default'](this._scrollElement).off(EVENT_KEY$8);
3789 this._element = null;
3790 this._scrollElement = null;
3791 this._config = null;
3792 this._selector = null;
3793 this._offsets = null;
3794 this._targets = null;
3795 this._activeTarget = null;
3796 this._scrollHeight = null;
3800 _proto._getConfig = function _getConfig(config) {
3801 config = _extends({}, Default$6, typeof config === 'object' && config ? config : {});
3803 if (typeof config.target !== 'string' && Util.isElement(config.target)) {
3804 var id = $__default['default'](config.target).attr('id');
3807 id = Util.getUID(NAME$8);
3808 $__default['default'](config.target).attr('id', id);
3811 config.target = "#" + id;
3814 Util.typeCheckConfig(NAME$8, config, DefaultType$6);
3818 _proto._getScrollTop = function _getScrollTop() {
3819 return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
3822 _proto._getScrollHeight = function _getScrollHeight() {
3823 return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
3826 _proto._getOffsetHeight = function _getOffsetHeight() {
3827 return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
3830 _proto._process = function _process() {
3831 var scrollTop = this._getScrollTop() + this._config.offset;
3833 var scrollHeight = this._getScrollHeight();
3835 var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
3837 if (this._scrollHeight !== scrollHeight) {
3841 if (scrollTop >= maxScroll) {
3842 var target = this._targets[this._targets.length - 1];
3844 if (this._activeTarget !== target) {
3845 this._activate(target);
3851 if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
3852 this._activeTarget = null;
3859 for (var i = this._offsets.length; i--;) {
3860 var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
3862 if (isActiveTarget) {
3863 this._activate(this._targets[i]);
3868 _proto._activate = function _activate(target) {
3869 this._activeTarget = target;
3873 var queries = this._selector.split(',').map(function (selector) {
3874 return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
3877 var $link = $__default['default']([].slice.call(document.querySelectorAll(queries.join(','))));
3879 if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {
3880 $link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE$2);
3881 $link.addClass(CLASS_NAME_ACTIVE$2);
3883 // Set triggered link as active
3884 $link.addClass(CLASS_NAME_ACTIVE$2); // Set triggered links parents as active
3885 // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
3887 $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$2); // Handle special case when .nav-link is inside .nav-item
3889 $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$2);
3892 $__default['default'](this._scrollElement).trigger(EVENT_ACTIVATE, {
3893 relatedTarget: target
3897 _proto._clear = function _clear() {
3898 [].slice.call(document.querySelectorAll(this._selector)).filter(function (node) {
3899 return node.classList.contains(CLASS_NAME_ACTIVE$2);
3900 }).forEach(function (node) {
3901 return node.classList.remove(CLASS_NAME_ACTIVE$2);
3906 ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
3907 return this.each(function () {
3908 var data = $__default['default'](this).data(DATA_KEY$8);
3910 var _config = typeof config === 'object' && config;
3913 data = new ScrollSpy(this, _config);
3914 $__default['default'](this).data(DATA_KEY$8, data);
3917 if (typeof config === 'string') {
3918 if (typeof data[config] === 'undefined') {
3919 throw new TypeError("No method named \"" + config + "\"");
3927 _createClass(ScrollSpy, null, [{
3929 get: function get() {
3934 get: function get() {
3942 * ------------------------------------------------------------------------
3943 * Data Api implementation
3944 * ------------------------------------------------------------------------
3948 $__default['default'](window).on(EVENT_LOAD_DATA_API$2, function () {
3949 var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));
3950 var scrollSpysLength = scrollSpys.length;
3952 for (var i = scrollSpysLength; i--;) {
3953 var $spy = $__default['default'](scrollSpys[i]);
3955 ScrollSpy._jQueryInterface.call($spy, $spy.data());
3959 * ------------------------------------------------------------------------
3961 * ------------------------------------------------------------------------
3964 $__default['default'].fn[NAME$8] = ScrollSpy._jQueryInterface;
3965 $__default['default'].fn[NAME$8].Constructor = ScrollSpy;
3967 $__default['default'].fn[NAME$8].noConflict = function () {
3968 $__default['default'].fn[NAME$8] = JQUERY_NO_CONFLICT$8;
3969 return ScrollSpy._jQueryInterface;
3973 * ------------------------------------------------------------------------
3975 * ------------------------------------------------------------------------
3979 var VERSION$9 = '4.6.0';
3980 var DATA_KEY$9 = 'bs.tab';
3981 var EVENT_KEY$9 = "." + DATA_KEY$9;
3982 var DATA_API_KEY$7 = '.data-api';
3983 var JQUERY_NO_CONFLICT$9 = $__default['default'].fn[NAME$9];
3984 var EVENT_HIDE$3 = "hide" + EVENT_KEY$9;
3985 var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$9;
3986 var EVENT_SHOW$3 = "show" + EVENT_KEY$9;
3987 var EVENT_SHOWN$3 = "shown" + EVENT_KEY$9;
3988 var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$9 + DATA_API_KEY$7;
3989 var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
3990 var CLASS_NAME_ACTIVE$3 = 'active';
3991 var CLASS_NAME_DISABLED$1 = 'disabled';
3992 var CLASS_NAME_FADE$4 = 'fade';
3993 var CLASS_NAME_SHOW$6 = 'show';
3994 var SELECTOR_DROPDOWN$1 = '.dropdown';
3995 var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
3996 var SELECTOR_ACTIVE$2 = '.active';
3997 var SELECTOR_ACTIVE_UL = '> li > .active';
3998 var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
3999 var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
4000 var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active';
4002 * ------------------------------------------------------------------------
4004 * ------------------------------------------------------------------------
4007 var Tab = /*#__PURE__*/function () {
4008 function Tab(element) {
4009 this._element = element;
4013 var _proto = Tab.prototype;
4016 _proto.show = function show() {
4019 if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default['default'](this._element).hasClass(CLASS_NAME_ACTIVE$3) || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED$1)) {
4025 var listElement = $__default['default'](this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0];
4026 var selector = Util.getSelectorFromElement(this._element);
4029 var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE$2;
4030 previous = $__default['default'].makeArray($__default['default'](listElement).find(itemSelector));
4031 previous = previous[previous.length - 1];
4034 var hideEvent = $__default['default'].Event(EVENT_HIDE$3, {
4035 relatedTarget: this._element
4037 var showEvent = $__default['default'].Event(EVENT_SHOW$3, {
4038 relatedTarget: previous
4042 $__default['default'](previous).trigger(hideEvent);
4045 $__default['default'](this._element).trigger(showEvent);
4047 if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
4052 target = document.querySelector(selector);
4055 this._activate(this._element, listElement);
4057 var complete = function complete() {
4058 var hiddenEvent = $__default['default'].Event(EVENT_HIDDEN$3, {
4059 relatedTarget: _this._element
4061 var shownEvent = $__default['default'].Event(EVENT_SHOWN$3, {
4062 relatedTarget: previous
4064 $__default['default'](previous).trigger(hiddenEvent);
4065 $__default['default'](_this._element).trigger(shownEvent);
4069 this._activate(target, target.parentNode, complete);
4075 _proto.dispose = function dispose() {
4076 $__default['default'].removeData(this._element, DATA_KEY$9);
4077 this._element = null;
4081 _proto._activate = function _activate(element, container, callback) {
4084 var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default['default'](container).find(SELECTOR_ACTIVE_UL) : $__default['default'](container).children(SELECTOR_ACTIVE$2);
4085 var active = activeElements[0];
4086 var isTransitioning = callback && active && $__default['default'](active).hasClass(CLASS_NAME_FADE$4);
4088 var complete = function complete() {
4089 return _this2._transitionComplete(element, active, callback);
4092 if (active && isTransitioning) {
4093 var transitionDuration = Util.getTransitionDurationFromElement(active);
4094 $__default['default'](active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
4100 _proto._transitionComplete = function _transitionComplete(element, active, callback) {
4102 $__default['default'](active).removeClass(CLASS_NAME_ACTIVE$3);
4103 var dropdownChild = $__default['default'](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
4105 if (dropdownChild) {
4106 $__default['default'](dropdownChild).removeClass(CLASS_NAME_ACTIVE$3);
4109 if (active.getAttribute('role') === 'tab') {
4110 active.setAttribute('aria-selected', false);
4114 $__default['default'](element).addClass(CLASS_NAME_ACTIVE$3);
4116 if (element.getAttribute('role') === 'tab') {
4117 element.setAttribute('aria-selected', true);
4120 Util.reflow(element);
4122 if (element.classList.contains(CLASS_NAME_FADE$4)) {
4123 element.classList.add(CLASS_NAME_SHOW$6);
4126 if (element.parentNode && $__default['default'](element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
4127 var dropdownElement = $__default['default'](element).closest(SELECTOR_DROPDOWN$1)[0];
4129 if (dropdownElement) {
4130 var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE$1));
4131 $__default['default'](dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3);
4134 element.setAttribute('aria-expanded', true);
4143 Tab._jQueryInterface = function _jQueryInterface(config) {
4144 return this.each(function () {
4145 var $this = $__default['default'](this);
4146 var data = $this.data(DATA_KEY$9);
4149 data = new Tab(this);
4150 $this.data(DATA_KEY$9, data);
4153 if (typeof config === 'string') {
4154 if (typeof data[config] === 'undefined') {
4155 throw new TypeError("No method named \"" + config + "\"");
4163 _createClass(Tab, null, [{
4165 get: function get() {
4173 * ------------------------------------------------------------------------
4174 * Data Api implementation
4175 * ------------------------------------------------------------------------
4179 $__default['default'](document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, function (event) {
4180 event.preventDefault();
4182 Tab._jQueryInterface.call($__default['default'](this), 'show');
4185 * ------------------------------------------------------------------------
4187 * ------------------------------------------------------------------------
4190 $__default['default'].fn[NAME$9] = Tab._jQueryInterface;
4191 $__default['default'].fn[NAME$9].Constructor = Tab;
4193 $__default['default'].fn[NAME$9].noConflict = function () {
4194 $__default['default'].fn[NAME$9] = JQUERY_NO_CONFLICT$9;
4195 return Tab._jQueryInterface;
4199 * ------------------------------------------------------------------------
4201 * ------------------------------------------------------------------------
4204 var NAME$a = 'toast';
4205 var VERSION$a = '4.6.0';
4206 var DATA_KEY$a = 'bs.toast';
4207 var EVENT_KEY$a = "." + DATA_KEY$a;
4208 var JQUERY_NO_CONFLICT$a = $__default['default'].fn[NAME$a];
4209 var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a;
4210 var EVENT_HIDE$4 = "hide" + EVENT_KEY$a;
4211 var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
4212 var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
4213 var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
4214 var CLASS_NAME_FADE$5 = 'fade';
4215 var CLASS_NAME_HIDE = 'hide';
4216 var CLASS_NAME_SHOW$7 = 'show';
4217 var CLASS_NAME_SHOWING = 'showing';
4218 var DefaultType$7 = {
4219 animation: 'boolean',
4220 autohide: 'boolean',
4228 var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="toast"]';
4230 * ------------------------------------------------------------------------
4232 * ------------------------------------------------------------------------
4235 var Toast = /*#__PURE__*/function () {
4236 function Toast(element, config) {
4237 this._element = element;
4238 this._config = this._getConfig(config);
4239 this._timeout = null;
4241 this._setListeners();
4245 var _proto = Toast.prototype;
4248 _proto.show = function show() {
4251 var showEvent = $__default['default'].Event(EVENT_SHOW$4);
4252 $__default['default'](this._element).trigger(showEvent);
4254 if (showEvent.isDefaultPrevented()) {
4258 this._clearTimeout();
4260 if (this._config.animation) {
4261 this._element.classList.add(CLASS_NAME_FADE$5);
4264 var complete = function complete() {
4265 _this._element.classList.remove(CLASS_NAME_SHOWING);
4267 _this._element.classList.add(CLASS_NAME_SHOW$7);
4269 $__default['default'](_this._element).trigger(EVENT_SHOWN$4);
4271 if (_this._config.autohide) {
4272 _this._timeout = setTimeout(function () {
4274 }, _this._config.delay);
4278 this._element.classList.remove(CLASS_NAME_HIDE);
4280 Util.reflow(this._element);
4282 this._element.classList.add(CLASS_NAME_SHOWING);
4284 if (this._config.animation) {
4285 var transitionDuration = Util.getTransitionDurationFromElement(this._element);
4286 $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
4292 _proto.hide = function hide() {
4293 if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) {
4297 var hideEvent = $__default['default'].Event(EVENT_HIDE$4);
4298 $__default['default'](this._element).trigger(hideEvent);
4300 if (hideEvent.isDefaultPrevented()) {
4307 _proto.dispose = function dispose() {
4308 this._clearTimeout();
4310 if (this._element.classList.contains(CLASS_NAME_SHOW$7)) {
4311 this._element.classList.remove(CLASS_NAME_SHOW$7);
4314 $__default['default'](this._element).off(EVENT_CLICK_DISMISS$1);
4315 $__default['default'].removeData(this._element, DATA_KEY$a);
4316 this._element = null;
4317 this._config = null;
4321 _proto._getConfig = function _getConfig(config) {
4322 config = _extends({}, Default$7, $__default['default'](this._element).data(), typeof config === 'object' && config ? config : {});
4323 Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
4327 _proto._setListeners = function _setListeners() {
4330 $__default['default'](this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () {
4331 return _this2.hide();
4335 _proto._close = function _close() {
4338 var complete = function complete() {
4339 _this3._element.classList.add(CLASS_NAME_HIDE);
4341 $__default['default'](_this3._element).trigger(EVENT_HIDDEN$4);
4344 this._element.classList.remove(CLASS_NAME_SHOW$7);
4346 if (this._config.animation) {
4347 var transitionDuration = Util.getTransitionDurationFromElement(this._element);
4348 $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
4354 _proto._clearTimeout = function _clearTimeout() {
4355 clearTimeout(this._timeout);
4356 this._timeout = null;
4360 Toast._jQueryInterface = function _jQueryInterface(config) {
4361 return this.each(function () {
4362 var $element = $__default['default'](this);
4363 var data = $element.data(DATA_KEY$a);
4365 var _config = typeof config === 'object' && config;
4368 data = new Toast(this, _config);
4369 $element.data(DATA_KEY$a, data);
4372 if (typeof config === 'string') {
4373 if (typeof data[config] === 'undefined') {
4374 throw new TypeError("No method named \"" + config + "\"");
4382 _createClass(Toast, null, [{
4384 get: function get() {
4389 get: function get() {
4390 return DefaultType$7;
4394 get: function get() {
4402 * ------------------------------------------------------------------------
4404 * ------------------------------------------------------------------------
4408 $__default['default'].fn[NAME$a] = Toast._jQueryInterface;
4409 $__default['default'].fn[NAME$a].Constructor = Toast;
4411 $__default['default'].fn[NAME$a].noConflict = function () {
4412 $__default['default'].fn[NAME$a] = JQUERY_NO_CONFLICT$a;
4413 return Toast._jQueryInterface;
4416 exports.Alert = Alert;
4417 exports.Button = Button;
4418 exports.Carousel = Carousel;
4419 exports.Collapse = Collapse;
4420 exports.Dropdown = Dropdown;
4421 exports.Modal = Modal;
4422 exports.Popover = Popover;
4423 exports.Scrollspy = ScrollSpy;
4425 exports.Toast = Toast;
4426 exports.Tooltip = Tooltip;
4427 exports.Util = Util;
4429 Object.defineProperty(exports, '__esModule', { value: true });
4432//# sourceMappingURL=bootstrap.js.map