/*! * Bootstrap util.js v4.5.0 (https://getbootstrap.com/) * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ (function(b,c){"object"===typeof exports&&"undefined"!==typeof module?module.exports=c(require("jquery")):"function"===typeof define&&define.amd?define(["jquery"],c):(b=b||self,b.Util=c(b.jQuery))})(this,function(b){b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b["default"]:b;var c={TRANSITION_END:"bsTransitionEnd",getUID:function(a){do a+=~~(1E6*Math.random());while(document.getElementById(a));return a},getSelectorFromElement:function(a){var b=a.getAttribute("data-target");b&&"#"!==b||(b= (a=a.getAttribute("href"))&&"#"!==a?a.trim():"");try{return document.querySelector(b)?b:null}catch(e){return null}},getTransitionDurationFromElement:function(a){if(!a)return 0;var c=b(a).css("transition-duration");a=b(a).css("transition-delay");var e=parseFloat(c),f=parseFloat(a);if(!e&&!f)return 0;c=c.split(",")[0];a=a.split(",")[0];return 1E3*(parseFloat(c)+parseFloat(a))},reflow:function(a){return a.offsetHeight},triggerTransitionEnd:function(a){b(a).trigger("transitionend")},supportsTransitionEnd:function(){return!0}, isElement:function(a){return(a[0]||a).nodeType},typeCheckConfig:function(a,b,e){for(var f in e)if(Object.prototype.hasOwnProperty.call(e,f)){var g=e[f],d=b[f];d=d&&c.isElement(d)?"element":null===d||"undefined"===typeof d?""+d:{}.toString.call(d).match(/\s([a-z]+)/i)[1].toLowerCase();if(!(new RegExp(g)).test(d))throw Error(a.toUpperCase()+': Option "'+(f+'" provided type "'+d+'" but expected type "')+(g+'".'));}},findShadowRoot:function(a){return document.documentElement.attachShadow?"function"=== typeof a.getRootNode?(a=a.getRootNode(),a instanceof ShadowRoot?a:null):a instanceof ShadowRoot?a:a.parentNode?c.findShadowRoot(a.parentNode):null:null},jQueryDetection:function(){if("undefined"===typeof b)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var a=b.fn.jquery.split(" ")[0].split(".");if(2>a[0]&&9>a[1]||1===a[0]&&9===a[1]&&1>a[2]||4<=a[0])throw Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0"); }};c.jQueryDetection();b.fn.emulateTransitionEnd=function(a){var h=this,e=!1;b(this).one(c.TRANSITION_END,function(){e=!0});setTimeout(function(){e||c.triggerTransitionEnd(h)},a);return this};b.event.special[c.TRANSITION_END]=function(){return{bindType:"transitionend",delegateType:"transitionend",handle:function(a){if(b(a.target).is(this))return a.handleObj.handler.apply(this,arguments)}}}();return c});