New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.16 to 2.0.17

65

dist/bootstrap-native-v4.js

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

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

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

dataRide = 'data-ride',
// components

@@ -59,2 +59,3 @@ stringAlert = 'Alert',

dataPause = 'data-pause',
dataTitle = 'data-title',
dataOriginalTitle = 'data-original-title',

@@ -73,5 +74,5 @@ dataOriginalText = 'data-original-text',

backdrop = 'backdrop', keyboard = 'keyboard', delay = 'delay',
content = 'content', target = 'target',
content = 'content', target = 'target',
interval = 'interval', pause = 'pause', animation = 'animation',
placement = 'placement', container = 'container',
placement = 'placement', container = 'container',

@@ -114,3 +115,3 @@ // box model

getBoundingClientRect = 'getBoundingClientRect',
querySelectorAll = 'querySelectorAll',
querySelectorAll = 'querySelectorAll',
getElementsByCLASSNAME = 'getElementsByClassName',

@@ -125,3 +126,3 @@

style = 'style',
active = 'active',

@@ -143,2 +144,5 @@ showClass = 'show',

// modal
modalOverlayRefCount = 0,
// transitionEnd since 2.0.4

@@ -270,3 +274,2 @@ supportTransitions = Webkit+Transition in doc[style] || Transition[toLowerCase]() in doc[style],

/* Native Javascript for Bootstrap 4 | Alert

@@ -814,3 +817,3 @@ -------------------------------------------*/

-------------------------------------------*/
// MODAL DEFINITION

@@ -823,3 +826,3 @@ // ===============

// determine modal, triggering element
// determine modal, triggering element
var btnCheck = element[getAttribute](dataTarget)||element[getAttribute]('href'),

@@ -861,5 +864,5 @@ checkModal = queryElement( btnCheck ),

setScrollbar = function () {
var bodyStyle = globalObject.getComputedStyle(body),
var bodyStyle = globalObject.getComputedStyle(body),
bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;
if (bodyIsOverflowing) {
if (bodyIsOverflowing) {
body[style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';

@@ -904,2 +907,6 @@ if (fixedItems[length]){

createOverlay = function() {
if ( modalOverlayRefCount > 1 ) { return; }
modalOverlayRefCount += 1;
var newOverlay = document.createElement('div');

@@ -915,3 +922,7 @@ overlay = queryElement('.'+modalBackdropString);

removeOverlay = function() {
overlay = queryElement('.'+modalBackdropString);
if (modalOverlayRefCount === 0) { return; }
modalOverlayRefCount -= 1;
overlay = queryElement('.'+modalBackdropString);
if ( overlay && overlay !== null && typeof overlay === 'object' ) {

@@ -963,9 +974,11 @@ body.removeChild(overlay); overlay = null;

removeClass(body,component+'-open');
removeOverlay();
if (self[backdrop]){
hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay)) : removeOverlay();
}
}
}, 100);
},
}, 50);
},
// handlers
clickHandler = function(e) {
var clickTarget = e[target];
var clickTarget = e[target];
clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];

@@ -987,3 +1000,3 @@ if ( !open && clickTarget === element && !hasClass(modal,showClass) ) {

var clickTarget = e[target];
if ( open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
if ( open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
|| clickTarget[getAttribute](dataDismiss) === component

@@ -1005,3 +1018,3 @@ || (clickTarget === modal && self[backdrop] !== staticString) ) ) {

var currentOpen = getElementsByClassName(document,component+' '+showClass)[0];
currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();
currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();

@@ -1041,4 +1054,2 @@ if ( this[backdrop] ) {

!!overlay && removeClass(overlay,showClass);
setTimeout(function(){

@@ -1061,3 +1072,3 @@ hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();

// prevent adding event handlers over and over
// modal is independent of a triggering element
// modal is independent of a triggering element
if ( !!element && !(stringModal in element) ) {

@@ -1073,3 +1084,2 @@ on(element, clickEvent, clickHandler);

/* Native Javascript for Bootstrap 4 | Popover

@@ -1100,5 +1110,3 @@ ----------------------------------------------*/

fade = 'fade',
title = 'title',
content = 'content',
dataTitle = 'data-title',
dataContent = 'data-content',

@@ -1549,5 +1557,5 @@ dismissible = 'dismissible',

var self = this, timer = 0, placementSetting = this[placement], tooltip = null,
titleString = element[getAttribute](title) || element[getAttribute](dataOriginalTitle);
titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle);
if ( !titleString ) return; // invalidate
if ( !titleString || titleString == "" ) return; // invalidate

@@ -1560,3 +1568,4 @@ // private methods

createToolTip = function() {
titleString = element[getAttribute](title) || element[getAttribute](dataOriginalTitle); // read the title again
titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle); // read the title again
if ( !titleString || titleString == "" ) return false; // invalidate
tooltip = document.createElement(div);

@@ -1603,3 +1612,3 @@ tooltip[setAttribute]('role',component);

placementSetting = self[placement]; // we reset placement in all cases
createToolTip();
if(createToolTip() == false) return;
updateTooltip();

@@ -1606,0 +1615,0 @@ showTooltip();

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

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

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

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

@@ -12,3 +12,3 @@ // ===============

// determine modal, triggering element
// determine modal, triggering element
var btnCheck = element[getAttribute](dataTarget)||element[getAttribute]('href'),

@@ -50,5 +50,5 @@ checkModal = queryElement( btnCheck ),

setScrollbar = function () {
var bodyStyle = body.currentStyle || globalObject.getComputedStyle(body),
var bodyStyle = body.currentStyle || globalObject.getComputedStyle(body),
bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;
if (bodyIsOverflowing) {
if (bodyIsOverflowing) {
body[style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';

@@ -93,2 +93,6 @@ if (fixedItems[length]){

createOverlay = function() {
if ( modalOverlayRefCount > 1 ) { return; }
modalOverlayRefCount += 1;
var newOverlay = document.createElement('div');

@@ -104,3 +108,7 @@ overlay = queryElement('.'+modalBackdropString);

removeOverlay = function() {
overlay = queryElement('.'+modalBackdropString);
if (modalOverlayRefCount === 0) { return; }
modalOverlayRefCount -= 1;
overlay = queryElement('.'+modalBackdropString);
if ( overlay && overlay !== null && typeof overlay === 'object' ) {

@@ -152,9 +160,11 @@ body.removeChild(overlay); overlay = null;

removeClass(body,component+'-open');
removeOverlay();
if (self[backdrop]){
hasClass(overlay,'fade') ? (removeClass(overlay,inClass), emulateTransitionEnd(overlay,removeOverlay)) : removeOverlay();
}
}
}, 100);
},
}, 50);
},
// handlers
clickHandler = function(e) {
var clickTarget = e[target];
var clickTarget = e[target];
clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];

@@ -176,3 +186,3 @@ if ( !open && clickTarget === element && !hasClass(modal,inClass) ) {

var clickTarget = e[target];
if ( open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
if ( open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
|| clickTarget[getAttribute](dataDismiss) === component

@@ -194,3 +204,3 @@ || (clickTarget === modal && self[backdrop] !== staticString) ) ) {

var currentOpen = getElementsByClassName(document,component+' in')[0];
currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();
currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();

@@ -230,4 +240,2 @@ if ( this[backdrop] ) {

!!overlay && removeClass(overlay,inClass);
setTimeout(function(){

@@ -250,3 +258,3 @@ hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();

// prevent adding event handlers over and over
// modal is independent of a triggering element
// modal is independent of a triggering element
if ( !!element && !(stringModal in element) ) {

@@ -261,2 +269,1 @@ on(element, clickEvent, clickHandler);

initializeDataAPI(stringModal, Modal, doc[querySelectorAll]('['+dataToggle+'="modal"]'));

@@ -27,5 +27,3 @@

fade = 'fade',
title = 'title',
content = 'content',
dataTitle = 'data-title',
dataContent = 'data-content',

@@ -32,0 +30,0 @@ dismissible = 'dismissible',

@@ -45,5 +45,5 @@

var self = this, timer = 0, placementSetting = this[placement], tooltip = null,
titleString = element[getAttribute](title) || element[getAttribute](dataOriginalTitle);
titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle);
if ( !titleString ) return; // invalidate
if ( !titleString || titleString == "" ) return; // invalidate

@@ -56,3 +56,5 @@ // private methods

createToolTip = function() {
titleString = element[getAttribute](title) || element[getAttribute](dataOriginalTitle); // read the title again
titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle); // read the title again
if ( !titleString || titleString == "" ) return false; // invalidate
tooltip = document.createElement(div);

@@ -96,3 +98,3 @@ tooltip[setAttribute]('role',component);

placementSetting = self[placement]; // we reset placement in all cases
createToolTip();
if(createToolTip() == false) return;
updateTooltip();

@@ -99,0 +101,0 @@ showTooltip();

@@ -36,2 +36,3 @@

dataPause = 'data-pause',
dataTitle = 'data-title',
dataOriginalTitle = 'data-original-title',

@@ -120,2 +121,5 @@ dataOriginalText = 'data-original-text',

// modal
modalOverlayRefCount = 0,
// transitionEnd since 2.0.4

@@ -122,0 +126,0 @@ supportTransitions = Webkit+Transition in doc[style] || Transition[toLowerCase]() in doc[style],

/* Native Javascript for Bootstrap 4 | Modal
-------------------------------------------*/
// MODAL DEFINITION

@@ -12,3 +12,3 @@ // ===============

// determine modal, triggering element
// determine modal, triggering element
var btnCheck = element[getAttribute](dataTarget)||element[getAttribute]('href'),

@@ -50,5 +50,5 @@ checkModal = queryElement( btnCheck ),

setScrollbar = function () {
var bodyStyle = globalObject.getComputedStyle(body),
var bodyStyle = globalObject.getComputedStyle(body),
bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;
if (bodyIsOverflowing) {
if (bodyIsOverflowing) {
body[style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';

@@ -93,2 +93,6 @@ if (fixedItems[length]){

createOverlay = function() {
if ( modalOverlayRefCount > 1 ) { return; }
modalOverlayRefCount += 1;
var newOverlay = document.createElement('div');

@@ -104,3 +108,7 @@ overlay = queryElement('.'+modalBackdropString);

removeOverlay = function() {
overlay = queryElement('.'+modalBackdropString);
if (modalOverlayRefCount === 0) { return; }
modalOverlayRefCount -= 1;
overlay = queryElement('.'+modalBackdropString);
if ( overlay && overlay !== null && typeof overlay === 'object' ) {

@@ -152,9 +160,11 @@ body.removeChild(overlay); overlay = null;

removeClass(body,component+'-open');
removeOverlay();
if (self[backdrop]){
hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay)) : removeOverlay();
}
}
}, 100);
},
}, 50);
},
// handlers
clickHandler = function(e) {
var clickTarget = e[target];
var clickTarget = e[target];
clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];

@@ -176,3 +186,3 @@ if ( !open && clickTarget === element && !hasClass(modal,showClass) ) {

var clickTarget = e[target];
if ( open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
if ( open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
|| clickTarget[getAttribute](dataDismiss) === component

@@ -194,3 +204,3 @@ || (clickTarget === modal && self[backdrop] !== staticString) ) ) {

var currentOpen = getElementsByClassName(document,component+' '+showClass)[0];
currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();
currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();

@@ -230,4 +240,2 @@ if ( this[backdrop] ) {

!!overlay && removeClass(overlay,showClass);
setTimeout(function(){

@@ -250,3 +258,3 @@ hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();

// prevent adding event handlers over and over
// modal is independent of a triggering element
// modal is independent of a triggering element
if ( !!element && !(stringModal in element) ) {

@@ -261,2 +269,1 @@ on(element, clickEvent, clickHandler);

initializeDataAPI(stringModal, Modal, doc[querySelectorAll]('['+dataToggle+'="modal"]'));

@@ -27,5 +27,3 @@

fade = 'fade',
title = 'title',
content = 'content',
dataTitle = 'data-title',
dataContent = 'data-content',

@@ -32,0 +30,0 @@ dismissible = 'dismissible',

@@ -45,5 +45,5 @@

var self = this, timer = 0, placementSetting = this[placement], tooltip = null,
titleString = element[getAttribute](title) || element[getAttribute](dataOriginalTitle);
titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle);
if ( !titleString ) return; // invalidate
if ( !titleString || titleString == "" ) return; // invalidate

@@ -56,3 +56,4 @@ // private methods

createToolTip = function() {
titleString = element[getAttribute](title) || element[getAttribute](dataOriginalTitle); // read the title again
titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle); // read the title again
if ( !titleString || titleString == "" ) return false; // invalidate
tooltip = document.createElement(div);

@@ -99,3 +100,3 @@ tooltip[setAttribute]('role',component);

placementSetting = self[placement]; // we reset placement in all cases
createToolTip();
if(createToolTip() == false) return;
updateTooltip();

@@ -102,0 +103,0 @@ showTooltip();

@@ -15,3 +15,3 @@

dataRide = 'data-ride',
// components

@@ -36,2 +36,3 @@ stringAlert = 'Alert',

dataPause = 'data-pause',
dataTitle = 'data-title',
dataOriginalTitle = 'data-original-title',

@@ -50,5 +51,5 @@ dataOriginalText = 'data-original-text',

backdrop = 'backdrop', keyboard = 'keyboard', delay = 'delay',
content = 'content', target = 'target',
content = 'content', target = 'target',
interval = 'interval', pause = 'pause', animation = 'animation',
placement = 'placement', container = 'container',
placement = 'placement', container = 'container',

@@ -91,3 +92,3 @@ // box model

getBoundingClientRect = 'getBoundingClientRect',
querySelectorAll = 'querySelectorAll',
querySelectorAll = 'querySelectorAll',
getElementsByCLASSNAME = 'getElementsByClassName',

@@ -102,3 +103,3 @@

style = 'style',
active = 'active',

@@ -120,2 +121,5 @@ showClass = 'show',

// modal
modalOverlayRefCount = 0,
// transitionEnd since 2.0.4

@@ -245,2 +249,1 @@ supportTransitions = Webkit+Transition in doc[style] || Transition[toLowerCase]() in doc[style],

};
{
"name": "bootstrap.native",
"version": "2.0.16",
"version": "2.0.17",
"description": "Native Javascript for Bootstrap, the sweetest Javascript library without jQuery.",

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

# Native JavaScript for Bootstrap
This is a library developed with native JavaScript for both <strong>Bootstrap 3</strong> and <strong>Bootstrap 4</strong> series, featuring superior performance compared to the original jQuery Plugins. Thanks to [Ingwie Phoenix](https://github.com/IngwiePhoenix) for contributing with npm/RequireJS/CommonJS compatibility. The library is only ***20Kb*** minified and ***6.5Kb*** gZipped.
This is a library developed with native JavaScript for both **Bootstrap 3** and **Bootstrap 4** series, featuring superior performance compared to the original jQuery Plugins.
See <a href="http://thednp.github.io/bootstrap.native/">demo</a> for scripting examples and instructions.
[![NPM Version](https://img.shields.io/npm/v/bootstrap.native.svg?style=flat-square)](https://www.npmjs.com/package/bootstrap.native)
[![NPM Downloads](https://img.shields.io/npm/dm/bootstrap.native.svg?style=flat-square)](http://npm-stat.com/charts.html?package=bootstrap.native)
[![jsDeliver](https://data.jsdelivr.com/v1/package/npm/bootstrap.native/badge)](https://www.jsdelivr.com/package/npm/bootstrap.native)
[![CDNJS](https://img.shields.io/cdnjs/v/bootstrap.native.svg?style=flat-square)](https://cdnjs.com/libraries/bootstrap.native)
The library is under ***20Kb*** minified and ***6.5Kb*** gZipped. See <a href="http://thednp.github.io/bootstrap.native/">demo</a> for scripting examples and instructions.
# Wiki

@@ -7,0 +12,0 @@ Please take a minute to check the `bootstrap.native` Wiki pages:

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

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