function _extends(){return _extends=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},_extends.apply(this,arguments)}function _defineProperties(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function _createClass(n,t,i){return t&&_defineProperties(n.prototype,t),i&&_defineProperties(n,i),n}var Util=function(n){function r(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function u(){return{bindType:i.end,delegateType:i.end,handle:function(t){return n(t.target).is(this)?t.handleObj.handler.apply(this,arguments):undefined}}}function f(){return window.QUnit?!1:{end:"transitionend"}}function e(i){var u=this,r=!1;n(this).one(t.TRANSITION_END,function(){r=!0});return setTimeout(function(){r||t.triggerTransitionEnd(u)},i),this}function o(){i=f();n.fn.emulateTransitionEnd=e;t.supportsTransitionEnd()&&(n.event.special[t.TRANSITION_END]=u())}function s(t){return typeof n.escapeSelector=="function"?n.escapeSelector(t).substr(1):t.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1")}var i=!1,h=1e6,t={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(Math.random()*h);while(document.getElementById(n));return n},getSelectorFromElement:function(t){var i=t.getAttribute("data-target"),r;i&&i!=="#"||(i=t.getAttribute("href")||"");i.charAt(0)==="#"&&(i=s(i));try{return r=n(document).find(i),r.length>0?i:null}catch(u){return null}},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(t){n(t).trigger(i.end)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,i,u){for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var o=u[f],e=i[f],s=e&&t.isElement(e)?"element":r(e);if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+": "+('Option "'+f+'" provided type "'+s+'" ')+('but expected type "'+o+'".'));}}};return o(),t}($),Collapse=function(n){var r="collapse",l="4.0.0-beta.3",i="bs.collapse",u="."+i,a=n.fn[r],c=0,s={toggle:!0,parent:""},v={toggle:"boolean",parent:"(string|element)"},f={SHOW:"show"+u,SHOWN:"shown"+u,HIDE:"hide"+u,HIDDEN:"hidden"+u,CLICK_DATA_API:"click"+u+".data-api"},t={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},h={WIDTH:"width",HEIGHT:"height"},o={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},e=function(){function e(t,i){var u,r,f,e;for(this._isTransitioning=!1,this._element=t,this._config=this._getConfig(i),this._triggerArray=n.makeArray(n('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]'))),u=n(o.DATA_TOGGLE),r=0;r<u.length;r++)f=u[r],e=Util.getSelectorFromElement(f),e!==null&&n(e).filter(t).length>0&&this._triggerArray.push(f);this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var u=e.prototype;return u.toggle=function(){n(this._element).hasClass(t.SHOW)?this.hide():this.show()},u.show=function(){var s=this,r,h,l,a,v,u,y,p,w;if(!this._isTransitioning&&!n(this._element).hasClass(t.SHOW)&&(this._parent&&(l=n(this._parent),a=l.data("children"),r=a?n.makeArray(l.find(a).filter(o.ACTIVES)):n.makeArray(l.children().children(o.ACTIVES)),r.length||(r=null)),!r||(h=n(r).data(i),!h||!h._isTransitioning))&&(v=n.Event(f.SHOW),n(this._element).trigger(v),!v.isDefaultPrevented())){if(r&&(e._jQueryInterface.call(n(r),"hide"),h||n(r).data(i,null)),u=this._getDimension(),n(this._element).removeClass(t.COLLAPSE).addClass(t.COLLAPSING),this._element.style[u]=0,this._triggerArray.length&&n(this._triggerArray).removeClass(t.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),y=function(){n(s._element).removeClass(t.COLLAPSING).addClass(t.COLLAPSE).addClass(t.SHOW);s._element.style[u]="";s.setTransitioning(!1);n(s._element).trigger(f.SHOWN)},!Util.supportsTransitionEnd()){y();return}p=u[0].toUpperCase()+u.slice(1);w="scroll"+p;n(this._element).one(Util.TRANSITION_END,y).emulateTransitionEnd(c);this._element.style[u]=this._element[w]+"px"}},u.hide=function(){var h=this,u,i,r,e,o,l,s;if(!this._isTransitioning&&n(this._element).hasClass(t.SHOW)&&(u=n.Event(f.HIDE),n(this._element).trigger(u),!u.isDefaultPrevented())){if(i=this._getDimension(),this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",Util.reflow(this._element),n(this._element).addClass(t.COLLAPSING).removeClass(t.COLLAPSE).removeClass(t.SHOW),this._triggerArray.length)for(r=0;r<this._triggerArray.length;r++)e=this._triggerArray[r],o=Util.getSelectorFromElement(e),o!==null&&(l=n(o),l.hasClass(t.SHOW)||n(e).addClass(t.COLLAPSED).attr("aria-expanded",!1));if(this.setTransitioning(!0),s=function(){h.setTransitioning(!1);n(h._element).removeClass(t.COLLAPSING).addClass(t.COLLAPSE).trigger(f.HIDDEN)},this._element.style[i]="",!Util.supportsTransitionEnd()){s();return}n(this._element).one(Util.TRANSITION_END,s).emulateTransitionEnd(c)}},u.setTransitioning=function(n){this._isTransitioning=n},u.dispose=function(){n.removeData(this._element,i);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},u._getConfig=function(n){return n=_extends({},s,n),n.toggle=Boolean(n.toggle),Util.typeCheckConfig(r,n,v),n},u._getDimension=function(){var t=n(this._element).hasClass(h.WIDTH);return t?h.WIDTH:h.HEIGHT},u._getParent=function(){var r=this,t=null,i;return Util.isElement(this._config.parent)?(t=this._config.parent,typeof this._config.parent.jquery!="undefined"&&(t=this._config.parent[0])):t=n(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',n(t).find(i).each(function(n,t){r._addAriaAndCollapsedClass(e._getTargetFromElement(t),[t])}),t},u._addAriaAndCollapsedClass=function(i,r){if(i){var u=n(i).hasClass(t.SHOW);r.length&&n(r).toggleClass(t.COLLAPSED,!u).attr("aria-expanded",u)}},e._getTargetFromElement=function(t){var i=Util.getSelectorFromElement(t);return i?n(i)[0]:null},e._jQueryInterface=function(t){return this.each(function(){var u=n(this),r=u.data(i),f=_extends({},s,u.data(),typeof t=="object"&&t);if(!r&&f.toggle&&/show|hide/.test(t)&&(f.toggle=!1),r||(r=new e(this,f),u.data(i,r)),typeof t=="string"){if(typeof r[t]=="undefined")throw new Error('No method named "'+t+'"');r[t]()}})},_createClass(e,null,[{key:"VERSION",get:function(){return l}},{key:"Default",get:function(){return s}}]),e}();n(document).on(f.CLICK_DATA_API,o.DATA_TOGGLE,function(t){t.currentTarget.tagName==="A"&&t.preventDefault();var r=n(this),u=Util.getSelectorFromElement(this);n(u).each(function(){var t=n(this),u=t.data(i),f=u?"toggle":r.data();e._jQueryInterface.call(t,f)})});return n.fn[r]=e._jQueryInterface,n.fn[r].Constructor=e,n.fn[r].noConflict=function(){return n.fn[r]=a,e._jQueryInterface},e}($)