0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-02 14:24:19 +01:00
Bootstrap/dist/js/bootstrap.min.js

7 lines
64 KiB
JavaScript
Raw Normal View History

/*!
2019-02-13 17:01:40 +01:00
* Bootstrap v4.3.1 (https://getbootstrap.com/)
2019-01-04 17:29:45 +01:00
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2017-09-06 06:05:12 +02:00
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
2019-08-27 15:03:21 +02:00
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],e):(t=t||self).bootstrap=e(t.Popper)}(this,function(t){"use strict";function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(n,!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}t=t&&t.hasOwnProperty("default")?t.default:t;var s,a,l,c="transitionend",u=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},f=function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():null}return e},h=function(t){var e=f(t);return e&&document.querySelector(e)?e:null},d=function(t){var e=f(t);return e?document.querySelector(e):null},g=function(t){if(!t)return 0;var e=window.getComputedStyle(t),n=e.transitionDuration,i=e.transitionDelay,o=parseFloat(n),r=parseFloat(i);return o||r?(n=n.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(n)+parseFloat(i))):0},p=function(t){var e=document.createEvent("HTMLEvents");e.initEvent(c,!0,!0),t.dispatchEvent(e)},_=function(t){return(t[0]||t).nodeType},m=function(t,e){var n=!1,i=e+5;t.addEventListener(c,function e(){n=!0,t.removeEventListener(c,e)}),setTimeout(function(){n||p(t)},i)},v=function(t,e,n){Object.keys(n).forEach(function(i){var o,r=n[i],s=e[i],a=s&&_(s)?"element":(o=s,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+r+'".')})},E=function(t){return t?[].slice.call(t):[]},y=function(t){return!!t&&(!!(t.style&&t.parentNode&&t.parentNode.style)&&("none"!==t.style.display&&"none"!==t.parentNode.style.display&&"hidden"!==t.style.visibility))},b=function(){return function(){}},D=function(t){return t.offsetHeight},T=function(){var t=window.jQuery;return t&&!document.body.hasAttribute("data-no-jquery")?t:null},I=(s={},a=1,{set:function(t,e,n){"undefined"==typeof t.key&&(t.key={key:e,id:a},a++),s[t.key.id]=n},get:function(t,e){if(!t||"undefined"==typeof t.key)return null;var n=t.key;return n.key===e?s[n.id]:null},delete:function(t,e){if("undefined"!=typeof t.key){var n=t.key;n.key===e&&(delete s[n.id],delete t.key)}}}),A={setData:function(t,e,n){I.set(t,e,n)},getData:function(t,e){return I.get(t,e)},removeData:function(t,e){I.delete(t,e)}},S=Element.prototype,w=S.matches,C=S.closest,L=Element.prototype.querySelectorAll,O=Element.prototype.querySelector,N=function(t,e){return new CustomEvent(t,e)};if("function"!=typeof window.CustomEvent&&(N=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}),!((l=document.createEvent("CustomEvent")).initEvent("Bootstrap",!0,!0),l.preventDefault(),l.defaultPrevented)){var k=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(k.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var P=function(){var t=N("Bootstrap",{cancelable:!0}),e=document.createElement("div");return e.addEventListener("Bootstrap",function(){return null}),t.preventDefault(),e.dispatchEvent(t),t.defaultPrevented}();w||(w=Element.prototype.msMatchesSelector||Eleme
2017-10-19 09:17:08 +02:00
//# sourceMappingURL=bootstrap.min.js.map