/*! * Bootstrap collapse.js v4.4.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],t):(e=e||self).Collapse=t(e.jQuery,e.Util)}(this,(function(e,t){"use strict";function n(e,t){for(var n=0;n0&&(this._selector=a,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var i,o,C,b=r.prototype;return b.toggle=function(){e(this._element).hasClass(h)?this.hide():this.show()},b.show=function(){var n,i,l=this;if(!this._isTransitioning&&!e(this._element).hasClass(h)&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(y)).filter((function(e){return"string"==typeof l._config.parent?e.getAttribute("data-parent")===l._config.parent:e.classList.contains(f)}))).length&&(n=null),!(n&&(i=e(n).not(this._selector).data(a))&&i._isTransitioning))){var s=e.Event(u.SHOW);if(e(this._element).trigger(s),!s.isDefaultPrevented()){n&&(r._jQueryInterface.call(e(n).not(this._selector),"hide"),i||e(n).data(a,null));var o=this._getDimension();e(this._element).removeClass(f).addClass(d),this._element.style[o]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(_).attr("aria-expanded",!0),this.setTransitioning(!0);var c="scroll"+(o[0].toUpperCase()+o.slice(1)),g=t.getTransitionDurationFromElement(this._element);e(this._element).one(t.TRANSITION_END,(function(){e(l._element).removeClass(d).addClass(f).addClass(h),l._element.style[o]="",l.setTransitioning(!1),e(l._element).trigger(u.SHOWN)})).emulateTransitionEnd(g),this._element.style[o]=this._element[c]+"px"}}},b.hide=function(){var n=this;if(!this._isTransitioning&&e(this._element).hasClass(h)){var r=e.Event(u.HIDE);if(e(this._element).trigger(r),!r.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",t.reflow(this._element),e(this._element).addClass(d).removeClass(f).removeClass(h);var l=this._triggerArray.length;if(l>0)for(var s=0;s