Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap.native

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap.native - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

2

bower.json
{
"name": "bootstrap.native",
"version": "2.0.4",
"version": "2.0.5",
"homepage": "http://thednp.github.io/bootstrap.native/",

@@ -5,0 +5,0 @@ "authors": [

@@ -1,2 +0,2 @@

// Native Javascript for Bootstrap 4 v2.0.4 | © dnp_theme | MIT-License
// Native Javascript for Bootstrap 4 v2.0.5 | © dnp_theme | MIT-License
(function (root, factory) {

@@ -138,2 +138,3 @@ if (typeof define === 'function' && define.amd) {

// set new focus element since 2.0.3

@@ -185,4 +186,4 @@ setFocus = function(element){

one = function (element, event, handler) { // one since 2.0.4
on(element, event, function handlerWrapper(){
handler();
on(element, event, function handlerWrapper(e){
handler(e);
off(element, event, handlerWrapper);

@@ -192,4 +193,5 @@ });

emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4
if (supportTransitions) { one(element,transitionEndEvent, handler); }
else { handler(); }
if (supportTransitions) {
one(element, transitionEndEvent, function(e){ handler(e); });
} else { handler(); }
},

@@ -218,2 +220,3 @@ bootstrapCustomEvent = function (eventName, componentName, related) {

// tab / collapse stuff
targetsReg = /^\#(.)+$/,
getOuterHeight = function (child) {

@@ -584,18 +587,22 @@ var childStyle = child && globalObject.getComputedStyle(child),

one(slides[next], transitionEndEvent, function(){
isSliding = self.isSliding = false;
one(slides[activeItem], transitionEndEvent, function(e) {
var timeout = e[target] !== slides[activeItem] ? e.elapsedTime*1000 : 0;
setTimeout(function(){
isSliding = self.isSliding = false;
addClass(slides[next],active);
removeClass(slides[activeItem],active);
addClass(slides[next],active);
removeClass(slides[activeItem],active);
removeClass(slides[next],carouselItem +'-'+ orientation);
removeClass(slides[next],carouselItem +'-'+ slideDirection);
removeClass(slides[activeItem],carouselItem +'-'+ slideDirection);
removeClass(slides[next],carouselItem +'-'+ orientation);
removeClass(slides[next],carouselItem +'-'+ slideDirection);
removeClass(slides[activeItem],carouselItem +'-'+ slideDirection);
if ( self[interval] && !hasClass(element,paused) ) {
self.cycle();
}
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]); // here we go with the slid event
});
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
if ( !document.hidden && self[interval] && !hasClass(element,paused) ) {
self.cycle();
}
},timeout);
});
} else {

@@ -610,3 +617,3 @@ addClass(slides[next],active);

}
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]); // here we go with the slid event
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
}, 100 );

@@ -680,11 +687,13 @@ }

collapseElement[style][height] = getMaxHeight(collapseElement) + 'px';
}, 0);
emulateTransitionEnd(collapseElement, function(){
removeClass(collapseElement,collapsing);
collapseElement[style][height] = '';
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'true');
bootstrapCustomEvent.call(collapseElement, shownEvent, component);
});
(function(){
emulateTransitionEnd(collapseElement, function(){
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'true');
removeClass(collapseElement,collapsing);
collapseElement[style][height] = '';
bootstrapCustomEvent.call(collapseElement, shownEvent, component);
});
}());
}, 20);
},

@@ -698,12 +707,14 @@ closeAction = function(collapseElement) {

collapseElement[style][height] = '0px';
}, 0);
emulateTransitionEnd(collapseElement, function(){
removeClass(collapseElement,collapsing);
removeClass(collapseElement,showClass);
collapseElement[style][height] = '';
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'false');
bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);
});
(function() {
emulateTransitionEnd(collapseElement, function(){
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'false');
removeClass(collapseElement,collapsing);
removeClass(collapseElement,showClass);
collapseElement[style][height] = '';
bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);
});
}());
},20);
},

@@ -713,3 +724,3 @@ getTarget = function() {

parent = element[getAttribute](dataTarget),
id = href || ( parent && /#/.test(parent) ) && parent;
id = href || ( parent && targetsReg.test(parent) ) && parent;
return id && queryElement(id);

@@ -1253,3 +1264,3 @@ };

var href = links[i][getAttribute]('href'),
targetItem = href && /#[a-z0-9]+$/i.test(href) && queryElement(href);
targetItem = href && targetsReg.test(href) && queryElement(href);
if ( !!targetItem ) {

@@ -1345,3 +1356,3 @@ items.push(links[i]);

options = options || {};
this[height] = options[height] || heightData === 'true' || false;
this[height] = supportTransitions ? (options[height] || heightData === 'true') : false;

@@ -1352,6 +1363,4 @@ // bind, event targets

tabsContentContainer,
dropdown = queryElement('.dropdown',tabs);
dropdown = queryElement('.dropdown-toggle',tabs);
dropdown = dropdown && dropdown[getElementsByTagName]("A")[0];
// private methods

@@ -1365,3 +1374,2 @@ var getActiveTab = function() {

}
// return activeTab[getElementsByTagName]('A')[0];
return activeTab;

@@ -1375,3 +1383,4 @@ },

e.preventDefault();
next = e[target];
next = e[target][getAttribute](dataToggle) === component || targetsReg.test(e[target][getAttribute]('href'))
? e[target] : e[target][parentNode]; // allow for child elements like icons to use the handler
self.show();

@@ -1400,34 +1409,43 @@ };

bootstrapCustomEvent.call(activeTab, hideEvent, component, next);
setTimeout(function() {
(function() {
removeClass(activeContent,showClass);
}, 0);
bootstrapCustomEvent.call(activeTab, hideEvent, component, next);
(function(){
emulateTransitionEnd(activeContent, function() {
removeClass(activeContent,active);
addClass(nextContent,active);
setTimeout(function() {
addClass(nextContent,showClass);
nextContent[offsetHeight];
if (tabsContentContainer) addClass(tabsContentContainer,collapsing);
(function() {
bootstrapCustomEvent.call(next, showEvent, component, activeTab);
(function() {
if (tabsContentContainer) tabsContentContainer[style][height] = getMaxHeight(nextContent) + 'px'; // height animation
bootstrapCustomEvent.call(activeTab, hiddenEvent, component, next);
}());
}());
},20);
});
}());
}());
emulateTransitionEnd(activeContent, function() {
if (tabsContentContainer) addClass(tabsContentContainer,collapsing);
removeClass(activeContent,active);
addClass(nextContent,active);
setTimeout(function() {
addClass(nextContent,showClass);
if (tabsContentContainer) tabsContentContainer[style][height] = getMaxHeight(nextContent) + 'px'; // height animation
}, 0);
bootstrapCustomEvent.call(next, showEvent, component, activeTab);
bootstrapCustomEvent.call(activeTab, hiddenEvent, component, next);
});
emulateTransitionEnd(nextContent, function() {
bootstrapCustomEvent.call(next, shownEvent, component, activeTab);
if (tabsContentContainer) { // height animation
setTimeout(function(){
emulateTransitionEnd(tabsContentContainer, function(){
tabsContentContainer[style][height] = '';
removeClass(tabsContentContainer,collapsing);
activeTab[isAnimating] = next[isAnimating] = false;
})
},0);
} else { activeTab[isAnimating] = next[isAnimating] = false; }
});
(function(){
emulateTransitionEnd(nextContent, function() {
bootstrapCustomEvent.call(next, shownEvent, component, activeTab);
if (tabsContentContainer) { // height animation
(function(){
emulateTransitionEnd(tabsContentContainer, function(){
setTimeout(function(){
tabsContentContainer[style][height] = '';
removeClass(tabsContentContainer,collapsing);
activeTab[isAnimating] = next[isAnimating] = false;
},200);
});
}());
} else {
activeTab[isAnimating] = next[isAnimating] = false;
}
});
}());
}

@@ -1434,0 +1452,0 @@ };

@@ -1,2 +0,2 @@

// Native Javascript for Bootstrap 4 v2.0.4 | © dnp_theme | MIT-License
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Alert",c="Button",s="Carousel",u="Collapse",d="Dropdown",f="Modal",h="Popover",p="ScrollSpy",v="Tab",m="Tooltip",g="data-backdrop",T="data-keyboard",b="data-target",y="data-interval",w="data-height",x="data-pause",C="data-original-title",A="data-dismissible",I="data-trigger",L="data-animation",D="data-container",E="data-placement",S="data-delay",k="backdrop",M="keyboard",B="delay",H="content",N="target",W="interval",P="pause",$="animation",j="placement",O="container",z="offsetTop",R="offsetLeft",q="scrollTop",U="scrollLeft",X="clientWidth",Y="clientHeight",F="offsetWidth",G="offsetHeight",J="innerWidth",K="innerHeight",Q="scrollHeight",V="height",Z="aria-expanded",_="aria-hidden",tt="click",et="hover",nt="keydown",it="resize",ot="scroll",at="show",lt="shown",rt="hide",ct="hidden",st="close",ut="closed",dt="slid",ft="slide",ht="change",pt="getAttribute",vt="setAttribute",mt="hasAttribute",gt="getElementsByTagName",Tt="getBoundingClientRect",bt="getElementsByClassName",yt="indexOf",wt="parentNode",xt="length",Ct="toLowerCase",At="Transition",It="Webkit",Lt="style",Dt="active",Et="show",St="collapsing",kt="left",Mt="right",Bt="top",Ht="bottom",Nt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Wt=/\b(top|bottom|left|top)+/,Pt=It+At in e[Lt]||At[Ct]()in e[Lt],$t=It+At in e[Lt]?It[Ct]()+At+"End":At[Ct]()+"end",jt=function(t){t.focus?t.focus():t.setActive()},Ot=function(t,e){t.classList.add(e)},zt=function(t,e){t.classList.remove(e)},Rt=function(t,e){return t.classList.contains(e)},qt=function(t,e){return[].slice.call(t[bt](e))},Ut=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Xt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[wt]){if(("."===n||"#"!==n)&&null!==Ut(e,t[wt]))return t;if("#"===n&&t.id===e.substr(1))return t}return!1},Yt=function(t,e,n){t.addEventListener(e,n,!1)},Ft=function(t,e,n){t.removeEventListener(e,n,!1)},Gt=function(t,e,n){Yt(t,e,function i(){n(),Ft(t,e,i)})},Jt=function(t,e){Pt?Gt(t,$t,e):e()},Kt=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Qt=document[gt]("*"),Vt=function(t,e,n,i){for(var o=i&&i[xt]?i:Qt,a=0;a<o[xt];a++){var l=o[a][pt](n),r=t.replace(/spy/i,"").toLowerCase();(l&&t===c&&l[yt](r)>-1||l===r)&&new e(o[a])}},Zt=function(e){var n=e&&t.getComputedStyle(e),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[Y]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},_t=function(t){for(var e=0,n=0,i=t.children[xt];n<i;n++)e+=Zt(t.children[n]);return e},te=function(n){var i=n[Tt]();return i[Bt]>=0&&i[kt]>=0&&i[Ht]<=(t[K]||e[Y])&&i[Mt]<=(t[J]||e[X])},ee=function(){return{y:t.pageYOffset||e[q],x:t.pageXOffset||e[U]}},ne=function(t,e,i,o){var a=t[Tt](),l=o===n?ee():{x:o[R]+o[U],y:o[z]+o[q]},r={w:a[Mt]-a[kt],h:a[Ht]-a[Bt]},c={w:e[F],h:e[G]};i===Bt?(e[Lt][Bt]=a[Bt]+l.y-c.h+"px",e[Lt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===Ht?(e[Lt][Bt]=a[Bt]+l.y+r.h+"px",e[Lt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===kt?(e[Lt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Lt][kt]=a[kt]+l.x-c.w+"px"):i===Mt&&(e[Lt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Lt][kt]=a[kt]+l.x+r.w+"px"),e.className[yt](i)===-1&&(e.className=e.className.replace(Wt,i))},ie=function(t){return t===Bt?Ht:t===Ht?Bt:t===kt?Mt:t===Mt?kt:t},oe=function(t){t=Ut(t);var e=this,n="alert",i=Xt(t,"."+n),a=function(a){var l=a[N];l=l[mt](o)?l:l[wt],l&&l[mt](o)&&(i=Xt(l,"."+n),t=Ut("["+o+'="'+n+'"]',i),(t===l||t===l[wt])&&i&&e.close())},l=function(){Kt.call(i,ut,n),Ft(t,tt,a),i[wt].removeChild(i)};this.close=function(){i&&t&&Rt(i,Et)&&(Kt.call(i,st,n),zt(i,Et),i&&Jt(i,l))},r in t||Yt(t,tt,a),t[r]=this};Vt(r,oe,o);var ae=function(t){t=Ut(t);var e=!1,n="button",i="checked",o="LABEL",a="INPUT",l=function(l){var r=l[N][wt],c=l[N].tagName===o?l[N]:r.tagName===o?r:null;if(c){var s=this,u=qt(s,"btn"),d=c[gt](a)[0];if(d){if("checkbox"===d.type&&(d[i]?(zt(c,Dt),d[pt](i),d.removeAttribute(i),d[i]=!1):(Ot(c,Dt),d[pt](i),d[vt](i,i),d[i]=!0),e||(e=!0,Kt.call(d,ht,n),Kt.call(t,ht,n))),"radio"===d.type&&!e&&!d[i]){Ot(c,Dt),d[vt](i,i),d[i]=!0,Kt.call(d,ht,n),Kt.call(t,ht,n),e=!0;for(var f=0,h=u[xt];f<h;f++){var p=u[f],v=p[gt](a)[0];p!==c&&Rt(p,Dt)&&(zt(p,Dt),v.removeAttribute(i),v[i]=!1,Kt.call(v,ht,n))}}setTimeout(function(){e=!1},50)}}};Rt(t,"btn-group")&&(c in t||Yt(t,tt,l),t[c]=this)};Vt(c,ae,i);var le=function(e,n){e=Ut(e),n=n||{};var i="false"!==e[pt](y)&&(parseInt(e[pt](y))||5e3),o=e[pt](x)===et||!1,a="true"===e[pt](T)||!1,l="carousel",r="paused",c="direction",u="carousel-item",d="data-slide-to";this[M]=n[M]===!0||a,this[P]=!(n[P]!==et&&!o)&&et,n[W]||i?this[W]=parseInt(n[W])||i:this[W]=!1;var f=this,h=e.index=0,p=e.timer=0,v=this.isSliding=!1,m=qt(e,u),g=m[xt],b=this[c]=kt,w=qt(e,l+"-control-prev")[0],C=qt(e,l+"-control-next")[0],A=Ut("."+l+"-indicators",e),I=A[gt]("LI"),L=function(){f[W]===!1||Rt(e,r)||(Ot(e,r),!v&&clearInterval(p))},D=function(){f[W]!==!1&&Rt(e,r)&&(zt(e,r),!v&&clearInterval(p),!v&&f.cycle())},E=function(t){if(t.preventDefault(),!v){var e=t[N],n=f.getActiveIndex();if(!e||Rt(e,Dt)||!e[pt](d))return!1;h=parseInt(e[pt](d),10),n<h||0===n&&h===g-1?b=f[c]=kt:(n>h||n===g-1&&0===h)&&(b=f[c]=Mt),f.slideTo(h)}},S=function(t){if(t.preventDefault(),!v){var e=t.currentTarget||t.srcElement;e===C?(h++,b=f[c]=kt,h===g-1?h=g-1:h===g&&(h=0)):e===w&&(h--,b=f[c]=Mt,0===h?h=0:h<0&&(h=g-1)),f.slideTo(h)}},k=function(t){if(!v){switch(t.which){case 39:h++,b=f[c]=kt,h==g-1?h=g-1:h==g&&(h=0);break;case 37:h--,b=f[c]=Mt,0==h?h=0:h<0&&(h=g-1);break;default:return}f.slideTo(h)}},B=function(t){for(var e=0,n=I[xt];e<n;e++)zt(I[e],Dt);I[t]&&Ot(I[t],Dt)};this.cycle=function(){b=this[c]=kt,p=setInterval(function(){h++,h=h===g?0:h,f.slideTo(h)},this[W])},this.slideTo=function(t){var n=this.getActiveIndex(),i=b===kt?"next":"prev";Kt.call(e,ft,l,m[t]),v=this.isSliding=!0,clearInterval(p),B(t),Pt&&Rt(e,"slide")?(Ot(m[t],u+"-"+i),m[t][F],Ot(m[t],u+"-"+b),Ot(m[n],u+"-"+b),Gt(m[t],$t,function(){v=f.isSliding=!1,Ot(m[t],Dt),zt(m[n],Dt),zt(m[t],u+"-"+i),zt(m[t],u+"-"+b),zt(m[n],u+"-"+b),f[W]&&!Rt(e,r)&&f.cycle(),Kt.call(e,dt,l,m[t])})):(Ot(m[t],Dt),m[t][F],zt(m[n],Dt),setTimeout(function(){v=!1,f[W]&&!Rt(e,r)&&f.cycle(),Kt.call(e,dt,l,m[t])},100))},this.getActiveIndex=function(){return m[yt](qt(e,u+" active")[0])||0},s in e||(this[P]&&this[W]&&(Yt(e,Nt[0],L),Yt(e,Nt[1],D),Yt(e,"touchstart",L),Yt(e,"touchend",D)),C&&Yt(C,tt,S),w&&Yt(w,tt,S),A&&Yt(A,tt,E,!1),this[M]===!0&&Yt(t,nt,k,!1)),this.getActiveIndex()<0&&(m[xt]&&Ot(m[0],Dt),I[xt]&&B(0)),this[W]&&this.cycle(),e[s]=this};Vt(s,le,l);var re=function(t,e){t=Ut(t),e=e||{};var n=null,i=null,o=this,a=!1,l=t[pt]("data-parent"),r="collapse",c="collapsed",s=function(t){Kt.call(t,at,r),a=!0,Ot(t,St),Ot(t,Et),setTimeout(function(){t[Lt][V]=_t(t)+"px"},0),Jt(t,function(){zt(t,St),t[Lt][V]="",a=!1,t[vt](Z,"true"),Kt.call(t,lt,r)})},d=function(t){Kt.call(t,rt,r),a=!0,t[Lt][V]=_t(t)+"px",setTimeout(function(){Ot(t,St),t[Lt][V]="0px"},0),Jt(t,function(){zt(t,St),zt(t,Et),t[Lt][V]="",a=!1,t[vt](Z,"false"),Kt.call(t,ct,r)})},f=function(){var e=t.href&&t[pt]("href"),n=t[pt](b),i=e||n&&/#/.test(n)&&n;return i&&Ut(i)};this.toggle=function(t){t.preventDefault(),a||(Rt(i,Et)?o.hide():o.show())},this.hide=function(){d(i),Ot(t,c)},this.show=function(){if(s(i),zt(t,c),null!==n)for(var e=qt(n,r+" "+Et),o=0,a=e[xt];o<a;o++)e[o]!==i&&d(e[o])},u in t||Yt(t,tt,this.toggle),i=f(),n=Ut(e.parent)||l&&Xt(t,l),t[u]=this};Vt(u,re,i);var ce=function(t,e){t=Ut(t),this.persist=e===!0||"true"===t[pt]("data-persist")||!1;var n=this,o=!1,a=t[wt],l="dropdown",r=null,c=Ut(".dropdown-menu",a),s=[].slice.call(c[gt]("*")),u=function(t){!o||27!=t.which&&27!=t.keyCode||(r=null,p())},f=function(e){var l,u=e[N];if(l=1!==u.nodeType&&(u[pt](i)||u[wt][pt](i)),u===t||u===a||u[wt]===t)e.preventDefault(),r=t,n.toggle();else if(o){if((u===c||s&&s[yt](u)>-1)&&(n.persist||l))return;r=null,p()}(/\#$/.test(u.href)||u[wt]&&/\#$/.test(u[wt].href))&&e.preventDefault()},h=function(){Kt.call(a,at,l,r),Ot(a,Et),c[vt](Z,!0),Kt.call(a,lt,l,r),Yt(document,nt,u),o=!0},p=function(){Kt.call(a,rt,l,r),zt(a,Et),c[vt](Z,!1),Kt.call(a,ct,l,r),Ft(document,nt,u),o=!1};this.toggle=function(){Rt(a,Et)&&o?p():h()},d in t||(c[vt]("tabindex","0"),Yt(document,tt,f)),t[d]=this};Vt(d,ce,i);var se=function(i,a){i=Ut(i);var l=i[pt](b)||i[pt]("href"),r=Ut(l),c=Rt(i,"modal")?i:r,s="modal",u="static",d="paddingLeft",h="paddingRight",p="modal-backdrop";if(Rt(i,"modal")&&(i=null),c){a=a||{},this[M]=a[M]!==!1&&"false"!==c[pt](T),this[k]=a[k]!==u&&c[pt](g)!==u||u,this[k]=a[k]!==!1&&"false"!==c[pt](g)&&this[k],this[H]=a[H];var v,m,y,w,x=this,C=this.open=!1,A=null,I=function(){var n=e[Tt]();return t[J]||n[Mt]-Math.abs(n[kt])},L=function(){var e=n.currentStyle||t.getComputedStyle(n),i=parseInt(e[h],10);v&&(n[Lt][h]=i+y+"px")},D=function(){n[Lt][h]=""},E=function(){var t,e=document.createElement("div");return e.className=s+"-scrollbar-measure",n.appendChild(e),t=e[F]-e[X],n.removeChild(e),t},S=function(){v=n[X]<I(),m=c[Q]>e[Y],y=E()},B=function(){c[Lt][d]=!v&&m?y+"px":"",c[Lt][h]=v&&!m?y+"px":""},W=function(){c[Lt][d]="",c[Lt][h]=""},P=function(){var t=document.createElement("div");w=Ut("."+p),null===w&&(t[vt]("class",p+" fade"),w=t,n.appendChild(w))},$=function(){w=Ut("."+p),w&&null!==w&&"object"==typeof w&&(n.removeChild(w),w=null)},j=function(){Rt(c,Et)?Ft(document,nt,q):Yt(document,nt,q)},O=function(){Rt(c,Et)?Ft(t,it,x.update):Yt(t,it,x.update)},z=function(){Rt(c,Et)?Ft(c,tt,U):Yt(c,tt,U)},R=function(t){var e=t[N];e=e[mt](b)||e[mt]("href")?e:e[wt],C||e!==i||Rt(c,Et)||(c.modalTrigger=i,A=i,x.show(),t.preventDefault())},q=function(t){var e=t.which||t.keyCode;x[M]&&27==e&&C&&x.hide()},U=function(t){var e=t[N];C&&(e[wt][pt](o)===s||e[pt](o)===s||e===c&&x[k]!==u)&&(x.hide(),A=null,t.preventDefault())};this.toggle=function(){C&&Rt(c,Et)?this.hide():this.show()},this.show=function(){Kt.call(c,at,s,A);var t=qt(document,s+" "+Et)[0];t&&t!==c&&t.modalTrigger[f].hide(),this[k]&&P(),w&&!Rt(w,Et)&&setTimeout(function(){Ot(w,Et)},0),setTimeout(function(){c[Lt].display="block",S(),L(),B(),O(),z(),j(),Ot(n,s+"-open"),Ot(c,Et),c[vt](_,!1)},0),Jt(c,function(){C=x.open=!0,jt(c),Kt.call(c,lt,s,A)})},this.hide=function(){Kt.call(c,rt,s),w=Ut("."+p),null!==w&&zt(w,Et),zt(c,Et),c[vt](_,!0),Jt(c,function(){zt(n,s+"-open"),O(),z(),j(),W(),D(),c[Lt].display="",qt(document,s+" "+Et)[0]||$(),C=x.open=!1,i&&jt(i),Kt.call(c,ct,s)})},this.setContent=function(t){Ut("."+s+"-content",c).innerHTML=t},this.update=function(){C&&(S(),L(),B())},!i||f in i||Yt(i,tt,R),this[H]&&this.setContent(this[H]),!!i&&(i[f]=this)}};Vt(f,se,i);var ue=function(e,i){e=Ut(e);var o=e[pt](I),a=e[pt](L),l=e[pt](E),r=e[pt](A),c=e[pt](S),s=e[pt](D),u="popover",d="template",f="trigger",p="class",v="div",m="fade",g="data-title",T="data-content",b="dismissible",y='<button type="button" class="close">×</button>';i=i||{},this[d]=i[d]?i[d]:null,this[f]=i[f]?i[f]:o||et,this[$]=i[$]&&i[$]!==m?i[$]:a||m,this[j]=i[j]?i[j]:l||Bt,this[B]=parseInt(i[B]||c)||200,this[b]=!(!i[b]&&"true"!==r),this[O]=Ut(i[O])||Ut(s)||n;var w=this,x=e[pt](g)||null,C=e[pt](T)||null;if(C||this[d]){var k=null,M=0,H=this[j],W=function(t){null!==k&&t[N]===Ut(".close",k)&&w.hide()},P=function(){w[O].removeChild(k),M=null,k=null},z=function(){if(x=e[pt](g),C=e[pt](T),k=document.createElement(v),null!==C&&null===w[d]){if(k[vt]("role","tooltip"),null!==x){var t=document.createElement("h3");t[vt](p,u+"-title"),t.innerHTML=w[b]?x+y:x,k.appendChild(t)}var n=document.createElement(v);n[vt](p,u+"-content"),n.innerHTML=w[b]&&null===x?C+y:C,k.appendChild(n)}else{var i=document.createElement(v);i.innerHTML=w[d],k.innerHTML=i.firstChild.innerHTML}w[O].appendChild(k),k[Lt].display="block",k[vt](p,u+" "+u+"-"+H+" "+w[$])},R=function(){!Rt(k,Et)&&Ot(k,Et)},q=function(){ne(e,k,H,w[O]),te(k)||(H=ie(H),ne(e,k,H,w[O]))};this.toggle=function(){null===k?w.show():w.hide()},this.show=function(){clearTimeout(M),M=setTimeout(function(){null===k&&(H=w[j],z(),q(),R(),Kt.call(e,at,u),Jt(k,function(){Kt.call(e,lt,u)}))},20)},this.hide=function(){clearTimeout(M),M=setTimeout(function(){k&&null!==k&&Rt(k,Et)&&(Kt.call(e,rt,u),zt(k,Et),Jt(k,function(){P(),Kt.call(e,ct,u)}))},w[B])},h in e||(w[f]===et?(Yt(e,Nt[0],w.show),w[b]||Yt(e,Nt[1],w.hide)):/^(click|focus)$/.test(w[f])&&(Yt(e,w[f],w.toggle),w[b]||Yt(e,"blur",w.hide)),w[b]&&Yt(document,tt,W),Yt(t,it,w.hide)),e[h]=w}};Vt(h,ue,i);var de=function(e,n){e=Ut(e);var i=Ut(e[pt](b));if(n=n||{},n[N]||i){for(var o,a=n[N]&&Ut(n[N])||i,l=a&&a[gt]("A"),r=[],c=[],s=e[G]<e[Q]?e:t,u=s===t,d=0,f=l[xt];d<f;d++){var h=l[d][pt]("href"),v=h&&/#[a-z0-9]+$/i.test(h)&&Ut(h);v&&(r.push(l[d]),c.push(v))}var m=function(t){var n=r[t],i=c[t],a=n[wt][wt],l=Rt(a,"dropdown")&&a[gt]("A")[0],s=u&&i[Tt](),d=Rt(n,Dt)||!1,f=u?s[Bt]+o:i[z]-(c[t-1]?0:10),h=u?s[Ht]+o:c[t+1]?c[t+1][z]:e[Q],p=o>=f&&h>o;if(!d&&p)Rt(n,Dt)||(Ot(n,Dt),d=!0,l&&!Rt(l,Dt)&&Ot(l,Dt),Kt.call(e,"activate","scrollspy",r[t]));else if(p){if(!p&&!d||d&&p)return}else Rt(n,Dt)&&(zt(n,Dt),d=!1,l&&Rt(l,Dt)&&!qt(n[wt],Dt).length&&zt(l,Dt))},g=function(){o=u?ee().y:e[q];for(var t=0,n=r[xt];t<n;t++)m(t)};this.refresh=function(){g()},p in e||(Yt(s,ot,this.refresh),Yt(t,it,this.refresh)),this.refresh(),e[p]=this}};Vt(p,de,a);var fe=function(t,e){t=Ut(t);var n=t[pt](w),i="tab",o="height",a="isAnimating";t[a]=!1,e=e||{},this[o]=e[o]||"true"===n||!1;var l,r,c=this,s=Xt(t,".nav"),u=Ut(".dropdown",s);u=u&&u[gt]("A")[0];var d=function(){var t,e=qt(s,Dt);return 1!==e[xt]||Rt(e[0][wt],"dropdown")?e[xt]>1&&(t=e[e[xt]-1]):t=e[0],t},f=function(){return Ut(d()[pt]("href"))},h=function(t){t.preventDefault(),l=t[N],c.show()};this.show=function(){var e=Ut(l[pt]("href")),n=d(),c=f();n[a]&&l[a]||Rt(l,Dt)||(n[a]=l[a]=!0,zt(n,Dt),Ot(l,Dt),u&&(Rt(t[wt],"dropdown-menu")?Rt(u,Dt)||Ot(u,Dt):Rt(u,Dt)&&zt(u,Dt)),r&&(r[Lt][o]=_t(c)+"px"),Kt.call(n,rt,i,l),setTimeout(function(){zt(c,Et)},0),Jt(c,function(){r&&Ot(r,St),zt(c,Dt),Ot(e,Dt),setTimeout(function(){Ot(e,Et),r&&(r[Lt][o]=_t(e)+"px")},0),Kt.call(l,at,i,n),Kt.call(n,ct,i,l)}),Jt(e,function(){Kt.call(l,lt,i,n),r?setTimeout(function(){Jt(r,function(){r[Lt][o]="",zt(r,St),n[a]=l[a]=!1})},0):n[a]=l[a]=!1}))},v in t||Yt(t,tt,h),this[o]&&(r=f()[wt]),t[v]=this};Vt(v,fe,i);var he=function(t,e){t=Ut(t);var i=t[pt](L);placementData=t[pt](E),delayData=t[pt](S),containerData=t[pt](D),component="tooltip",classString="class",title="title",fade="fade",div="div",e=e||{},this[$]=e[$]&&e[$]!==fade?e[$]:i||fade,this[j]=e[j]?e[j]:placementData||Bt,this[B]=parseInt(e[B]||delayData)||200,this[O]=Ut(e[O])||Ut(containerData)||n;var o=this,a=0,l=this[j],r=null,c=t[pt](title)||t[pt](C);if(c){var s=function(){o[O].removeChild(r),r=null,a=null},u=function(){c=t[pt](title)||t[pt](C),r=document.createElement(div),r[vt]("role",component);var e=document.createElement(div);e[vt](classString,component+"-inner"),r.appendChild(e),e.innerHTML=c,o[O].appendChild(r),r[vt](classString,component+" "+component+"-"+l+" "+o[$])},d=function(){ne(t,r,l,o[O]),te(r)||(l=ie(l),ne(t,r,l,o[O]))},f=function(){!Rt(r,Et)&&Ot(r,Et)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[j],u(),d(),f(),Kt.call(t,at,component),Jt(r,function(){Kt.call(t,lt,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&Rt(r,Et)&&(Kt.call(t,rt,component),zt(r,Et),Jt(r,function(){s(),Kt.call(t,ct,component)}))},o[B])},this.toggle=function(){r?o.hide():o.show()},m in t||(t[vt](C,c),t.removeAttribute(title),Yt(t,Nt[0],this.show),Yt(t,Nt[1],this.hide)),t[m]=this}};return Vt(m,he,i),{Alert:oe,Button:ae,Carousel:le,Collapse:re,Dropdown:ce,Modal:se,Popover:ue,ScrollSpy:de,Tab:fe,Tooltip:he}});
// Native Javascript for Bootstrap 4 v2.0.5 | © dnp_theme | MIT-License
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",l="data-spy",a="data-ride",r="Alert",c="Button",u="Carousel",s="Collapse",f="Dropdown",d="Modal",h="Popover",p="ScrollSpy",m="Tab",v="Tooltip",g="data-backdrop",T="data-keyboard",b="data-target",y="data-interval",w="data-height",x="data-pause",C="data-original-title",A="data-dismissible",I="data-trigger",L="data-animation",D="data-container",E="data-placement",S="data-delay",k="backdrop",M="keyboard",B="delay",H="content",N="target",W="interval",P="pause",$="animation",j="placement",O="container",R="offsetTop",q="offsetLeft",z="scrollTop",U="scrollLeft",X="clientWidth",Y="clientHeight",F="offsetWidth",G="offsetHeight",J="innerWidth",K="innerHeight",Q="scrollHeight",V="height",Z="aria-expanded",_="aria-hidden",tt="click",et="hover",nt="keydown",it="resize",ot="scroll",lt="show",at="shown",rt="hide",ct="hidden",ut="close",st="closed",ft="slid",dt="slide",ht="change",pt="getAttribute",mt="setAttribute",vt="hasAttribute",gt="getElementsByTagName",Tt="getBoundingClientRect",bt="getElementsByClassName",yt="indexOf",wt="parentNode",xt="length",Ct="toLowerCase",At="Transition",It="Webkit",Lt="style",Dt="active",Et="show",St="collapsing",kt="left",Mt="right",Bt="top",Ht="bottom",Nt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Wt=/\b(top|bottom|left|top)+/,Pt=It+At in e[Lt]||At[Ct]()in e[Lt],$t=It+At in e[Lt]?It[Ct]()+At+"End":At[Ct]()+"end",jt=function(t){t.focus?t.focus():t.setActive()},Ot=function(t,e){t.classList.add(e)},Rt=function(t,e){t.classList.remove(e)},qt=function(t,e){return t.classList.contains(e)},zt=function(t,e){return[].slice.call(t[bt](e))},Ut=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Xt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[wt]){if(("."===n||"#"!==n)&&null!==Ut(e,t[wt]))return t;if("#"===n&&t.id===e.substr(1))return t}return!1},Yt=function(t,e,n){t.addEventListener(e,n,!1)},Ft=function(t,e,n){t.removeEventListener(e,n,!1)},Gt=function(t,e,n){Yt(t,e,function i(o){n(o),Ft(t,e,i)})},Jt=function(t,e){Pt?Gt(t,$t,function(t){e(t)}):e()},Kt=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Qt=document[gt]("*"),Vt=function(t,e,n,i){for(var o=i&&i[xt]?i:Qt,l=0;l<o[xt];l++){var a=o[l][pt](n),r=t.replace(/spy/i,"").toLowerCase();(a&&t===c&&a[yt](r)>-1||a===r)&&new e(o[l])}},Zt=/^\#(.)+$/,_t=function(e){var n=e&&t.getComputedStyle(e),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,l=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,a=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[Y]+parseInt(i)+parseInt(o)+parseInt(l)+parseInt(a)},te=function(t){for(var e=0,n=0,i=t.children[xt];n<i;n++)e+=_t(t.children[n]);return e},ee=function(n){var i=n[Tt]();return i[Bt]>=0&&i[kt]>=0&&i[Ht]<=(t[K]||e[Y])&&i[Mt]<=(t[J]||e[X])},ne=function(){return{y:t.pageYOffset||e[z],x:t.pageXOffset||e[U]}},ie=function(t,e,i,o){var l=t[Tt](),a=o===n?ne():{x:o[q]+o[U],y:o[R]+o[z]},r={w:l[Mt]-l[kt],h:l[Ht]-l[Bt]},c={w:e[F],h:e[G]};i===Bt?(e[Lt][Bt]=l[Bt]+a.y-c.h+"px",e[Lt][kt]=l[kt]+a.x-c.w/2+r.w/2+"px"):i===Ht?(e[Lt][Bt]=l[Bt]+a.y+r.h+"px",e[Lt][kt]=l[kt]+a.x-c.w/2+r.w/2+"px"):i===kt?(e[Lt][Bt]=l[Bt]+a.y-c.h/2+r.h/2+"px",e[Lt][kt]=l[kt]+a.x-c.w+"px"):i===Mt&&(e[Lt][Bt]=l[Bt]+a.y-c.h/2+r.h/2+"px",e[Lt][kt]=l[kt]+a.x+r.w+"px"),e.className[yt](i)===-1&&(e.className=e.className.replace(Wt,i))},oe=function(t){return t===Bt?Ht:t===Ht?Bt:t===kt?Mt:t===Mt?kt:t},le=function(t){t=Ut(t);var e=this,n="alert",i=Xt(t,"."+n),l=function(l){var a=l[N];a=a[vt](o)?a:a[wt],a&&a[vt](o)&&(i=Xt(a,"."+n),t=Ut("["+o+'="'+n+'"]',i),(t===a||t===a[wt])&&i&&e.close())},a=function(){Kt.call(i,st,n),Ft(t,tt,l),i[wt].removeChild(i)};this.close=function(){i&&t&&qt(i,Et)&&(Kt.call(i,ut,n),Rt(i,Et),i&&Jt(i,a))},r in t||Yt(t,tt,l),t[r]=this};Vt(r,le,o);var ae=function(t){t=Ut(t);var e=!1,n="button",i="checked",o="LABEL",l="INPUT",a=function(a){var r=a[N][wt],c=a[N].tagName===o?a[N]:r.tagName===o?r:null;if(c){var u=this,s=zt(u,"btn"),f=c[gt](l)[0];if(f){if("checkbox"===f.type&&(f[i]?(Rt(c,Dt),f[pt](i),f.removeAttribute(i),f[i]=!1):(Ot(c,Dt),f[pt](i),f[mt](i,i),f[i]=!0),e||(e=!0,Kt.call(f,ht,n),Kt.call(t,ht,n))),"radio"===f.type&&!e&&!f[i]){Ot(c,Dt),f[mt](i,i),f[i]=!0,Kt.call(f,ht,n),Kt.call(t,ht,n),e=!0;for(var d=0,h=s[xt];d<h;d++){var p=s[d],m=p[gt](l)[0];p!==c&&qt(p,Dt)&&(Rt(p,Dt),m.removeAttribute(i),m[i]=!1,Kt.call(m,ht,n))}}setTimeout(function(){e=!1},50)}}};qt(t,"btn-group")&&(c in t||Yt(t,tt,a),t[c]=this)};Vt(c,ae,i);var re=function(e,n){e=Ut(e),n=n||{};var i="false"!==e[pt](y)&&(parseInt(e[pt](y))||5e3),o=e[pt](x)===et||!1,l="true"===e[pt](T)||!1,a="carousel",r="paused",c="direction",s="carousel-item",f="data-slide-to";this[M]=n[M]===!0||l,this[P]=!(n[P]!==et&&!o)&&et,n[W]||i?this[W]=parseInt(n[W])||i:this[W]=!1;var d=this,h=e.index=0,p=e.timer=0,m=this.isSliding=!1,v=zt(e,s),g=v[xt],b=this[c]=kt,w=zt(e,a+"-control-prev")[0],C=zt(e,a+"-control-next")[0],A=Ut("."+a+"-indicators",e),I=A[gt]("LI"),L=function(){d[W]===!1||qt(e,r)||(Ot(e,r),!m&&clearInterval(p))},D=function(){d[W]!==!1&&qt(e,r)&&(Rt(e,r),!m&&clearInterval(p),!m&&d.cycle())},E=function(t){if(t.preventDefault(),!m){var e=t[N],n=d.getActiveIndex();if(!e||qt(e,Dt)||!e[pt](f))return!1;h=parseInt(e[pt](f),10),n<h||0===n&&h===g-1?b=d[c]=kt:(n>h||n===g-1&&0===h)&&(b=d[c]=Mt),d.slideTo(h)}},S=function(t){if(t.preventDefault(),!m){var e=t.currentTarget||t.srcElement;e===C?(h++,b=d[c]=kt,h===g-1?h=g-1:h===g&&(h=0)):e===w&&(h--,b=d[c]=Mt,0===h?h=0:h<0&&(h=g-1)),d.slideTo(h)}},k=function(t){if(!m){switch(t.which){case 39:h++,b=d[c]=kt,h==g-1?h=g-1:h==g&&(h=0);break;case 37:h--,b=d[c]=Mt,0==h?h=0:h<0&&(h=g-1);break;default:return}d.slideTo(h)}},B=function(t){for(var e=0,n=I[xt];e<n;e++)Rt(I[e],Dt);I[t]&&Ot(I[t],Dt)};this.cycle=function(){b=this[c]=kt,p=setInterval(function(){h++,h=h===g?0:h,d.slideTo(h)},this[W])},this.slideTo=function(t){var n=this.getActiveIndex(),i=b===kt?"next":"prev";Kt.call(e,dt,a,v[t]),m=this.isSliding=!0,clearInterval(p),B(t),Pt&&qt(e,"slide")?(Ot(v[t],s+"-"+i),v[t][F],Ot(v[t],s+"-"+b),Ot(v[n],s+"-"+b),Gt(v[n],$t,function(o){var l=o[N]!==v[n]?1e3*o.elapsedTime:0;setTimeout(function(){m=d.isSliding=!1,Ot(v[t],Dt),Rt(v[n],Dt),Rt(v[t],s+"-"+i),Rt(v[t],s+"-"+b),Rt(v[n],s+"-"+b),Kt.call(e,ft,a,v[t]),document.hidden||!d[W]||qt(e,r)||d.cycle()},l)})):(Ot(v[t],Dt),v[t][F],Rt(v[n],Dt),setTimeout(function(){m=!1,d[W]&&!qt(e,r)&&d.cycle(),Kt.call(e,ft,a,v[t])},100))},this.getActiveIndex=function(){return v[yt](zt(e,s+" active")[0])||0},u in e||(this[P]&&this[W]&&(Yt(e,Nt[0],L),Yt(e,Nt[1],D),Yt(e,"touchstart",L),Yt(e,"touchend",D)),C&&Yt(C,tt,S),w&&Yt(w,tt,S),A&&Yt(A,tt,E,!1),this[M]===!0&&Yt(t,nt,k,!1)),this.getActiveIndex()<0&&(v[xt]&&Ot(v[0],Dt),I[xt]&&B(0)),this[W]&&this.cycle(),e[u]=this};Vt(u,re,a);var ce=function(t,e){t=Ut(t),e=e||{};var n=null,i=null,o=this,l=!1,a=t[pt]("data-parent"),r="collapse",c="collapsed",u=function(t){Kt.call(t,lt,r),l=!0,Ot(t,St),Ot(t,Et),setTimeout(function(){t[Lt][V]=te(t)+"px",function(){Jt(t,function(){l=!1,t[mt](Z,"true"),Rt(t,St),t[Lt][V]="",Kt.call(t,at,r)})}()},20)},f=function(t){Kt.call(t,rt,r),l=!0,t[Lt][V]=te(t)+"px",setTimeout(function(){Ot(t,St),t[Lt][V]="0px",function(){Jt(t,function(){l=!1,t[mt](Z,"false"),Rt(t,St),Rt(t,Et),t[Lt][V]="",Kt.call(t,ct,r)})}()},20)},d=function(){var e=t.href&&t[pt]("href"),n=t[pt](b),i=e||n&&Zt.test(n)&&n;return i&&Ut(i)};this.toggle=function(t){t.preventDefault(),l||(qt(i,Et)?o.hide():o.show())},this.hide=function(){f(i),Ot(t,c)},this.show=function(){if(u(i),Rt(t,c),null!==n)for(var e=zt(n,r+" "+Et),o=0,l=e[xt];o<l;o++)e[o]!==i&&f(e[o])},s in t||Yt(t,tt,this.toggle),i=d(),n=Ut(e.parent)||a&&Xt(t,a),t[s]=this};Vt(s,ce,i);var ue=function(t,e){t=Ut(t),this.persist=e===!0||"true"===t[pt]("data-persist")||!1;var n=this,o=!1,l=t[wt],a="dropdown",r=null,c=Ut(".dropdown-menu",l),u=[].slice.call(c[gt]("*")),s=function(t){!o||27!=t.which&&27!=t.keyCode||(r=null,p())},d=function(e){var a,s=e[N];if(a=1!==s.nodeType&&(s[pt](i)||s[wt][pt](i)),s===t||s===l||s[wt]===t)e.preventDefault(),r=t,n.toggle();else if(o){if((s===c||u&&u[yt](s)>-1)&&(n.persist||a))return;r=null,p()}(/\#$/.test(s.href)||s[wt]&&/\#$/.test(s[wt].href))&&e.preventDefault()},h=function(){Kt.call(l,lt,a,r),Ot(l,Et),c[mt](Z,!0),Kt.call(l,at,a,r),Yt(document,nt,s),o=!0},p=function(){Kt.call(l,rt,a,r),Rt(l,Et),c[mt](Z,!1),Kt.call(l,ct,a,r),Ft(document,nt,s),o=!1};this.toggle=function(){qt(l,Et)&&o?p():h()},f in t||(c[mt]("tabindex","0"),Yt(document,tt,d)),t[f]=this};Vt(f,ue,i);var se=function(i,l){i=Ut(i);var a=i[pt](b)||i[pt]("href"),r=Ut(a),c=qt(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",h="paddingRight",p="modal-backdrop";if(qt(i,"modal")&&(i=null),c){l=l||{},this[M]=l[M]!==!1&&"false"!==c[pt](T),this[k]=l[k]!==s&&c[pt](g)!==s||s,this[k]=l[k]!==!1&&"false"!==c[pt](g)&&this[k],this[H]=l[H];var m,v,y,w,x=this,C=this.open=!1,A=null,I=function(){var n=e[Tt]();return t[J]||n[Mt]-Math.abs(n[kt])},L=function(){var e=n.currentStyle||t.getComputedStyle(n),i=parseInt(e[h],10);m&&(n[Lt][h]=i+y+"px")},D=function(){n[Lt][h]=""},E=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[F]-e[X],n.removeChild(e),t},S=function(){m=n[X]<I(),v=c[Q]>e[Y],y=E()},B=function(){c[Lt][f]=!m&&v?y+"px":"",c[Lt][h]=m&&!v?y+"px":""},W=function(){c[Lt][f]="",c[Lt][h]=""},P=function(){var t=document.createElement("div");w=Ut("."+p),null===w&&(t[mt]("class",p+" fade"),w=t,n.appendChild(w))},$=function(){w=Ut("."+p),w&&null!==w&&"object"==typeof w&&(n.removeChild(w),w=null)},j=function(){qt(c,Et)?Ft(document,nt,z):Yt(document,nt,z)},O=function(){qt(c,Et)?Ft(t,it,x.update):Yt(t,it,x.update)},R=function(){qt(c,Et)?Ft(c,tt,U):Yt(c,tt,U)},q=function(t){var e=t[N];e=e[vt](b)||e[vt]("href")?e:e[wt],C||e!==i||qt(c,Et)||(c.modalTrigger=i,A=i,x.show(),t.preventDefault())},z=function(t){var e=t.which||t.keyCode;x[M]&&27==e&&C&&x.hide()},U=function(t){var e=t[N];C&&(e[wt][pt](o)===u||e[pt](o)===u||e===c&&x[k]!==s)&&(x.hide(),A=null,t.preventDefault())};this.toggle=function(){C&&qt(c,Et)?this.hide():this.show()},this.show=function(){Kt.call(c,lt,u,A);var t=zt(document,u+" "+Et)[0];t&&t!==c&&t.modalTrigger[d].hide(),this[k]&&P(),w&&!qt(w,Et)&&setTimeout(function(){Ot(w,Et)},0),setTimeout(function(){c[Lt].display="block",S(),L(),B(),O(),R(),j(),Ot(n,u+"-open"),Ot(c,Et),c[mt](_,!1)},0),Jt(c,function(){C=x.open=!0,jt(c),Kt.call(c,at,u,A)})},this.hide=function(){Kt.call(c,rt,u),w=Ut("."+p),null!==w&&Rt(w,Et),Rt(c,Et),c[mt](_,!0),Jt(c,function(){Rt(n,u+"-open"),O(),R(),j(),W(),D(),c[Lt].display="",zt(document,u+" "+Et)[0]||$(),C=x.open=!1,i&&jt(i),Kt.call(c,ct,u)})},this.setContent=function(t){Ut("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(S(),L(),B())},!i||d in i||Yt(i,tt,q),this[H]&&this.setContent(this[H]),!!i&&(i[d]=this)}};Vt(d,se,i);var fe=function(e,i){e=Ut(e);var o=e[pt](I),l=e[pt](L),a=e[pt](E),r=e[pt](A),c=e[pt](S),u=e[pt](D),s="popover",f="template",d="trigger",p="class",m="div",v="fade",g="data-title",T="data-content",b="dismissible",y='<button type="button" class="close">×</button>';i=i||{},this[f]=i[f]?i[f]:null,this[d]=i[d]?i[d]:o||et,this[$]=i[$]&&i[$]!==v?i[$]:l||v,this[j]=i[j]?i[j]:a||Bt,this[B]=parseInt(i[B]||c)||200,this[b]=!(!i[b]&&"true"!==r),this[O]=Ut(i[O])||Ut(u)||n;var w=this,x=e[pt](g)||null,C=e[pt](T)||null;if(C||this[f]){var k=null,M=0,H=this[j],W=function(t){null!==k&&t[N]===Ut(".close",k)&&w.hide()},P=function(){w[O].removeChild(k),M=null,k=null},R=function(){if(x=e[pt](g),C=e[pt](T),k=document.createElement(m),null!==C&&null===w[f]){if(k[mt]("role","tooltip"),null!==x){var t=document.createElement("h3");t[mt](p,s+"-title"),t.innerHTML=w[b]?x+y:x,k.appendChild(t)}var n=document.createElement(m);n[mt](p,s+"-content"),n.innerHTML=w[b]&&null===x?C+y:C,k.appendChild(n)}else{var i=document.createElement(m);i.innerHTML=w[f],k.innerHTML=i.firstChild.innerHTML}w[O].appendChild(k),k[Lt].display="block",k[mt](p,s+" "+s+"-"+H+" "+w[$])},q=function(){!qt(k,Et)&&Ot(k,Et)},z=function(){ie(e,k,H,w[O]),ee(k)||(H=oe(H),ie(e,k,H,w[O]))};this.toggle=function(){null===k?w.show():w.hide()},this.show=function(){clearTimeout(M),M=setTimeout(function(){null===k&&(H=w[j],R(),z(),q(),Kt.call(e,lt,s),Jt(k,function(){Kt.call(e,at,s)}))},20)},this.hide=function(){clearTimeout(M),M=setTimeout(function(){k&&null!==k&&qt(k,Et)&&(Kt.call(e,rt,s),Rt(k,Et),Jt(k,function(){P(),Kt.call(e,ct,s)}))},w[B])},h in e||(w[d]===et?(Yt(e,Nt[0],w.show),w[b]||Yt(e,Nt[1],w.hide)):/^(click|focus)$/.test(w[d])&&(Yt(e,w[d],w.toggle),w[b]||Yt(e,"blur",w.hide)),w[b]&&Yt(document,tt,W),Yt(t,it,w.hide)),e[h]=w}};Vt(h,fe,i);var de=function(e,n){e=Ut(e);var i=Ut(e[pt](b));if(n=n||{},n[N]||i){for(var o,l=n[N]&&Ut(n[N])||i,a=l&&l[gt]("A"),r=[],c=[],u=e[G]<e[Q]?e:t,s=u===t,f=0,d=a[xt];f<d;f++){var h=a[f][pt]("href"),m=h&&Zt.test(h)&&Ut(h);m&&(r.push(a[f]),c.push(m))}var v=function(t){var n=r[t],i=c[t],l=n[wt][wt],a=qt(l,"dropdown")&&l[gt]("A")[0],u=s&&i[Tt](),f=qt(n,Dt)||!1,d=s?u[Bt]+o:i[R]-(c[t-1]?0:10),h=s?u[Ht]+o:c[t+1]?c[t+1][R]:e[Q],p=o>=d&&h>o;if(!f&&p)qt(n,Dt)||(Ot(n,Dt),f=!0,a&&!qt(a,Dt)&&Ot(a,Dt),Kt.call(e,"activate","scrollspy",r[t]));else if(p){if(!p&&!f||f&&p)return}else qt(n,Dt)&&(Rt(n,Dt),f=!1,a&&qt(a,Dt)&&!zt(n[wt],Dt).length&&Rt(a,Dt))},g=function(){o=s?ne().y:e[z];for(var t=0,n=r[xt];t<n;t++)v(t)};this.refresh=function(){g()},p in e||(Yt(u,ot,this.refresh),Yt(t,it,this.refresh)),this.refresh(),e[p]=this}};Vt(p,de,l);var he=function(t,e){t=Ut(t);var n=t[pt](w),o="tab",l="height",a="isAnimating";t[a]=!1,e=e||{},this[l]=!!Pt&&(e[l]||"true"===n);var r,c,u=this,s=Xt(t,".nav"),f=Ut(".dropdown-toggle",s),d=function(){var t,e=zt(s,Dt);return 1!==e[xt]||qt(e[0][wt],"dropdown")?e[xt]>1&&(t=e[e[xt]-1]):t=e[0],t},h=function(){return Ut(d()[pt]("href"))},p=function(t){t.preventDefault(),r=t[N][pt](i)===o||Zt.test(t[N][pt]("href"))?t[N]:t[N][wt],u.show()};this.show=function(){var e=Ut(r[pt]("href")),n=d(),i=h();n[a]&&r[a]||qt(r,Dt)||(n[a]=r[a]=!0,Rt(n,Dt),Ot(r,Dt),f&&(qt(t[wt],"dropdown-menu")?qt(f,Dt)||Ot(f,Dt):qt(f,Dt)&&Rt(f,Dt)),c&&(c[Lt][l]=te(i)+"px"),function(){Rt(i,Et),Kt.call(n,rt,o,r),function(){Jt(i,function(){Rt(i,Dt),Ot(e,Dt),setTimeout(function(){Ot(e,Et),e[G],c&&Ot(c,St),function(){Kt.call(r,lt,o,n),function(){c&&(c[Lt][l]=te(e)+"px"),Kt.call(n,ct,o,r)}()}()},20)})}()}(),function(){Jt(e,function(){Kt.call(r,at,o,n),c?!function(){Jt(c,function(){setTimeout(function(){c[Lt][l]="",Rt(c,St),n[a]=r[a]=!1},200)})}():n[a]=r[a]=!1})}())},m in t||Yt(t,tt,p),this[l]&&(c=h()[wt]),t[m]=this};Vt(m,he,i);var pe=function(t,e){t=Ut(t);var i=t[pt](L);placementData=t[pt](E),delayData=t[pt](S),containerData=t[pt](D),component="tooltip",classString="class",title="title",fade="fade",div="div",e=e||{},this[$]=e[$]&&e[$]!==fade?e[$]:i||fade,this[j]=e[j]?e[j]:placementData||Bt,this[B]=parseInt(e[B]||delayData)||200,this[O]=Ut(e[O])||Ut(containerData)||n;var o=this,l=0,a=this[j],r=null,c=t[pt](title)||t[pt](C);if(c){var u=function(){o[O].removeChild(r),r=null,l=null},s=function(){c=t[pt](title)||t[pt](C),r=document.createElement(div),r[mt]("role",component);var e=document.createElement(div);e[mt](classString,component+"-inner"),r.appendChild(e),e.innerHTML=c,o[O].appendChild(r),r[mt](classString,component+" "+component+"-"+a+" "+o[$])},f=function(){ie(t,r,a,o[O]),ee(r)||(a=oe(a),ie(t,r,a,o[O]))},d=function(){!qt(r,Et)&&Ot(r,Et)};this.show=function(){clearTimeout(l),l=setTimeout(function(){null===r&&(a=o[j],s(),f(),d(),Kt.call(t,lt,component),Jt(r,function(){Kt.call(t,at,component)}))},20)},this.hide=function(){clearTimeout(l),l=setTimeout(function(){r&&null!==r&&qt(r,Et)&&(Kt.call(t,rt,component),Rt(r,Et),Jt(r,function(){u(),Kt.call(t,ct,component)}))},o[B])},this.toggle=function(){r?o.hide():o.show()},v in t||(t[mt](C,c),t.removeAttribute(title),Yt(t,Nt[0],this.show),Yt(t,Nt[1],this.hide)),t[v]=this}};return Vt(v,pe,i),{Alert:le,Button:ae,Carousel:re,Collapse:ce,Dropdown:ue,Modal:se,Popover:fe,ScrollSpy:de,Tab:he,Tooltip:pe}});

@@ -1,2 +0,2 @@

// Native Javascript for Bootstrap 3 v2.0.4 | © dnp_theme | MIT-License
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Affix=n.Affix,t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i=null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&parseFloat(RegExp.$1),o="data-toggle",a="data-dismiss",l="data-spy",r="data-ride",c="Affix",u="Alert",s="Button",f="Carousel",d="Collapse",h="Dropdown",p="Modal",m="Popover",v="ScrollSpy",g="Tab",x="Tooltip",T="data-backdrop",b="data-keyboard",y="data-target",w="data-interval",C="data-height",I="data-pause",A="data-original-title",L="data-original-text",E="data-dismissible",M="data-trigger",S="data-animation",D="data-container",k="data-placement",H="data-delay",B="data-offset-top",N="data-offset-bottom",W="backdrop",$="keyboard",P="delay",R="duration",j="content",z="target",O="interval",q="pause",F="animation",U="placement",X="container",Y="offsetTop",G="offsetBottom",J="offsetLeft",K="scrollTop",Q="scrollLeft",V="clientWidth",Z="clientHeight",_="offsetWidth",tt="offsetHeight",et="innerWidth",nt="innerHeight",it="scrollHeight",ot="height",at="aria-expanded",lt="aria-hidden",rt="click",ct="hover",ut="keydown",st="resize",ft="scroll",dt="show",ht="shown",pt="hide",mt="hidden",vt="close",gt="closed",xt="slid",Tt="slide",bt="change",yt="getAttribute",wt="setAttribute",Ct="hasAttribute",It="getElementsByTagName",At="getBoundingClientRect",Lt="querySelectorAll",Et="getElementsByClassName",Mt="indexOf",St="parentNode",Dt="length",kt="toLowerCase",Ht="Transition",Bt="Webkit",Nt="style",Wt="active",$t="in",Pt="collapsing",Rt="disabled",jt="loading",zt="left",Ot="right",qt="top",Ft="bottom",Ut="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Xt=/\b(top|bottom|left|top)+/,Yt=Bt+Ht in e[Nt]||Ht[kt]()in e[Nt],Gt=Bt+Ht in e[Nt]?Bt[kt]()+Ht+"End":Ht[kt]()+"end",Jt=function(t){t.focus?t.focus():t.setActive()},Kt=function(t,e){t.classList.add(e)},Qt=function(t,e){t.classList.remove(e)},Vt=function(t,e){return t.classList.contains(e)},Zt=function(t){for(var e=[],n=0,i=t[Dt];n<i;n++)e.push(t[n]);return e},_t=function(t,e){var n=8===i?Lt:Et;return Zt(t[n](8===i?"."+e.replace(/\s(?=[a-z])/g,"."):e))},te=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},ee=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[St]){if(("."===n||"#"!==n)&&null!==te(e,t[St]))return t;if("#"===n&&t.id===e.substr(1))return t}return!1},ne=function(t,e,n){t.addEventListener(e,n,!1)},ie=function(t,e,n){t.removeEventListener(e,n,!1)},oe=function(t,e,n){ne(t,e,function i(){n(),ie(t,e,i)})},ae=function(t,e){Yt?oe(t,Gt,e):e()},le=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},re=document[It]("*"),ce=function(t,e,n,i){for(var o=i&&i[Dt]?i:re,a=0;a<o[Dt];a++){var l=o[a][yt](n),r=t.replace(/spy/i,"")[kt]();(l&&t===s&&l[Mt](r)>-1||l===r)&&new e(o[a])}},ue=function(e){var n=e&&(e.currentStyle||t.getComputedStyle(e)),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[Z]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},se=function(t){for(var e=0,n=0,i=t.children[Dt];n<i;n++)e+=ue(t.children[n]);return e},fe=function(n){var i=n[At]();return i[qt]>=0&&i[zt]>=0&&i[Ft]<=(t[nt]||e[Z])&&i[Ot]<=(t[et]||e[V])},de=function(){return{y:t.pageYOffset||e[K],x:t.pageXOffset||e[Q]}},he=function(t,e,i,o){var a=t[At](),l=o===n?de():{x:o[J]+o[Q],y:o[Y]+o[K]},r={w:a[Ot]-a[zt],h:a[Ft]-a[qt]},c={w:e[_],h:e[tt]};i===qt?(e[Nt][qt]=a[qt]+l.y-c.h+"px",e[Nt][zt]=a[zt]+l.x-c.w/2+r.w/2+"px"):i===Ft?(e[Nt][qt]=a[qt]+l.y+r.h+"px",e[Nt][zt]=a[zt]+l.x-c.w/2+r.w/2+"px"):i===zt?(e[Nt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Nt][zt]=a[zt]+l.x-c.w+"px"):i===Ot&&(e[Nt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Nt][zt]=a[zt]+l.x+r.w+"px"),e.className[Mt](i)===-1&&(e.className=e.className.replace(Xt,i))},pe=function(t){return t===qt?Ft:t===Ft?qt:t===zt?Ot:t===Ot?zt:t},me=function(o,a){o=te(o),a=a||{};var l=o[yt](y),r=o[yt](B),u=o[yt](N),s="affix",f="affixed",d="function",h="update",p="affix-top",m="affixed-top",v="affix-bottom",g="affixed-bottom";if(this[z]=a[z]?te(a[z]):te(l)||null,this[Y]=a[Y]?a[Y]:parseInt(r)||0,this[G]=a[G]?a[G]:parseInt(u)||0,this[z]||this[Y]||this[G]){var x,T,b,w,C,I,A=this,L=i&&i<10?500:50,E=!1,M=!1,S=function(){return Math.max(n[it],n[tt],e[Z],e[it],e[tt])},D=function(){return null!==A[z]?A[z][At]()[qt]+w:A[Y]?parseInt(typeof A[Y]===d?A[Y]():A[Y]||0):void 0},k=function(){if(A[G])return b-o[tt]-parseInt(typeof A[G]===d?A[G]():A[G]||0)},H=function(){b=S(),w=parseInt(de().y,0),x=D(),T=k(),C=parseInt(x)-w<0&&w>parseInt(x),I=parseInt(T)-w<0&&w>parseInt(T)},W=function(){E||Vt(o,s)||(le.call(o,s,s),le.call(o,p,s),Kt(o,s),E=!0,le.call(o,f,s),le.call(o,m,s))},$=function(){E&&Vt(o,s)&&(Qt(o,s),E=!1)},P=function(){M||Vt(o,v)||(le.call(o,s,s),le.call(o,v,s),Kt(o,v),M=!0,le.call(o,f,s),le.call(o,g,s))},R=function(){M&&Vt(o,v)&&(Qt(o,v),M=!1)},j=function(){I?(C&&$(),P()):(R(),C?W():$())};this[h]=function(){H(),j()},c in o||(ne(t,ft,this[h]),ne(t,st,function(){setTimeout(function(){A[h]()},L)})),o[c]=this,this[h]()}};ce(c,me,l);var ve=function(t){t=te(t);var e=this,n="alert",i=ee(t,"."+n),o=function(o){var l=o[z];l=l[Ct](a)?l:l[St],l&&l[Ct](a)&&(i=ee(l,"."+n),t=te("["+a+'="'+n+'"]',i),(t===l||t===l[St])&&i&&e.close())},l=function(){le.call(i,gt,n),ie(t,rt,o),i[St].removeChild(i)};this.close=function(){i&&t&&Vt(i,$t)&&(le.call(i,vt,n),Qt(i,$t),setTimeout(function(){i&&ae(i,l)},R))},u in t||ne(t,rt,o),t[u]=this};ce(u,ve,a);var ge=function(t,e){t=te(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",c=function(){e&&e!==a&&(e===jt&&(Kt(t,Rt),t[wt](Rt,Rt)),t[wt](L,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[yt]("data-"+e+"-text"))},u=function(){t[yt](L)&&((Vt(t,Rt)||t[yt](Rt)===Rt)&&(Qt(t,Rt),t.removeAttribute(Rt)),t.innerHTML=t[yt](L))},f=function(e){var a=e[z][St],c=e[z].tagName===l?e[z]:a.tagName===l?a:null;if(c){var u=this,s=_t(u,"btn"),f=c[It](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Qt(c,Wt),f[yt](o),f.removeAttribute(o),f[o]=!1):(Kt(c,Wt),f[yt](o),f[wt](o,o),f[o]=!0),n||(n=!0,le.call(f,bt,i),le.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){Kt(c,Wt),f[wt](o,o),f[o]=!0,le.call(f,bt,i),le.call(t,bt,i),n=!0;for(var d=0,h=s[Dt];d<h;d++){var p=s[d],m=p[It](r)[0];p!==c&&Vt(p,Wt)&&(Qt(p,Wt),m.removeAttribute(o),m[o]=!1,le.call(m,bt,i))}}setTimeout(function(){n=!1},50)}}};Vt(t,"btn")&&null!==e&&(e!==a?c():u()),Vt(t,"btn-group")&&(s in t||ne(t,rt,f),t[s]=this)};ce(s,ge,o);var xe=function(e,n){e=te(e),n=n||{};var i="false"!==e[yt](w)&&(parseInt(e[yt](w))||5e3),o=e[yt](I)===ct||!1,a="true"===e[yt](b)||!1,l="carousel",r="paused",c="direction",u="data-slide-to";this[$]=n[$]===!0||a,this[q]=!(n[q]!==ct&&!o)&&ct,n[O]||i?this[O]=parseInt(n[O])||i:this[O]=!1;var s=this,d=e.index=0,h=e.timer=0,p=!1,m=_t(e,"item"),v=m[Dt],g=this[c]=zt,x=_t(e,l+"-control"),T=x[0],y=x[1],C=te("."+l+"-indicators",e),A=C[It]("LI"),L=function(){s[O]===!1||Vt(e,r)||(Kt(e,r),!p&&clearInterval(h))},E=function(){s[O]!==!1&&Vt(e,r)&&(Qt(e,r),!p&&clearInterval(h),!p&&s.cycle())},M=function(t){if(t.preventDefault(),!p){var e=t[z],n=s.getActiveIndex();if(!e||Vt(e,Wt)||!e[yt](u))return!1;d=parseInt(e[yt](u),10),n<d||0===n&&d===v-1?g=s[c]=zt:(n>d||n===v-1&&0===d)&&(g=s[c]=Ot),s.slideTo(d)}},S=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===y?(d++,g=s[c]=zt,d===v-1?d=v-1:d===v&&(d=0)):e===T&&(d--,g=s[c]=Ot,0===d?d=0:d<0&&(d=v-1)),s.slideTo(d)}},D=function(t){if(!p){switch(t.which){case 39:d++,g=s[c]=zt,d==v-1?d=v-1:d==v&&(d=0);break;case 37:d--,g=s[c]=Ot,0==d?d=0:d<0&&(d=v-1);break;default:return}s.slideTo(d)}},k=function(t){for(var e=0,n=A[Dt];e<n;e++)Qt(A[e],Wt);A[t]&&Kt(A[t],Wt)};this.cycle=function(){g=this[c]=zt,h=setInterval(function(){d++,d=d===v?0:d,s.slideTo(d)},this[O])},this.slideTo=function(t){var n=this.getActiveIndex(),i=g===zt?"next":"prev";le.call(e,Tt,l,m[t]),p=this.isSliding=!0,clearInterval(h),k(t),Yt&&Vt(e,"slide")?(Kt(m[t],i),m[t][_],Kt(m[t],g),Kt(m[n],g),oe(m[t],Gt,function(){p=s.isSliding=!1,Kt(m[t],Wt),Qt(m[n],Wt),Qt(m[t],i),Qt(m[t],g),Qt(m[n],g),s[O]&&!Vt(e,r)&&s.cycle(),le.call(e,xt,l,m[t])})):(Kt(m[t],Wt),m[t][_],Qt(m[n],Wt),setTimeout(function(){p=!1,s[O]&&!Vt(e,r)&&s.cycle(),le.call(e,xt,l,m[t])},100))},this.getActiveIndex=function(){return m[Mt](_t(e,"item active")[0])||0},f in e||(this[q]&&this[O]&&(ne(e,Ut[0],L),ne(e,Ut[1],E),ne(e,"touchstart",L),ne(e,"touchend",E)),y&&ne(y,rt,S),T&&ne(T,rt,S),C&&ne(C,rt,M,!1),this[$]===!0&&ne(t,ut,D,!1)),this.getActiveIndex()<0&&(m[Dt]&&Kt(m[0],Wt),A[Dt]&&k(0)),this[O]&&this.cycle(),e[f]=this};ce(f,xe,r);var Te=function(t,e){t=te(t),e=e||{};var n=null,i=null,o=this,a=!1,l=t[yt]("data-parent"),r="collapse",c="collapsed",u=function(t){le.call(t,dt,r),a=!0,Kt(t,Pt),Kt(t,$t),setTimeout(function(){t[Nt][ot]=se(t)+"px"},0),ae(t,function(){Qt(t,Pt),t[Nt][ot]="",a=!1,t[wt](at,"true"),le.call(t,ht,r)})},s=function(t){le.call(t,pt,r),a=!0,t[Nt][ot]=se(t)+"px",setTimeout(function(){Kt(t,Pt),t[Nt][ot]="0px"},0),ae(t,function(){Qt(t,Pt),Qt(t,$t),t[Nt][ot]="",a=!1,t[wt](at,"false"),le.call(t,mt,r)})},f=function(){var e=t.href&&t[yt]("href"),n=t[yt](y),i=e||n&&/#/.test(n)&&n;return i&&te(i)};this.toggle=function(t){t.preventDefault(),a||(Vt(i,$t)?o.hide():o.show())},this.hide=function(){s(i),Kt(t,c)},this.show=function(){if(u(i),Qt(t,c),null!==n)for(var e=_t(n,r+" "+$t),o=0,a=e[Dt];o<a;o++)e[o]!==i&&s(e[o])},d in t||ne(t,rt,this.toggle),i=f(),n=te(e.parent)||l&&ee(t,l),t[d]=this};ce(d,Te,o);var be=function(t,e){t=te(t),this.persist=e===!0||"true"===t[yt]("data-persist")||!1;var n=this,i=!1,a=t[St],l="dropdown",r="open",c=null,u=te(".dropdown-menu",a),s=Zt(u[It]("*")),f=function(t){!i||27!=t.which&&27!=t.keyCode||(c=null,m())},d=function(e){var l,r=e[z];if(l=1!==r.nodeType&&(r[yt](o)||r[St][yt](o)),r===t||r===a||r[St]===t)e.preventDefault(),c=t,n.toggle();else if(i){if((r===u||s&&s[Mt](r)>-1)&&(n.persist||l))return;c=null,m()}(/\#$/.test(r.href)||r[St]&&/\#$/.test(r[St].href))&&e.preventDefault()},p=function(){le.call(a,dt,l,c),Kt(a,r),u[wt](at,!0),le.call(a,ht,l,c),ne(document,ut,f),i=!0},m=function(){le.call(a,pt,l,c),Qt(a,r),u[wt](at,!1),le.call(a,mt,l,c),ie(document,ut,f),i=!1};this.toggle=function(){Vt(a,r)&&i?m():p()},h in t||(u[wt]("tabindex","0"),ne(document,rt,d)),t[h]=this};ce(h,be,o);var ye=function(i,o){i=te(i);var l=i[yt](y)||i[yt]("href"),r=te(l),c=Vt(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",d="paddingRight",h="modal-backdrop";if(Vt(i,"modal")&&(i=null),c){o=o||{},this[$]=o[$]!==!1&&"false"!==c[yt](b),this[W]=o[W]!==s&&c[yt](T)!==s||s,this[W]=o[W]!==!1&&"false"!==c[yt](T)&&this[W],this[j]=o[j];var m,v,g,x,w=this,C=this.open=!1,I=null,A=function(){var n=e[At]();return t[et]||n[Ot]-Math.abs(n[zt])},L=function(){var e=n.currentStyle||t.getComputedStyle(n),i=parseInt(e[d],10);m&&(n[Nt][d]=i+g+"px")},E=function(){n[Nt][d]=""},M=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[_]-e[V],n.removeChild(e),t},S=function(){m=n[V]<A(),v=c[it]>e[Z],g=M()},D=function(){c[Nt][f]=!m&&v?g+"px":"",c[Nt][d]=m&&!v?g+"px":""},k=function(){c[Nt][f]="",c[Nt][d]=""},H=function(){var t=document.createElement("div");x=te("."+h),null===x&&(t[wt]("class",h+" fade"),x=t,n.appendChild(x))},B=function(){x=te("."+h),x&&null!==x&&"object"==typeof x&&(n.removeChild(x),x=null)},N=function(){Vt(c,$t)?ie(document,ut,q):ne(document,ut,q)},P=function(){Vt(c,$t)?ie(t,st,w.update):ne(t,st,w.update)},R=function(){Vt(c,$t)?ie(c,rt,F):ne(c,rt,F)},O=function(t){var e=t[z];e=e[Ct](y)||e[Ct]("href")?e:e[St],C||e!==i||Vt(c,$t)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},q=function(t){var e=t.which||t.keyCode;w[$]&&27==e&&C&&w.hide()},F=function(t){var e=t[z];C&&(e[St][yt](a)===u||e[yt](a)===u||e===c&&w[W]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&Vt(c,$t)?this.hide():this.show()},this.show=function(){le.call(c,dt,u,I);var t=_t(document,u+" in")[0];t&&t!==c&&t.modalTrigger[p].hide(),this[W]&&H(),x&&!Vt(x,$t)&&setTimeout(function(){Kt(x,$t)},0),setTimeout(function(){c[Nt].display="block",S(),L(),D(),P(),R(),N(),Kt(n,u+"-open"),Kt(c,$t),c[wt](lt,!1)},0),ae(c,function(){C=w.open=!0,Jt(c),le.call(c,ht,u,I)})},this.hide=function(){le.call(c,pt,u),x=te("."+h),null!==x&&Qt(x,$t),Qt(c,$t),c[wt](lt,!0),ae(c,function(){Qt(n,u+"-open"),P(),R(),N(),k(),E(),c[Nt].display="",_t(document,u+" "+$t)[0]||B(),C=w.open=!1,i&&Jt(i),le.call(c,mt,u)})},this.setContent=function(t){te("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(S(),L(),D())},!i||p in i||ne(i,rt,O),this[j]&&this.setContent(this[j]),!!i&&(i[p]=this)}};ce(p,ye,o);var we=function(e,o){e=te(e);var a=e[yt](M),l=e[yt](S),r=e[yt](k),c=e[yt](E),u=e[yt](H),s=e[yt](D),f="popover",d="template",h="trigger",p="class",v="div",g="fade",x="data-title",T="data-content",b="dismissible",y='<button type="button" class="close">×</button>';o=o||{},this[d]=o[d]?o[d]:null,this[h]=o[h]?o[h]:a||ct,this[F]=o[F]&&o[F]!==g?o[F]:l||g,this[U]=o[U]?o[U]:r||qt,this[P]=parseInt(o[P]||u)||200,this[b]=!(!o[b]&&"true"!==c),this[X]=te(o[X])||te(s)||n;var w=this,C=e[yt](x)||null,I=e[yt](T)||null;if(I||this[d]){var A=null,L=0,B=this[U],N=function(t){null!==A&&t[z]===te(".close",A)&&w.hide()},W=function(){w[X].removeChild(A),L=null,A=null},$=function(){if(C=e[yt](x),I=e[yt](T),A=document.createElement(v),null!==I&&null===w[d]){if(A[wt]("role","tooltip"),null!==C){var t=document.createElement("h3");t[wt](p,f+"-title"),t.innerHTML=w[b]?C+y:C,A.appendChild(t)}var n=document.createElement(v),i=document.createElement(v);n[wt](p,"arrow"),i[wt](p,f+"-content"),A.appendChild(n),A.appendChild(i),i.innerHTML=w[b]&&null===C?I+y:I}else{var o=document.createElement(v);o.innerHTML=w[d],A.innerHTML=o.firstChild.innerHTML}w[X].appendChild(A),A[Nt].display="block",A[wt](p,f+" "+B+" "+w[F])},R=function(){!Vt(A,$t)&&Kt(A,$t)},j=function(){he(e,A,B,w[X]),fe(A)||(B=pe(B),he(e,A,B,w[X]))};this.toggle=function(){null===A?w.show():w.hide()},this.show=function(){clearTimeout(L),L=setTimeout(function(){null===A&&(B=w[U],$(),j(),R(),le.call(e,dt,f),ae(A,function(){le.call(e,ht,f)}))},20)},this.hide=function(){clearTimeout(L),L=setTimeout(function(){A&&null!==A&&Vt(A,$t)&&(le.call(e,pt,f),Qt(A,$t),ae(A,function(){W(),le.call(e,mt,f)}))},w[P])},m in e||(w[h]===ct?(ne(e,Ut[0],w.show),w[b]||ne(e,Ut[1],w.hide)):/^(click|focus)$/.test(w[h])&&(ne(e,w[h],w.toggle),w[b]||ne(e,"blur",w.hide)),w[b]&&ne(document,rt,N),i&&i<9||ne(t,st,w.hide)),e[m]=w}};ce(m,we,o);var Ce=function(e,n){e=te(e);var o=te(e[yt](y));if(n=n||{},n[z]||o){for(var a,l=n[z]&&te(n[z])||o,r=l&&l[It]("A"),c=[],u=[],s=e[tt]<e[it]?e:t,f=s===t,d=0,h=r[Dt];d<h;d++){var p=r[d][yt]("href"),m=p&&/#[a-z0-9]+$/i.test(p)&&te(p);m&&(c.push(r[d]),u.push(m))}var g=function(t){var n=c[t][St],i=u[t],o=ee(n,".dropdown"),l=f&&i[At](),r=Vt(n,Wt)||!1,s=f?l[qt]+a:i[Y]-(u[t-1]?0:10),d=f?l[Ft]+a:u[t+1]?u[t+1][Y]:e[it],h=a>=s&&d>a;if(!r&&h)"LI"!==n.tagName||Vt(n,Wt)||(Kt(n,Wt),r=!0,o&&!Vt(o,Wt)&&Kt(o,Wt),le.call(e,"activate","scrollspy",c[t]));else if(h){if(!h&&!r||r&&h)return}else"LI"===n.tagName&&Vt(n,Wt)&&(Qt(n,Wt),r=!1,o&&Vt(o,Wt)&&!_t(n[St],Wt).length&&Qt(o,Wt))},x=function(){a=f?de().y:e[K];for(var t=0,n=c[Dt];t<n;t++)g(t)};this.refresh=function(){x()},v in e||(ne(s,ft,this.refresh),i&&i<9||ne(t,st,this.refresh)),this.refresh(),e[v]=this}};ce(v,Ce,l);var Ie=function(t,e){t=te(t);var n=t[yt](C),i="tab",o="height",a="isAnimating";t[a]=!1,e=e||{},this[o]=!!Yt&&(e[o]||"true"===n);var l,r,c=this,u=ee(t,".nav"),s=te(".dropdown",u),f=function(){var t,e=_t(u,Wt);return 1!==e[Dt]||Vt(e[0],"dropdown")?e[Dt]>1&&(t=e[e[Dt]-1]):t=e[0],t[It]("A")[0]},d=function(){return te(f()[yt]("href"))},h=function(t){t.preventDefault(),l=t[z],c.show()};this.show=function(){var e=te(l[yt]("href")),n=f(),c=d();n[a]&&l[a]||Vt(l[St],Wt)||(n[a]=l[a]=!0,Qt(n[St],Wt),Kt(l[St],Wt),s&&(Vt(t[St][St],"dropdown-menu")?Vt(s,Wt)||Kt(s,Wt):Vt(s,Wt)&&Qt(s,Wt)),r&&(r[Nt][o]=se(c)+"px"),le.call(n,pt,i,l),setTimeout(function(){Qt(c,$t)},0),ae(c,function(){r&&Kt(r,Pt),Qt(c,Wt),Kt(e,Wt),setTimeout(function(){Kt(e,$t),r&&(r[Nt][o]=se(e)+"px")},0),le.call(l,dt,i,n),le.call(n,mt,i,l)}),ae(e,function(){le.call(l,ht,i,n),r?setTimeout(function(){ae(r,function(){r[Nt][o]="",Qt(r,Pt),n[a]=l[a]=!1})},0):n[a]=l[a]=!1}))},g in t||ne(t,rt,h),this[o]&&(r=d()[St]),t[g]=this};ce(g,Ie,o);var Ae=function(t,e){t=te(t);var i=t[yt](S);placementData=t[yt](k),delayData=t[yt](H),containerData=t[yt](D),component="tooltip",classString="class",title="title",fade="fade",div="div",e=e||{},this[F]=e[F]&&e[F]!==fade?e[F]:i||fade,this[U]=e[U]?e[U]:placementData||qt,this[P]=parseInt(e[P]||delayData)||200,this[X]=te(e[X])||te(containerData)||n;var o=this,a=0,l=this[U],r=null,c=t[yt](title)||t[yt](A);if(c){var u=function(){o[X].removeChild(r),r=null,a=null},s=function(){c=t[yt](title)||t[yt](A),r=document.createElement(div),r[wt]("role",component);var e=document.createElement(div),n=document.createElement(div);e[wt](classString,component+"-arrow"),n[wt](classString,component+"-inner"),r.appendChild(e),r.appendChild(n),n.innerHTML=c,o[X].appendChild(r),r[wt](classString,component+" "+l+" "+o[F])},f=function(){he(t,r,l,o[X]),fe(r)||(l=pe(l),he(t,r,l,o[X]))},d=function(){!Vt(r,$t)&&Kt(r,$t)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[U],s(),f(),d(),le.call(t,dt,component),ae(r,function(){le.call(t,ht,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&Vt(r,$t)&&(le.call(t,pt,component),Qt(r,$t),ae(r,function(){u(),le.call(t,mt,component)}))},o[P])},this.toggle=function(){r?o.hide():o.show()},x in t||(t[wt](A,c),t.removeAttribute(title),ne(t,Ut[0],this.show),ne(t,Ut[1],this.hide)),t[x]=this}};return ce(x,Ae,o),{Affix:me,Alert:ve,Button:ge,Carousel:xe,Collapse:Te,Dropdown:be,Modal:ye,Popover:we,ScrollSpy:Ce,Tab:Ie,Tooltip:Ae}});
// Native Javascript for Bootstrap 3 v2.0.5 | © dnp_theme | MIT-License
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Affix=n.Affix,t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i=null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&parseFloat(RegExp.$1),o="data-toggle",a="data-dismiss",l="data-spy",r="data-ride",c="Affix",u="Alert",s="Button",f="Carousel",d="Collapse",h="Dropdown",p="Modal",m="Popover",v="ScrollSpy",g="Tab",x="Tooltip",T="data-backdrop",b="data-keyboard",y="data-target",w="data-interval",C="data-height",I="data-pause",A="data-original-title",L="data-original-text",E="data-dismissible",M="data-trigger",S="data-animation",D="data-container",k="data-placement",H="data-delay",B="data-offset-top",N="data-offset-bottom",W="backdrop",$="keyboard",P="delay",R="content",j="target",q="interval",O="pause",z="animation",F="placement",U="container",X="offsetTop",Y="offsetBottom",G="offsetLeft",J="scrollTop",K="scrollLeft",Q="clientWidth",V="clientHeight",Z="offsetWidth",_="offsetHeight",tt="innerWidth",et="innerHeight",nt="scrollHeight",it="height",ot="aria-expanded",at="aria-hidden",lt="click",rt="hover",ct="keydown",ut="resize",st="scroll",ft="show",dt="shown",ht="hide",pt="hidden",mt="close",vt="closed",gt="slid",xt="slide",Tt="change",bt="getAttribute",yt="setAttribute",wt="hasAttribute",Ct="getElementsByTagName",It="getBoundingClientRect",At="querySelectorAll",Lt="getElementsByClassName",Et="requestAnimationFrame",Mt="indexOf",St="parentNode",Dt="length",kt="toLowerCase",Ht="Transition",Bt="Webkit",Nt="style",Wt="active",$t="in",Pt="collapsing",Rt="disabled",jt="loading",qt="left",Ot="right",zt="top",Ft="bottom",Ut="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Xt=/\b(top|bottom|left|top)+/,Yt=Bt+Ht in e[Nt]||Ht[kt]()in e[Nt],Gt=Bt+Ht in e[Nt]?Bt[kt]()+Ht+"End":Ht[kt]()+"end",Jt=(document.documentMode&&t[Et]?t[Et]:setTimeout,function(t){t.focus?t.focus():t.setActive()}),Kt=function(t,e){t.classList.add(e)},Qt=function(t,e){t.classList.remove(e)},Vt=function(t,e){return t.classList.contains(e)},Zt=function(t){for(var e=[],n=0,i=t[Dt];n<i;n++)e.push(t[n]);return e},_t=function(t,e){var n=8===i?At:Lt;return Zt(t[n](8===i?"."+e.replace(/\s(?=[a-z])/g,"."):e))},te=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},ee=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[St]){if(("."===n||"#"!==n)&&null!==te(e,t[St]))return t;if("#"===n&&t.id===e.substr(1))return t}return!1},ne=function(t,e,n){t.addEventListener(e,n,!1)},ie=function(t,e,n){t.removeEventListener(e,n,!1)},oe=function(t,e,n){ne(t,e,function i(o){n(o),ie(t,e,i)})},ae=function(t,e){Yt?oe(t,Gt,function(t){e(t)}):e()},le=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},re=document[Ct]("*"),ce=function(t,e,n,i){for(var o=i&&i[Dt]?i:re,a=0;a<o[Dt];a++){var l=o[a][bt](n),r=t.replace(/spy/i,"")[kt]();(l&&t===s&&l[Mt](r)>-1||l===r)&&new e(o[a])}},ue=/^\#(.)+$/,se=function(e){var n=e&&(e.currentStyle||t.getComputedStyle(e)),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[V]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},fe=function(t){for(var e=0,n=0,i=t.children[Dt];n<i;n++)e+=se(t.children[n]);return e},de=function(n){var i=n[It]();return i[zt]>=0&&i[qt]>=0&&i[Ft]<=(t[et]||e[V])&&i[Ot]<=(t[tt]||e[Q])},he=function(){return{y:t.pageYOffset||e[J],x:t.pageXOffset||e[K]}},pe=function(t,e,i,o){var a=t[It](),l=o===n?he():{x:o[G]+o[K],y:o[X]+o[J]},r={w:a[Ot]-a[qt],h:a[Ft]-a[zt]},c={w:e[Z],h:e[_]};i===zt?(e[Nt][zt]=a[zt]+l.y-c.h+"px",e[Nt][qt]=a[qt]+l.x-c.w/2+r.w/2+"px"):i===Ft?(e[Nt][zt]=a[zt]+l.y+r.h+"px",e[Nt][qt]=a[qt]+l.x-c.w/2+r.w/2+"px"):i===qt?(e[Nt][zt]=a[zt]+l.y-c.h/2+r.h/2+"px",e[Nt][qt]=a[qt]+l.x-c.w+"px"):i===Ot&&(e[Nt][zt]=a[zt]+l.y-c.h/2+r.h/2+"px",e[Nt][qt]=a[qt]+l.x+r.w+"px"),e.className[Mt](i)===-1&&(e.className=e.className.replace(Xt,i))},me=function(t){return t===zt?Ft:t===Ft?zt:t===qt?Ot:t===Ot?qt:t},ve=function(o,a){o=te(o),a=a||{};var l=o[bt](y),r=o[bt](B),u=o[bt](N),s="affix",f="affixed",d="function",h="update",p="affix-top",m="affixed-top",v="affix-bottom",g="affixed-bottom";if(this[j]=a[j]?te(a[j]):te(l)||null,this[X]=a[X]?a[X]:parseInt(r)||0,this[Y]=a[Y]?a[Y]:parseInt(u)||0,this[j]||this[X]||this[Y]){var x,T,b,w,C,I,A=this,L=i&&i<10?500:50,E=!1,M=!1,S=function(){return Math.max(n[nt],n[_],e[V],e[nt],e[_])},D=function(){return null!==A[j]?A[j][It]()[zt]+w:A[X]?parseInt(typeof A[X]===d?A[X]():A[X]||0):void 0},k=function(){if(A[Y])return b-o[_]-parseInt(typeof A[Y]===d?A[Y]():A[Y]||0)},H=function(){b=S(),w=parseInt(he().y,0),x=D(),T=k(),C=parseInt(x)-w<0&&w>parseInt(x),I=parseInt(T)-w<0&&w>parseInt(T)},W=function(){E||Vt(o,s)||(le.call(o,s,s),le.call(o,p,s),Kt(o,s),E=!0,le.call(o,f,s),le.call(o,m,s))},$=function(){E&&Vt(o,s)&&(Qt(o,s),E=!1)},P=function(){M||Vt(o,v)||(le.call(o,s,s),le.call(o,v,s),Kt(o,v),M=!0,le.call(o,f,s),le.call(o,g,s))},R=function(){M&&Vt(o,v)&&(Qt(o,v),M=!1)},q=function(){I?(C&&$(),P()):(R(),C?W():$())};this[h]=function(){H(),q()},c in o||(ne(t,st,this[h]),ne(t,ut,function(){setTimeout(function(){A[h]()},L)})),o[c]=this,this[h]()}};ce(c,ve,l);var ge=function(t){t=te(t);var e=this,n="alert",i=ee(t,"."+n),o=function(o){var l=o[j];l=l[wt](a)?l:l[St],l&&l[wt](a)&&(i=ee(l,"."+n),t=te("["+a+'="'+n+'"]',i),(t===l||t===l[St])&&i&&e.close())},l=function(){le.call(i,vt,n),ie(t,lt,o),i[St].removeChild(i)};this.close=function(){i&&t&&Vt(i,$t)&&(le.call(i,mt,n),Qt(i,$t),setTimeout(function(){i&&ae(i,l)},0))},u in t||ne(t,lt,o),t[u]=this};ce(u,ge,a);var xe=function(t,e){t=te(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",c=function(){e&&e!==a&&(e===jt&&(Kt(t,Rt),t[yt](Rt,Rt)),t[yt](L,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[bt]("data-"+e+"-text"))},u=function(){t[bt](L)&&((Vt(t,Rt)||t[bt](Rt)===Rt)&&(Qt(t,Rt),t.removeAttribute(Rt)),t.innerHTML=t[bt](L))},f=function(e){var a=e[j][St],c=e[j].tagName===l?e[j]:a.tagName===l?a:null;if(c){var u=this,s=_t(u,"btn"),f=c[Ct](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Qt(c,Wt),f[bt](o),f.removeAttribute(o),f[o]=!1):(Kt(c,Wt),f[bt](o),f[yt](o,o),f[o]=!0),n||(n=!0,le.call(f,Tt,i),le.call(t,Tt,i))),"radio"===f.type&&!n&&!f[o]){Kt(c,Wt),f[yt](o,o),f[o]=!0,le.call(f,Tt,i),le.call(t,Tt,i),n=!0;for(var d=0,h=s[Dt];d<h;d++){var p=s[d],m=p[Ct](r)[0];p!==c&&Vt(p,Wt)&&(Qt(p,Wt),m.removeAttribute(o),m[o]=!1,le.call(m,Tt,i))}}setTimeout(function(){n=!1},50)}}};Vt(t,"btn")&&null!==e&&(e!==a?c():u()),Vt(t,"btn-group")&&(s in t||ne(t,lt,f),t[s]=this)};ce(s,xe,o);var Te=function(e,n){e=te(e),n=n||{};var i="false"!==e[bt](w)&&(parseInt(e[bt](w))||5e3),o=e[bt](I)===rt||!1,a="true"===e[bt](b)||!1,l="carousel",r="paused",c="direction",u="data-slide-to";this[$]=n[$]===!0||a,this[O]=!(n[O]!==rt&&!o)&&rt,n[q]||i?this[q]=parseInt(n[q])||i:this[q]=!1;var s=this,d=e.index=0,h=e.timer=0,p=!1,m=_t(e,"item"),v=m[Dt],g=this[c]=qt,x=_t(e,l+"-control"),T=x[0],y=x[1],C=te("."+l+"-indicators",e),A=C[Ct]("LI"),L=function(){s[q]===!1||Vt(e,r)||(Kt(e,r),!p&&clearInterval(h))},E=function(){s[q]!==!1&&Vt(e,r)&&(Qt(e,r),!p&&clearInterval(h),!p&&s.cycle())},M=function(t){if(t.preventDefault(),!p){var e=t[j],n=s.getActiveIndex();if(!e||Vt(e,Wt)||!e[bt](u))return!1;d=parseInt(e[bt](u),10),n<d||0===n&&d===v-1?g=s[c]=qt:(n>d||n===v-1&&0===d)&&(g=s[c]=Ot),s.slideTo(d)}},S=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===y?(d++,g=s[c]=qt,d===v-1?d=v-1:d===v&&(d=0)):e===T&&(d--,g=s[c]=Ot,0===d?d=0:d<0&&(d=v-1)),s.slideTo(d)}},D=function(t){if(!p){switch(t.which){case 39:d++,g=s[c]=qt,d==v-1?d=v-1:d==v&&(d=0);break;case 37:d--,g=s[c]=Ot,0==d?d=0:d<0&&(d=v-1);break;default:return}s.slideTo(d)}},k=function(t){for(var e=0,n=A[Dt];e<n;e++)Qt(A[e],Wt);A[t]&&Kt(A[t],Wt)};this.cycle=function(){g=this[c]=qt,h=setInterval(function(){d++,d=d===v?0:d,s.slideTo(d)},this[q])},this.slideTo=function(t){var n=this.getActiveIndex(),i=g===qt?"next":"prev";le.call(e,xt,l,m[t]),p=this.isSliding=!0,clearInterval(h),k(t),Yt&&Vt(e,"slide")?(Kt(m[t],i),m[t][Z],Kt(m[t],g),Kt(m[n],g),oe(m[n],Gt,function(o){var a=o[j]!==m[n]?1e3*o.elapsedTime:0;setTimeout(function(){p=s.isSliding=!1,Kt(m[t],Wt),Qt(m[n],Wt),Qt(m[t],i),Qt(m[t],g),Qt(m[n],g),le.call(e,gt,l,m[t]),s[q]&&!Vt(e,r)&&s.cycle()},a)})):(Kt(m[t],Wt),m[t][Z],Qt(m[n],Wt),setTimeout(function(){p=!1,s[q]&&!Vt(e,r)&&s.cycle(),le.call(e,gt,l,m[t])},100))},this.getActiveIndex=function(){return m[Mt](_t(e,"item active")[0])||0},f in e||(this[O]&&this[q]&&(ne(e,Ut[0],L),ne(e,Ut[1],E),ne(e,"touchstart",L),ne(e,"touchend",E)),y&&ne(y,lt,S),T&&ne(T,lt,S),C&&ne(C,lt,M,!1),this[$]===!0&&ne(t,ct,D,!1)),this.getActiveIndex()<0&&(m[Dt]&&Kt(m[0],Wt),A[Dt]&&k(0)),this[q]&&this.cycle(),e[f]=this};ce(f,Te,r);var be=function(t,e){t=te(t),e=e||{};var n=null,i=null,o=this,a=!1,l=t[bt]("data-parent"),r="collapse",c="collapsed",u=function(t){le.call(t,ft,r),a=!0,Kt(t,Pt),Kt(t,$t),setTimeout(function(){t[Nt][it]=fe(t)+"px",function(){ae(t,function(){a=!1,t[yt](ot,"true"),Qt(t,Pt),t[Nt][it]="",le.call(t,dt,r)})}()},20)},s=function(t){le.call(t,ht,r),a=!0,t[Nt][it]=fe(t)+"px",setTimeout(function(){Kt(t,Pt),t[Nt][it]="0px",function(){ae(t,function(){a=!1,t[yt](ot,"false"),Qt(t,Pt),Qt(t,$t),t[Nt][it]="",le.call(t,pt,r)})}()},20)},f=function(){var e=t.href&&t[bt]("href"),n=t[bt](y),i=e||n&&ue.test(n)&&n;return i&&te(i)};this.toggle=function(t){t.preventDefault(),a||(Vt(i,$t)?o.hide():o.show())},this.hide=function(){s(i),Kt(t,c)},this.show=function(){if(u(i),Qt(t,c),null!==n)for(var e=_t(n,r+" "+$t),o=0,a=e[Dt];o<a;o++)e[o]!==i&&s(e[o])},d in t||ne(t,lt,this.toggle),i=f(),n=te(e.parent)||l&&ee(t,l),t[d]=this};ce(d,be,o);var ye=function(t,e){t=te(t),this.persist=e===!0||"true"===t[bt]("data-persist")||!1;var n=this,i=!1,a=t[St],l="dropdown",r="open",c=null,u=te(".dropdown-menu",a),s=Zt(u[Ct]("*")),f=function(t){!i||27!=t.which&&27!=t.keyCode||(c=null,m())},d=function(e){var l,r=e[j];if(l=1!==r.nodeType&&(r[bt](o)||r[St][bt](o)),r===t||r===a||r[St]===t)e.preventDefault(),c=t,n.toggle();else if(i){if((r===u||s&&s[Mt](r)>-1)&&(n.persist||l))return;c=null,m()}(/\#$/.test(r.href)||r[St]&&/\#$/.test(r[St].href))&&e.preventDefault()},p=function(){le.call(a,ft,l,c),Kt(a,r),u[yt](ot,!0),le.call(a,dt,l,c),ne(document,ct,f),i=!0},m=function(){le.call(a,ht,l,c),Qt(a,r),u[yt](ot,!1),le.call(a,pt,l,c),ie(document,ct,f),i=!1};this.toggle=function(){Vt(a,r)&&i?m():p()},h in t||(u[yt]("tabindex","0"),ne(document,lt,d)),t[h]=this};ce(h,ye,o);var we=function(i,o){i=te(i);var l=i[bt](y)||i[bt]("href"),r=te(l),c=Vt(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",d="paddingRight",h="modal-backdrop";if(Vt(i,"modal")&&(i=null),c){o=o||{},this[$]=o[$]!==!1&&"false"!==c[bt](b),this[W]=o[W]!==s&&c[bt](T)!==s||s,this[W]=o[W]!==!1&&"false"!==c[bt](T)&&this[W],this[R]=o[R];var m,v,g,x,w=this,C=this.open=!1,I=null,A=function(){var n=e[It]();return t[tt]||n[Ot]-Math.abs(n[qt])},L=function(){var e=n.currentStyle||t.getComputedStyle(n),i=parseInt(e[d],10);m&&(n[Nt][d]=i+g+"px")},E=function(){n[Nt][d]=""},M=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[Z]-e[Q],n.removeChild(e),t},S=function(){m=n[Q]<A(),v=c[nt]>e[V],g=M()},D=function(){c[Nt][f]=!m&&v?g+"px":"",c[Nt][d]=m&&!v?g+"px":""},k=function(){c[Nt][f]="",c[Nt][d]=""},H=function(){var t=document.createElement("div");x=te("."+h),null===x&&(t[yt]("class",h+" fade"),x=t,n.appendChild(x))},B=function(){x=te("."+h),x&&null!==x&&"object"==typeof x&&(n.removeChild(x),x=null)},N=function(){Vt(c,$t)?ie(document,ct,z):ne(document,ct,z)},P=function(){Vt(c,$t)?ie(t,ut,w.update):ne(t,ut,w.update)},q=function(){Vt(c,$t)?ie(c,lt,F):ne(c,lt,F)},O=function(t){var e=t[j];e=e[wt](y)||e[wt]("href")?e:e[St],C||e!==i||Vt(c,$t)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},z=function(t){var e=t.which||t.keyCode;w[$]&&27==e&&C&&w.hide()},F=function(t){var e=t[j];C&&(e[St][bt](a)===u||e[bt](a)===u||e===c&&w[W]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&Vt(c,$t)?this.hide():this.show()},this.show=function(){le.call(c,ft,u,I);var t=_t(document,u+" in")[0];t&&t!==c&&t.modalTrigger[p].hide(),this[W]&&H(),x&&!Vt(x,$t)&&setTimeout(function(){Kt(x,$t)},0),setTimeout(function(){c[Nt].display="block",S(),L(),D(),P(),q(),N(),Kt(n,u+"-open"),Kt(c,$t),c[yt](at,!1)},0),ae(c,function(){C=w.open=!0,Jt(c),le.call(c,dt,u,I)})},this.hide=function(){le.call(c,ht,u),x=te("."+h),null!==x&&Qt(x,$t),Qt(c,$t),c[yt](at,!0),ae(c,function(){Qt(n,u+"-open"),P(),q(),N(),k(),E(),c[Nt].display="",_t(document,u+" "+$t)[0]||B(),C=w.open=!1,i&&Jt(i),le.call(c,pt,u)})},this.setContent=function(t){te("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(S(),L(),D())},!i||p in i||ne(i,lt,O),this[R]&&this.setContent(this[R]),!!i&&(i[p]=this)}};ce(p,we,o);var Ce=function(e,o){e=te(e);var a=e[bt](M),l=e[bt](S),r=e[bt](k),c=e[bt](E),u=e[bt](H),s=e[bt](D),f="popover",d="template",h="trigger",p="class",v="div",g="fade",x="data-title",T="data-content",b="dismissible",y='<button type="button" class="close">×</button>';o=o||{},this[d]=o[d]?o[d]:null,this[h]=o[h]?o[h]:a||rt,this[z]=o[z]&&o[z]!==g?o[z]:l||g,this[F]=o[F]?o[F]:r||zt,this[P]=parseInt(o[P]||u)||200,this[b]=!(!o[b]&&"true"!==c),this[U]=te(o[U])||te(s)||n;var w=this,C=e[bt](x)||null,I=e[bt](T)||null;if(I||this[d]){var A=null,L=0,B=this[F],N=function(t){null!==A&&t[j]===te(".close",A)&&w.hide()},W=function(){w[U].removeChild(A),L=null,A=null},$=function(){if(C=e[bt](x),I=e[bt](T),A=document.createElement(v),null!==I&&null===w[d]){if(A[yt]("role","tooltip"),null!==C){var t=document.createElement("h3");t[yt](p,f+"-title"),t.innerHTML=w[b]?C+y:C,A.appendChild(t)}var n=document.createElement(v),i=document.createElement(v);n[yt](p,"arrow"),i[yt](p,f+"-content"),A.appendChild(n),A.appendChild(i),i.innerHTML=w[b]&&null===C?I+y:I}else{var o=document.createElement(v);o.innerHTML=w[d],A.innerHTML=o.firstChild.innerHTML}w[U].appendChild(A),A[Nt].display="block",A[yt](p,f+" "+B+" "+w[z])},R=function(){!Vt(A,$t)&&Kt(A,$t)},q=function(){pe(e,A,B,w[U]),de(A)||(B=me(B),pe(e,A,B,w[U]))};this.toggle=function(){null===A?w.show():w.hide()},this.show=function(){clearTimeout(L),L=setTimeout(function(){null===A&&(B=w[F],$(),q(),R(),le.call(e,ft,f),ae(A,function(){le.call(e,dt,f)}))},20)},this.hide=function(){clearTimeout(L),L=setTimeout(function(){A&&null!==A&&Vt(A,$t)&&(le.call(e,ht,f),Qt(A,$t),ae(A,function(){W(),le.call(e,pt,f)}))},w[P])},m in e||(w[h]===rt?(ne(e,Ut[0],w.show),w[b]||ne(e,Ut[1],w.hide)):/^(click|focus)$/.test(w[h])&&(ne(e,w[h],w.toggle),w[b]||ne(e,"blur",w.hide)),w[b]&&ne(document,lt,N),i&&i<9||ne(t,ut,w.hide)),e[m]=w}};ce(m,Ce,o);var Ie=function(e,n){e=te(e);var o=te(e[bt](y));if(n=n||{},n[j]||o){for(var a,l=n[j]&&te(n[j])||o,r=l&&l[Ct]("A"),c=[],u=[],s=e[_]<e[nt]?e:t,f=s===t,d=0,h=r[Dt];d<h;d++){var p=r[d][bt]("href"),m=p&&ue.test(p)&&te(p);m&&(c.push(r[d]),u.push(m))}var g=function(t){var n=c[t][St],i=u[t],o=ee(n,".dropdown"),l=f&&i[It](),r=Vt(n,Wt)||!1,s=f?l[zt]+a:i[X]-(u[t-1]?0:10),d=f?l[Ft]+a:u[t+1]?u[t+1][X]:e[nt],h=a>=s&&d>a;if(!r&&h)"LI"!==n.tagName||Vt(n,Wt)||(Kt(n,Wt),r=!0,o&&!Vt(o,Wt)&&Kt(o,Wt),le.call(e,"activate","scrollspy",c[t]));else if(h){if(!h&&!r||r&&h)return}else"LI"===n.tagName&&Vt(n,Wt)&&(Qt(n,Wt),r=!1,o&&Vt(o,Wt)&&!_t(n[St],Wt).length&&Qt(o,Wt))},x=function(){a=f?he().y:e[J];for(var t=0,n=c[Dt];t<n;t++)g(t)};this.refresh=function(){x()},v in e||(ne(s,st,this.refresh),i&&i<9||ne(t,ut,this.refresh)),this.refresh(),e[v]=this}};ce(v,Ie,l);var Ae=function(t,e){t=te(t);var n=t[bt](C),i="tab",a="height",l="isAnimating";t[l]=!1,e=e||{},this[a]=!!Yt&&(e[a]||"true"===n);var r,c,u=this,s=ee(t,".nav"),f=te(".dropdown",s),d=function(){var t,e=_t(s,Wt);return 1!==e[Dt]||Vt(e[0],"dropdown")?e[Dt]>1&&(t=e[e[Dt]-1]):t=e[0],t[Ct]("A")[0]},h=function(){return te(d()[bt]("href"))},p=function(t){t.preventDefault(),r=t[j][bt](o)===i||ue.test(t[j][bt]("href"))?t[j]:t[j][St],u.show()};this.show=function(){var e=te(r[bt]("href")),n=d(),o=h();n[l]&&r[l]||Vt(r[St],Wt)||(n[l]=r[l]=!0,Qt(n[St],Wt),Kt(r[St],Wt),f&&(Vt(t[St][St],"dropdown-menu")?Vt(f,Wt)||Kt(f,Wt):Vt(f,Wt)&&Qt(f,Wt)),c&&(c[Nt][a]=fe(o)+"px"),function(){Qt(o,$t),le.call(n,ht,i,r),function(){ae(o,function(){Qt(o,Wt),Kt(e,Wt),setTimeout(function(){Kt(e,$t),e[_],c&&Kt(c,Pt),function(){le.call(r,ft,i,n),function(){c&&(c[Nt][a]=fe(e)+"px"),le.call(n,pt,i,r)}()}()},20)})}()}(),function(){ae(e,function(){le.call(r,dt,i,n),c?!function(){ae(c,function(){setTimeout(function(){c[Nt][a]="",Qt(c,Pt),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},g in t||ne(t,lt,p),this[a]&&(c=h()[St]),t[g]=this};ce(g,Ae,o);var Le=function(t,e){t=te(t);var i=t[bt](S);placementData=t[bt](k),delayData=t[bt](H),containerData=t[bt](D),component="tooltip",classString="class",title="title",fade="fade",div="div",e=e||{},this[z]=e[z]&&e[z]!==fade?e[z]:i||fade,this[F]=e[F]?e[F]:placementData||zt,this[P]=parseInt(e[P]||delayData)||200,this[U]=te(e[U])||te(containerData)||n;var o=this,a=0,l=this[F],r=null,c=t[bt](title)||t[bt](A);if(c){var u=function(){o[U].removeChild(r),r=null,a=null},s=function(){c=t[bt](title)||t[bt](A),r=document.createElement(div),r[yt]("role",component);var e=document.createElement(div),n=document.createElement(div);e[yt](classString,component+"-arrow"),n[yt](classString,component+"-inner"),r.appendChild(e),r.appendChild(n),n.innerHTML=c,o[U].appendChild(r),r[yt](classString,component+" "+l+" "+o[z])},f=function(){pe(t,r,l,o[U]),de(r)||(l=me(l),pe(t,r,l,o[U]))},d=function(){!Vt(r,$t)&&Kt(r,$t)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[F],s(),f(),d(),le.call(t,ft,component),ae(r,function(){le.call(t,dt,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&Vt(r,$t)&&(le.call(t,ht,component),Qt(r,$t),ae(r,function(){u(),le.call(t,pt,component)}))},o[P])},this.toggle=function(){r?o.hide():o.show()},x in t||(t[yt](A,c),t.removeAttribute(title),ne(t,Ut[0],this.show),ne(t,Ut[1],this.hide)),t[x]=this}};return ce(x,Le,o),{Affix:ve,Alert:ge,Button:xe,Carousel:Te,Collapse:be,Dropdown:ye,Modal:we,Popover:Ce,ScrollSpy:Ie,Tab:Ae,Tooltip:Le}});

@@ -40,3 +40,3 @@

}
}, duration);
}, 0);
}

@@ -43,0 +43,0 @@ };

@@ -155,23 +155,28 @@

if ( supportTransitions && hasClass(element,'slide') ) {
addClass(slides[next],orientation);
slides[next][offsetWidth];
slides[next][offsetWidth];
addClass(slides[next],slideDirection);
addClass(slides[activeItem],slideDirection);
one(slides[next], transitionEndEvent, function() { //we're gonna fake waiting for the animation to finish, cleaner and better
isSliding = self.isSliding = false;
one(slides[activeItem], transitionEndEvent, function(e) {
var timeout = e[target] !== slides[activeItem] ? e.elapsedTime*1000 : 0;
setTimeout(function(){
isSliding = self.isSliding = false;
addClass(slides[next],active);
removeClass(slides[activeItem],active);
addClass(slides[next],active);
removeClass(slides[activeItem],active);
removeClass(slides[next],orientation);
removeClass(slides[next],slideDirection);
removeClass(slides[activeItem],slideDirection);
removeClass(slides[next],orientation);
removeClass(slides[next],slideDirection);
removeClass(slides[activeItem],slideDirection);
if ( self[interval] && !hasClass(element,paused) ) {
self.cycle();
}
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]); // here we go with the slid event
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
if ( self[interval] && !hasClass(element,paused) ) {
self.cycle();
}
},timeout);
});
} else {

@@ -178,0 +183,0 @@ addClass(slides[next],active);

@@ -33,11 +33,13 @@

collapseElement[style][height] = getMaxHeight(collapseElement) + 'px';
}, 0);
emulateTransitionEnd(collapseElement, function() {
removeClass(collapseElement,collapsing);
collapseElement[style][height] = '';
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'true');
bootstrapCustomEvent.call(collapseElement, shownEvent, component);
});
(function(){
emulateTransitionEnd(collapseElement, function() {
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'true');
removeClass(collapseElement,collapsing);
collapseElement[style][height] = '';
bootstrapCustomEvent.call(collapseElement, shownEvent, component);
});
}());
},20);
},

@@ -51,12 +53,14 @@ closeAction = function(collapseElement) {

collapseElement[style][height] = '0px';
}, 0);
emulateTransitionEnd(collapseElement, function() {
removeClass(collapseElement,collapsing);
removeClass(collapseElement,inClass);
collapseElement[style][height] = '';
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'false');
bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);
});
(function(){
emulateTransitionEnd(collapseElement, function() {
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'false');
removeClass(collapseElement,collapsing);
removeClass(collapseElement,inClass);
collapseElement[style][height] = '';
bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);
});
}());
},20);
},

@@ -66,3 +70,3 @@ getTarget = function() {

parent = element[getAttribute](dataTarget),
id = href || ( parent && /#/.test(parent) ) && parent;
id = href || ( parent && targetsReg.test(parent) ) && parent;
return id && queryElement(id);

@@ -74,3 +78,3 @@ };

e.preventDefault();
if (isAnimating) return;
if ( isAnimating ) return;
if (!hasClass(collapse,inClass)) { self.show(); }

@@ -77,0 +81,0 @@ else { self.hide(); }

@@ -29,3 +29,3 @@

var href = links[i][getAttribute]('href'),
targetItem = href && /#[a-z0-9]+$/i.test(href) && queryElement(href);
targetItem = href && targetsReg.test(href) && queryElement(href);
if ( !!targetItem ) {

@@ -32,0 +32,0 @@ items.push(links[i]);

@@ -44,6 +44,7 @@

},
// handler
// handler
clickHandler = function(e) {
e.preventDefault();
next = e[target];
next = e[target][getAttribute](dataToggle) === component || targetsReg.test(e[target][getAttribute]('href'))
? e[target] : e[target][parentNode]; // allow for child elements like icons to use the handler
self.show();

@@ -55,3 +56,3 @@ };

var nextContent = queryElement(next[getAttribute]('href')), //this is the actual object, the next tab content to activate
activeTab = getActiveTab(), activeContent = getActiveContent();
activeTab = getActiveTab(), activeContent = getActiveContent();

@@ -73,34 +74,43 @@ if ( (!activeTab[isAnimating] || !next[isAnimating]) && !hasClass(next[parentNode],active) ) {

bootstrapCustomEvent.call(activeTab, hideEvent, component, next);
setTimeout(function() {
(function(){
removeClass(activeContent,inClass);
}, 0);
bootstrapCustomEvent.call(activeTab, hideEvent, component, next);
(function(){
emulateTransitionEnd(activeContent, function() {
removeClass(activeContent,active);
addClass(nextContent,active);
setTimeout(function() {
addClass(nextContent,inClass);
nextContent[offsetHeight];
if (tabsContentContainer) addClass(tabsContentContainer,collapsing);
(function() {
bootstrapCustomEvent.call(next, showEvent, component, activeTab);
(function() {
if(tabsContentContainer) tabsContentContainer[style][height] = getMaxHeight(nextContent) + 'px'; // height animation
bootstrapCustomEvent.call(activeTab, hiddenEvent, component, next);
}());
}());
},20);
});
}());
}());
emulateTransitionEnd(activeContent, function() {
if (tabsContentContainer) addClass(tabsContentContainer,collapsing);
removeClass(activeContent,active);
addClass(nextContent,active);
setTimeout(function() {
addClass(nextContent,inClass);
if(tabsContentContainer) tabsContentContainer[style][height] = getMaxHeight(nextContent) + 'px'; // height animation
}, 0);
bootstrapCustomEvent.call(next, showEvent, component, activeTab);
bootstrapCustomEvent.call(activeTab, hiddenEvent, component, next);
});
emulateTransitionEnd(nextContent, function() {
bootstrapCustomEvent.call(next, shownEvent, component, activeTab);
if (tabsContentContainer) { // height animation
setTimeout(function(){
emulateTransitionEnd(tabsContentContainer, function(){
tabsContentContainer[style][height] = '';
removeClass(tabsContentContainer,collapsing);
activeTab[isAnimating] = next[isAnimating] = false;
})
},0);
} else { activeTab[isAnimating] = next[isAnimating] = false; }
});
(function(){
emulateTransitionEnd(nextContent, function() {
bootstrapCustomEvent.call(next, shownEvent, component, activeTab);
if (tabsContentContainer) { // height animation
(function(){
emulateTransitionEnd(tabsContentContainer, function(){
setTimeout(function(){
tabsContentContainer[style][height] = '';
removeClass(tabsContentContainer,collapsing);
activeTab[isAnimating] = next[isAnimating] = false;
},200);
});
}());
} else {
activeTab[isAnimating] = next[isAnimating] = false;
}
});
}());
}

@@ -107,0 +117,0 @@ };

@@ -51,3 +51,3 @@

backdrop = 'backdrop', keyboard = 'keyboard', delay = 'delay',
duration = 'duration', content = 'content', target = 'target',
content = 'content', target = 'target',
interval = 'interval', pause = 'pause', animation = 'animation',

@@ -94,2 +94,3 @@ placement = 'placement', container = 'container',

getElementsByCLASSNAME = 'getElementsByClassName',
requestAnimationFRAME = 'requestAnimationFrame',

@@ -121,2 +122,4 @@ indexOf = 'indexOf',

transitionEndEvent = Webkit+Transition in doc[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',
raf = document.documentMode && globalObject[requestAnimationFRAME] ? globalObject[requestAnimationFRAME] : setTimeout,
setTime = function(fn) { raf(fn) },

@@ -175,4 +178,4 @@

one = function (element, event, handler) { // one since 2.0.4
on(element, event, function handlerWrapper(){
handler();
on(element, event, function handlerWrapper(e){
handler(e);
off(element, event, handlerWrapper);

@@ -182,5 +185,6 @@ });

emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4
if (supportTransitions) { one(element,transitionEndEvent, handler); }
else { handler(); }
},
if (supportTransitions) {
one(element, transitionEndEvent, function(e){ handler(e); });
} else { handler(); }
},
bootstrapCustomEvent = function (eventName, componentName, related) {

@@ -208,2 +212,3 @@ var OriginalCustomEvent = new CustomEvent( eventName + '.bs.' + componentName);

// tab / collapse stuff
targetsReg = /^\#(.)+$/,
getOuterHeight = function (child) {

@@ -210,0 +215,0 @@ var childStyle = child && (child.currentStyle || globalObject.getComputedStyle(child)),

@@ -161,18 +161,22 @@

one(slides[next], transitionEndEvent, function(){
isSliding = self.isSliding = false;
one(slides[activeItem], transitionEndEvent, function(e) {
var timeout = e[target] !== slides[activeItem] ? e.elapsedTime*1000 : 0;
setTimeout(function(){
isSliding = self.isSliding = false;
addClass(slides[next],active);
removeClass(slides[activeItem],active);
addClass(slides[next],active);
removeClass(slides[activeItem],active);
removeClass(slides[next],carouselItem +'-'+ orientation);
removeClass(slides[next],carouselItem +'-'+ slideDirection);
removeClass(slides[activeItem],carouselItem +'-'+ slideDirection);
removeClass(slides[next],carouselItem +'-'+ orientation);
removeClass(slides[next],carouselItem +'-'+ slideDirection);
removeClass(slides[activeItem],carouselItem +'-'+ slideDirection);
if ( self[interval] && !hasClass(element,paused) ) {
self.cycle();
}
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]); // here we go with the slid event
});
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
if ( !document.hidden && self[interval] && !hasClass(element,paused) ) {
self.cycle();
}
},timeout);
});
} else {

@@ -187,3 +191,3 @@ addClass(slides[next],active);

}
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]); // here we go with the slid event
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
}, 100 );

@@ -190,0 +194,0 @@ }

@@ -33,11 +33,13 @@

collapseElement[style][height] = getMaxHeight(collapseElement) + 'px';
}, 0);
emulateTransitionEnd(collapseElement, function(){
removeClass(collapseElement,collapsing);
collapseElement[style][height] = '';
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'true');
bootstrapCustomEvent.call(collapseElement, shownEvent, component);
});
(function(){
emulateTransitionEnd(collapseElement, function(){
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'true');
removeClass(collapseElement,collapsing);
collapseElement[style][height] = '';
bootstrapCustomEvent.call(collapseElement, shownEvent, component);
});
}());
}, 20);
},

@@ -51,12 +53,14 @@ closeAction = function(collapseElement) {

collapseElement[style][height] = '0px';
}, 0);
emulateTransitionEnd(collapseElement, function(){
removeClass(collapseElement,collapsing);
removeClass(collapseElement,showClass);
collapseElement[style][height] = '';
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'false');
bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);
});
(function() {
emulateTransitionEnd(collapseElement, function(){
isAnimating = false;
collapseElement[setAttribute](ariaExpanded,'false');
removeClass(collapseElement,collapsing);
removeClass(collapseElement,showClass);
collapseElement[style][height] = '';
bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);
});
}());
},20);
},

@@ -66,3 +70,3 @@ getTarget = function() {

parent = element[getAttribute](dataTarget),
id = href || ( parent && /#/.test(parent) ) && parent;
id = href || ( parent && targetsReg.test(parent) ) && parent;
return id && queryElement(id);

@@ -69,0 +73,0 @@ };

@@ -29,3 +29,3 @@

var href = links[i][getAttribute]('href'),
targetItem = href && /#[a-z0-9]+$/i.test(href) && queryElement(href);
targetItem = href && targetsReg.test(href) && queryElement(href);
if ( !!targetItem ) {

@@ -32,0 +32,0 @@ items.push(links[i]);

@@ -23,3 +23,3 @@

options = options || {};
this[height] = options[height] || heightData === 'true' || false;
this[height] = supportTransitions ? (options[height] || heightData === 'true') : false;

@@ -30,6 +30,4 @@ // bind, event targets

tabsContentContainer,
dropdown = queryElement('.dropdown',tabs);
dropdown = queryElement('.dropdown-toggle',tabs);
dropdown = dropdown && dropdown[getElementsByTagName]("A")[0];
// private methods

@@ -43,3 +41,2 @@ var getActiveTab = function() {

}
// return activeTab[getElementsByTagName]('A')[0];
return activeTab;

@@ -53,3 +50,4 @@ },

e.preventDefault();
next = e[target];
next = e[target][getAttribute](dataToggle) === component || targetsReg.test(e[target][getAttribute]('href'))
? e[target] : e[target][parentNode]; // allow for child elements like icons to use the handler
self.show();

@@ -78,34 +76,43 @@ };

bootstrapCustomEvent.call(activeTab, hideEvent, component, next);
setTimeout(function() {
(function() {
removeClass(activeContent,showClass);
}, 0);
bootstrapCustomEvent.call(activeTab, hideEvent, component, next);
(function(){
emulateTransitionEnd(activeContent, function() {
removeClass(activeContent,active);
addClass(nextContent,active);
setTimeout(function() {
addClass(nextContent,showClass);
nextContent[offsetHeight];
if (tabsContentContainer) addClass(tabsContentContainer,collapsing);
(function() {
bootstrapCustomEvent.call(next, showEvent, component, activeTab);
(function() {
if (tabsContentContainer) tabsContentContainer[style][height] = getMaxHeight(nextContent) + 'px'; // height animation
bootstrapCustomEvent.call(activeTab, hiddenEvent, component, next);
}());
}());
},20);
});
}());
}());
emulateTransitionEnd(activeContent, function() {
if (tabsContentContainer) addClass(tabsContentContainer,collapsing);
removeClass(activeContent,active);
addClass(nextContent,active);
setTimeout(function() {
addClass(nextContent,showClass);
if (tabsContentContainer) tabsContentContainer[style][height] = getMaxHeight(nextContent) + 'px'; // height animation
}, 0);
bootstrapCustomEvent.call(next, showEvent, component, activeTab);
bootstrapCustomEvent.call(activeTab, hiddenEvent, component, next);
});
emulateTransitionEnd(nextContent, function() {
bootstrapCustomEvent.call(next, shownEvent, component, activeTab);
if (tabsContentContainer) { // height animation
setTimeout(function(){
emulateTransitionEnd(tabsContentContainer, function(){
tabsContentContainer[style][height] = '';
removeClass(tabsContentContainer,collapsing);
activeTab[isAnimating] = next[isAnimating] = false;
})
},0);
} else { activeTab[isAnimating] = next[isAnimating] = false; }
});
(function(){
emulateTransitionEnd(nextContent, function() {
bootstrapCustomEvent.call(next, shownEvent, component, activeTab);
if (tabsContentContainer) { // height animation
(function(){
emulateTransitionEnd(tabsContentContainer, function(){
setTimeout(function(){
tabsContentContainer[style][height] = '';
removeClass(tabsContentContainer,collapsing);
activeTab[isAnimating] = next[isAnimating] = false;
},200);
});
}());
} else {
activeTab[isAnimating] = next[isAnimating] = false;
}
});
}());
}

@@ -112,0 +119,0 @@ };

@@ -115,2 +115,3 @@

// set new focus element since 2.0.3

@@ -162,4 +163,4 @@ setFocus = function(element){

one = function (element, event, handler) { // one since 2.0.4
on(element, event, function handlerWrapper(){
handler();
on(element, event, function handlerWrapper(e){
handler(e);
off(element, event, handlerWrapper);

@@ -169,4 +170,5 @@ });

emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4
if (supportTransitions) { one(element,transitionEndEvent, handler); }
else { handler(); }
if (supportTransitions) {
one(element, transitionEndEvent, function(e){ handler(e); });
} else { handler(); }
},

@@ -195,2 +197,3 @@ bootstrapCustomEvent = function (eventName, componentName, related) {

// tab / collapse stuff
targetsReg = /^\#(.)+$/,
getOuterHeight = function (child) {

@@ -197,0 +200,0 @@ var childStyle = child && globalObject.getComputedStyle(child),

{
"name": "bootstrap.native",
"version": "2.0.4",
"version": "2.0.5",
"description": "Native Javascript for Bootstrap, the sweetest Javascript library without jQuery.",

@@ -5,0 +5,0 @@ "main": "dist/bootstrap-native.js",

@@ -26,4 +26,4 @@ # Native Javascript for Bootstrap

<!-- Using one of the CDN repositories-->
<script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.native/2.0.4/bootstrap-native.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap.native/2.0.4/bootstrap-native.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.native/2.0.5/bootstrap-native.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap.native/2.0.5/bootstrap-native.min.js"></script>
<!-- Using a local assets folder -->

@@ -39,4 +39,4 @@ <script type="text/javascript" src="/assets/js/bootstrap-native.min.js"></script>

<!-- Using one of the CDN repositories-->
<script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.native/2.0.4/bootstrap-native-v4.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap.native/2.0.4/bootstrap-native-v4.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.native/2.0.5/bootstrap-native-v4.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap.native/2.0.5/bootstrap-native-v4.min.js"></script>
<!-- Using a local assets folder -->

@@ -71,4 +71,4 @@ <script type="text/javascript" src="/assets/js/bootstrap-native-v4.min.js"></script>

<!-- Using one of the CDN repositories-->
<script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.native/2.0.4/polyfill.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap.native/2.0.4/polyfill.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.native/2.0.5/polyfill.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap.native/2.0.5/polyfill.min.js"></script>
<!-- Using a local assets folder -->

@@ -75,0 +75,0 @@ <script type="text/javascript" src="/assets/js/polyfill.min.js"></script>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc