diff --git a/dist/bootstrap-native-v4.js b/dist/bootstrap-native-v4.js index a79fbd5f..6af05368 100644 --- a/dist/bootstrap-native-v4.js +++ b/dist/bootstrap-native-v4.js @@ -1,4 +1,4 @@ -// Native Javascript for Bootstrap 4 v2.0.6 | © dnp_theme | MIT-License +// Native Javascript for Bootstrap 4 v2.0.8 | © dnp_theme | MIT-License (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD support: @@ -737,9 +737,16 @@ removeClass(element,collapsed); if ( accordion !== null ) { - var activeCollapses = getElementsByClassName(accordion,component+' '+showClass); + var activeCollapses = getElementsByClassName(accordion,component+' '+showClass), + allToggles = accordion.querySelectorAll('['+dataToggle+'="'+component+'"]'), + correspondingCollapse; for (var i=0, al=activeCollapses[length]; i-1||l===r)&&new e(o[a])}},te=/^\#(.)+$/,ee=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[X]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},ne=function(t){for(var e=0,n=0,i=t.children[wt];n=0&&i[kt]>=0&&i[Ht]<=(t[K]||e[X])&&i[Mt]<=(t[J]||e[U])},oe=function(){return{y:t.pageYOffset||e[q],x:t.pageXOffset||e[z]}},ae=function(t,e,i,o){var a=t[Tt](),l=o===n?oe():{x:o[R]+o[z],y:o[O]+o[q]},r={w:a[Mt]-a[kt],h:a[Ht]-a[Bt]},c={w:e[Y],h:e[G]};i===Bt?(e[Dt][Bt]=a[Bt]+l.y-c.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===Ht?(e[Dt][Bt]=a[Bt]+l.y+r.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===kt?(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x-c.w+"px"):i===Mt&&(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x+r.w+"px"),e.className[xt](i)===-1&&(e.className=e.className.replace(Pt,i))},le=function(t){return t===Bt?Ht:t===Ht?Bt:t===kt?Mt:t===Mt?kt:t},re=function(t){t=Xt(t);var e=this,n="alert",i=Yt(t,"."+n),a=function(a){var l=a[N];l=l[vt](o)?l:l[yt],l&&l[vt](o)&&(i=Yt(l,"."+n),t=Xt("["+o+'="'+n+'"]',i),(t===l||t===l[yt])&&i&&e.close())},l=function(){Vt.call(i,st,n),Jt(t,tt,a),i[yt].removeChild(i)};this.close=function(){i&&t&&zt(i,Et)&&(Vt.call(i,ut,n),qt(i,Et),function(){i&&Qt(i,l)}())},r in t||Gt(t,tt,a),t[r]=this};_t(r,re,o);var ce=function(t){t=Xt(t);var e=!1,n="button",i="checked",o="LABEL",a="INPUT",l=function(l){var r=l[N][yt],c=l[N].tagName===o?l[N]:r.tagName===o?r:null;if(c){var u=this,s=Ut(u,"btn"),d=c[gt](a)[0];if(d){if("checkbox"===d.type&&(d[i]?(qt(c,Lt),d[pt](i),d.removeAttribute(i),d[i]=!1):(Rt(c,Lt),d[pt](i),d[mt](i,i),d[i]=!0),e||(e=!0,Vt.call(d,ht,n),Vt.call(t,ht,n))),"radio"===d.type&&!e&&!d[i]){Rt(c,Lt),d[mt](i,i),d[i]=!0,Vt.call(d,ht,n),Vt.call(t,ht,n),e=!0;for(var f=0,h=s[wt];fh||n===g-1&&0===h)&&(b=f[c]=Mt),f.slideTo(h)}},S=function(t){if(t.preventDefault(),!m){var e=t.currentTarget||t.srcElement;e===C?(h++,b=f[c]=kt,h===g-1?h=g-1:h===g&&(h=0)):e===y&&(h--,b=f[c]=Mt,0===h?h=0:h<0&&(h=g-1)),f.slideTo(h)}},k=function(t){if(!m){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=A[wt];e-1)&&(n.persist||l))return;r=null,p()}(/\#$/.test(s.href)||s[yt]&&/\#$/.test(s[yt].href))&&e.preventDefault()},h=function(){Vt.call(a,at,l,r),Rt(a,Et),c[mt](Z,!0),Vt.call(a,lt,l,r),Gt(document,nt,s),o=!0},p=function(){Vt.call(a,rt,l,r),qt(a,Et),c[mt](Z,!1),Vt.call(a,ct,l,r),Jt(document,nt,s),o=!1};this.toggle=function(){zt(a,Et)&&o?p():h()},d in t||(c[mt]("tabindex","0"),Gt(document,tt,f)),t[d]=this};_t(d,de,i);var fe=function(i,a){i=Xt(i);var l=i[pt](b)||i[pt]("href"),r=Xt(l),c=zt(i,"modal")?i:r,u="modal",s="static",d="paddingLeft",h="paddingRight",p="modal-backdrop";if(zt(i,"modal")&&(i=null),c){a=a||{},this[M]=a[M]!==!1&&"false"!==c[pt](T),this[k]=a[k]!==s&&c[pt](g)!==s||s,this[k]=a[k]!==!1&&"false"!==c[pt](g)&&this[k],this[H]=a[H];var m,v,x,y,w=this,C=this.open=!1,I=null,A=Ut(e,Nt).concat(Ut(e,Wt)),D=function(){var n=e[Tt]();return t[J]||n[Mt]-Math.abs(n[kt])},L=function(){var e,i=t.getComputedStyle(n),o=parseInt(i[h],10);if(m&&(n[Dt][h]=o+x+"px",A[wt]))for(var a=0;ae[X],x=S()},W=function(){c[Dt][d]=!m&&v?x+"px":"",c[Dt][h]=m&&!v?x+"px":""},F=function(){c[Dt][d]="",c[Dt][h]=""},P=function(){var t=document.createElement("div");y=Xt("."+p),null===y&&(t[mt]("class",p+" fade"),y=t,n.appendChild(y))},$=function(){y=Xt("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},j=function(){zt(c,Et)?Jt(document,nt,z):Gt(document,nt,z)},O=function(){zt(c,Et)?Jt(t,it,w.update):Gt(t,it,w.update)},R=function(){zt(c,Et)?Jt(c,tt,G):Gt(c,tt,G)},q=function(t){var e=t[N];e=e[vt](b)||e[vt]("href")?e:e[yt],C||e!==i||zt(c,Et)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},z=function(t){var e=t.which||t.keyCode;w[M]&&27==e&&C&&w.hide()},G=function(t){var e=t[N];C&&(e[yt][pt](o)===u||e[pt](o)===u||e===c&&w[k]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&zt(c,Et)?this.hide():this.show()},this.show=function(){Vt.call(c,at,u,I);var t=Ut(document,u+" "+Et)[0];t&&t!==c&&t.modalTrigger[f].hide(),this[k]&&P(),y&&!zt(y,Et)&&setTimeout(function(){Rt(y,Et)},0),setTimeout(function(){c[Dt].display="block",B(),L(),W(),O(),R(),j(),Rt(n,u+"-open"),Rt(c,Et),c[mt](_,!1),Qt(c,function(){C=w.open=!0,Ot(c),Vt.call(c,lt,u,I)})},$t?150:0)},this.hide=function(){Vt.call(c,rt,u),y=Xt("."+p),qt(c,Et),c[mt](_,!0),!!y&&qt(y,Et),setTimeout(function(){Qt(c,function(){O(),R(),j(),c[Dt].display="",C=w.open=!1,i&&Ot(i),Vt.call(c,ct,u),setTimeout(function(){Ut(document,u+" "+Et)[0]||(F(),E(),qt(n,u+"-open"),$())},100)})},$t?150:0)},this.setContent=function(t){Xt("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(B(),L(),W())},!i||f in i||Gt(i,tt,q),this[H]&&this.setContent(this[H]),!!i&&(i[f]=this)}};_t(f,fe,i);var he=function(e,i){e=Xt(e);var o=e[pt](A),a=e[pt](D),l=e[pt](E),r=e[pt](I),c=e[pt](S),u=e[pt](L),s="popover",d="template",f="trigger",p="class",m="div",v="fade",g="data-title",T="data-content",b="dismissible",x='',y=Yt(e,".modal"),w=Yt(e,"."+Nt),C=Yt(e,"."+Wt);i=i||{},this[d]=i[d]?i[d]:null,this[f]=i[f]?i[f]:o||et,this[P]=i[P]&&i[P]!==v?i[P]:a||v,this[$]=i[$]?i[$]:l||Bt,this[B]=parseInt(i[B]||c)||200,this[b]=!(!i[b]&&"true"!==r),this[j]=Xt(i[j])?Xt(i[j]):Xt(u)?Xt(u):w?w:C?C:y?y:n;var k=this,M=e[pt](g)||null,H=e[pt](T)||null;if(H||this[d]){var W=null,F=0,O=this[$],R=function(t){null!==W&&t[N]===Xt(".close",W)&&k.hide()},q=function(){k[j].removeChild(W),F=null,W=null},z=function(){if(M=e[pt](g),H=e[pt](T),W=document.createElement(m),null!==H&&null===k[d]){if(W[mt]("role","tooltip"),null!==M){var t=document.createElement("h3");t[mt](p,s+"-title"),t.innerHTML=k[b]?M+x:M,W.appendChild(t)}var n=document.createElement(m);n[mt](p,s+"-content"),n.innerHTML=k[b]&&null===M?H+x:H,W.appendChild(n)}else{var i=document.createElement(m);i.innerHTML=k[d],W.innerHTML=i.firstChild.innerHTML}k[j].appendChild(W),W[Dt].display="block",W[mt](p,s+" "+s+"-"+O+" "+k[P])},U=function(){!zt(W,Et)&&Rt(W,Et)},X=function(){ae(e,W,O,k[j]),ie(W)||(O=le(O),ae(e,W,O,k[j]))};this.toggle=function(){null===W?k.show():k.hide()},this.show=function(){clearTimeout(F),F=setTimeout(function(){null===W&&(O=k[$],z(),X(),U(),Vt.call(e,at,s),Qt(W,function(){Vt.call(e,lt,s)}))},20)},this.hide=function(){clearTimeout(F),F=setTimeout(function(){W&&null!==W&&zt(W,Et)&&(Vt.call(e,rt,s),qt(W,Et),Qt(W,function(){q(),Vt.call(e,ct,s)}))},k[B])},h in e||(k[f]===et?(Gt(e,Ft[0],k.show),k[b]||Gt(e,Ft[1],k.hide)):/^(click|focus)$/.test(k[f])&&(Gt(e,k[f],k.toggle),k[b]||Gt(e,"blur",k.hide)),k[b]&&Gt(document,tt,R),Gt(t,it,k.hide)),e[h]=k}};_t(h,he,i);var pe=function(e,n){e=Xt(e);var i=Xt(e[pt](b));if(n=n||{},n[N]||i){for(var o,a=n[N]&&Xt(n[N])||i,l=a&&a[gt]("A"),r=[],c=[],u=e[G]=f&&h>o;if(!d&&p)zt(n,Lt)||(Rt(n,Lt),d=!0,l&&!zt(l,Lt)&&Rt(l,Lt),Vt.call(e,"activate","scrollspy",r[t]));else if(p){if(!p&&!d||d&&p)return}else zt(n,Lt)&&(qt(n,Lt),d=!1,l&&zt(l,Lt)&&!Ut(n[yt],Lt).length&&qt(l,Lt))},g=function(){o=s?oe().y:e[q];for(var t=0,n=r[wt];t1&&(t=e[e[wt]-1]):t=e[0],t},h=function(){return Xt(f()[pt]("href"))},p=function(t){t.preventDefault(),r=t[N][pt](i)===o||te.test(t[N][pt]("href"))?t[N]:t[N][yt],u.show()};this.show=function(){var e=Xt(r[pt]("href")),n=f(),i=h();n[l]&&r[l]||zt(r,Lt)||(n[l]=r[l]=!0,qt(n,Lt),Rt(r,Lt),d&&(zt(t[yt],"dropdown-menu")?zt(d,Lt)||Rt(d,Lt):zt(d,Lt)&&qt(d,Lt)),c&&(c[Dt][a]=ne(i)+"px"),function(){qt(i,Et),Vt.call(n,rt,o,r),function(){Qt(i,function(){qt(i,Lt),Rt(e,Lt),setTimeout(function(){Rt(e,Et),e[G],c&&Rt(c,St),function(){Vt.call(r,at,o,n),function(){c&&(c[Dt][a]=ne(e)+"px"),Vt.call(n,ct,o,r)}()}()},20)})}()}(),function(){Qt(e,function(){Vt.call(r,lt,o,n),c?!function(){Qt(c,function(){setTimeout(function(){c[Dt][a]="",qt(c,St),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},m in t||Gt(t,tt,p),this[a]&&(c=h()[yt]),t[m]=this}};_t(m,me,i);var ve=function(t,e){t=Xt(t);var i=t[pt](D);placementData=t[pt](E),delayData=t[pt](S),containerData=t[pt](L),component="tooltip",classString="class",title="title",fade="fade",div="div",modal=Yt(t,".modal"),navbarFixedTop=Yt(t,"."+Nt),navbarFixedBottom=Yt(t,"."+Wt),e=e||{},this[P]=e[P]&&e[P]!==fade?e[P]:i||fade,this[$]=e[$]?e[$]:placementData||Bt,this[B]=parseInt(e[B]||delayData)||200,this[j]=Xt(e[j])?Xt(e[j]):Xt(containerData)?Xt(containerData):navbarFixedTop?navbarFixedTop:navbarFixedBottom?navbarFixedBottom:modal?modal:n;var o=this,a=0,l=this[$],r=null,c=t[pt](title)||t[pt](C);if(c){var u=function(){o[j].removeChild(r),r=null,a=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[j].appendChild(r),r[mt](classString,component+" "+component+"-"+l+" "+o[P])},d=function(){ae(t,r,l,o[j]),ie(r)||(l=le(l),ae(t,r,l,o[j]))},f=function(){!zt(r,Et)&&Rt(r,Et)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[$],s(),d(),f(),Vt.call(t,at,component),Qt(r,function(){Vt.call(t,lt,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&zt(r,Et)&&(Vt.call(t,rt,component),qt(r,Et),Qt(r,function(){u(),Vt.call(t,ct,component)}))},o[B])},this.toggle=function(){r?o.hide():o.show()},v in t||(t[mt](C,c),t.removeAttribute(title),Gt(t,Ft[0],this.show),Gt(t,Ft[1],this.hide)),t[v]=this}};return _t(v,ve,i),{Alert:re,Button:ce,Carousel:ue,Collapse:se,Dropdown:de,Modal:fe,Popover:he,ScrollSpy:pe,Tab:me,Tooltip:ve}}); +// Native Javascript for Bootstrap 4 v2.0.8 | © 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",v="Tab",m="Tooltip",g="data-backdrop",T="data-keyboard",b="data-target",y="data-interval",x="data-height",w="data-pause",C="data-original-title",A="data-dismissible",I="data-trigger",L="data-animation",E="data-container",k="data-placement",M="data-delay",S="backdrop",D="keyboard",B="delay",H="content",N="target",W="interval",P="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",ut="close",st="closed",ft="slid",dt="slide",ht="change",pt="getAttribute",vt="setAttribute",mt="hasAttribute",gt="getElementsByTagName",Tt="getBoundingClientRect",bt="getElementsByClassName",yt="indexOf",xt="parentNode",wt="length",Ct="toLowerCase",At="Transition",It="Webkit",Lt="style",Et="active",kt="show",Mt="collapsing",St="left",Dt="right",Bt="top",Ht="bottom",Nt="fixed-top",Wt="fixed-bottom",Pt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],$t=/\b(top|bottom|left|top)+/,jt=It+At in e[Lt]||At[Ct]()in e[Lt],Ot=It+At in e[Lt]?It[Ct]()+At+"End":At[Ct]()+"end",qt=function(t){t.focus?t.focus():t.setActive()},Rt=function(t,e){t.classList.add(e)},zt=function(t,e){t.classList.remove(e)},Ut=function(t,e){return t.classList.contains(e)},Xt=function(t,e){return[].slice.call(t[bt](e))},Yt=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Ft=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[xt])if("."===n){if(null!==Yt(e,t[xt])&&Ut(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},Gt=function(t,e,n){t.addEventListener(e,n,!1)},Jt=function(t,e,n){t.removeEventListener(e,n,!1)},Kt=function(t,e,n){Gt(t,e,function i(o){n(o),Jt(t,e,i)})},Qt=function(t,e){jt?Kt(t,Ot,function(t){e(t)}):e()},Vt=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Zt=document[gt]("*"),_t=function(t,e,n,i){for(var o=i&&i[wt]?i:Zt,l=0;l-1||a===r)&&new e(o[l])}},te=/^\#(.)+$/,ee=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)},ne=function(t){for(var e=0,n=0,i=t.children[wt];n=0&&i[St]>=0&&i[Ht]<=(t[K]||e[Y])&&i[Dt]<=(t[J]||e[X])},oe=function(){return{y:t.pageYOffset||e[z],x:t.pageXOffset||e[U]}},le=function(t,e,i,o){var l=t[Tt](),a=o===n?oe():{x:o[R]+o[U],y:o[q]+o[z]},r={w:l[Dt]-l[St],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][St]=l[St]+a.x-c.w/2+r.w/2+"px"):i===Ht?(e[Lt][Bt]=l[Bt]+a.y+r.h+"px",e[Lt][St]=l[St]+a.x-c.w/2+r.w/2+"px"):i===St?(e[Lt][Bt]=l[Bt]+a.y-c.h/2+r.h/2+"px",e[Lt][St]=l[St]+a.x-c.w+"px"):i===Dt&&(e[Lt][Bt]=l[Bt]+a.y-c.h/2+r.h/2+"px",e[Lt][St]=l[St]+a.x+r.w+"px"),e.className[yt](i)===-1&&(e.className=e.className.replace($t,i))},ae=function(t){return t===Bt?Ht:t===Ht?Bt:t===St?Dt:t===Dt?St:t},re=function(t){t=Yt(t);var e=this,n="alert",i=Ft(t,"."+n),l=function(l){var a=l[N];a=a[mt](o)?a:a[xt],a&&a[mt](o)&&(i=Ft(a,"."+n),t=Yt("["+o+'="'+n+'"]',i),(t===a||t===a[xt])&&i&&e.close())},a=function(){Vt.call(i,st,n),Jt(t,tt,l),i[xt].removeChild(i)};this.close=function(){i&&t&&Ut(i,kt)&&(Vt.call(i,ut,n),zt(i,kt),function(){i&&Qt(i,a)}())},r in t||Gt(t,tt,l),t[r]=this};_t(r,re,o);var ce=function(t){t=Yt(t);var e=!1,n="button",i="checked",o="LABEL",l="INPUT",a=function(a){var r=a[N][xt],c=a[N].tagName===o?a[N]:r.tagName===o?r:null;if(c){var u=this,s=Xt(u,"btn"),f=c[gt](l)[0];if(f){if("checkbox"===f.type&&(f[i]?(zt(c,Et),f[pt](i),f.removeAttribute(i),f[i]=!1):(Rt(c,Et),f[pt](i),f[vt](i,i),f[i]=!0),e||(e=!0,Vt.call(f,ht,n),Vt.call(t,ht,n))),"radio"===f.type&&!e&&!f[i]){Rt(c,Et),f[vt](i,i),f[i]=!0,Vt.call(f,ht,n),Vt.call(t,ht,n),e=!0;for(var d=0,h=s[wt];dh||n===g-1&&0===h)&&(b=d[c]=Dt),d.slideTo(h)}},M=function(t){if(t.preventDefault(),!v){var e=t.currentTarget||t.srcElement;e===C?(h++,b=d[c]=St,h===g-1?h=g-1:h===g&&(h=0)):e===x&&(h--,b=d[c]=Dt,0===h?h=0:h<0&&(h=g-1)),d.slideTo(h)}},S=function(t){if(!v){switch(t.which){case 39:h++,b=d[c]=St,h==g-1?h=g-1:h==g&&(h=0);break;case 37:h--,b=d[c]=Dt,0==h?h=0:h<0&&(h=g-1);break;default:return}d.slideTo(h)}},B=function(t){for(var e=0,n=I[wt];e-1)&&(n.persist||a))return;r=null,p()}(/\#$/.test(s.href)||s[xt]&&/\#$/.test(s[xt].href))&&e.preventDefault()},h=function(){Vt.call(l,lt,a,r),Rt(l,kt),c[vt](Z,!0),Vt.call(l,at,a,r),Gt(document,nt,s),o=!0},p=function(){Vt.call(l,rt,a,r),zt(l,kt),c[vt](Z,!1),Vt.call(l,ct,a,r),Jt(document,nt,s),o=!1};this.toggle=function(){Ut(l,kt)&&o?p():h()},f in t||(c[vt]("tabindex","0"),Gt(document,tt,d)),t[f]=this};_t(f,fe,i);var de=function(i,l){i=Yt(i);var a=i[pt](b)||i[pt]("href"),r=Yt(a),c=Ut(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",h="paddingRight",p="modal-backdrop";if(Ut(i,"modal")&&(i=null),c){l=l||{},this[D]=l[D]!==!1&&"false"!==c[pt](T),this[S]=l[S]!==s&&c[pt](g)!==s||s,this[S]=l[S]!==!1&&"false"!==c[pt](g)&&this[S],this[H]=l[H];var v,m,y,x,w=this,C=this.open=!1,A=null,I=Xt(e,Nt).concat(Xt(e,Wt)),L=function(){var n=e[Tt]();return t[J]||n[Dt]-Math.abs(n[St])},E=function(){var e,i=t.getComputedStyle(n),o=parseInt(i[h],10);if(v&&(n[Lt][h]=o+y+"px",I[wt]))for(var l=0;le[Y],y=M()},W=function(){c[Lt][f]=!v&&m?y+"px":"",c[Lt][h]=v&&!m?y+"px":""},P=function(){c[Lt][f]="",c[Lt][h]=""},$=function(){var t=document.createElement("div");x=Yt("."+p),null===x&&(t[vt]("class",p+" fade"),x=t,n.appendChild(x))},j=function(){x=Yt("."+p),x&&null!==x&&"object"==typeof x&&(n.removeChild(x),x=null)},O=function(){Ut(c,kt)?Jt(document,nt,U):Gt(document,nt,U)},q=function(){Ut(c,kt)?Jt(t,it,w.update):Gt(t,it,w.update)},R=function(){Ut(c,kt)?Jt(c,tt,G):Gt(c,tt,G)},z=function(t){var e=t[N];e=e[mt](b)||e[mt]("href")?e:e[xt],C||e!==i||Ut(c,kt)||(c.modalTrigger=i,A=i,w.show(),t.preventDefault())},U=function(t){var e=t.which||t.keyCode;w[D]&&27==e&&C&&w.hide()},G=function(t){var e=t[N];C&&(e[xt][pt](o)===u||e[pt](o)===u||e===c&&w[S]!==s)&&(w.hide(),A=null,t.preventDefault())};this.toggle=function(){C&&Ut(c,kt)?this.hide():this.show()},this.show=function(){Vt.call(c,lt,u,A);var t=Xt(document,u+" "+kt)[0];t&&t!==c&&t.modalTrigger[d].hide(),this[S]&&$(),x&&!Ut(x,kt)&&setTimeout(function(){Rt(x,kt)},0),setTimeout(function(){c[Lt].display="block",B(),E(),W(),q(),R(),O(),Rt(n,u+"-open"),Rt(c,kt),c[vt](_,!1),Qt(c,function(){C=w.open=!0,qt(c),Vt.call(c,at,u,A)})},jt?150:0)},this.hide=function(){Vt.call(c,rt,u),x=Yt("."+p),zt(c,kt),c[vt](_,!0),!!x&&zt(x,kt),setTimeout(function(){Qt(c,function(){q(),R(),O(),c[Lt].display="",C=w.open=!1,i&&qt(i),Vt.call(c,ct,u),setTimeout(function(){Xt(document,u+" "+kt)[0]||(P(),k(),zt(n,u+"-open"),j())},100)})},jt?150:0)},this.setContent=function(t){Yt("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(B(),E(),W())},!i||d in i||Gt(i,tt,z),this[H]&&this.setContent(this[H]),!!i&&(i[d]=this)}};_t(d,de,i);var he=function(e,i){e=Yt(e);var o=e[pt](I),l=e[pt](L),a=e[pt](k),r=e[pt](A),c=e[pt](M),u=e[pt](E),s="popover",f="template",d="trigger",p="class",v="div",m="fade",g="data-title",T="data-content",b="dismissible",y='',x=Ft(e,".modal"),w=Ft(e,"."+Nt),C=Ft(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||Bt,this[B]=parseInt(i[B]||c)||200,this[b]=!(!i[b]&&"true"!==r),this[O]=Yt(i[O])?Yt(i[O]):Yt(u)?Yt(u):w?w:C?C:x?x:n;var S=this,D=e[pt](g)||null,H=e[pt](T)||null;if(H||this[f]){var W=null,P=0,q=this[j],R=function(t){null!==W&&t[N]===Yt(".close",W)&&S.hide()},z=function(){S[O].removeChild(W),P=null,W=null},U=function(){if(D=e[pt](g),H=e[pt](T),W=document.createElement(v),null!==H&&null===S[f]){if(W[vt]("role","tooltip"),null!==D){var t=document.createElement("h3");t[vt](p,s+"-title"),t.innerHTML=S[b]?D+y:D,W.appendChild(t)}var n=document.createElement(v);n[vt](p,s+"-content"),n.innerHTML=S[b]&&null===D?H+y:H,W.appendChild(n)}else{var i=document.createElement(v);i.innerHTML=S[f],W.innerHTML=i.firstChild.innerHTML}S[O].appendChild(W),W[Lt].display="block",W[vt](p,s+" "+s+"-"+q+" "+S[$])},X=function(){!Ut(W,kt)&&Rt(W,kt)},Y=function(){le(e,W,q,S[O]),ie(W)||(q=ae(q),le(e,W,q,S[O]))};this.toggle=function(){null===W?S.show():S.hide()},this.show=function(){clearTimeout(P),P=setTimeout(function(){null===W&&(q=S[j],U(),Y(),X(),Vt.call(e,lt,s),Qt(W,function(){Vt.call(e,at,s)}))},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){W&&null!==W&&Ut(W,kt)&&(Vt.call(e,rt,s),zt(W,kt),Qt(W,function(){z(),Vt.call(e,ct,s)}))},S[B])},h in e||(S[d]===et?(Gt(e,Pt[0],S.show),S[b]||Gt(e,Pt[1],S.hide)):/^(click|focus)$/.test(S[d])&&(Gt(e,S[d],S.toggle),S[b]||Gt(e,"blur",S.hide)),S[b]&&Gt(document,tt,R),Gt(t,it,S.hide)),e[h]=S}};_t(h,he,i);var pe=function(e,n){e=Yt(e);var i=Yt(e[pt](b));if(n=n||{},n[N]||i){for(var o,l=n[N]&&Yt(n[N])||i,a=l&&l[gt]("A"),r=[],c=[],u=e[G]=d&&h>o;if(!f&&p)Ut(n,Et)||(Rt(n,Et),f=!0,a&&!Ut(a,Et)&&Rt(a,Et),Vt.call(e,"activate","scrollspy",r[t]));else if(p){if(!p&&!f||f&&p)return}else Ut(n,Et)&&(zt(n,Et),f=!1,a&&Ut(a,Et)&&!Xt(n[xt],Et).length&&zt(a,Et))},g=function(){o=s?oe().y:e[z];for(var t=0,n=r[wt];t1&&(t=e[e[wt]-1]):t=e[0],t},h=function(){return Yt(d()[pt]("href"))},p=function(t){t.preventDefault(),r=t[N][pt](i)===o||te.test(t[N][pt]("href"))?t[N]:t[N][xt],u.show()};this.show=function(){var e=Yt(r[pt]("href")),n=d(),i=h();n[a]&&r[a]||Ut(r,Et)||(n[a]=r[a]=!0,zt(n,Et),Rt(r,Et),f&&(Ut(t[xt],"dropdown-menu")?Ut(f,Et)||Rt(f,Et):Ut(f,Et)&&zt(f,Et)),c&&(c[Lt][l]=ne(i)+"px"),function(){zt(i,kt),Vt.call(n,rt,o,r),function(){Qt(i,function(){zt(i,Et),Rt(e,Et),setTimeout(function(){Rt(e,kt),e[G],c&&Rt(c,Mt),function(){Vt.call(r,lt,o,n),function(){c&&(c[Lt][l]=ne(e)+"px"),Vt.call(n,ct,o,r)}()}()},20)})}()}(),function(){Qt(e,function(){Vt.call(r,at,o,n),c?!function(){Qt(c,function(){setTimeout(function(){c[Lt][l]="",zt(c,Mt),n[a]=r[a]=!1},200)})}():n[a]=r[a]=!1})}())},v in t||Gt(t,tt,p),this[l]&&(c=h()[xt]),t[v]=this}};_t(v,ve,i);var me=function(t,e){t=Yt(t);var i=t[pt](L),o=t[pt](k),l=t[pt](M),a=t[pt](E),r="tooltip",c="class",u="title",s="fade",f="div",d=Ft(t,".modal"),h=Ft(t,"."+Nt),p=Ft(t,"."+Wt);e=e||{},this[$]=e[$]&&e[$]!==s?e[$]:i||s,this[j]=e[j]?e[j]:o||Bt,this[B]=parseInt(e[B]||l)||200,this[O]=Yt(e[O])?Yt(e[O]):Yt(a)?Yt(a):h?h:p?p:d?d:n;var v=this,g=0,T=this[j],b=null,y=t[pt](u)||t[pt](C);if(y){var x=function(){v[O].removeChild(b),b=null,g=null},w=function(){y=t[pt](u)||t[pt](C),b=document.createElement(f),b[vt]("role",r);var e=document.createElement(f);e[vt](c,r+"-inner"),b.appendChild(e),e.innerHTML=y,v[O].appendChild(b),b[vt](c,r+" "+r+"-"+T+" "+v[$])},A=function(){le(t,b,T,v[O]),ie(b)||(T=ae(T),le(t,b,T,v[O]))},I=function(){!Ut(b,kt)&&Rt(b,kt)};this.show=function(){clearTimeout(g),g=setTimeout(function(){null===b&&(T=v[j],w(),A(),I(),Vt.call(t,lt,r),Qt(b,function(){Vt.call(t,at,r)}))},20)},this.hide=function(){clearTimeout(g),g=setTimeout(function(){b&&null!==b&&Ut(b,kt)&&(Vt.call(t,rt,r),zt(b,kt),Qt(b,function(){x(),Vt.call(t,ct,r)}))},v[B])},this.toggle=function(){b?v.hide():v.show()},m in t||(t[vt](C,y),t.removeAttribute(u),Gt(t,Pt[0],this.show),Gt(t,Pt[1],this.hide)),t[m]=this}};return _t(m,me,i),{Alert:re,Button:ce,Carousel:ue,Collapse:se,Dropdown:fe,Modal:de,Popover:he,ScrollSpy:pe,Tab:ve,Tooltip:me}}); diff --git a/dist/bootstrap-native.js b/dist/bootstrap-native.js index 44d42623..a4cddd26 100644 --- a/dist/bootstrap-native.js +++ b/dist/bootstrap-native.js @@ -1,4 +1,4 @@ -// Native Javascript for Bootstrap 3 v2.0.7 | © dnp_theme | MIT-License +// Native Javascript for Bootstrap 3 v2.0.8 | © dnp_theme | MIT-License (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD support: @@ -823,7 +823,7 @@ // event targets and constants - var accordion = null, collapse = null, self = this, + var accordion = null, collapse = null, self = this, isAnimating = false, // when true it will prevent click handlers accordionData = element[getAttribute]('data-parent'), @@ -894,9 +894,16 @@ removeClass(element,collapsed); if ( accordion !== null ) { - var activeCollapses = getElementsByClassName(accordion,component+' '+inClass); + var activeCollapses = getElementsByClassName(accordion,component+' '+inClass), + allToggles = accordion[querySelectorAll]('['+dataToggle+'="'+component+'"]'), + correspondingCollapse; for (var i=0, al=activeCollapses[length]; i-1||l===r)&&new e(o[a])}},se=/^\#(.)+$/,fe=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[Q]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},de=function(t){for(var e=0,n=0,i=t.children[Mt];n=0&&i[jt]>=0&&i[zt]<=(t[tt]||e[Q])&&i[Ot]<=(t[_]||e[K])},pe=function(){return{y:t.pageYOffset||e[G],x:t.pageXOffset||e[J]}},me=function(t,e,i,o){var a=t[Ct](),l=o===n?pe():{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[Bt][qt]=a[qt]+l.y-c.h+"px",e[Bt][jt]=a[jt]+l.x-c.w/2+r.w/2+"px"):i===zt?(e[Bt][qt]=a[qt]+l.y+r.h+"px",e[Bt][jt]=a[jt]+l.x-c.w/2+r.w/2+"px"):i===jt?(e[Bt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Bt][jt]=a[jt]+l.x-c.w+"px"):i===Ot&&(e[Bt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Bt][jt]=a[jt]+l.x+r.w+"px"),e.className[Lt](i)===-1&&(e.className=e.className.replace(Ft,i))},ve=function(t){return t===qt?zt:t===zt?qt:t===jt?Ot:t===Ot?jt:t},ge=function(i,o){i=ee(i),o=o||{};var a=i[xt](T),l=i[xt](B),c=i[xt](D),u="affix",s="affixed",f="function",d="update",h="affix-top",p="affixed-top",m="affix-bottom",v="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,y,w,C,I=this,A=Gt?50:500,L=!1,E=!1,M=function(){return Math.max(n[et],n[Z],e[Q],e[et],e[Z])},k=function(){return null!==I[j]?I[j][Ct]()[qt]+y:I[X]?parseInt(typeof I[X]===f?I[X]():I[X]||0):void 0},S=function(){if(I[Y])return x-i[Z]-parseInt(typeof I[Y]===f?I[Y]():I[Y]||0)},H=function(){x=M(),y=parseInt(pe().y,0),g=k(),b=S(),w=parseInt(g)-y<0&&y>parseInt(g),C=parseInt(b)-y<0&&y>parseInt(b)},N=function(){L||Zt(i,u)||(re.call(i,u,u),re.call(i,h,u),Qt(i,u),L=!0,re.call(i,s,u),re.call(i,p,u))},W=function(){L&&Zt(i,u)&&(Vt(i,u),L=!1)},P=function(){E||Zt(i,m)||(re.call(i,u,u),re.call(i,m,u),Qt(i,m),E=!0,re.call(i,s,u),re.call(i,v,u))},$=function(){E&&Zt(i,m)&&(Vt(i,m),E=!1)},O=function(){C?(w&&W(),P()):($(),w?N():W())};this[d]=function(){H(),O()},r in i||(ie(t,ut,this[d]),ie(t,ct,function(){setTimeout(function(){I[d]()},A)})),i[r]=this,this[d]()}};ue(r,ge,a);var be=function(t){t=ee(t);var e=this,n="alert",i=ne(t,"."+n),a=function(a){var l=a[j];l=l[yt](o)?l:l[Et],l&&l[yt](o)&&(i=ne(l,"."+n),t=ee("["+o+'="'+n+'"]',i),(t===l||t===l[Et])&&i&&e.close())},l=function(){re.call(i,mt,n),oe(t,at,a),i[Et].removeChild(i)};this.close=function(){i&&t&&Zt(i,Nt)&&(re.call(i,pt,n),Vt(i,Nt),function(){i&&le(i,l)}())},c in t||ie(t,at,a),t[c]=this};ue(c,be,o);var xe=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===$t&&(Qt(t,Pt),t[Tt](Pt,Pt)),t[Tt](A,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[xt]("data-"+e+"-text"))},s=function(){t[xt](A)&&((Zt(t,Pt)||t[xt](Pt)===Pt)&&(Vt(t,Pt),t.removeAttribute(Pt)),t.innerHTML=t[xt](A))},f=function(e){var a=e[j][Et],c=e[j].tagName===l?e[j]:a.tagName===l?a:null;if(c){var u=this,s=te(u,"btn"),f=c[wt](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Vt(c,Dt),f[xt](o),f.removeAttribute(o),f[o]=!1):(Qt(c,Dt),f[xt](o),f[Tt](o,o),f[o]=!0),n||(n=!0,re.call(f,bt,i),re.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){Qt(c,Dt),f[Tt](o,o),f[o]=!0,re.call(f,bt,i),re.call(t,bt,i),n=!0;for(var d=0,h=s[Mt];dd||n===v-1&&0===d)&&(g=f[c]=Ot),f.slideTo(d)}},k=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===w?(d++,g=f[c]=jt,d===v-1?d=v-1:d===v&&(d=0)):e===T&&(d--,g=f[c]=Ot,0===d?d=0:d<0&&(d=v-1)),f.slideTo(d)}},S=function(t){if(!p){switch(t.which){case 39:d++,g=f[c]=jt,d==v-1?d=v-1:d==v&&(d=0);break;case 37:d--,g=f[c]=Ot,0==d?d=0:d<0&&(d=v-1);break;default:return}f.slideTo(d)}},H=function(t){for(var e=0,n=A[Mt];e-1)&&(n.persist||l))return;c=null,m()}(/\#$/.test(r.href)||r[Et]&&/\#$/.test(r[Et].href))&&e.preventDefault()},p=function(){re.call(a,st,l,c),Qt(a,r),u[Tt](it,!0),re.call(a,ft,l,c),ie(document,rt,f),o=!0},m=function(){re.call(a,dt,l,c),Vt(a,r),u[Tt](it,!1),re.call(a,ht,l,c),oe(document,rt,f),o=!1};this.toggle=function(){Zt(a,r)&&o?m():p()},d in t||(u[Tt]("tabindex","0"),ie(document,at,h)),t[d]=this};ue(d,we,i);var Ce=function(i,a){i=ee(i);var l=i[xt](T)||i[xt]("href"),r=ee(l),c=Zt(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",d="paddingRight",p="modal-backdrop";if(Zt(i,"modal")&&(i=null),c){a=a||{},this[W]=a[W]!==!1&&"false"!==c[xt](x),this[N]=a[N]!==s&&c[xt](b)!==s||s,this[N]=a[N]!==!1&&"false"!==c[xt](b)&&this[N],this[$]=a[$];var m,v,g,y,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(m&&(n[Bt][d]=o+g+"px",A[Mt]))for(var a=0;ae[Q],g=k()},H=function(){c[Bt][f]=!m&&v?g+"px":"",c[Bt][d]=m&&!v?g+"px":""},B=function(){c[Bt][f]="",c[Bt][d]=""},D=function(){var t=document.createElement("div");y=ee("."+p),null===y&&(t[Tt]("class",p+" fade"),y=t,n.appendChild(y))},P=function(){y=ee("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},O=function(){Zt(c,Nt)?oe(document,rt,U):ie(document,rt,U)},q=function(){Zt(c,Nt)?oe(t,ct,w.update):ie(t,ct,w.update)},z=function(){Zt(c,Nt)?oe(c,at,X):ie(c,at,X)},R=function(t){var e=t[j];e=e[yt](T)||e[yt]("href")?e:e[Et],C||e!==i||Zt(c,Nt)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},U=function(t){var e=t.which||t.keyCode;w[W]&&27==e&&C&&w.hide()},X=function(t){var e=t[j];C&&(e[Et][xt](o)===u||e[xt](o)===u||e===c&&w[N]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&Zt(c,Nt)?this.hide():this.show()},this.show=function(){re.call(c,st,u,I);var t=te(document,u+" in")[0];t&&t!==c&&t.modalTrigger[h].hide(),this[N]&&D(),y&&!Zt(y,Nt)&&setTimeout(function(){Qt(y,Nt)},0),setTimeout(function(){c[Bt].display="block",S(),E(),H(),q(),z(),O(),Qt(n,u+"-open"),Qt(c,Nt),c[Tt](ot,!1),le(c,function(){C=w.open=!0,Kt(c),re.call(c,ft,u,I)})},Gt?150:0)},this.hide=function(){re.call(c,dt,u),y=ee("."+p),Vt(c,Nt),c[Tt](ot,!0),!!y&&Vt(y,Nt),setTimeout(function(){le(c,function(){q(),z(),O(),c[Bt].display="",C=w.open=!1,i&&Kt(i),re.call(c,ht,u),setTimeout(function(){te(document,u+" "+Nt)[0]||(B(),M(),Vt(n,u+"-open"),P())},100)})},Gt?150:0)},this.setContent=function(t){ee("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(S(),E(),H())},!i||h in i||ie(i,at,R),this[$]&&this.setContent(this[$]),!!i&&(i[h]=this)}};ue(h,Ce,i);var Ie=function(e,i){e=ee(e);var o=e[xt](E),a=e[xt](M),l=e[xt](S),r=e[xt](L),c=e[xt](H),u=e[xt](k),s="popover",f="template",d="trigger",h="class",m="div",v="fade",g="data-title",b="data-content",x="dismissible",T='',y=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]!==v?i[z]:a||v,this[R]=i[R]?i[R]:l||qt,this[P]=parseInt(i[P]||c)||200,this[x]=!(!i[x]&&"true"!==r),this[U]=ee(i[U])?ee(i[U]):ee(u)?ee(u):w?w:C?C:y?y:n;var I=this,A=e[xt](g)||null,B=e[xt](b)||null;if(B||this[f]){var D=null,N=0,W=this[R],$=function(t){null!==D&&t[j]===ee(".close",D)&&I.hide()},O=function(){I[U].removeChild(D),N=null,D=null},q=function(){if(A=e[xt](g),B=e[xt](b),D=document.createElement(m),null!==B&&null===I[f]){if(D[Tt]("role","tooltip"),null!==A){var t=document.createElement("h3");t[Tt](h,s+"-title"),t.innerHTML=I[x]?A+T:A,D.appendChild(t)}var n=document.createElement(m),i=document.createElement(m);n[Tt](h,"arrow"),i[Tt](h,s+"-content"),D.appendChild(n),D.appendChild(i),i.innerHTML=I[x]&&null===A?B+T:B}else{var o=document.createElement(m);o.innerHTML=I[f],D.innerHTML=o.firstChild.innerHTML}I[U].appendChild(D),D[Bt].display="block",D[Tt](h,s+" "+W+" "+I[z])},X=function(){!Zt(D,Nt)&&Qt(D,Nt)},Y=function(){me(e,D,W,I[U]),he(D)||(W=ve(W),me(e,D,W,I[U]))};this.toggle=function(){null===D?I.show():I.hide()},this.show=function(){clearTimeout(N),N=setTimeout(function(){null===D&&(W=I[R],q(),Y(),X(),re.call(e,st,s),le(D,function(){re.call(e,ft,s)}))},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){D&&null!==D&&Zt(D,Nt)&&(re.call(e,dt,s),Vt(D,Nt),le(D,function(){O(),re.call(e,ht,s)}))},I[P])},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,$),!Rt&&ie(t,ct,I.hide)),e[p]=I}};ue(p,Ie,i);var Ae=function(e,n){e=ee(e);var i=ee(e[xt](T));if(n=n||{},n[j]||i){for(var o,a=n[j]&&ee(n[j])||i,l=a&&a[wt]("A"),r=[],c=[],u=e[Z]=f&&d>o;if(!u&&h)"LI"!==n.tagName||Zt(n,Dt)||(Qt(n,Dt),u=!0,a&&!Zt(a,Dt)&&Qt(a,Dt),re.call(e,"activate","scrollspy",r[t]));else if(h){if(!h&&!u||u&&h)return}else"LI"===n.tagName&&Zt(n,Dt)&&(Vt(n,Dt),u=!1,a&&Zt(a,Dt)&&!te(n[Et],Dt).length&&Vt(a,Dt))},g=function(){o=s?pe().y:e[G];for(var t=0,n=r[Mt];t1&&(t=e[e[Mt]-1]):t=e[0],t[wt]("A")[0]},h=function(){return ee(d()[xt]("href"))},p=function(t){t.preventDefault(),r=t[j][xt](i)===o||se.test(t[j][xt]("href"))?t[j]:t[j][Et],u.show()};this.show=function(){var e=ee(r[xt]("href")),n=d(),i=h();n[l]&&r[l]||Zt(r[Et],Dt)||(n[l]=r[l]=!0,Vt(n[Et],Dt),Qt(r[Et],Dt),f&&(Zt(t[Et][Et],"dropdown-menu")?Zt(f,Dt)||Qt(f,Dt):Zt(f,Dt)&&Vt(f,Dt)),c&&(c[Bt][a]=de(i)+"px"),function(){Vt(i,Nt),re.call(n,dt,o,r),function(){le(i,function(){Vt(i,Dt),Qt(e,Dt),setTimeout(function(){Qt(e,Nt),e[Z],c&&Qt(c,Wt),function(){re.call(r,st,o,n),function(){c&&(c[Bt][a]=de(e)+"px"),re.call(n,ht,o,r)}()}()},20)})}()}(),function(){le(e,function(){re.call(r,ft,o,n),c?!function(){le(c,function(){setTimeout(function(){c[Bt][a]="",Vt(c,Wt),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},v in t||ie(t,at,p),this[a]&&(c=h()[Et]),t[v]=this}};ue(v,Le,i);var Ee=function(t,e){t=ee(t);var i=t[xt](M),o=t[xt](S),a=t[xt](H),l=t[xt](k),r="tooltip",c="class",u="title",s="fade",f="div",d=ne(t,".modal"),h=ne(t,"."+Ut),p=ne(t,"."+Xt);e=e||{},this[z]=e[z]&&e[z]!==s?e[z]:i||s,this[R]=e[R]?e[R]:o||qt,this[P]=parseInt(e[P]||a)||200,this[U]=ee(e[U])?ee(e[U]):ee(l)?ee(l):h?h:p?p:d?d:n;var m=this,v=0,b=this[R],x=null,T=t[xt](u)||t[xt](I);if(T){var y=function(){m[U].removeChild(x),x=null,v=null},w=function(){T=t[xt](u)||t[xt](I),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=T,m[U].appendChild(x),x[Tt](c,r+" "+b+" "+m[z])},C=function(){me(t,x,b,m[U]),he(x)||(b=ve(b),me(t,x,b,m[U]))},A=function(){!Zt(x,Nt)&&Qt(x,Nt)};this.show=function(){clearTimeout(v),v=setTimeout(function(){null===x&&(b=m[R],w(),C(),A(),re.call(t,st,r),le(x,function(){re.call(t,ft,r)}))},20)},this.hide=function(){clearTimeout(v),v=setTimeout(function(){x&&null!==x&&Zt(x,Nt)&&(re.call(t,dt,r),Vt(x,Nt),le(x,function(){y(),re.call(t,ht,r)}))},m[P])},this.toggle=function(){x?m.hide():m.show()},g in t||(t[Tt](I,T),t.removeAttribute(u),ie(t,Yt[0],this.show),ie(t,Yt[1],this.hide)),t[g]=this}};return ue(g,Ee,i),{Affix:ge,Alert:be,Button:xe,Carousel:Te,Collapse:ye,Dropdown:we,Modal:Ce,Popover:Ie,ScrollSpy:Ae,Tab:Le,Tooltip:Ee}}); +// Native Javascript for Bootstrap 3 v2.0.8 | © 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="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",m="ScrollSpy",v="Tab",g="Tooltip",b="data-backdrop",x="data-keyboard",T="data-target",y="data-interval",w="data-height",C="data-pause",I="data-original-title",A="data-original-text",L="data-dismissible",E="data-trigger",M="data-animation",k="data-container",S="data-placement",H="data-delay",B="data-offset-top",D="data-offset-bottom",N="backdrop",W="keyboard",P="delay",$="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",ut="scroll",st="show",ft="shown",dt="hide",ht="hidden",pt="close",mt="closed",vt="slid",gt="slide",bt="change",xt="getAttribute",Tt="setAttribute",yt="hasAttribute",wt="getElementsByTagName",Ct="getBoundingClientRect",It="querySelectorAll",At="getElementsByClassName",Lt="indexOf",Et="parentNode",Mt="length",kt="toLowerCase",St="Transition",Ht="Webkit",Bt="style",Dt="active",Nt="in",Wt="collapsing",Pt="disabled",$t="loading",jt="left",Ot="right",qt="top",zt="bottom",Rt=!("opacity"in n[Bt]),Ut="navbar-fixed-top",Xt="navbar-fixed-bottom",Yt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Ft=/\b(top|bottom|left|top)+/,Gt=Ht+St in e[Bt]||St[kt]()in e[Bt],Jt=Ht+St in e[Bt]?Ht[kt]()+St+"End":St[kt]()+"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[Mt];n-1||l===r)&&new e(o[a])}},se=/^\#(.)+$/,fe=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[Q]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},de=function(t){for(var e=0,n=0,i=t.children[Mt];n=0&&i[jt]>=0&&i[zt]<=(t[tt]||e[Q])&&i[Ot]<=(t[_]||e[K])},pe=function(){return{y:t.pageYOffset||e[G],x:t.pageXOffset||e[J]}},me=function(t,e,i,o){var a=t[Ct](),l=o===n?pe():{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[Bt][qt]=a[qt]+l.y-c.h+"px",e[Bt][jt]=a[jt]+l.x-c.w/2+r.w/2+"px"):i===zt?(e[Bt][qt]=a[qt]+l.y+r.h+"px",e[Bt][jt]=a[jt]+l.x-c.w/2+r.w/2+"px"):i===jt?(e[Bt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Bt][jt]=a[jt]+l.x-c.w+"px"):i===Ot&&(e[Bt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Bt][jt]=a[jt]+l.x+r.w+"px"),e.className[Lt](i)===-1&&(e.className=e.className.replace(Ft,i))},ve=function(t){return t===qt?zt:t===zt?qt:t===jt?Ot:t===Ot?jt:t},ge=function(i,o){i=ee(i),o=o||{};var a=i[xt](T),l=i[xt](B),c=i[xt](D),u="affix",s="affixed",f="function",d="update",h="affix-top",p="affixed-top",m="affix-bottom",v="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,y,w,C,I=this,A=Gt?50:500,L=!1,E=!1,M=function(){return Math.max(n[et],n[Z],e[Q],e[et],e[Z])},k=function(){return null!==I[j]?I[j][Ct]()[qt]+y:I[X]?parseInt(typeof I[X]===f?I[X]():I[X]||0):void 0},S=function(){if(I[Y])return x-i[Z]-parseInt(typeof I[Y]===f?I[Y]():I[Y]||0)},H=function(){x=M(),y=parseInt(pe().y,0),g=k(),b=S(),w=parseInt(g)-y<0&&y>parseInt(g),C=parseInt(b)-y<0&&y>parseInt(b)},N=function(){L||Zt(i,u)||(re.call(i,u,u),re.call(i,h,u),Qt(i,u),L=!0,re.call(i,s,u),re.call(i,p,u))},W=function(){L&&Zt(i,u)&&(Vt(i,u),L=!1)},P=function(){E||Zt(i,m)||(re.call(i,u,u),re.call(i,m,u),Qt(i,m),E=!0,re.call(i,s,u),re.call(i,v,u))},$=function(){E&&Zt(i,m)&&(Vt(i,m),E=!1)},O=function(){C?(w&&W(),P()):($(),w?N():W())};this[d]=function(){H(),O()},r in i||(ie(t,ut,this[d]),ie(t,ct,function(){setTimeout(function(){I[d]()},A)})),i[r]=this,this[d]()}};ue(r,ge,a);var be=function(t){t=ee(t);var e=this,n="alert",i=ne(t,"."+n),a=function(a){var l=a[j];l=l[yt](o)?l:l[Et],l&&l[yt](o)&&(i=ne(l,"."+n),t=ee("["+o+'="'+n+'"]',i),(t===l||t===l[Et])&&i&&e.close())},l=function(){re.call(i,mt,n),oe(t,at,a),i[Et].removeChild(i)};this.close=function(){i&&t&&Zt(i,Nt)&&(re.call(i,pt,n),Vt(i,Nt),function(){i&&le(i,l)}())},c in t||ie(t,at,a),t[c]=this};ue(c,be,o);var xe=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===$t&&(Qt(t,Pt),t[Tt](Pt,Pt)),t[Tt](A,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[xt]("data-"+e+"-text"))},s=function(){t[xt](A)&&((Zt(t,Pt)||t[xt](Pt)===Pt)&&(Vt(t,Pt),t.removeAttribute(Pt)),t.innerHTML=t[xt](A))},f=function(e){var a=e[j][Et],c=e[j].tagName===l?e[j]:a.tagName===l?a:null;if(c){var u=this,s=te(u,"btn"),f=c[wt](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Vt(c,Dt),f[xt](o),f.removeAttribute(o),f[o]=!1):(Qt(c,Dt),f[xt](o),f[Tt](o,o),f[o]=!0),n||(n=!0,re.call(f,bt,i),re.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){Qt(c,Dt),f[Tt](o,o),f[o]=!0,re.call(f,bt,i),re.call(t,bt,i),n=!0;for(var d=0,h=s[Mt];dd||n===v-1&&0===d)&&(g=f[c]=Ot),f.slideTo(d)}},k=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===w?(d++,g=f[c]=jt,d===v-1?d=v-1:d===v&&(d=0)):e===T&&(d--,g=f[c]=Ot,0===d?d=0:d<0&&(d=v-1)),f.slideTo(d)}},S=function(t){if(!p){switch(t.which){case 39:d++,g=f[c]=jt,d==v-1?d=v-1:d==v&&(d=0);break;case 37:d--,g=f[c]=Ot,0==d?d=0:d<0&&(d=v-1);break;default:return}f.slideTo(d)}},H=function(t){for(var e=0,n=A[Mt];e-1)&&(n.persist||l))return;c=null,m()}(/\#$/.test(r.href)||r[Et]&&/\#$/.test(r[Et].href))&&e.preventDefault()},p=function(){re.call(a,st,l,c),Qt(a,r),u[Tt](it,!0),re.call(a,ft,l,c),ie(document,rt,f),o=!0},m=function(){re.call(a,dt,l,c),Vt(a,r),u[Tt](it,!1),re.call(a,ht,l,c),oe(document,rt,f),o=!1};this.toggle=function(){Zt(a,r)&&o?m():p()},d in t||(u[Tt]("tabindex","0"),ie(document,at,h)),t[d]=this};ue(d,we,i);var Ce=function(i,a){i=ee(i);var l=i[xt](T)||i[xt]("href"),r=ee(l),c=Zt(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",d="paddingRight",p="modal-backdrop";if(Zt(i,"modal")&&(i=null),c){a=a||{},this[W]=a[W]!==!1&&"false"!==c[xt](x),this[N]=a[N]!==s&&c[xt](b)!==s||s,this[N]=a[N]!==!1&&"false"!==c[xt](b)&&this[N],this[$]=a[$];var m,v,g,y,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(m&&(n[Bt][d]=o+g+"px",A[Mt]))for(var a=0;ae[Q],g=k()},H=function(){c[Bt][f]=!m&&v?g+"px":"",c[Bt][d]=m&&!v?g+"px":""},B=function(){c[Bt][f]="",c[Bt][d]=""},D=function(){var t=document.createElement("div");y=ee("."+p),null===y&&(t[Tt]("class",p+" fade"),y=t,n.appendChild(y))},P=function(){y=ee("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},O=function(){Zt(c,Nt)?oe(document,rt,U):ie(document,rt,U)},q=function(){Zt(c,Nt)?oe(t,ct,w.update):ie(t,ct,w.update)},z=function(){Zt(c,Nt)?oe(c,at,X):ie(c,at,X)},R=function(t){var e=t[j];e=e[yt](T)||e[yt]("href")?e:e[Et],C||e!==i||Zt(c,Nt)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},U=function(t){var e=t.which||t.keyCode;w[W]&&27==e&&C&&w.hide()},X=function(t){var e=t[j];C&&(e[Et][xt](o)===u||e[xt](o)===u||e===c&&w[N]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&Zt(c,Nt)?this.hide():this.show()},this.show=function(){re.call(c,st,u,I);var t=te(document,u+" in")[0];t&&t!==c&&t.modalTrigger[h].hide(),this[N]&&D(),y&&!Zt(y,Nt)&&setTimeout(function(){Qt(y,Nt)},0),setTimeout(function(){c[Bt].display="block",S(),E(),H(),q(),z(),O(),Qt(n,u+"-open"),Qt(c,Nt),c[Tt](ot,!1),le(c,function(){C=w.open=!0,Kt(c),re.call(c,ft,u,I)})},Gt?150:0)},this.hide=function(){re.call(c,dt,u),y=ee("."+p),Vt(c,Nt),c[Tt](ot,!0),!!y&&Vt(y,Nt),setTimeout(function(){le(c,function(){q(),z(),O(),c[Bt].display="",C=w.open=!1,i&&Kt(i),re.call(c,ht,u),setTimeout(function(){te(document,u+" "+Nt)[0]||(B(),M(),Vt(n,u+"-open"),P())},100)})},Gt?150:0)},this.setContent=function(t){ee("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(S(),E(),H())},!i||h in i||ie(i,at,R),this[$]&&this.setContent(this[$]),!!i&&(i[h]=this)}};ue(h,Ce,i);var Ie=function(e,i){e=ee(e);var o=e[xt](E),a=e[xt](M),l=e[xt](S),r=e[xt](L),c=e[xt](H),u=e[xt](k),s="popover",f="template",d="trigger",h="class",m="div",v="fade",g="data-title",b="data-content",x="dismissible",T='',y=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]!==v?i[z]:a||v,this[R]=i[R]?i[R]:l||qt,this[P]=parseInt(i[P]||c)||200,this[x]=!(!i[x]&&"true"!==r),this[U]=ee(i[U])?ee(i[U]):ee(u)?ee(u):w?w:C?C:y?y:n;var I=this,A=e[xt](g)||null,B=e[xt](b)||null;if(B||this[f]){var D=null,N=0,W=this[R],$=function(t){null!==D&&t[j]===ee(".close",D)&&I.hide()},O=function(){I[U].removeChild(D),N=null,D=null},q=function(){if(A=e[xt](g),B=e[xt](b),D=document.createElement(m),null!==B&&null===I[f]){if(D[Tt]("role","tooltip"),null!==A){var t=document.createElement("h3");t[Tt](h,s+"-title"),t.innerHTML=I[x]?A+T:A,D.appendChild(t)}var n=document.createElement(m),i=document.createElement(m);n[Tt](h,"arrow"),i[Tt](h,s+"-content"),D.appendChild(n),D.appendChild(i),i.innerHTML=I[x]&&null===A?B+T:B}else{var o=document.createElement(m);o.innerHTML=I[f],D.innerHTML=o.firstChild.innerHTML}I[U].appendChild(D),D[Bt].display="block",D[Tt](h,s+" "+W+" "+I[z])},X=function(){!Zt(D,Nt)&&Qt(D,Nt)},Y=function(){me(e,D,W,I[U]),he(D)||(W=ve(W),me(e,D,W,I[U]))};this.toggle=function(){null===D?I.show():I.hide()},this.show=function(){clearTimeout(N),N=setTimeout(function(){null===D&&(W=I[R],q(),Y(),X(),re.call(e,st,s),le(D,function(){re.call(e,ft,s)}))},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){D&&null!==D&&Zt(D,Nt)&&(re.call(e,dt,s),Vt(D,Nt),le(D,function(){O(),re.call(e,ht,s)}))},I[P])},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,$),!Rt&&ie(t,ct,I.hide)),e[p]=I}};ue(p,Ie,i);var Ae=function(e,n){e=ee(e);var i=ee(e[xt](T));if(n=n||{},n[j]||i){for(var o,a=n[j]&&ee(n[j])||i,l=a&&a[wt]("A"),r=[],c=[],u=e[Z]=f&&d>o;if(!u&&h)"LI"!==n.tagName||Zt(n,Dt)||(Qt(n,Dt),u=!0,a&&!Zt(a,Dt)&&Qt(a,Dt),re.call(e,"activate","scrollspy",r[t]));else if(h){if(!h&&!u||u&&h)return}else"LI"===n.tagName&&Zt(n,Dt)&&(Vt(n,Dt),u=!1,a&&Zt(a,Dt)&&!te(n[Et],Dt).length&&Vt(a,Dt))},g=function(){o=s?pe().y:e[G];for(var t=0,n=r[Mt];t1&&(t=e[e[Mt]-1]):t=e[0],t[wt]("A")[0]},h=function(){return ee(d()[xt]("href"))},p=function(t){t.preventDefault(),r=t[j][xt](i)===o||se.test(t[j][xt]("href"))?t[j]:t[j][Et],u.show()};this.show=function(){var e=ee(r[xt]("href")),n=d(),i=h();n[l]&&r[l]||Zt(r[Et],Dt)||(n[l]=r[l]=!0,Vt(n[Et],Dt),Qt(r[Et],Dt),f&&(Zt(t[Et][Et],"dropdown-menu")?Zt(f,Dt)||Qt(f,Dt):Zt(f,Dt)&&Vt(f,Dt)),c&&(c[Bt][a]=de(i)+"px"),function(){Vt(i,Nt),re.call(n,dt,o,r),function(){le(i,function(){Vt(i,Dt),Qt(e,Dt),setTimeout(function(){Qt(e,Nt),e[Z],c&&Qt(c,Wt),function(){re.call(r,st,o,n),function(){c&&(c[Bt][a]=de(e)+"px"),re.call(n,ht,o,r)}()}()},20)})}()}(),function(){le(e,function(){re.call(r,ft,o,n),c?!function(){le(c,function(){setTimeout(function(){c[Bt][a]="",Vt(c,Wt),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},v in t||ie(t,at,p),this[a]&&(c=h()[Et]),t[v]=this}};ue(v,Le,i);var Ee=function(t,e){t=ee(t);var i=t[xt](M),o=t[xt](S),a=t[xt](H),l=t[xt](k),r="tooltip",c="class",u="title",s="fade",f="div",d=ne(t,".modal"),h=ne(t,"."+Ut),p=ne(t,"."+Xt);e=e||{},this[z]=e[z]&&e[z]!==s?e[z]:i||s,this[R]=e[R]?e[R]:o||qt,this[P]=parseInt(e[P]||a)||200,this[U]=ee(e[U])?ee(e[U]):ee(l)?ee(l):h?h:p?p:d?d:n;var m=this,v=0,b=this[R],x=null,T=t[xt](u)||t[xt](I);if(T){var y=function(){m[U].removeChild(x),x=null,v=null},w=function(){T=t[xt](u)||t[xt](I),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=T,m[U].appendChild(x),x[Tt](c,r+" "+b+" "+m[z])},C=function(){me(t,x,b,m[U]),he(x)||(b=ve(b),me(t,x,b,m[U]))},A=function(){!Zt(x,Nt)&&Qt(x,Nt)};this.show=function(){clearTimeout(v),v=setTimeout(function(){null===x&&(b=m[R],w(),C(),A(),re.call(t,st,r),le(x,function(){re.call(t,ft,r)}))},20)},this.hide=function(){clearTimeout(v),v=setTimeout(function(){x&&null!==x&&Zt(x,Nt)&&(re.call(t,dt,r),Vt(x,Nt),le(x,function(){y(),re.call(t,ht,r)}))},m[P])},this.toggle=function(){x?m.hide():m.show()},g in t||(t[Tt](I,T),t.removeAttribute(u),ie(t,Yt[0],this.show),ie(t,Yt[1],this.hide)),t[g]=this}};return ue(g,Ee,i),{Affix:ge,Alert:be,Button:xe,Carousel:Te,Collapse:ye,Dropdown:we,Modal:Ce,Popover:Ie,ScrollSpy:Ae,Tab:Le,Tooltip:Ee}});