bootstrap.native
Advanced tools
Comparing version 2.0.10 to 2.0.11
@@ -1,2 +0,2 @@ | ||
// Native Javascript for Bootstrap 4 v2.0.10 | © dnp_theme | MIT-License | ||
// Native Javascript for Bootstrap 4 v2.0.11 | © dnp_theme | MIT-License | ||
(function (root, factory) { | ||
@@ -795,4 +795,4 @@ if (typeof define === 'function' && define.amd) { | ||
clickHandler = function(e) { | ||
var eventTarget = e[target], hasData; | ||
hasData = ( eventTarget.nodeType !== 1 && (eventTarget[getAttribute](dataToggle) || eventTarget[parentNode][getAttribute](dataToggle)) ); | ||
var eventTarget = e[target], | ||
hasData = eventTarget && (eventTarget[getAttribute](dataToggle) || eventTarget[parentNode] && eventTarget[parentNode][getAttribute](dataToggle)); | ||
if ( eventTarget === element || eventTarget === parent || eventTarget[parentNode] === element ) { | ||
@@ -799,0 +799,0 @@ e.preventDefault(); // comment this line to stop preventing navigation when click target is a link |
@@ -1,2 +0,2 @@ | ||
// Native Javascript for Bootstrap 4 v2.0.10 | © 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<o[wt];l++){var a=o[l][pt](n),r=t.replace(/spy/i,"")[Ct]();(a&&t===c&&a[yt](r)>-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<i;n++)e+=ee(t.children[n]);return e},ie=function(n){var i=n[Tt]();return i[Bt]>=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(){Ut(i,"fade")?Qt(i,c):c()},a=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())},c=function(){Vt.call(i,st,n),Jt(t,tt,a),i[xt].removeChild(i)};this.close=function(){i&&t&&Ut(i,kt)&&(Vt.call(i,ut,n),zt(i,kt),i&&l())},r in t||Gt(t,tt,a),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];d<h;d++){var p=s[d],v=p[gt](l)[0];p!==c&&Ut(p,Et)&&(zt(p,Et),v.removeAttribute(i),v[i]=!1,Vt.call(v,ht,n))}}setTimeout(function(){e=!1},50)}}};Ut(t,"btn-group")&&(c in t||Gt(t,tt,a),t[c]=this)};_t(c,ce,i);var ue=function(e,n){e=Yt(e),n=n||{};var i="false"!==e[pt](y)&&(parseInt(e[pt](y))||5e3),o=e[pt](w)===et||!1,l="true"===e[pt](T)||!1,a="carousel",r="paused",c="direction",s="carousel-item",f="data-slide-to";this[D]=n[D]===!0||l,this[P]=!(n[P]!==et&&!o)&&et,n[W]||i?this[W]=parseInt(n[W])||i:this[W]=!1;var d=this,h=e.index=0,p=e.timer=0,v=!1,m=Xt(e,s),g=m[wt],b=this[c]=St,x=Xt(e,a+"-control-prev")[0],C=Xt(e,a+"-control-next")[0],A=Yt("."+a+"-indicators",e),I=A&&A[gt]("LI")||[],L=function(){d[W]===!1||Ut(e,r)||(Rt(e,r),!v&&clearInterval(p))},E=function(){d[W]!==!1&&Ut(e,r)&&(zt(e,r),!v&&clearInterval(p),!v&&d.cycle())},k=function(t){if(t.preventDefault(),!v){var e=t[N],n=d.getActiveIndex();if(!e||Ut(e,Et)||!e[pt](f))return!1;h=parseInt(e[pt](f),10),n<h||0===n&&h===g-1?b=d[c]=St:(n>h||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<n;e++)zt(I[e],Et);I[t]&&Rt(I[t],Et)};this.cycle=function(){b=this[c]=St,p=setInterval(function(){h++,h=h===g?0:h,d.slideTo(h)},this[W])},this.slideTo=function(n){var i=this.getActiveIndex(),o=b===St?"next":"prev";Vt.call(e,dt,a,m[n]),v=!0,clearInterval(p),B(n),jt&&Ut(e,"slide")&&(t.getComputedStyle(m[n])[At[Ct]()]||t.getComputedStyle(m[n])[It[Ct]()+At]||t.getComputedStyle(m[n])[It+At+"Duration"])?(Rt(m[n],s+"-"+o),m[n][F],Rt(m[n],s+"-"+b),Rt(m[i],s+"-"+b),Kt(m[i],Ot,function(t){var l=t[N]!==m[i]?1e3*t.elapsedTime:0;setTimeout(function(){v=!1,Rt(m[n],Et),zt(m[i],Et),zt(m[n],s+"-"+o),zt(m[n],s+"-"+b),zt(m[i],s+"-"+b),Vt.call(e,ft,a,m[n]),document.hidden||!d[W]||Ut(e,r)||d.cycle()},l)})):(Rt(m[n],Et),m[n][F],zt(m[i],Et),setTimeout(function(){v=!1,d[W]&&!Ut(e,r)&&d.cycle(),Vt.call(e,ft,a,m[n])},100))},this.getActiveIndex=function(){return m[yt](Xt(e,s+" active")[0])||0},u in e||(this[P]&&this[W]&&(Gt(e,Pt[0],L),Gt(e,Pt[1],E),Gt(e,"touchstart",L),Gt(e,"touchend",E)),C&&Gt(C,tt,M),x&&Gt(x,tt,M),A&&Gt(A,tt,k,!1),this[D]===!0&&Gt(t,nt,S,!1)),this.getActiveIndex()<0&&(m[wt]&&Rt(m[0],Et),I[wt]&&B(0)),this[W]&&this.cycle(),e[u]=this};_t(u,ue,a);var se=function(t,e){t=Yt(t),e=e||{};var n=null,o=null,l=this,a=!1,r=t[pt]("data-parent"),c="collapse",u="collapsed",f=function(t){Vt.call(t,lt,c),a=!0,Rt(t,Mt),Rt(t,kt),setTimeout(function(){t[Lt][V]=ne(t)+"px",function(){Qt(t,function(){a=!1,t[vt](Z,"true"),zt(t,Mt),t[Lt][V]="",Vt.call(t,at,c)})}()},20)},d=function(t){Vt.call(t,rt,c),a=!0,t[Lt][V]=ne(t)+"px",setTimeout(function(){Rt(t,Mt),t[Lt][V]="0px",function(){Qt(t,function(){a=!1,t[vt](Z,"false"),zt(t,Mt),zt(t,kt),t[Lt][V]="",Vt.call(t,ct,c)})}()},20)},h=function(){var e=t.href&&t[pt]("href"),n=t[pt](b),i=e||n&&te.test(n)&&n;return i&&Yt(i)};this.toggle=function(t){t.preventDefault(),a||(Ut(o,kt)?l.hide():l.show())},this.hide=function(){d(o),Rt(t,u)},this.show=function(){if(f(o),zt(t,u),null!==n){for(var e,l=Xt(n,c+" "+kt),a=n.querySelectorAll("["+i+'="'+c+'"]'),r=0,s=l[wt];r<s;r++)l[r]!==o&&d(l[r]);for(var h=0,p=a[wt];h<p;h++)e=a[h][pt](b)||a[h].href,e.split("#")[1]!==o.id?Rt(a[h],u):zt(a[h],u)}},s in t||Gt(t,tt,this.toggle),o=h(),n=Yt(e.parent)||r&&Ft(t,r),t[s]=this};_t(s,se,i);var fe=function(t,e){t=Yt(t),this.persist=e===!0||"true"===t[pt]("data-persist")||!1;var n=this,o=!1,l=t[xt],a="dropdown",r=null,c=Yt(".dropdown-menu",l),u=[].slice.call(c[gt]("*")),s=function(t){!o||27!=t.which&&27!=t.keyCode||(r=null,p())},d=function(e){var a,s=e[N];if(a=1!==s.nodeType&&(s[pt](i)||s[xt][pt](i)),s===t||s===l||s[xt]===t)e.preventDefault(),r=t,n.toggle();else if(o){if((s===c||u&&u[yt](s)>-1)&&(n.persist||a))return;r=null,p()}(/\#$/.test(s.href)||s[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;l<I[wt];l++)e=t.getComputedStyle(I[l])[h],I[l][Lt][h]=parseInt(e)+y+"px"},k=function(){if(n[Lt][h]="",I[wt])for(var t=0;t<I[wt];t++)I[t][Lt][h]=""},M=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[F]-e[X],n.removeChild(e),t},B=function(){v=n[X]<L(),m=c[Q]>e[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,K):Gt(document,nt,K)},q=function(){Ut(c,kt)?Jt(t,it,w.update):Gt(t,it,w.update)},R=function(){Ut(c,kt)?Jt(c,tt,V):Gt(c,tt,V)},z=function(){C=w.open=!0,qt(c),Vt.call(c,at,u,A)},U=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)},G=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())},K=function(t){var e=t.which||t.keyCode;w[D]&&27==e&&C&&w.hide()},V=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),Ut(c,"fade")?Qt(c,z):z()},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(){Ut(c,"fade")?Qt(c,U):U()},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,G),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='<button type="button" class="close">×</button>',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]))},F=function(){Vt.call(e,at,s)},G=function(){z(),Vt.call(e,ct,s)};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),S[$]?Qt(W,F):F())},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){W&&null!==W&&Ut(W,kt)&&(Vt.call(e,rt,s),zt(W,kt),S[$]?Qt(W,G):G())},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]<e[Q]?e:t,s=u===t,f=0,d=a[wt];f<d;f++){var h=a[f][pt]("href"),v=h&&te.test(h)&&Yt(h);v&&(r.push(a[f]),c.push(v))}var m=function(t){var n=r[t],i=c[t],l=n[xt][xt],a=Ut(l,"dropdown")&&l[gt]("A")[0],u=s&&i[Tt](),f=Ut(n,Et)||!1,d=s?u[Bt]+o:i[q]-(c[t-1]?0:10),h=s?u[Ht]+o:c[t+1]?c[t+1][q]:e[Q],p=o>=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];t<n;t++)m(t)};this.refresh=function(){g()},p in e||(Gt(u,ot,this.refresh),Gt(t,it,this.refresh)),this.refresh(),e[p]=this}};_t(p,pe,l);var ve=function(t,e){t=Yt(t);var n=t[pt](x),o="tab",l="height",a="isAnimating";t[a]=!1,e=e||{},this[l]=!!jt&&(e[l]||"true"===n);var r,c,u,s,f,d=this,h=Ft(t,".nav"),p=h&&Yt(".dropdown-toggle",h),m=function(){Vt.call(r,at,o,u),c?!function(){setTimeout(function(){c[Lt][l]="",zt(c,Mt),u[a]=r[a]=!1},200)}():u[a]=r[a]=!1},g=function(){zt(s,Et),Rt(f,Et),setTimeout(function(){Rt(f,kt),f[G],c&&Rt(c,Mt),function(){Vt.call(r,lt,o,u),function(){c&&(c[Lt][l]=ne(f)+"px"),Vt.call(u,ct,o,r)}()}()},20)};if(h){var T=function(){var t,e=Xt(h,Et);return 1!==e[wt]||Ut(e[0][xt],"dropdown")?e[wt]>1&&(t=e[e[wt]-1]):t=e[0],t},b=function(){return Yt(T()[pt]("href"))},y=function(t){t.preventDefault(),r=t[N][pt](i)===o||te.test(t[N][pt]("href"))?t[N]:t[N][xt],d.show()};this.show=function(){f=Yt(r[pt]("href")),u=T(),s=b(),u[a]&&r[a]||Ut(r,Et)||(u[a]=r[a]=!0,zt(u,Et),Rt(r,Et),p&&(Ut(t[xt],"dropdown-menu")?Ut(p,Et)||Rt(p,Et):Ut(p,Et)&&zt(p,Et)),c&&(c[Lt][l]=ne(s)+"px"),function(){zt(s,kt),Vt.call(u,rt,o,r),function(){Ut(s,"fade")?Qt(s,g):g()}()}(),function(){Ut(f,"fade")?Qt(f,m):m()}())},v in t||Gt(t,tt,y),this[l]&&(c=b()[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)},S=function(){Vt.call(t,at,r)},D=function(){x(),Vt.call(t,ct,r)};this.show=function(){clearTimeout(g),g=setTimeout(function(){null===b&&(T=v[j],w(),A(),I(),Vt.call(t,lt,r),v[$]?Qt(b,S):S())},20)},this.hide=function(){clearTimeout(g),g=setTimeout(function(){b&&null!==b&&Ut(b,kt)&&(Vt.call(t,rt,r),zt(b,kt),v[$]?Qt(b,D):D())},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}}); | ||
// Native Javascript for Bootstrap 4 v2.0.11 | © 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<o[wt];l++){var a=o[l][pt](n),r=t.replace(/spy/i,"")[Ct]();(a&&t===c&&a[yt](r)>-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<i;n++)e+=ee(t.children[n]);return e},ie=function(n){var i=n[Tt]();return i[Bt]>=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(){Ut(i,"fade")?Qt(i,c):c()},a=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())},c=function(){Vt.call(i,st,n),Jt(t,tt,a),i[xt].removeChild(i)};this.close=function(){i&&t&&Ut(i,kt)&&(Vt.call(i,ut,n),zt(i,kt),i&&l())},r in t||Gt(t,tt,a),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];d<h;d++){var p=s[d],v=p[gt](l)[0];p!==c&&Ut(p,Et)&&(zt(p,Et),v.removeAttribute(i),v[i]=!1,Vt.call(v,ht,n))}}setTimeout(function(){e=!1},50)}}};Ut(t,"btn-group")&&(c in t||Gt(t,tt,a),t[c]=this)};_t(c,ce,i);var ue=function(e,n){e=Yt(e),n=n||{};var i="false"!==e[pt](y)&&(parseInt(e[pt](y))||5e3),o=e[pt](w)===et||!1,l="true"===e[pt](T)||!1,a="carousel",r="paused",c="direction",s="carousel-item",f="data-slide-to";this[D]=n[D]===!0||l,this[P]=!(n[P]!==et&&!o)&&et,n[W]||i?this[W]=parseInt(n[W])||i:this[W]=!1;var d=this,h=e.index=0,p=e.timer=0,v=!1,m=Xt(e,s),g=m[wt],b=this[c]=St,x=Xt(e,a+"-control-prev")[0],C=Xt(e,a+"-control-next")[0],A=Yt("."+a+"-indicators",e),I=A&&A[gt]("LI")||[],L=function(){d[W]===!1||Ut(e,r)||(Rt(e,r),!v&&clearInterval(p))},E=function(){d[W]!==!1&&Ut(e,r)&&(zt(e,r),!v&&clearInterval(p),!v&&d.cycle())},k=function(t){if(t.preventDefault(),!v){var e=t[N],n=d.getActiveIndex();if(!e||Ut(e,Et)||!e[pt](f))return!1;h=parseInt(e[pt](f),10),n<h||0===n&&h===g-1?b=d[c]=St:(n>h||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<n;e++)zt(I[e],Et);I[t]&&Rt(I[t],Et)};this.cycle=function(){b=this[c]=St,p=setInterval(function(){h++,h=h===g?0:h,d.slideTo(h)},this[W])},this.slideTo=function(n){var i=this.getActiveIndex(),o=b===St?"next":"prev";Vt.call(e,dt,a,m[n]),v=!0,clearInterval(p),B(n),jt&&Ut(e,"slide")&&(t.getComputedStyle(m[n])[At[Ct]()]||t.getComputedStyle(m[n])[It[Ct]()+At]||t.getComputedStyle(m[n])[It+At+"Duration"])?(Rt(m[n],s+"-"+o),m[n][F],Rt(m[n],s+"-"+b),Rt(m[i],s+"-"+b),Kt(m[i],Ot,function(t){var l=t[N]!==m[i]?1e3*t.elapsedTime:0;setTimeout(function(){v=!1,Rt(m[n],Et),zt(m[i],Et),zt(m[n],s+"-"+o),zt(m[n],s+"-"+b),zt(m[i],s+"-"+b),Vt.call(e,ft,a,m[n]),document.hidden||!d[W]||Ut(e,r)||d.cycle()},l)})):(Rt(m[n],Et),m[n][F],zt(m[i],Et),setTimeout(function(){v=!1,d[W]&&!Ut(e,r)&&d.cycle(),Vt.call(e,ft,a,m[n])},100))},this.getActiveIndex=function(){return m[yt](Xt(e,s+" active")[0])||0},u in e||(this[P]&&this[W]&&(Gt(e,Pt[0],L),Gt(e,Pt[1],E),Gt(e,"touchstart",L),Gt(e,"touchend",E)),C&&Gt(C,tt,M),x&&Gt(x,tt,M),A&&Gt(A,tt,k,!1),this[D]===!0&&Gt(t,nt,S,!1)),this.getActiveIndex()<0&&(m[wt]&&Rt(m[0],Et),I[wt]&&B(0)),this[W]&&this.cycle(),e[u]=this};_t(u,ue,a);var se=function(t,e){t=Yt(t),e=e||{};var n=null,o=null,l=this,a=!1,r=t[pt]("data-parent"),c="collapse",u="collapsed",f=function(t){Vt.call(t,lt,c),a=!0,Rt(t,Mt),Rt(t,kt),setTimeout(function(){t[Lt][V]=ne(t)+"px",function(){Qt(t,function(){a=!1,t[vt](Z,"true"),zt(t,Mt),t[Lt][V]="",Vt.call(t,at,c)})}()},20)},d=function(t){Vt.call(t,rt,c),a=!0,t[Lt][V]=ne(t)+"px",setTimeout(function(){Rt(t,Mt),t[Lt][V]="0px",function(){Qt(t,function(){a=!1,t[vt](Z,"false"),zt(t,Mt),zt(t,kt),t[Lt][V]="",Vt.call(t,ct,c)})}()},20)},h=function(){var e=t.href&&t[pt]("href"),n=t[pt](b),i=e||n&&te.test(n)&&n;return i&&Yt(i)};this.toggle=function(t){t.preventDefault(),a||(Ut(o,kt)?l.hide():l.show())},this.hide=function(){d(o),Rt(t,u)},this.show=function(){if(f(o),zt(t,u),null!==n){for(var e,l=Xt(n,c+" "+kt),a=n.querySelectorAll("["+i+'="'+c+'"]'),r=0,s=l[wt];r<s;r++)l[r]!==o&&d(l[r]);for(var h=0,p=a[wt];h<p;h++)e=a[h][pt](b)||a[h].href,e.split("#")[1]!==o.id?Rt(a[h],u):zt(a[h],u)}},s in t||Gt(t,tt,this.toggle),o=h(),n=Yt(e.parent)||r&&Ft(t,r),t[s]=this};_t(s,se,i);var fe=function(t,e){t=Yt(t),this.persist=e===!0||"true"===t[pt]("data-persist")||!1;var n=this,o=!1,l=t[xt],a="dropdown",r=null,c=Yt(".dropdown-menu",l),u=[].slice.call(c[gt]("*")),s=function(t){!o||27!=t.which&&27!=t.keyCode||(r=null,p())},d=function(e){var a=e[N],s=a&&(a[pt](i)||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||u&&u[yt](a)>-1)&&(n.persist||s))return;r=null,p()}(/\#$/.test(a.href)||a[xt]&&/\#$/.test(a[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;l<I[wt];l++)e=t.getComputedStyle(I[l])[h],I[l][Lt][h]=parseInt(e)+y+"px"},k=function(){if(n[Lt][h]="",I[wt])for(var t=0;t<I[wt];t++)I[t][Lt][h]=""},M=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[F]-e[X],n.removeChild(e),t},B=function(){v=n[X]<L(),m=c[Q]>e[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,K):Gt(document,nt,K)},q=function(){Ut(c,kt)?Jt(t,it,w.update):Gt(t,it,w.update)},R=function(){Ut(c,kt)?Jt(c,tt,V):Gt(c,tt,V)},z=function(){C=w.open=!0,qt(c),Vt.call(c,at,u,A)},U=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)},G=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())},K=function(t){var e=t.which||t.keyCode;w[D]&&27==e&&C&&w.hide()},V=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),Ut(c,"fade")?Qt(c,z):z()},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(){Ut(c,"fade")?Qt(c,U):U()},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,G),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='<button type="button" class="close">×</button>',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]))},F=function(){Vt.call(e,at,s)},G=function(){z(),Vt.call(e,ct,s)};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),S[$]?Qt(W,F):F())},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){W&&null!==W&&Ut(W,kt)&&(Vt.call(e,rt,s),zt(W,kt),S[$]?Qt(W,G):G())},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]<e[Q]?e:t,s=u===t,f=0,d=a[wt];f<d;f++){var h=a[f][pt]("href"),v=h&&te.test(h)&&Yt(h);v&&(r.push(a[f]),c.push(v))}var m=function(t){var n=r[t],i=c[t],l=n[xt][xt],a=Ut(l,"dropdown")&&l[gt]("A")[0],u=s&&i[Tt](),f=Ut(n,Et)||!1,d=s?u[Bt]+o:i[q]-(c[t-1]?0:10),h=s?u[Ht]+o:c[t+1]?c[t+1][q]:e[Q],p=o>=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];t<n;t++)m(t)};this.refresh=function(){g()},p in e||(Gt(u,ot,this.refresh),Gt(t,it,this.refresh)),this.refresh(),e[p]=this}};_t(p,pe,l);var ve=function(t,e){t=Yt(t);var n=t[pt](x),o="tab",l="height",a="isAnimating";t[a]=!1,e=e||{},this[l]=!!jt&&(e[l]||"true"===n);var r,c,u,s,f,d=this,h=Ft(t,".nav"),p=h&&Yt(".dropdown-toggle",h),m=function(){Vt.call(r,at,o,u),c?!function(){setTimeout(function(){c[Lt][l]="",zt(c,Mt),u[a]=r[a]=!1},200)}():u[a]=r[a]=!1},g=function(){zt(s,Et),Rt(f,Et),setTimeout(function(){Rt(f,kt),f[G],c&&Rt(c,Mt),function(){Vt.call(r,lt,o,u),function(){c&&(c[Lt][l]=ne(f)+"px"),Vt.call(u,ct,o,r)}()}()},20)};if(h){var T=function(){var t,e=Xt(h,Et);return 1!==e[wt]||Ut(e[0][xt],"dropdown")?e[wt]>1&&(t=e[e[wt]-1]):t=e[0],t},b=function(){return Yt(T()[pt]("href"))},y=function(t){t.preventDefault(),r=t[N][pt](i)===o||te.test(t[N][pt]("href"))?t[N]:t[N][xt],d.show()};this.show=function(){f=Yt(r[pt]("href")),u=T(),s=b(),u[a]&&r[a]||Ut(r,Et)||(u[a]=r[a]=!0,zt(u,Et),Rt(r,Et),p&&(Ut(t[xt],"dropdown-menu")?Ut(p,Et)||Rt(p,Et):Ut(p,Et)&&zt(p,Et)),c&&(c[Lt][l]=ne(s)+"px"),function(){zt(s,kt),Vt.call(u,rt,o,r),function(){Ut(s,"fade")?Qt(s,g):g()}()}(),function(){Ut(f,"fade")?Qt(f,m):m()}())},v in t||Gt(t,tt,y),this[l]&&(c=b()[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)},S=function(){Vt.call(t,at,r)},D=function(){x(),Vt.call(t,ct,r)};this.show=function(){clearTimeout(g),g=setTimeout(function(){null===b&&(T=v[j],w(),A(),I(),Vt.call(t,lt,r),v[$]?Qt(b,S):S())},20)},this.hide=function(){clearTimeout(g),g=setTimeout(function(){b&&null!==b&&Ut(b,kt)&&(Vt.call(t,rt,r),zt(b,kt),v[$]?Qt(b,D):D())},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}}); |
@@ -1,2 +0,2 @@ | ||
// Native Javascript for Bootstrap 3 v2.0.10 | © 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<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=document[wt]("*"),ue=function(t,e,n,i){for(var o=i&&i[Mt]?i:ce,a=0;a<o[Mt];a++){var l=o[a][xt](n),r=t.replace(/spy/i,"")[kt]();(l&&t===u&&l[Lt](r)>-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<i;n++)e+=fe(t.children[n]);return e},he=function(n){var i=n[Ct]();return i[qt]>=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(){Zt(i,"fade")?le(i,r):r()},l=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())},r=function(){re.call(i,mt,n),oe(t,at,l),i[Et].removeChild(i)};this.close=function(){i&&t&&Zt(i,Nt)&&(re.call(i,pt,n),Vt(i,Nt),i&&a())},c in t||ie(t,at,l),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];d<h;d++){var p=s[d],m=p[wt](r)[0];p!==c&&Zt(p,Dt)&&(Vt(p,Dt),m.removeAttribute(o),m[o]=!1,re.call(m,bt,i))}}setTimeout(function(){n=!1},50)}}};Zt(t,"btn")&&null!==e&&(e!==a?c():s()),Zt(t,"btn-group")&&(u in t||ie(t,at,f),t[u]=this)};ue(u,xe,i);var Te=function(e,n){e=ee(e),n=n||{};var i="false"!==e[xt](y)&&(parseInt(e[xt](y))||5e3),o=e[xt](C)===lt||!1,a="true"===e[xt](x)||!1,l="carousel",r="paused",c="direction",u="data-slide-to";this[W]=n[W]===!0||a,this[q]=!(n[q]!==lt&&!o)&<,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,m=te(e,"item"),v=m[Mt],g=this[c]=jt,b=te(e,l+"-control"),T=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())},M=function(t){if(t.preventDefault(),!p){var e=t[j],n=f.getActiveIndex();if(!e||Zt(e,Dt)||!e[xt](u))return!1;d=parseInt(e[xt](u),10),n<d||0===n&&d===v-1?g=f[c]=jt:(n>d||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<n;e++)Vt(A[e],Dt);A[t]&&Qt(A[t],Dt)};this.cycle=function(){g=this[c]=jt,h=setInterval(function(){d++,d=d===v?0:d,f.slideTo(d)},this[O])},this.slideTo=function(t){var n=this.getActiveIndex(),i=g===jt?"next":"prev";re.call(e,gt,l,m[t]),p=this.isSliding=!0,clearInterval(h),H(t),Gt&&Zt(e,"slide")?(Qt(m[t],i),m[t][V],Qt(m[t],g),Qt(m[n],g),ae(m[n],Jt,function(o){var a=o[j]!==m[n]?1e3*o.elapsedTime:0;setTimeout(function(){p=f.isSliding=!1,Qt(m[t],Dt),Vt(m[n],Dt),Vt(m[t],i),Vt(m[t],g),Vt(m[n],g),re.call(e,vt,l,m[t]),f[O]&&!Zt(e,r)&&f.cycle()},a)})):(Qt(m[t],Dt),m[t][V],Vt(m[n],Dt),setTimeout(function(){p=!1,f[O]&&!Zt(e,r)&&f.cycle(),re.call(e,vt,l,m[t])},100))},this.getActiveIndex=function(){return m[Lt](te(e,"item active")[0])||0},s 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,k),T&&ie(T,at,k),I&&ie(I,at,M,!1),this[W]===!0&&ie(t,rt,S,!1)),this.getActiveIndex()<0&&(m[Mt]&&Qt(m[0],Dt),A[Mt]&&H(0)),this[O]&&this.cycle(),e[s]=this};ue(s,Te,l);var ye=function(t,e){t=ee(t),e=e||{};var n=null,o=null,a=this,l=!1,r=t[xt]("data-parent"),c="collapse",u="collapsed",s=function(t){re.call(t,st,c),l=!0,Qt(t,Wt),Qt(t,Nt),setTimeout(function(){t[Bt][nt]=de(t)+"px",function(){le(t,function(){l=!1,t[Tt](it,"true"),Vt(t,Wt),t[Bt][nt]="",re.call(t,ft,c)})}()},20)},d=function(t){re.call(t,dt,c),l=!0,t[Bt][nt]=de(t)+"px",setTimeout(function(){Qt(t,Wt),t[Bt][nt]="0px",function(){le(t,function(){l=!1,t[Tt](it,"false"),Vt(t,Wt),Vt(t,Nt),t[Bt][nt]="",re.call(t,ht,c)})}()},20)},h=function(){var e=t.href&&t[xt]("href"),n=t[xt](T),i=e||n&&se.test(n)&&n;return i&&ee(i)};this.toggle=function(t){t.preventDefault(),l||(Zt(o,Nt)?a.hide():a.show())},this.hide=function(){d(o),Qt(t,u)},this.show=function(){if(s(o),Vt(t,u),null!==n){for(var e,a=te(n,c+" "+Nt),l=n[It]("["+i+'="'+c+'"]'),r=0,f=a[Mt];r<f;r++)a[r]!==o&&d(a[r]);for(var h=0,p=l[Mt];h<p;h++)e=l[h][xt](T)||l[h].href,e.split("#")[1]!==o.id?Qt(l[h],u):Vt(l[h],u)}},f in t||ie(t,at,this.toggle),o=h(),n=ee(e.parent)||r&&ne(t,r),t[f]=this};ue(f,ye,i);var we=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,u=ee(".dropdown-menu",a),s=_t(u[wt]("*")),f=function(t){!o||27!=t.which&&27!=t.keyCode||(c=null,m())},h=function(e){var l,r=e[j];if(l=1!==r.nodeType&&(r[xt](i)||r[Et][xt](i)),r===t||r===a||r[Et]===t)e.preventDefault(),c=t,n.toggle();else if(o){if((r===u||s&&s[Lt](r)>-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;a<A[Mt];a++)e=t.getComputedStyle(A[a])[d],A[a][Bt][d]=parseInt(e)+g+"px"},M=function(){if(n[Bt][d]="",A[Mt])for(var t=0;t<A[Mt];t++)A[t][Bt][d]=""},k=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[V]-e[K],n.removeChild(e),t},S=function(){m=n[K]<L(),v=c[et]>e[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,Y):ie(document,rt,Y)},q=function(){Zt(c,Nt)?oe(t,ct,w.update):ie(t,ct,w.update)},z=function(){Zt(c,Nt)?oe(c,at,F):ie(c,at,F)},R=function(){C=w.open=!0,Kt(c),re.call(c,ft,u,I)},U=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)},X=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())},Y=function(t){var e=t.which||t.keyCode;w[W]&&27==e&&C&&w.hide()},F=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),Zt(c,"fade")?le(c,R):R()},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(){Zt(c,"fade")?le(c,U):U()},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,X),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='<button type="button" class="close">×</button>',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]))},F=function(){re.call(e,ft,s)},G=function(){O(),re.call(e,ht,s)};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),I[z]?le(D,F):F())},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){D&&null!==D&&Zt(D,Nt)&&(re.call(e,dt,s),Vt(D,Nt),I[z]?le(D,G):G())},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]<e[et]?e:t,s=u===t,f=0,d=l[Mt];f<d;f++){var h=l[f][xt]("href"),p=h&&se.test(h)&&ee(h);p&&(r.push(l[f]),c.push(p))}var v=function(t){var n=r[t][Et],i=c[t],a=ne(n,".dropdown"),l=s&&i[Ct](),u=Zt(n,Dt)||!1,f=s?l[qt]+o:i[X]-(c[t-1]?0:10),d=s?l[zt]+o:c[t+1]?c[t+1][X]:e[et],h=o>=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];t<n;t++)v(t)};this.refresh=function(){g()},m in e||(ie(u,ut,this.refresh),!Rt&&ie(t,ct,this.refresh)),this.refresh(),e[m]=this}};ue(m,Ae,a);var Le=function(t,e){t=ee(t);var n=t[xt](w),o="tab",a="height",l="isAnimating";t[l]=!1,e=e||{},this[a]=!!Gt&&(e[a]||"true"===n);var r,c,u,s,f,d=this,h=ne(t,".nav"),p=h&&ee(".dropdown",h),m=function(){re.call(r,ft,o,u),c?!function(){setTimeout(function(){c[Bt][a]="",Vt(c,Wt),u[l]=r[l]=!1},200)}():u[l]=r[l]=!1},g=function(){Vt(s,Dt),Qt(f,Dt),setTimeout(function(){Qt(f,Nt),f[Z],c&&Qt(c,Wt),function(){re.call(r,st,o,u),function(){c&&(c[Bt][a]=de(f)+"px"),re.call(u,ht,o,r)}()}()},20)};if(h){var b=function(){var t,e=te(h,Dt);return 1!==e[Mt]||Zt(e[0],"dropdown")?e[Mt]>1&&(t=e[e[Mt]-1]):t=e[0],t[wt]("A")[0]},x=function(){return ee(b()[xt]("href"))},T=function(t){t.preventDefault(),r=t[j][xt](i)===o||se.test(t[j][xt]("href"))?t[j]:t[j][Et],d.show()};this.show=function(){f=ee(r[xt]("href")),u=b(),s=x(),u[l]&&r[l]||Zt(r[Et],Dt)||(u[l]=r[l]=!0,Vt(u[Et],Dt),Qt(r[Et],Dt),p&&(Zt(t[Et][Et],"dropdown-menu")?Zt(p,Dt)||Qt(p,Dt):Zt(p,Dt)&&Vt(p,Dt)),c&&(c[Bt][a]=de(s)+"px"),function(){Vt(s,Nt),re.call(u,dt,o,r),function(){Zt(s,"fade")?le(s,g):g()}()}(),function(){Zt(f,"fade")?le(f,m):m()}())},v in t||ie(t,at,T),this[a]&&(c=x()[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)},L=function(){re.call(t,ft,r)},E=function(){y(),re.call(t,ht,r)};this.show=function(){clearTimeout(v),v=setTimeout(function(){null===x&&(b=m[R],w(),C(),A(),re.call(t,st,r),m[z]?le(x,L):L())},20)},this.hide=function(){clearTimeout(v),v=setTimeout(function(){x&&null!==x&&Zt(x,Nt)&&(re.call(t,dt,r),Vt(x,Nt),m[z]?le(x,E):E())},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.11 | © 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<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=document[wt]("*"),ue=function(t,e,n,i){for(var o=i&&i[Mt]?i:ce,a=0;a<o[Mt];a++){var l=o[a][xt](n),r=t.replace(/spy/i,"")[kt]();(l&&t===u&&l[Lt](r)>-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<i;n++)e+=fe(t.children[n]);return e},he=function(n){var i=n[Ct]();return i[qt]>=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(){Zt(i,"fade")?le(i,r):r()},l=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())},r=function(){re.call(i,mt,n),oe(t,at,l),i[Et].removeChild(i)};this.close=function(){i&&t&&Zt(i,Nt)&&(re.call(i,pt,n),Vt(i,Nt),i&&a())},c in t||ie(t,at,l),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];d<h;d++){var p=s[d],m=p[wt](r)[0];p!==c&&Zt(p,Dt)&&(Vt(p,Dt),m.removeAttribute(o),m[o]=!1,re.call(m,bt,i))}}setTimeout(function(){n=!1},50)}}};Zt(t,"btn")&&null!==e&&(e!==a?c():s()),Zt(t,"btn-group")&&(u in t||ie(t,at,f),t[u]=this)};ue(u,xe,i);var Te=function(e,n){e=ee(e),n=n||{};var i="false"!==e[xt](y)&&(parseInt(e[xt](y))||5e3),o=e[xt](C)===lt||!1,a="true"===e[xt](x)||!1,l="carousel",r="paused",c="direction",u="data-slide-to";this[W]=n[W]===!0||a,this[q]=!(n[q]!==lt&&!o)&<,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,m=te(e,"item"),v=m[Mt],g=this[c]=jt,b=te(e,l+"-control"),T=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())},M=function(t){if(t.preventDefault(),!p){var e=t[j],n=f.getActiveIndex();if(!e||Zt(e,Dt)||!e[xt](u))return!1;d=parseInt(e[xt](u),10),n<d||0===n&&d===v-1?g=f[c]=jt:(n>d||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<n;e++)Vt(A[e],Dt);A[t]&&Qt(A[t],Dt)};this.cycle=function(){g=this[c]=jt,h=setInterval(function(){d++,d=d===v?0:d,f.slideTo(d)},this[O])},this.slideTo=function(t){var n=this.getActiveIndex(),i=g===jt?"next":"prev";re.call(e,gt,l,m[t]),p=this.isSliding=!0,clearInterval(h),H(t),Gt&&Zt(e,"slide")?(Qt(m[t],i),m[t][V],Qt(m[t],g),Qt(m[n],g),ae(m[n],Jt,function(o){var a=o[j]!==m[n]?1e3*o.elapsedTime:0;setTimeout(function(){p=f.isSliding=!1,Qt(m[t],Dt),Vt(m[n],Dt),Vt(m[t],i),Vt(m[t],g),Vt(m[n],g),re.call(e,vt,l,m[t]),f[O]&&!Zt(e,r)&&f.cycle()},a)})):(Qt(m[t],Dt),m[t][V],Vt(m[n],Dt),setTimeout(function(){p=!1,f[O]&&!Zt(e,r)&&f.cycle(),re.call(e,vt,l,m[t])},100))},this.getActiveIndex=function(){return m[Lt](te(e,"item active")[0])||0},s 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,k),T&&ie(T,at,k),I&&ie(I,at,M,!1),this[W]===!0&&ie(t,rt,S,!1)),this.getActiveIndex()<0&&(m[Mt]&&Qt(m[0],Dt),A[Mt]&&H(0)),this[O]&&this.cycle(),e[s]=this};ue(s,Te,l);var ye=function(t,e){t=ee(t),e=e||{};var n=null,o=null,a=this,l=!1,r=t[xt]("data-parent"),c="collapse",u="collapsed",s=function(t){re.call(t,st,c),l=!0,Qt(t,Wt),Qt(t,Nt),setTimeout(function(){t[Bt][nt]=de(t)+"px",function(){le(t,function(){l=!1,t[Tt](it,"true"),Vt(t,Wt),t[Bt][nt]="",re.call(t,ft,c)})}()},20)},d=function(t){re.call(t,dt,c),l=!0,t[Bt][nt]=de(t)+"px",setTimeout(function(){Qt(t,Wt),t[Bt][nt]="0px",function(){le(t,function(){l=!1,t[Tt](it,"false"),Vt(t,Wt),Vt(t,Nt),t[Bt][nt]="",re.call(t,ht,c)})}()},20)},h=function(){var e=t.href&&t[xt]("href"),n=t[xt](T),i=e||n&&se.test(n)&&n;return i&&ee(i)};this.toggle=function(t){t.preventDefault(),l||(Zt(o,Nt)?a.hide():a.show())},this.hide=function(){d(o),Qt(t,u)},this.show=function(){if(s(o),Vt(t,u),null!==n){for(var e,a=te(n,c+" "+Nt),l=n[It]("["+i+'="'+c+'"]'),r=0,f=a[Mt];r<f;r++)a[r]!==o&&d(a[r]);for(var h=0,p=l[Mt];h<p;h++)e=l[h][xt](T)||l[h].href,e.split("#")[1]!==o.id?Qt(l[h],u):Vt(l[h],u)}},f in t||ie(t,at,this.toggle),o=h(),n=ee(e.parent)||r&&ne(t,r),t[f]=this};ue(f,ye,i);var we=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,u=ee(".dropdown-menu",a),s=_t(u[wt]("*")),f=function(t){!o||27!=t.which&&27!=t.keyCode||(c=null,m())},h=function(e){var l=e[j],r=l&&(l[xt](i)||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===u||s&&s[Lt](l)>-1&&(n.persist||r))return;c=null,m()}(/\#$/.test(l.href)||l[Et]&&/\#$/.test(l[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;a<A[Mt];a++)e=t.getComputedStyle(A[a])[d],A[a][Bt][d]=parseInt(e)+g+"px"},M=function(){if(n[Bt][d]="",A[Mt])for(var t=0;t<A[Mt];t++)A[t][Bt][d]=""},k=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[V]-e[K],n.removeChild(e),t},S=function(){m=n[K]<L(),v=c[et]>e[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,Y):ie(document,rt,Y)},q=function(){Zt(c,Nt)?oe(t,ct,w.update):ie(t,ct,w.update)},z=function(){Zt(c,Nt)?oe(c,at,F):ie(c,at,F)},R=function(){C=w.open=!0,Kt(c),re.call(c,ft,u,I)},U=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)},X=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())},Y=function(t){var e=t.which||t.keyCode;w[W]&&27==e&&C&&w.hide()},F=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),Zt(c,"fade")?le(c,R):R()},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(){Zt(c,"fade")?le(c,U):U()},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,X),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='<button type="button" class="close">×</button>',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]))},F=function(){re.call(e,ft,s)},G=function(){O(),re.call(e,ht,s)};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),I[z]?le(D,F):F())},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){D&&null!==D&&Zt(D,Nt)&&(re.call(e,dt,s),Vt(D,Nt),I[z]?le(D,G):G())},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]<e[et]?e:t,s=u===t,f=0,d=l[Mt];f<d;f++){var h=l[f][xt]("href"),p=h&&se.test(h)&&ee(h);p&&(r.push(l[f]),c.push(p))}var v=function(t){var n=r[t][Et],i=c[t],a=ne(n,".dropdown"),l=s&&i[Ct](),u=Zt(n,Dt)||!1,f=s?l[qt]+o:i[X]-(c[t-1]?0:10),d=s?l[zt]+o:c[t+1]?c[t+1][X]:e[et],h=o>=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];t<n;t++)v(t)};this.refresh=function(){g()},m in e||(ie(u,ut,this.refresh),!Rt&&ie(t,ct,this.refresh)),this.refresh(),e[m]=this}};ue(m,Ae,a);var Le=function(t,e){t=ee(t);var n=t[xt](w),o="tab",a="height",l="isAnimating";t[l]=!1,e=e||{},this[a]=!!Gt&&(e[a]||"true"===n);var r,c,u,s,f,d=this,h=ne(t,".nav"),p=h&&ee(".dropdown",h),m=function(){re.call(r,ft,o,u),c?!function(){setTimeout(function(){c[Bt][a]="",Vt(c,Wt),u[l]=r[l]=!1},200)}():u[l]=r[l]=!1},g=function(){Vt(s,Dt),Qt(f,Dt),setTimeout(function(){Qt(f,Nt),f[Z],c&&Qt(c,Wt),function(){re.call(r,st,o,u),function(){c&&(c[Bt][a]=de(f)+"px"),re.call(u,ht,o,r)}()}()},20)};if(h){var b=function(){var t,e=te(h,Dt);return 1!==e[Mt]||Zt(e[0],"dropdown")?e[Mt]>1&&(t=e[e[Mt]-1]):t=e[0],t[wt]("A")[0]},x=function(){return ee(b()[xt]("href"))},T=function(t){t.preventDefault(),r=t[j][xt](i)===o||se.test(t[j][xt]("href"))?t[j]:t[j][Et],d.show()};this.show=function(){f=ee(r[xt]("href")),u=b(),s=x(),u[l]&&r[l]||Zt(r[Et],Dt)||(u[l]=r[l]=!0,Vt(u[Et],Dt),Qt(r[Et],Dt),p&&(Zt(t[Et][Et],"dropdown-menu")?Zt(p,Dt)||Qt(p,Dt):Zt(p,Dt)&&Vt(p,Dt)),c&&(c[Bt][a]=de(s)+"px"),function(){Vt(s,Nt),re.call(u,dt,o,r),function(){Zt(s,"fade")?le(s,g):g()}()}(),function(){Zt(f,"fade")?le(f,m):m()}())},v in t||ie(t,at,T),this[a]&&(c=x()[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)},L=function(){re.call(t,ft,r)},E=function(){y(),re.call(t,ht,r)};this.show=function(){clearTimeout(v),v=setTimeout(function(){null===x&&(b=m[R],w(),C(),A(),re.call(t,st,r),m[z]?le(x,L):L())},20)},this.hide=function(){clearTimeout(v),v=setTimeout(function(){x&&null!==x&&Zt(x,Nt)&&(re.call(t,dt,r),Vt(x,Nt),m[z]?le(x,E):E())},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}}); |
{ | ||
"name": "bootstrap.native", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "Native Javascript for Bootstrap, the sweetest Javascript library without jQuery.", | ||
@@ -5,0 +5,0 @@ "main": "dist/bootstrap-native.js", |
@@ -56,2 +56,8 @@ # Native Javascript for Bootstrap | ||
Additionally, to use V4, you can do the following: | ||
``` | ||
var bsn = require('bootstrap.native/dist/bootstrap-native-v4'); | ||
var btn = new bsn.Button(element,'loading'); | ||
``` | ||
**Note:** If you are working in a virtual browser environment (i.e. running front-end tests in NodeJS), `bootstrap.native` requires both `window` and `document` to be in scope. You will need to use a mock browser. | ||
@@ -58,0 +64,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198504
110