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

bootstrap.native

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap.native - npm Package Compare versions

Comparing version 2.0.27 to 3.0.0

dist/bootstrap-native.esm.js

4

dist/bootstrap-native.min.js

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

// Native Javascript for Bootstrap 3 v2.0.27 | © 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 i=e();t.Affix=i.Affix,t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,n="body",a=t.BSN={},o=a.supports=[],l="data-toggle",r="target",s="animation",c="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],d={start:"touchstart",end:"touchend",move:"touchmove"},f="getAttribute",u="setAttribute",h="parentNode",p="length",g="Transition",m="Webkit",v="style",b="push",y="active",T="left",w="top",x=!("opacity"in i[v]),k=/\b(top|bottom|left|right)+/,A=0,C="navbar-fixed-top",I=m+g in i[v]||g.toLowerCase()in i[v],L=m+g in i[v]?m.toLowerCase()+g+"End":g.toLowerCase()+"end",B=m+"Duration"in i[v]?m.toLowerCase()+g+"Duration":g.toLowerCase()+"Duration",H=function(t){t.focus?t.focus():t.setActive()},E=function(t,e){t.classList.add(e)},N=function(t,e){t.classList.remove(e)},M=function(t,e){return t.classList.contains(e)},D=function(t){for(var e=[],i=0,n=t[p];i<n;i++)e[b](t[i]);return e},S=function(t,e){return D(t[x?"querySelectorAll":"getElementsByClassName"](x?"."+e.replace(/\s(?=[a-z])/g,"."):e))},R=function(t,i){var n=i||e;return"object"==typeof t?t:n.querySelector(t)},W=function(t,i){var n=i.charAt(0),a=i.substr(1);if("."===n){for(;t&&t!==e;t=t[h])if(null!==R(i,t[h])&&M(t,a))return t}else if("#"===n)for(;t&&t!==e;t=t[h])if(t.id===a)return t;return!1},P=function(t,e,i,n){n=n||!1,t.addEventListener(e,i,n)},z=function(t,e,i,n){n=n||!1,t.removeEventListener(e,i,n)},O=function(t,e,i,n){P(t,e,function a(o){i(o),z(t,e,a,n)},n)},X=function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});O(t,"testPassive",null,i)}catch(t){}return e}(),j=!!X&&{passive:!0},q=function(e){var i=I?t.getComputedStyle(e)[B]:0;return i=parseFloat(i),i="number"!=typeof i||isNaN(i)?0:1e3*i},U=function(t,e){var i=0;q(t)?O(t,L,function(t){!i&&e(t),i=1}):setTimeout(function(){!i&&e(),i=1},17)},Y=function(t,e,i){var n=new CustomEvent(t+".bs."+e);n.relatedTarget=i,this.dispatchEvent(n)},$=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},F=function(t,a,o,l){var r,s,c,d,f={w:a.offsetWidth,h:a.offsetHeight},u=i.clientWidth||e[n].clientWidth,h=i.clientHeight||e[n].clientHeight,p=t.getBoundingClientRect(),g=l===e[n]?$():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},m={w:p.right-p[T],h:p.bottom-p[w]},b=R('[class*="arrow"]',a),y=p[w]+m.h/2-f.h/2<0,x=p[T]+m.w/2-f.w/2<0,A=p[T]+f.w/2+m.w/2>=u,C=p[w]+f.h/2+m.h/2>=h,I=p[w]-f.h<0,L=p[T]-f.w<0,B=p[w]+f.h+m.h>=h,H=p[T]+f.w+m.w>=u;o=(o===T||"right"===o)&&L&&H?w:o,o=o===w&&I?"bottom":o,o="bottom"===o&&B?w:o,o=o===T&&L?"right":o,o="right"===o&&H?T:o,o===T||"right"===o?(s=o===T?p[T]+g.x-f.w:p[T]+g.x+m.w,y?(r=p[w]+g.y,c=m.h/2):C?(r=p[w]+g.y-f.h+m.h,c=f.h-m.h/2):r=p[w]+g.y-f.h/2+m.h/2):o!==w&&"bottom"!==o||(r=o===w?p[w]+g.y-f.h:p[w]+g.y+m.h,x?(s=0,d=p[T]+m.w/2):A?(s=u-1.01*f.w,d=f.w-(u-p[T])+m.w/2):s=p[T]+g.x-f.w/2+m.w/2),a[v][w]=r+"px",a[v][T]=s+"px",c&&(b[v][w]=c+"px"),d&&(b[v][T]=d+"px"),-1===a.className.indexOf(o)&&(a.className=a.className.replace(k,o))};a.version="2.0.27";var G=function(a,o){a=R(a),o=o||{};var l=a[f]("data-target"),s=a[f]("data-offset-top"),c=a[f]("data-offset-bottom"),d="affix",u="function";if(this[r]=o[r]?R(o[r]):R(l)||null,this.offsetTop=o.offsetTop?o.offsetTop:parseInt(s)||0,this.offsetBottom=o.offsetBottom?o.offsetBottom:parseInt(c)||0,this[r]||this.offsetTop||this.offsetBottom){var h,p,g,m,v,b,y=this,T=!1,k=!1,A=function(){return Math.max(e[n].scrollHeight,e[n].offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},C=function(){return null!==y[r]?y[r].getBoundingClientRect()[w]+m:y.offsetTop?parseInt(typeof y.offsetTop===u?y.offsetTop():y.offsetTop||0):void 0},I=function(){if(y.offsetBottom)return g-a.offsetHeight-parseInt(typeof y.offsetBottom===u?y.offsetBottom():y.offsetBottom||0)},L=function(){g=A(),m=parseInt($().y,0),h=C(),p=I(),v=parseInt(h)-m<0&&m>parseInt(h),b=parseInt(p)-m<0&&m>parseInt(p)},B=function(){T||M(a,d)||(Y.call(a,d,d),Y.call(a,"affix-top",d),E(a,d),T=!0,Y.call(a,"affixed",d),Y.call(a,"affixed-top",d))},H=function(){T&&M(a,d)&&(N(a,d),T=!1)},D=function(){k||M(a,"affix-bottom")||(Y.call(a,d,d),Y.call(a,"affix-bottom",d),E(a,"affix-bottom"),k=!0,Y.call(a,"affixed",d),Y.call(a,"affixed-bottom",d))},S=function(){k&&M(a,"affix-bottom")&&(N(a,"affix-bottom"),k=!1)},W=function(){b?(v&&H(),D()):(S(),v?B():H())};this.update=function(){L(),W()},"Affix"in a||(P(t,"scroll",y.update,j),!x&&P(t,"resize",y.update,j)),a.Affix=y,y.update()}};o[b](["Affix",G,'[data-spy="affix"]']);var J=function(t){t=R(t);var e=this,i=W(t,".alert"),n=function(){M(i,"fade")?U(i,o):o()},a=function(n){i=W(n[r],".alert"),(t=R('[data-dismiss="alert"]',i))&&i&&(t===n[r]||t.contains(n[r]))&&e.close()},o=function(){Y.call(i,"closed","alert"),z(t,"click",a),i[h].removeChild(i)};this.close=function(){i&&t&&M(i,"in")&&(Y.call(i,"close","alert"),N(i,"in"),i&&n())},"Alert"in t||P(t,"click",a),t.Alert=e};o[b](["Alert",J,'[data-dismiss="alert"]']);var K=function(t,i){t=R(t),i=i||null;var n=!1,a="checked",o=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&s(t)},l=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},s=function(e){var i="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][h].tagName?e[r][h]:null;if(i){var o=S(i[h],"btn"),l=i.getElementsByTagName("INPUT")[0];if(l){if("checkbox"===l.type&&(l[a]?(N(i,y),l[f](a),l.removeAttribute(a),l[a]=!1):(E(i,y),l[f](a),l[u](a,a),l[a]=!0),n||(n=!0,Y.call(l,"change","button"),Y.call(t,"change","button"))),"radio"===l.type&&!n&&(!l[a]||0===e.screenX&&0==e.screenY)){E(i,y),l[u](a,a),l[a]=!0,Y.call(l,"change","button"),Y.call(t,"change","button"),n=!0;for(var s=0,c=o[p];s<c;s++){var d=o[s],g=d.getElementsByTagName("INPUT")[0];d!==i&&M(d,y)&&(N(d,y),g.removeAttribute(a),g[a]=!1,Y.call(g,"change","button"))}}setTimeout(function(){n=!1},50)}}};if(M(t,"btn"))null!==i&&("reset"!==i?function(){i&&"reset"!==i&&("loading"===i&&(E(t,"disabled"),t[u]("disabled","disabled"),t[u]("data-original-text",t.innerHTML.trim())),t.innerHTML=t[f]("data-"+i+"-text"))}():function(){t[f]("data-original-text")&&((M(t,"disabled")||"disabled"===t[f]("disabled"))&&(N(t,"disabled"),t.removeAttribute("disabled")),t.innerHTML=t[f]("data-original-text"))}());else{"Button"in t||(P(t,"click",s),P(t,"keyup",o),P(t,"keydown",l));for(var c=S(t,"btn"),d=c[p],g=0;g<d;g++)!M(c[g],y)&&R("input",c[g])[f](a)&&E(c[g],y);t.Button=this}};o[b](["Button",K,'[data-toggle="buttons"]']);var Q=function(e,n){e=R(e),n=n||{};var a=e[f]("data-interval"),o=n.interval,l="false"===a?0:parseInt(a),s="hover"===e[f]("data-pause")||!1,u="true"===e[f]("data-keyboard")||!1;this.keyboard=!0===n.keyboard||u,this.pause=!("hover"!==n.pause&&!s)&&"hover",this.interval="number"==typeof o?o:!1===o||0===l||!1===l?0:isNaN(l)?5e3:l;var h=this,g=e.index=0,m=e.timer=0,v=!1,b=!1,x=null,k=null,A=null,C=S(e,"item"),L=C[p],B=this.direction=T,H=S(e,"carousel-control"),D=H[0],W=H[1],O=R(".carousel-indicators",e),X=O&&O.getElementsByTagName("LI")||[];if(!(L<2)){var q=function(){!1===h.interval||M(e,"paused")||(E(e,"paused"),!v&&(clearInterval(m),m=null))},$=function(){!1!==h.interval&&M(e,"paused")&&(N(e,"paused"),!v&&(clearInterval(m),m=null),!v&&h.cycle())},F=function(t){if(t.preventDefault(),!v){var e=t[r];if(!e||M(e,y)||!e[f]("data-slide-to"))return!1;g=parseInt(e[f]("data-slide-to"),10),h.slideTo(g)}},G=function(t){if(t.preventDefault(),!v){var e=t.currentTarget||t.srcElement;e===W?g++:e===D&&g--,h.slideTo(g)}},J=function(t){if(!v){switch(t.which){case 39:g++;break;case 37:g--;break;default:return}h.slideTo(g)}},K=function(t){t(e,d.move,V,j),t(e,d.end,Z,j)},Q=function(t){b||(x=parseInt(t.touches[0].pageX),e.contains(t[r])&&(b=!0,K(P)))},V=function(t){return b?(k=parseInt(t.touches[0].pageX),"touchmove"===t.type&&t.touches[p]>1?(t.preventDefault(),!1):void 0):void t.preventDefault()},Z=function(t){if(b&&!v&&(A=k||parseInt(t.touches[0].pageX),b)){if((!e.contains(t[r])||!e.contains(t.relatedTarget))&&Math.abs(x-A)<75)return!1;k<x?g++:k>x&&g--,b=!1,h.slideTo(g),K(z)}},_=function(){var n=e.getBoundingClientRect(),a=t.innerHeight||i.clientHeight;return n[w]<=a&&n.bottom>=0},tt=function(t){for(var e=0,i=X[p];e<i;e++)N(X[e],y);X[t]&&E(X[t],y)};this.cycle=function(){m&&(clearInterval(m),m=null),m=setInterval(function(){_()&&(g++,h.slideTo(g))},this.interval)},this.slideTo=function(t){if(!v){var i,n=this.getActiveIndex();n!==t&&(n<t||0===n&&t===L-1?B=h.direction=T:(n>t||n===L-1&&0===t)&&(B=h.direction="right"),t<0?t=L-1:t>=L&&(t=0),g=t,i=B===T?"next":"prev",Y.call(e,"slide","carousel",C[t]),v=!0,clearInterval(m),m=null,tt(t),I&&M(e,"slide")?(E(C[t],i),C[t].offsetWidth,E(C[t],B),E(C[n],B),U(C[t],function(a){var o=a&&a[r]!==C[t]?1e3*a.elapsedTime+100:20;v&&setTimeout(function(){v=!1,E(C[t],y),N(C[n],y),N(C[t],i),N(C[t],B),N(C[n],B),Y.call(e,"slid","carousel",C[t]),h.interval&&!M(e,"paused")&&h.cycle()},o)})):(E(C[t],y),C[t].offsetWidth,N(C[n],y),setTimeout(function(){v=!1,h.interval&&!M(e,"paused")&&h.cycle(),Y.call(e,"slid","carousel",C[t])},100)))}},this.getActiveIndex=function(){return C.indexOf(S(e,"item active")[0])||0},"Carousel"in e||(h.pause&&h.interval&&(P(e,c[0],q),P(e,c[1],$),P(e,d.start,q,j),P(e,d.end,$,j)),C[p]>1&&P(e,d.start,Q,j),W&&P(W,"click",G),D&&P(D,"click",G),O&&P(O,"click",F),h.keyboard&&P(t,"keydown",J)),h.getActiveIndex()<0&&(C[p]&&E(C[0],y),X[p]&&tt(0)),h.interval&&h.cycle(),e.Carousel=h}};o[b](["Carousel",Q,'[data-ride="carousel"]']);var V=function(t,e){t=R(t),e=e||{};var i,n,a=null,o=null,l=this,r=t[f]("data-parent"),s=function(t,e){Y.call(t,"show","collapse"),t.isAnimating=!0,E(t,"collapsing"),N(t,"collapse"),t[v].height=t.scrollHeight+"px",U(t,function(){t.isAnimating=!1,t[u]("aria-expanded","true"),e[u]("aria-expanded","true"),N(t,"collapsing"),E(t,"collapse"),E(t,"in"),t[v].height="",Y.call(t,"shown","collapse")})},c=function(t,e){Y.call(t,"hide","collapse"),t.isAnimating=!0,t[v].height=t.scrollHeight+"px",N(t,"collapse"),N(t,"in"),E(t,"collapsing"),t.offsetWidth,t[v].height="0px",U(t,function(){t.isAnimating=!1,t[u]("aria-expanded","false"),e[u]("aria-expanded","false"),N(t,"collapsing"),E(t,"collapse"),t[v].height="",Y.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),M(o,"in")?l.hide():l.show()},this.hide=function(){o.isAnimating||(c(o,t),E(t,"collapsed"))},this.show=function(){a&&(i=R(".collapse.in",a),n=i&&(R('[data-target="#'+i.id+'"]',a)||R('[href="#'+i.id+'"]',a))),(!o.isAnimating||i&&!i.isAnimating)&&(n&&i!==o&&(c(i,n),E(n,"collapsed")),s(o,t),N(t,"collapsed"))},"Collapse"in t||P(t,"click",l.toggle),o=function(){var e=t.href&&t[f]("href"),i=t[f]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&R(n)}(),o.isAnimating=!1,a=R(e.parent)||r&&W(t,r),t.Collapse=l};o[b](["Collapse",V,'[data-toggle="collapse"]']);var Z=function(t,i){t=R(t),this.persist=!0===i||"true"===t[f]("data-persist")||!1;var n=this,a=t[h],o="open",s=null,c=R(".dropdown-menu",a),d=function(){for(var t=c.children,e=[],i=0;i<t[p];i++)t[i].children[p]&&"A"===t[i].children[0].tagName&&e[b](t[i]);return e}(),g=function(t){(t.href&&"#"===t.href.slice(-1)||t[h]&&t[h].href&&"#"===t[h].href.slice(-1))&&this.preventDefault()},m=function(){var i=t[o]?P:z;i(e,"click",v),i(e,"keydown",T),i(e,"keyup",w),i(e,"focus",v,!0)},v=function(e){var i=e[r],a=i&&(i[f](l)||i[h]&&f in i[h]&&i[h][f](l));("focus"!==e.type||i!==t&&i!==c&&!c.contains(i))&&(i!==c&&!c.contains(i)||!n.persist&&!a)&&(s=i===t||t.contains(i)?t:null,k(),g.call(e,i))},y=function(e){s=t,x(),g.call(e,e[r])},T=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},w=function(i){var a=i.which||i.keyCode,l=e.activeElement,r=d.indexOf(l[h]),f=l===t,u=c.contains(l),g=l[h][h]===c;g&&(r=f?0:38===a?r>1?r-1:0:40===a&&r<d[p]-1?r+1:r,d[r]&&H(d[r].children[0])),(d[p]&&g||!d[p]&&(u||f)||!u)&&t[o]&&27===a&&(n.toggle(),s=null)},x=function(){Y.call(a,"show","dropdown",s),E(a,o),t[u]("aria-expanded",!0),Y.call(a,"shown","dropdown",s),t[o]=!0,z(t,"click",y),setTimeout(function(){H(c.getElementsByTagName("INPUT")[0]||t),m()},1)},k=function(){Y.call(a,"hide","dropdown",s),N(a,o),t[u]("aria-expanded",!1),Y.call(a,"hidden","dropdown",s),t[o]=!1,m(),H(t),setTimeout(function(){P(t,"click",y)},1)};t[o]=!1,this.toggle=function(){M(a,o)&&t[o]?k():x()},"Dropdown"in t||(!1 in c&&c[u]("tabindex","0"),P(t,"click",y)),t.Dropdown=n};o[b](["Dropdown",Z,'[data-toggle="dropdown"]']);var _=function(a,o){a=R(a);var l=a[f]("data-target")||a[f]("href"),c=R(l),d=M(a,"modal")?a:c;if(M(a,"modal")&&(a=null),d){o=o||{},this.keyboard=!1!==o.keyboard&&"false"!==d[f]("data-keyboard"),this.backdrop="static"!==o.backdrop&&"static"!==d[f]("data-backdrop")||"static",this.backdrop=!1!==o.backdrop&&"false"!==d[f]("data-backdrop")&&this.backdrop,this[s]=!!M(d,"fade"),this.content=o.content,d.isAnimating=!1;var g,m,b,y,w,x=this,k=null,L=S(i,C).concat(S(i,"navbar-fixed-bottom")),B=function(){var e=i.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e[T])},D=function(){var i,a=e[n].currentStyle||t.getComputedStyle(e[n]),o=parseInt(a.paddingRight,10);if(g&&(e[n][v].paddingRight=o+m+"px",d[v].paddingRight=m+"px",L[p]))for(var l=0;l<L[p];l++)i=(L[l].currentStyle||t.getComputedStyle(L[l])).paddingRight,L[l][v].paddingRight=parseInt(i)+m+"px"},W=function(){if(e[n][v].paddingRight="",d[v].paddingRight="",L[p])for(var t=0;t<L[p];t++)L[t][v].paddingRight=""},O=function(){var t,i=e.createElement("div");return i.className="modal-scrollbar-measure",e[n].appendChild(i),t=i.offsetWidth-i.clientWidth,e[n].removeChild(i),t},X=function(){g=e[n].clientWidth<B(),m=O()},$=function(){var t=e.createElement("div");b=R(".modal-backdrop"),null===b&&(t[u]("class","modal-backdrop"+(x[s]?" fade":"")),b=t,e[n].appendChild(b)),A=1},F=function(){(b=R(".modal-backdrop"))&&null!==b&&"object"==typeof b&&(A=0,e[n].removeChild(b),b=null)},G=function(){H(d),d.isAnimating=!1,Y.call(d,"shown","modal",k),P(t,"resize",x.update,j),P(d,"click",V),P(e,"keydown",Q)},J=function(){d[v].display="",a&&H(a),Y.call(d,"hidden","modal"),function(){S(e,"modal in")[0]||(W(),N(e[n],"modal-open"),b&&M(b,"fade")?(N(b,"in"),U(b,F)):F(),z(t,"resize",x.update,j),z(d,"click",V),z(e,"keydown",Q))}(),d.isAnimating=!1},K=function(t){if(!d.isAnimating){var e=t[r];e=e.hasAttribute("data-target")||e.hasAttribute("href")?e:e[h],e!==a||M(d,"in")||(d.modalTrigger=a,k=a,x.show(),t.preventDefault())}},Q=function(t){if(!d.isAnimating){var e=t.which||t.keyCode;x.keyboard&&27==e&&M(d,"in")&&x.hide()}},V=function(t){if(!d.isAnimating){var e=t[r];M(d,"in")&&("modal"===e[h][f]("data-dismiss")||"modal"===e[f]("data-dismiss")||e===d&&"static"!==x.backdrop)&&(x.hide(),k=null,t.preventDefault())}};this.toggle=function(){M(d,"in")?this.hide():this.show()},this.show=function(){M(d,"in")||d.isAnimating||(clearTimeout(w),w=setTimeout(function(){d.isAnimating=!0,Y.call(d,"show","modal",k);var t=S(e,"modal in")[0];t&&t!==d&&("modalTrigger"in t&&t.modalTrigger.Modal.hide(),"Modal"in t&&t.Modal.hide()),x.backdrop&&!A&&!b&&$(),b&&!M(b,"in")&&(b.offsetWidth,y=q(b),E(b,"in")),setTimeout(function(){d[v].display="block",X(),D(),E(e[n],"modal-open"),E(d,"in"),d[u]("aria-hidden",!1),M(d,"fade")?U(d,G):G()},I&&b&&y?y:1)},1))},this.hide=function(){!d.isAnimating&&M(d,"in")&&(clearTimeout(w),w=setTimeout(function(){d.isAnimating=!0,Y.call(d,"hide","modal"),b=R(".modal-backdrop"),y=b&&q(b),N(d,"in"),d[u]("aria-hidden",!0),setTimeout(function(){M(d,"fade")?U(d,J):J()},I&&b&&y?y:2)},2))},this.setContent=function(t){R(".modal-content",d).innerHTML=t},this.update=function(){M(d,"in")&&(X(),D())},!a||"Modal"in a||P(a,"click",K),x.content&&x.setContent(x.content),a?(a.Modal=x,d.modalTrigger=a):d.Modal=x}};o[b](["Modal",_,'[data-toggle="modal"]']);var tt=function(i,a){i=R(i),a=a||{};var o=i[f]("data-trigger"),l=i[f]("data-animation"),d=i[f]("data-placement"),h=i[f]("data-dismissible"),p=i[f]("data-delay"),g=i[f]("data-container"),m='<button type="button" class="close">×</button>',b=R(a.container),y=R(g),T=W(i,".modal"),k=W(i,"."+C),A=W(i,".navbar-fixed-bottom");this.template=a.template?a.template:null,this.trigger=a.trigger?a.trigger:o||"hover",this[s]=a[s]&&"fade"!==a[s]?a[s]:l||"fade",this.placement=a.placement?a.placement:d||w,this.delay=parseInt(a.delay||p)||200,this.dismissible=!(!a.dismissible&&"true"!==h),this.container=b||(y||(k||(A||(T||e[n]))));var I=this,L=a.title||i[f]("data-title")||null,B=a.content||i[f]("data-content")||null;if(B||this.template){var H=null,D=0,S=this.placement,O=function(t){null!==H&&t[r]===R(".close",H)&&I.hide()},X=function(){I.container.removeChild(H),D=null,H=null},q=function(){if(L=a.title||i[f]("data-title"),B=a.content||i[f]("data-content"),B=B?B.replace(/^\s+|\s+$/g,""):null,H=e.createElement("div"),null!==B&&null===I.template){if(H[u]("role","tooltip"),null!==L){var t=e.createElement("h3");t[u]("class","popover-title"),t.innerHTML=I.dismissible?L+m:L,H.appendChild(t)}var n=e.createElement("div"),o=e.createElement("div");n[u]("class","arrow"),o[u]("class","popover-content"),H.appendChild(n),H.appendChild(o),o.innerHTML=I.dismissible&&null===L?B+m:B}else{var l=e.createElement("div");I.template=I.template.replace(/^\s+|\s+$/g,""),l.innerHTML=I.template,H.innerHTML=l.firstChild.innerHTML}I.container.appendChild(H),H[v].display="block",H[u]("class","popover "+S+" "+I[s])},$=function(){!M(H,"in")&&E(H,"in")},G=function(){F(i,H,S,I.container)},J=function(n){"click"!=I.trigger&&"focus"!=I.trigger||!I.dismissible&&n(i,"blur",I.hide),I.dismissible&&n(e,"click",O),!x&&n(t,"resize",I.hide,j)},K=function(){J(P),Y.call(i,"shown","popover")},Q=function(){J(z),X(),Y.call(i,"hidden","popover")};this.toggle=function(){null===H?I.show():I.hide()},this.show=function(){clearTimeout(D),D=setTimeout(function(){null===H&&(S=I.placement,q(),G(),$(),Y.call(i,"show","popover"),I[s]?U(H,K):K())},20)},this.hide=function(){clearTimeout(D),D=setTimeout(function(){H&&null!==H&&M(H,"in")&&(Y.call(i,"hide","popover"),N(H,"in"),I[s]?U(H,Q):Q())},I.delay)},"Popover"in i||("hover"===I.trigger?(P(i,c[0],I.show),I.dismissible||P(i,c[1],I.hide)):"click"!=I.trigger&&"focus"!=I.trigger||P(i,I.trigger,I.toggle)),i.Popover=I}};o[b](["Popover",tt,'[data-toggle="popover"]']);var et=function(e,i){e=R(e);var n=R(e[f]("data-target")),a=e[f]("data-offset");if(i=i||{},i[r]||n){for(var o,l=this,s=i[r]&&R(i[r])||n,c=s&&s.getElementsByTagName("A"),d=parseInt(i.offset||a)||10,u=[],g=[],m=e.offsetHeight<e.scrollHeight?e:t,v=m===t,T=0,k=c[p];T<k;T++){var A=c[T][f]("href"),C=A&&"#"===A.charAt(0)&&"#"!==A.slice(-1)&&R(A);C&&(u[b](c[T]),g[b](C))}var I=function(t){var i=u[t][h],n=g[t],a=W(i,".dropdown"),l=v&&n.getBoundingClientRect(),r=M(i,y)||!1,s=(v?l[w]+o:n.offsetTop)-d,c=v?l.bottom+o-d:g[t+1]?g[t+1].offsetTop-d:e.scrollHeight,f=o>=s&&c>o;if(!r&&f)"LI"!==i.tagName||M(i,y)||(E(i,y),a&&!M(a,y)&&E(a,y),Y.call(e,"activate","scrollspy",u[t]));else if(f){if(!f&&!r||r&&f)return}else"LI"===i.tagName&&M(i,y)&&(N(i,y),a&&M(a,y)&&!S(i[h],y).length&&N(a,y))},L=function(){o=v?$().y:e.scrollTop;for(var t=0,i=u[p];t<i;t++)I(t)};this.refresh=function(){L()},"ScrollSpy"in e||(P(m,"scroll",l.refresh,j),!x&&P(t,"resize",l.refresh,j)),l.refresh(),e.ScrollSpy=l}};o[b](["ScrollSpy",et,'[data-spy="scroll"]']);var it=function(t,e){t=R(t);var i=t[f]("data-height");e=e||{},this.height=!!I&&(e.height||"true"===i);var n,a,o,l,r,s,c,d=this,g=W(t,".nav"),m=!1,b=g&&R(".dropdown",g),w=function(){m[v].height="",N(m,"collapsing"),g.isAnimating=!1},x=function(){m?s?w():setTimeout(function(){m[v].height=c+"px",m.offsetWidth,U(m,w)},50):g.isAnimating=!1,Y.call(n,"shown","tab",a)},k=function(){m&&(o[v].float=T,l[v].float=T,r=o.scrollHeight),E(l,y),Y.call(n,"show","tab",a),N(o,y),Y.call(a,"hidden","tab",n),m&&(c=l.scrollHeight,s=c===r,E(m,"collapsing"),m[v].height=r+"px",m.offsetHeight,o[v].float="",l[v].float=""),M(l,"fade")?setTimeout(function(){E(l,"in"),U(l,x)},20):x()};if(g){g.isAnimating=!1;var A=function(){var t,e=S(g,y);return 1!==e[p]||M(e[0],"dropdown")?e[p]>1&&(t=e[e[p]-1]):t=e[0],t.getElementsByTagName("A")[0]},C=function(){return R(A()[f]("href"))},L=function(t){t.preventDefault(),n=t.currentTarget||this,!g.isAnimating&&!M(n[h],y)&&d.show()};this.show=function(){n=n||t,l=R(n[f]("href")),a=A(),o=C(),g.isAnimating=!0,N(a[h],y),a[u]("aria-expanded","false"),E(n[h],y),n[u]("aria-expanded","true"),b&&(M(t[h][h],"dropdown-menu")?M(b,y)||E(b,y):M(b,y)&&N(b,y)),Y.call(a,"hide","tab",n),M(o,"fade")?(N(o,"in"),U(o,k)):k()},"Tab"in t||P(t,"click",L),d.height&&(m=C()[h]),t.Tab=d}};o[b](["Tab",it,'[data-toggle="tab"]']);var nt=function(i,a){i=R(i),a=a||{};var o=i[f]("data-animation"),l=i[f]("data-placement"),r=i[f]("data-delay"),d=i[f]("data-container"),h=R(a.container),p=R(d),g=W(i,".modal"),m=W(i,"."+C),v=W(i,".navbar-fixed-bottom");this[s]=a[s]&&"fade"!==a[s]?a[s]:o||"fade",this.placement=a.placement?a.placement:l||w,this.delay=parseInt(a.delay||r)||200,this.container=h||(p||(m||(v||(g||e[n]))));var b=this,y=0,T=this.placement,k=null,A=i[f]("title")||i[f]("data-title")||i[f]("data-original-title");if(A&&""!=A){var I=function(){b.container.removeChild(k),k=null,y=null},L=function(){if(!(A=i[f]("title")||i[f]("data-title")||i[f]("data-original-title"))||""==A)return!1;k=e.createElement("div"),k[u]("role","tooltip");var t=e.createElement("div"),n=e.createElement("div");t[u]("class","tooltip-arrow"),n[u]("class","tooltip-inner"),k.appendChild(t),k.appendChild(n),n.innerHTML=A,b.container.appendChild(k),k[u]("class","tooltip "+T+" "+b[s])},B=function(){F(i,k,T,b.container)},H=function(){!M(k,"in")&&E(k,"in")},D=function(){Y.call(i,"shown","tooltip"),!x&&P(t,"resize",b.hide,j)},S=function(){!x&&z(t,"resize",b.hide,j),I(),Y.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(y),y=setTimeout(function(){if(null===k){if(T=b.placement,0==L())return;B(),H(),Y.call(i,"show","tooltip"),b[s]?U(k,D):D()}},20)},this.hide=function(){clearTimeout(y),y=setTimeout(function(){k&&M(k,"in")&&(Y.call(i,"hide","tooltip"),N(k,"in"),b[s]?U(k,S):S())},b.delay)},this.toggle=function(){k?b.hide():b.show()},"Tooltip"in i||(i[u]("data-original-title",A),i.removeAttribute("title"),P(i,c[0],b.show),P(i,c[1],b.hide)),i.Tooltip=b}};o[b](["Tooltip",nt,'[data-toggle="tooltip"]']);var at=function(t,e){for(var i=0,n=e[p];i<n;i++)new t(e[i])},ot=a.initCallback=function(t){t=t||e;for(var i=0,n=o[p];i<n;i++)at(o[i][1],t.querySelectorAll(o[i][2]))};return e[n]?ot():P(e,"DOMContentLoaded",function(){ot()}),{Affix:G,Alert:J,Button:K,Carousel:Q,Collapse:V,Dropdown:Z,Modal:_,Popover:tt,ScrollSpy:et,Tab:it,Tooltip:nt}});
// Native JavaScript for Bootstrap v3.0.0 | 2020 © dnp_theme | MIT-License
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).BSN=e()}(this,(function(){"use strict";function t(t,e){return t.classList.contains(e)}function e(t,e){t.classList.remove(e)}function n(t,e,n,i){i=i||!1,t.addEventListener(e,n,i)}function i(t,e,n,i){i=i||!1,t.removeEventListener(e,n,i)}function o(t,e,o,a){n(t,e,(function n(l){l.target===t&&(o(l),i(t,e,n,a))}),a)}var a="webkitTransition"in document.body.style?"webkitTransitionEnd":"transitionend",l="webkitTransition"in document.body.style||"transition"in document.body.style,r="webkitTransition"in document.body.style?"webkitTransitionDuration":"transitionDuration";function c(t){var e=l?window.getComputedStyle(t)[r]:0;return e="number"!=typeof(e=parseFloat(e))||isNaN(e)?0:1e3*e}function s(t,e){var n=0;c(t)?o(t,a,(function(t){!n&&e(t),n=1})):setTimeout((function(){!n&&e(),n=1}),17)}function d(t,e){var n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function u(t,e){try{t()}catch(t){console.error(e+": "+t)}}function f(t,e,n){var i=new CustomEvent(t+".bs."+e,{cancelable:!0});return i.relatedTarget=n,i}function m(t){this&&this.dispatchEvent(t)}function p(o){var a,l=this,r=f("close","alert"),c=f("closed","alert");function p(t){a=t&&t.target.closest(".alert"),(o=d('[data-dismiss="alert"]',a))&&a&&(o===t.target||o.contains(t.target))&&l.close()}function h(){i(o,"click",p),a.parentNode.removeChild(a),m.call(a,c)}l.close=function(){if(a&&o&&t(a,"show")){if(m.call(a,r),r.defaultPrevented)return;l.dispose(),e(a,"show"),t(a,"fade")?s(a,h):h()}},l.dispose=function(){i(o,"click",p),delete o.Alert},u((function(){o=d(o),a=o.closest(".alert"),o.Alert&&o.Alert.dispose(),o.Alert||n(o,"click",p),l.element=o,o.Alert=l}),"BSN.Alert")}function h(t,e){t.classList.add(e)}function g(o){var a,l=this,r=f("change","button");function c(n){var i,l="LABEL"===n.target.tagName?n.target:n.target.closest("LABEL")?n.target.closest("LABEL"):null;if(i=l&&l.getElementsByTagName("INPUT")[0]){if(m.call(i,r),m.call(o,r),"checkbox"===i.type){if(r.defaultPrevented)return;i.checked?(e(l,"active"),i.getAttribute("checked"),i.removeAttribute("checked"),i.checked=!1):(h(l,"active"),i.getAttribute("checked"),i.setAttribute("checked","checked"),i.checked=!0),o.toggled||(o.toggled=!0)}if("radio"===i.type&&!o.toggled){if(r.defaultPrevented)return;(!i.checked||0===n.screenX&&0==n.screenY)&&(h(l,"active"),h(l,"focus"),i.setAttribute("checked","checked"),i.checked=!0,o.toggled=!0,Array.from(a).map((function(n){var i=n.getElementsByTagName("INPUT")[0];n!==l&&t(n,"active")&&(m.call(i,r),e(n,"active"),i.removeAttribute("checked"),i.checked=!1)})))}setTimeout((function(){o.toggled=!1}),50)}}function s(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&c(t)}function p(t){32===(t.which||t.keyCode)&&t.preventDefault()}function g(t){var n="focusin"===t.type?h:e;"INPUT"===t.target.tagName&&n(t.target.closest(".btn"),"focus")}function v(t){t(o,"click",c),t(o,"keyup",s),t(o,"keydown",p),t(o,"focusin",g),t(o,"focusout",g)}l.dispose=function(){v(i),delete o.Button},u((function(){(o=d(o)).Button&&o.Button.dispose(),(a=o.getElementsByClassName("btn")).length&&(o.Button||v(n),o.toggled=!1,o.Button=l,Array.from(a).map((function(n){!t(n,"active")&&d("input:checked",n)&&h(n,"active"),t(n,"active")&&!d("input:checked",n)&&e(n,"active")})))}),"BSN.Button")}var v="touchstart",b="touchend",y="touchmove",w="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],A=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});o(document,"DOMContentLoaded",(function(){}),e)}catch(t){}return t}()&&{passive:!0};function T(o,a){a=a||{};var l,r,p,g,T,k,N,C,x=this,E={};function P(){!1===E.interval||t(o,"paused")||(h(o,"paused"),!l.isSliding&&(clearInterval(l.timer),l.timer=null))}function S(){!1!==E.interval&&t(o,"paused")&&(e(o,"paused"),!l.isSliding&&(clearInterval(l.timer),l.timer=null),!l.isSliding&&x.cycle())}function B(e){if(e.preventDefault(),!l.isSliding){var n=e.target;if(!n||t(n,"active")||!n.getAttribute("data-slide-to"))return!1;l.index=parseInt(n.getAttribute("data-slide-to"),10),x.slideTo(l.index)}}function M(t){if(t.preventDefault(),!l.isSliding){var e=t.currentTarget||t.srcElement;e===k?l.index++:e===T&&l.index--,x.slideTo(l.index)}}function L(t){var e=t.which;if(!l.isSliding){switch(e){case 39:l.index++;break;case 37:l.index--;break;default:return}x.slideTo(l.index)}}function H(t){E.pause&&E.interval&&(t(o,w[0],P),t(o,w[1],S),t(o,v,P,A),t(o,b,S,A)),g.length>1&&t(o,v,D,A),k&&t(k,"click",M),T&&t(T,"click",M),N&&t(N,"click",B),E.keyboard&&t(window,"keydown",L)}function I(t){t(o,y,X,A),t(o,b,W,A)}function D(t){l.isTouch||(l.touchPosition.startX=t.changedTouches[0].pageX,o.contains(t.target)&&(l.isTouch=!0,I(n)))}function X(t){if(l.isTouch)return l.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1?(t.preventDefault(),!1):void 0;t.preventDefault()}function W(t){if(l.isTouch&&!l.isSliding&&(l.touchPosition.endX=l.touchPosition.currentX||t.changedTouches[0].pageX,l.isTouch)){if((!o.contains(t.target)||!o.contains(t.relatedTarget))&&Math.abs(l.touchPosition.startX-l.touchPosition.endX)<75)return!1;l.touchPosition.currentX<l.touchPosition.startX?l.index++:l.touchPosition.currentX>l.touchPosition.startX&&l.index--,l.isTouch=!1,x.slideTo(l.index),I(i)}}function O(t){Array.from(C).map((function(t){e(t,"active")})),C[t]&&h(C[t],"active")}function R(n){if(l.touchPosition){var i=l.index,a=n&&n.target!==g[i]?1e3*n.elapsedTime+100:20,r=x.getActiveIndex(),c="left"===l.direction?"next":"prev";l.isSliding&&setTimeout((function(){l.touchPosition&&(l.isSliding=!1,h(g[i],"active"),e(g[r],"active"),e(g[i],"carousel-item-"+c),e(g[i],"carousel-item-"+l.direction),e(g[r],"carousel-item-"+l.direction),m.call(o,p),document.hidden||!E.interval||t(o,"paused")||x.cycle())}),a)}}x.cycle=function(){l.timer&&(clearInterval(l.timer),l.timer=null),l.timer=setInterval((function(){var t=l.index||x.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0})(o)&&(t++,x.slideTo(t))}),E.interval)},x.slideTo=function(n){if(!l.isSliding){var i,a=x.getActiveIndex();a!==n&&(a<n||0===a&&n===g.length-1?l.direction="left":(a>n||a===g.length-1&&0===n)&&(l.direction="right"),n<0?n=g.length-1:n>=g.length&&(n=0),i="left"===l.direction?"next":"prev",r=f("slide","carousel",g[n]),p=f("slid","carousel",g[n]),m.call(o,r),r.defaultPrevented||(l.index=n,l.isSliding=!0,clearInterval(l.timer),l.timer=null,O(n),c(g[n])&&t(o,"slide")?(h(g[n],"carousel-item-"+i),g[n].offsetWidth,h(g[n],"carousel-item-"+l.direction),h(g[a],"carousel-item-"+l.direction),s(g[n],R)):(h(g[n],"active"),g[n].offsetWidth,e(g[a],"active"),setTimeout((function(){l.isSliding=!1,E.interval&&o&&!t(o,"paused")&&x.cycle(),m.call(o,p)}),100))))}},x.getActiveIndex=function(){return Array.from(g).indexOf(o.getElementsByClassName("carousel-item active")[0])||0},x.dispose=function(){var n=["left","right","prev","next"];Array.from(g).map((function(i,o){t(i,"active")&&O(o),n.map((function(t){return e(i,"carousel-item-"+t)}))})),clearInterval(l.timer),H(i),l={},delete o.Carousel},(l={}).direction="left",l.index=0,l.timer=null,l.isSliding=!1,l.isTouch=!1,l.touchPosition={startX:0,currentX:0,endX:0},u((function(){(o=d(o)).Carousel&&o.Carousel.dispose();var t=o.getAttribute("data-interval"),e=a.interval,i="false"===t?0:parseInt(t),l="hover"===o.getAttribute("data-pause")||!1,r="true"===o.getAttribute("data-keyboard")||!1;g=o.getElementsByClassName("carousel-item"),T=o.getElementsByClassName("carousel-control-prev")[0],k=o.getElementsByClassName("carousel-control-next")[0],N=o.getElementsByClassName("carousel-indicators")[0],C=N&&N.getElementsByTagName("LI")||[],E.keyboard=!0===a.keyboard||r,E.pause=!("hover"!==a.pause&&!l)&&"hover",E.interval="number"==typeof e?e:!1===e||0===i||!1===i?0:isNaN(i)?5e3:i,g.length<2||(o.Carousel||H(n),x.getActiveIndex()<0&&(g.length&&h(g[0],"active"),C.length&&O(0)),E.interval&&x.cycle(),o.Carousel=x)}),"BSN.Carousel")}function k(o,a){a=a||{};var l,r,c,p,g,v,b=this,y=null,w=null;function A(t,n){m.call(t,g),g.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",e(t,"collapse"),e(t,"show"),h(t,"collapsing"),t.offsetWidth,t.style.height="0px",s(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false"),e(t,"collapsing"),h(t,"collapse"),t.style.height="",m.call(t,v)})))}b.toggle=function(e){(e&&"A"===e.target.tagName||"A"===o.tagName)&&e.preventDefault(),(o.contains(e.target)||e.target===o)&&(t(w,"show")?b.hide():b.show())},b.hide=function(){w.isAnimating||(A(w,o),h(o,"collapsed"))},b.show=function(){var t,n;y&&(l=y.getElementsByClassName("collapse show")[0],r=l&&(d('[data-target="#'+l.id+'"]',y)||d('[href="#'+l.id+'"]',y))),w.isAnimating||(r&&l!==w&&(A(l,r),h(r,"collapsed")),t=w,n=o,m.call(t,c),c.defaultPrevented||(t.isAnimating=!0,h(t,"collapsing"),e(t,"collapse"),t.style.height=t.scrollHeight+"px",s(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"),e(t,"collapsing"),h(t,"collapse"),h(t,"show"),t.style.height="",m.call(t,p)}))),e(o,"collapsed"))},b.dispose=function(){i(o,"click",b.toggle),delete o.Collapse},u((function(){(o=d(o)).Collapse&&o.Collapse.dispose();var t=o.getAttribute("data-parent");c=f("show","collapse"),p=f("shown","collapse"),g=f("hide","collapse"),v=f("hidden","collapse"),(w=d(a.target||o.getAttribute("data-target")||o.getAttribute("href"))).isAnimating=!1,y=o.closest(a.parent||t),o.Collapse||n(o,"click",b.toggle),o.Collapse=b}),"BSN.Collapse")}var N="mousedown";"webkitPerspective"in document.body.style||document.body.style,"webkitTransform"in document.body.style||document.body.style;function C(t){t.focus?t.focus():t.setActive()}function x(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function E(e,n,i,o){var a,l,r,c,s,u,f=n.offsetWidth,m=n.offsetHeight,p=document.documentElement.clientWidth||document.body.clientWidth,h=document.documentElement.clientHeight||document.body.clientHeight,g=e.getBoundingClientRect(),v=o===document.body?x():{x:o.offsetLeft+o.scrollLeft,y:o.offsetTop+o.scrollTop},b=g.right-g.left,y=g.bottom-g.top,w=t(n,"popover"),A=d(".arrow",n),T=g.top+y/2-m/2<0,k=g.left+b/2-f/2<0,N=g.left+f/2+b/2>=p,C=g.top+m/2+y/2>=h,E=g.top-m<0,P=g.left-f<0,S=g.top+m+y>=h,B=g.left+f+b>=p;i="right"===(i="left"===(i="bottom"===(i="top"===(i=("left"===i||"right"===i)&&P&&B?"top":i)&&E?"bottom":i)&&S?"top":i)&&P?"right":i)&&B?"left":i,-1===n.className.indexOf(i)&&(n.className=n.className.replace(/\b(top|bottom|left|right)+/,i)),s=A.offsetWidth,u=A.offsetHeight,"left"===i||"right"===i?(l="left"===i?g.left+v.x-f-(w?s:0):g.left+v.x+b,T?(a=g.top+v.y,r=y/2-s):C?(a=g.top+v.y-m+y,r=m-y/2-s):(a=g.top+v.y-m/2+y/2,r=m/2-(w?.9*u:u/2))):"top"!==i&&"bottom"!==i||(a="top"===i?g.top+v.y-m-(w?u:0):g.top+v.y+y,k?(l=0,c=g.left+b/2-s):N?(l=p-1.01*f,c=f-(p-g.left)+b/2-s/2):(l=g.left+v.x-f/2+b/2,c=f/2-(w?s:s/2))),n.style.top=a+"px",n.style.left=l+"px",r&&(A.style.top=r+"px"),c&&(A.style.left=c+"px")}function P(o,a){var l,r,c,s,p,g,v,b=this,y=null,w=[];function A(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function T(){var t=o.open?n:i;t(document,"click",k),t(document,"keydown",x),t(document,"keyup",E),t(document,"focus",k,!0)}function k(t){var e=t.target,n=e&&(e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle"));("focus"!==t.type||e!==o&&e!==g&&!g.contains(e))&&(e!==g&&!g.contains(e)||!v&&!n)&&(y=e===o||o.contains(e)?o:null,b.hide(),A.call(t,e))}function N(t){y=o,b.show(),A.call(t,t.target)}function x(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function E(t){var e=t.which,n=t.keyCode,i=e||n,a=document.activeElement,l=a===o,r=g.contains(a),c=a.parentNode===g||a.parentNode.parentNode===g,s=w.indexOf(a);c&&(s=l?0:38===i?s>1?s-1:0:40===i&&s<w.length-1?s+1:s,w[s]&&C(w[s])),(w.length&&c||!w.length&&(r||l)||!r)&&o.open&&27===i&&(b.toggle(),y=null)}b.show=function(){l=f("show","dropdown",y),m.call(p,l),l.defaultPrevented||(h(g,"show"),h(p,"show"),o.setAttribute("aria-expanded",!0),o.open=!0,i(o,"click",N),setTimeout((function(){C(g.getElementsByTagName("INPUT")[0]||o),T(),r=f("shown","dropdown",y),m.call(p,r)}),1))},b.hide=function(){c=f("hide","dropdown",y),m.call(p,c),c.defaultPrevented||(e(g,"show"),e(p,"show"),o.setAttribute("aria-expanded",!1),o.open=!1,T(),C(o),setTimeout((function(){o.Dropdown&&n(o,"click",N)}),1),s=f("hidden","dropdown",y),m.call(p,s))},b.toggle=function(){t(p,"show")&&o.open?b.hide():b.show()},b.dispose=function(){t(p,"show")&&o.open&&b.hide(),i(o,"click",N),delete o.Dropdown},u((function(){(o=d(o)).Dropdown&&o.Dropdown.dispose(),p=o.parentNode,g=d(".dropdown-menu",p),Array.from(g.children).map((function(t){t.children.length&&"A"===t.children[0].tagName&&w.push(t.children[0]),"A"===t.tagName&&w.push(t)})),o.Dropdown||(!("tabindex"in g)&&g.setAttribute("tabindex","0"),n(o,"click",N)),v=!0===a||"true"===o.getAttribute("data-persist")||!1,o.open=!1,o.Dropdown=b}),"BSN.Dropdown")}function S(o,a){a=a||{};var l,r,p,g,v,b,y,w,T,k=this,N=null,x={};function E(){var e,n=t(document.body,"modal-open"),i=parseInt(getComputedStyle(document.body).paddingRight),o=l.clientHeight!==l.scrollHeight;l.style.paddingRight=!o&&b?b+"px":"",document.body.style.paddingRight=i+(n?0:b)+"px",T.length&&T.map((function(t){e=getComputedStyle(t).paddingRight,t.style.paddingRight=parseInt(e)+(n?0:b)+"px"}))}function P(){var t,e;(e=document.createElement("div")).className="modal-scrollbar-measure",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e),b=t}function S(){(y=d(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(y),y=null),null===y&&(e(document.body,"modal-open"),document.body.style.paddingRight="",l.style.paddingRight="",T.length&&T.map((function(t){t.style.paddingRight=""})))}function B(t){t(window,"resize",k.update,A),t(l,"click",X),t(document,"keydown",D)}function M(){l.style.display="block",P(),E(),!document.getElementsByClassName("modal show")[0]&&h(document.body,"modal-open"),h(l,"show"),l.setAttribute("aria-hidden",!1),t(l,"fade")?s(l,L):L()}function L(){C(l),l.isAnimating=!1,B(n),p=f("shown","modal",N),m.call(l,p)}function H(n){l.style.display="",o&&C(o),y=d(".modal-backdrop"),1!==n&&y&&t(y,"show")&&!document.getElementsByClassName("modal show")[0]?(e(y,"show"),s(y,S)):S(),B(i),l.isAnimating=!1,v=f("hidden","modal"),m.call(l,v)}function I(e){if(!l.isAnimating){var n=e.target;(n=n.hasAttribute("data-target")||n.hasAttribute("href")?n:n.parentNode)!==o&&!o.contains(n)||t(l,"show")||(l.modalTrigger=o,N=o,k.show(),e.preventDefault())}}function D(e){var n=e.which;l.isAnimating||x.keyboard&&27==n&&t(l,"show")&&k.hide()}function X(e){if(!l.isAnimating){var n=e.target;t(l,"show")&&("modal"===n.parentNode.getAttribute("data-dismiss")||"modal"===n.getAttribute("data-dismiss")||n===l&&"static"!==x.backdrop)&&(k.hide(),N=null,e.preventDefault())}}k.toggle=function(){t(l,"show")?k.hide():k.show()},k.show=function(){if(!(t(l,"show")&&l.isAnimating||(r=f("show","modal",N),m.call(l,r),r.defaultPrevented))){l.isAnimating=!0;var e,n=document.getElementsByClassName("modal show")[0];n&&n!==l&&(n.modalTrigger&&n.modalTrigger.Modal.hide(),n.Modal&&n.Modal.hide()),x.backdrop&&(e=document.createElement("div"),null===(y=d(".modal-backdrop"))&&(e.setAttribute("class","modal-backdrop"+(x.animation?" fade":"")),y=e,document.body.appendChild(y)),y=y),!y||n||t(y,"show")||(y.offsetWidth,w=c(y),h(y,"show")),n?M():setTimeout(M,y&&w?w:0)}},k.hide=function(n){t(l,"show")&&(g=f("hide","modal"),m.call(l,g),g.defaultPrevented||(l.isAnimating=!0,e(l,"show"),l.setAttribute("aria-hidden",!0),t(l,"fade")&&1!==n?s(l,H):H()))},k.setContent=function(t){d(".modal-content",l).innerHTML=t},k.update=function(){t(l,"show")&&(P(),E())},k.dispose=function(){k.hide(1),o?(i(o,"click",I),delete o.Modal):delete l.Modal},u((function(){o=d(o);var e=d(o.getAttribute("data-target")||o.getAttribute("href"));l=t(o,"modal")?o:e,T=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),t(o,"modal")&&(o=null),o&&o.Modal&&o.Modal.dispose(),l&&l.Modal&&l.Modal.dispose(),x.keyboard=!1!==a.keyboard&&"false"!==l.getAttribute("data-keyboard"),x.backdrop="static"!==a.backdrop&&"static"!==l.getAttribute("data-backdrop")||"static",x.backdrop=!1!==a.backdrop&&"false"!==l.getAttribute("data-backdrop")&&x.backdrop,x.animation=!!t(l,"fade"),x.content=a.content,l.isAnimating=!1,o&&!o.Modal&&n(o,"click",I),x.content&&k.setContent(x.content.trim()),o?(l.modalTrigger=o,o.Modal=k):l.Modal=k}),"BSN.Modal")}function B(o,a){a=a||{};var l,r,c,p,g,b,y,T,k,C,x,P,S,B,M,L,H,I,D,X=this,W=null,O=0,R=/(iPhone|iPod|iPad)/.test(navigator.userAgent),z={};function U(t){null!==W&&t.target===d(".close",W)&&X.hide()}function q(){return{0:a.title||o.getAttribute("data-title")||null,1:a.content||o.getAttribute("data-content")||null}}function j(){null===W&&o.focus()}function Y(t){"hover"===z.trigger?(t(o,N,X.show),t(o,w[0],X.show),z.dismissible||t(o,w[1],X.hide)):"click"==z.trigger?t(o,z.trigger,X.toggle):"focus"==z.trigger&&(R&&t(o,"click",j),t(o,z.trigger,X.toggle))}function F(t){W&&W.contains(t.target)||t.target===o||o.contains(t.target)||X.hide()}function V(t){z.dismissible?t(document,"click",U):("focus"==z.trigger&&t(o,"blur",X.hide),"hover"==z.trigger&&t(document,v,F,A)),t(window,"resize",X.hide,A)}function G(){V(n),m.call(o,x)}function J(){V(i),z.container.removeChild(W),O=null,W=null,m.call(o,S)}X.toggle=function(){null===W?X.show():X.hide()},X.show=function(){clearTimeout(O),O=setTimeout((function(){if(null===W){if(m.call(o,C),C.defaultPrevented)return;!function(){l=q()[0]||null,r=(r=q()[1])?r.trim():null,W=document.createElement("div");var e=document.createElement("div");if(h(e,"arrow"),W.appendChild(e),null!==r&&null===z.template){if(W.setAttribute("role","tooltip"),null!==l){var n=document.createElement("h3");h(n,"popover-header"),n.innerHTML=z.dismissible?l+k:l,W.appendChild(n)}var i=document.createElement("div");h(i,"popover-body"),i.innerHTML=z.dismissible&&null===l?r+k:r,W.appendChild(i)}else{var o=document.createElement("div");o.innerHTML=z.template.trim(),W.className=o.firstChild.className,W.innerHTML=o.firstChild.innerHTML;var a=d(".popover-header",W),c=d(".popover-body",W);l&&a&&(a.innerHTML=l.trim()),r&&c&&(c.innerHTML=r.trim())}z.container.appendChild(W),W.style.display="block",!t(W,"popover")&&h(W,"popover"),!t(W,z.animation)&&h(W,z.animation),!t(W,D)&&h(W,D)}(),E(o,W,z.placement,z.container),!t(W,"show")&&h(W,"show"),z.animation?s(W,G):G()}}),20)},X.hide=function(){clearTimeout(O),O=setTimeout((function(){if(W&&null!==W&&t(W,"show")){if(m.call(o,P),P.defaultPrevented)return;e(W,"show"),z.animation?s(W,J):J()}}),z.delay)},X.dispose=function(){X.hide(),Y(i),delete o.Popover},u((function(){(o=d(o)).Popover&&o.Popover.dispose(),c=o.getAttribute("data-trigger"),p=o.getAttribute("data-animation"),g=o.getAttribute("data-placement"),b=o.getAttribute("data-dismissible"),y=o.getAttribute("data-delay"),T=o.getAttribute("data-container"),k='<button type="button" class="close">×</button>',C=f("show","popover"),x=f("shown","popover"),P=f("hide","popover"),S=f("hidden","popover"),B=d(a.container),M=d(T),L=o.closest(".modal"),H=o.closest(".fixed-top"),I=o.closest(".fixed-bottom"),z.template=a.template?a.template:null,z.trigger=a.trigger?a.trigger:c||"hover",z.animation=a.animation&&"fade"!==a.animation?a.animation:p||"fade",z.placement=a.placement?a.placement:g||"top",z.delay=parseInt(a.delay||y)||200,z.dismissible=!(!a.dismissible&&"true"!==b),z.container=B||(M||(H||(I||(L||document.body)))),D="bs-popover-"+z.placement;var t=q();l=t[0],((r=t[1])||z.template)&&(o.Popover||Y(n),o.Popover=X)}),"BSN.Popover")}function M(o,a){a=a||{};var l,r,c,s,p,g=this,v={};function b(){var n;n=s.getElementsByTagName("A"),l.length!==n.length&&(l.items=[],l.targets=[],Array.from(n).map((function(t){var e=t.getAttribute("href"),n=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&d(e);n&&(l.items.push(t),l.targets.push(n))})),l.length=n.length),l.scrollOffset=l.isWindow?x().y:o.scrollTop,l.items.map((function(n,i){return function(n){var i=l.items[n],a=l.targets[n],r=t(i,"dropdown-item")&&i.closest(".dropdown-menu"),c=r&&r.previousElementSibling,s=i.nextElementSibling,d=s&&s.getElementsByClassName("active").length,u=l.isWindow&&a.getBoundingClientRect(),p=t(i,"active")||!1,g=(l.isWindow?u.top+l.scrollOffset:a.offsetTop)-v.offset,b=l.isWindow?u.bottom+l.scrollOffset-v.offset:l.targets[n+1]?l.targets[n+1].offsetTop-v.offset:o.scrollHeight,y=d||l.scrollOffset>=g&&b>l.scrollOffset;if(!p&&y)h(i,"active"),c&&!t(c,"active")&&h(c,"active"),m.call(o,f("activate","scrollspy",l.items[n]));else if(p&&!y)e(i,"active"),c&&t(c,"active")&&!i.parentNode.getElementsByClassName("active").length&&e(c,"active");else if(p&&y||!y&&!p)return}(i)}))}function y(t){t(p,"scroll",g.refresh,A),t(window,"resize",g.refresh,A)}g.refresh=function(){b()},g.dispose=function(){y(i),delete o.ScrollSpy},u((function(){(o=d(o)).ScrollSpy&&o.ScrollSpy.dispose(),r=o.getAttribute("data-target"),c=o.getAttribute("data-offset"),s=d(a.target||r),p=o.offsetHeight<o.scrollHeight?o:window,s&&(v.target=s,v.offset=parseInt(a.offset||c)||10,(l={}).length=0,l.items=[],l.targets=[],l.isWindow=p===window,o.ScrollSpy||y(n),g.refresh(),o.ScrollSpy=g)}),"BSN.ScrollSpy")}function L(o,a){a=a||{};var r,c,p,g,v,b,y,w,A,T,k,N,C,x,E,P=this,S=!1;function B(){S.style.height="",e(S,"collapsing"),c.isAnimating=!1}function M(){S?C?B():setTimeout((function(){S.style.height=x+"px",S.offsetWidth,s(S,B)}),50):c.isAnimating=!1,v=f("shown","tab",A),m.call(w,v)}function L(){S&&(T.style.float="left",k.style.float="left",N=T.scrollHeight),g=f("show","tab",A),y=f("hidden","tab",w),m.call(w,g),g.defaultPrevented||(h(k,"active"),e(T,"active"),S&&(x=k.scrollHeight,C=x===N,h(S,"collapsing"),S.style.height=N+"px",S.offsetHeight,T.style.float="",k.style.float=""),t(k,"fade")?setTimeout((function(){h(k,"show"),s(k,M)}),20):M(),m.call(A,y))}function H(){var e,n=c.getElementsByClassName("active");return 1!==n.length||t(n[0].parentNode,"dropdown")?n.length>1&&(e=n[n.length-1]):e=n[0],e}function I(){return d(H().getAttribute("href"))}function D(t){t.preventDefault(),w=t.currentTarget,!c.isAnimating&&P.show()}P.show=function(){if(!t(w=w||o,"active")){if(k=d(w.getAttribute("href")),A=H(),T=I(),b=f("hide","tab",w),m.call(A,b),b.defaultPrevented)return;c.isAnimating=!0,e(A,"active"),A.setAttribute("aria-selected","false"),h(w,"active"),w.setAttribute("aria-selected","true"),p&&(t(o.parentNode,"dropdown-menu")?t(p,"active")||h(p,"active"):t(p,"active")&&e(p,"active")),t(T,"fade")?(e(T,"show"),s(T,L)):L()}},P.dispose=function(){i(o,"click",D),delete o.Tab},u((function(){(o=d(o)).Tab&&o.Tab.dispose(),r=o.getAttribute("data-height"),c=o.closest(".nav"),p=c&&d(".dropdown-toggle",c),E=!(!l||!1===a.height||"false"===r),c.isAnimating=!1,o.Tab||n(o,"click",D),E&&(S=I().parentNode),o.Tab=P}),"BSN.Tab")}function H(o,a){a=a||{};var l,r,c,p,g,v,b,y,w=this,A=0,T={};function k(){e(l,"showing"),h(l,"show"),m.call(l,b),T.autohide&&w.hide()}function N(){h(l,"hide"),m.call(l,y)}function C(){e(l,"show"),T.animation?s(l,N):N()}function x(){clearTimeout(A),i(o,"click",w.hide),delete o.Toast}w.show=function(){if(l&&!t(l,"show")){if(m.call(l,g),g.defaultPrevented)return;T.animation&&h(l,"fade"),e(l,"hide"),l.offsetWidth,h(l,"showing"),T.animation?s(l,k):k()}},w.hide=function(e){if(l&&t(l,"show")){if(m.call(l,v),v.defaultPrevented)return;e?C():A=setTimeout(C,T.delay)}},w.dispose=function(){T.animation?s(l,x):x()},u((function(){(o=d(o)).Toast&&o.Toast.dispose(),l=o.closest(".toast"),r=o.getAttribute("data-animation"),c=o.getAttribute("data-autohide"),p=o.getAttribute("data-delay"),g=f("show","toast"),v=f("hide","toast"),b=f("shown","toast"),y=f("hidden","toast"),T.animation=!1===a.animation||"false"===r?0:1,T.autohide=!1===a.autohide||"false"===c?0:1,T.delay=parseInt(a.delay||p)||500,o.Toast||n(o,"click",w.hide),o.Toast=w}),"BSN.Toast")}function I(o,a){a=a||{};var l,r,c,p,g,b,y,T,k,C,x,P,S,B,M,L=this,H=null,I=0,D={};function X(){return o.getAttribute("title")||o.getAttribute("data-title")||o.getAttribute("data-original-title")}function W(t){H&&H.contains(t.target)||t.target===o||o.contains(t.target)||L.hide()}function O(){n(document,v,W,A),n(window,"resize",L.hide,A),m.call(o,y)}function R(){i(document,v,W,A),i(window,"resize",L.hide,A),D.container.removeChild(H),H=null,I=null,m.call(o,k)}function z(t){t(o,N,L.show),t(o,w[0],L.show),t(o,w[1],L.hide)}L.show=function(){clearTimeout(I),I=setTimeout((function(){if(null===H){if(m.call(o,b),b.defaultPrevented)return;!1!==function(){if(l=X()){if(H=document.createElement("div"),D.template){var e=document.createElement("div");e.innerHTML=D.template.trim(),H.className=e.firstChild.className,H.innerHTML=e.firstChild.innerHTML,d(".tooltip-inner",H).innerHTML=l.trim()}else{var n=document.createElement("div");h(n,"arrow"),H.appendChild(n);var i=document.createElement("div");h(i,"tooltip-inner"),H.appendChild(i),i.innerHTML=l}H.style.left="0",H.style.top="0",H.setAttribute("role","tooltip"),!t(H,"tooltip")&&h(H,"tooltip"),!t(H,D.animation)&&h(H,D.animation),!t(H,M)&&h(H,M),D.container.appendChild(H)}}()&&(E(o,H,D.placement,D.container),!t(H,"show")&&h(H,"show"),D.animation?s(H,O):O())}}),20)},L.hide=function(){clearTimeout(I),I=setTimeout((function(){if(H&&t(H,"show")){if(m.call(o,T),T.defaultPrevented)return;e(H,"show"),D.animation?s(H,R):R()}}),D.delay)},L.toggle=function(){H?L.hide():L.show()},L.dispose=function(){z(i),L.hide(),o.setAttribute("title",o.getAttribute("data-original-title")),o.removeAttribute("data-original-title"),delete o.Tooltip},u((function(){(o=d(o)).Tooltip&&o.Tooltip.dispose(),r=o.getAttribute("data-animation"),c=o.getAttribute("data-placement"),p=o.getAttribute("data-delay"),g=o.getAttribute("data-container"),b=f("show","tooltip"),y=f("shown","tooltip"),T=f("hide","tooltip"),k=f("hidden","tooltip"),C=d(a.container),x=d(g),P=o.closest(".modal"),S=o.closest(".fixed-top"),B=o.closest(".fixed-bottom"),D.animation=a.animation&&"fade"!==a.animation?a.animation:r||"fade",D.placement=a.placement?a.placement:c||"top",D.template=a.template?a.template:null,D.delay=parseInt(a.delay||p)||200,D.container=C||(x||(S||(B||(P||document.body)))),M="bs-tooltip-"+D.placement,(l=X())&&(o.Tooltip||(o.setAttribute("data-original-title",l),o.removeAttribute("title"),z(n)),o.Tooltip=L)}),"BSN.Tooltip")}var D={},X=function(t){t=t||document;var e=function(t,e){Array.from(e).map((function(e){return new t(e)}))};for(var n in D)e(D[n][0],t.querySelectorAll(D[n][1]))};D.Alert=[p,'[data-dismiss="alert"]'],D.Button=[g,'[data-toggle="buttons"]'],D.Carousel=[T,'[data-ride="carousel"]'],D.Collapse=[k,'[data-toggle="collapse"]'],D.Dropdown=[P,'[data-toggle="dropdown"]'],D.Modal=[S,'[data-toggle="modal"]'],D.Popover=[B,'[data-toggle="popover"],[data-tip="popover"]'],D.ScrollSpy=[M,'[data-spy="scroll"]'],D.Tab=[L,'[data-toggle="tab"]'],D.Toast=[H,'[data-dismiss="toast"]'],D.Tooltip=[I,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?X():o(document,"DOMContentLoaded",X);return{Alert:p,Button:g,Carousel:T,Collapse:k,Dropdown:P,Modal:S,Popover:B,ScrollSpy:M,Tab:L,Toast:H,Tooltip:I,initCallback:X,removeDataAPI:function(t){t=t||document;var e=function(t,e){Array.from(e).map((function(e){return e[t].dispose()}))};for(var n in D)e(n,t.querySelectorAll(D[n][1]))},componentsInit:D,Version:"3.0.0"}}));

@@ -1,100 +0,38 @@

/* Native JavaScript for Bootstrap 3 IE8+ Polyfill
/* Native JavaScript for Bootstrap Polyfill
--------------------------------------------*/
(function(){
(function () {
// all repeated strings get a single reference
// document | window | element + corrections
var Doc = 'Document', doc = document, DOCUMENT = this[Doc] || this.HTMLDocument, // IE8
WIN = 'Window', win = window, WINDOW = this.constructor || this[WIN] || Window, // old Safari
HTMLELEMENT = 'HTMLElement', documentElement = 'documentElement', ELEMENT = Element,
// Element.prototype.closest
// https://github.com/idmadj/element-closest-polyfill/blob/master/index.js
if (!Element.prototype.matches) {
Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
}
// classList related
className = 'className', add = 'add', classList = 'classList', remove = 'remove', contains = 'contains',
CLASS = 'class', setATTRIBUTE = 'setAttribute', getATTRIBUTE = 'getAttribute',
// object | array related
prototype = 'prototype', indexOf = 'indexOf', length = 'length', split = 'split', trim = 'trim',
if (!Element.prototype.closest) {
Element.prototype.closest = function (s) {
var el = this;
// event related
EVENT = 'Event', CustomEvent = 'CustomEvent', IE8EVENTS = '_events',
etype = 'type', target = 'target', currentTarget = 'currentTarget', relatedTarget = 'relatedTarget',
cancelable = 'cancelable', bubbles = 'bubbles', cancelBubble = 'cancelBubble', cancelImmediate = 'cancelImmediate', detail = 'detail',
addEventListener = 'addEventListener', removeEventListener = 'removeEventListener', dispatchEvent = 'dispatchEvent';
// Element
if (!win[HTMLELEMENT]) { win[HTMLELEMENT] = win[ELEMENT]; }
// Array[prototype][indexOf]
if (!Array[prototype][indexOf]) {
Array[prototype][indexOf] = function(searchElement) {
if (this === undefined || this === null) {
throw new TypeError(this + ' is not an object');
}
var arraylike = this instanceof String ? this[split]('') : this,
lengthValue = Math.max(Math.min(arraylike[length], 9007199254740991), 0) || 0,
index = Number(arguments[1]) || 0;
index = (index < 0 ? Math.max(lengthValue + index, 0) : index) - 1;
while (++index < lengthValue) {
if (index in arraylike && arraylike[index] === searchElement) {
return index;
}
}
return -1;
do {
if (el.matches(s)) return el;
el = el.parentElement || el.parentNode;
} while (el !== null && el.nodeType === 1);
return null;
};
}
if (!String[prototype][trim]) {
String[prototype][trim] = function () {
return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
};
}
// Element.prototype.classList by thednp
if( !(classList in ELEMENT[prototype]) ) {
var ClassLIST = function(elem){
var classArr = (elem[getATTRIBUTE](CLASS)||'').replace(/^\s+|\s+$/g,'')[split](/\s+/) || [];
// methods
hasClass = this[contains] = function(classNAME){
return classArr[indexOf](classNAME) > -1;
},
addClass = this[add] = function(classNAME){
if (!hasClass(classNAME)) {
classArr.push(classNAME);
elem[setATTRIBUTE](CLASS, classArr.join(' '));
}
},
removeClass = this[remove] = function(classNAME){
if (hasClass(classNAME)) {
classArr.splice(classArr[indexOf](classNAME),1);
elem[setATTRIBUTE](CLASS, classArr.join(' '));
}
},
toggleClass = this.toggle = function(classNAME){
if ( hasClass(classNAME) ) { removeClass(classNAME); }
else { addClass(classNAME); }
};
}
Object.defineProperty(ELEMENT[prototype], classList, { get: function () { return new ClassLIST(this); } });
}
// Event
if (!win[EVENT]||!WINDOW[prototype][EVENT]) {
win[EVENT] = WINDOW[prototype][EVENT] = DOCUMENT[prototype][EVENT] = ELEMENT[prototype][EVENT] = function(type, eventInitDict) {
if (!window.Event || !Window.prototype.Event) {
window.Event = Window.prototype.Event = Document.prototype.Event = Element.prototype.Event = function (type, eventInitDict) {
if (!type) { throw new Error('Not enough arguments'); }
var event,
bubblesValue = eventInitDict && eventInitDict[bubbles] !== undefined ? eventInitDict[bubbles] : false,
cancelableValue = eventInitDict && eventInitDict[cancelable] !== undefined ? eventInitDict[cancelable] : false;
if ( 'createEvent' in doc ) {
event = doc.createEvent(EVENT);
var event,
bubblesValue = eventInitDict && eventInitDict.bubbles !== undefined ? eventInitDict.bubbles : false,
cancelableValue = eventInitDict && eventInitDict.cancelable !== undefined ? eventInitDict.cancelable : false;
if ('createEvent' in document) {
event = document.createEvent('Event');
event.initEvent(type, bubblesValue, cancelableValue);
} else {
event = doc.createEventObject();
event[etype] = type;
event[bubbles] = bubblesValue;
event[cancelable] = cancelableValue;
event = document.createEventObject();
event.etype = type;
event.bubbles = bubblesValue;
event.cancelable = cancelableValue;
}

@@ -106,4 +44,4 @@ return event;

// CustomEvent
if (!(CustomEvent in win) || !(CustomEvent in WINDOW[prototype])) {
win[CustomEvent] = WINDOW[prototype][CustomEvent] = DOCUMENT[prototype][CustomEvent] = Element[prototype][CustomEvent] = function(type, eventInitDict) {
if (!window.CustomEvent || !Window.prototype.CustomEvent) {
window.CustomEvent = Window.prototype.CustomEvent = Document.prototype.CustomEvent = Element.prototype.CustomEvent = function (type, eventInitDict) {
if (!type) {

@@ -113,3 +51,3 @@ throw Error('CustomEvent TypeError: An event name must be provided.');

var event = new Event(type, eventInitDict);
event[detail] = eventInitDict && eventInitDict[detail] || null;
event.detail = eventInitDict && eventInitDict.detail || null;
return event;

@@ -119,136 +57,65 @@ };

// addEventListener | removeEventListener
if (!win[addEventListener]||!WINDOW[prototype][addEventListener]) {
win[addEventListener] = WINDOW[prototype][addEventListener] = DOCUMENT[prototype][addEventListener] = ELEMENT[prototype][addEventListener] = function() {
var element = this,
type = arguments[0],
listener = arguments[1];
// Production steps of ECMA-262, Edition 6, 22.1.2.1
if (!Array.from) {
Array.from = (function () {
var toStr = Object.prototype.toString;
var isCallable = function (fn) {
return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
};
var toInteger = function (value) {
var number = Number(value);
if (isNaN(number)) { return 0; }
if (number === 0 || !isFinite(number)) { return number; }
return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
};
var maxSafeInteger = Math.pow(2, 53) - 1;
var toLength = function (value) {
var len = toInteger(value);
return Math.min(Math.max(len, 0), maxSafeInteger);
};
if (!element[IE8EVENTS]) { element[IE8EVENTS] = {}; }
if (!element[IE8EVENTS][type]) {
element[IE8EVENTS][type] = function (event) {
var list = element[IE8EVENTS][event[etype]].list,
events = list.slice(),
index = -1,
lengthValue = events[length],
eventElement;
event.preventDefault = function() {
if (event[cancelable] !== false) {
event.returnValue = false;
}
};
event.stopPropagation = function() {
event[cancelBubble] = true;
};
event.stopImmediatePropagation = function() {
event[cancelBubble] = true;
event[cancelImmediate] = true;
};
event[currentTarget] = element;
event[relatedTarget] = event[relatedTarget] || event.fromElement || null;
event[target] = event[target] || event.srcElement || element;
event.timeStamp = new Date().getTime();
if (event.clientX) {
event.pageX = event.clientX + doc[documentElement].scrollLeft;
event.pageY = event.clientY + doc[documentElement].scrollTop;
return function from(arrayLike/*, mapFn, thisArg */) {
var C = this, items = Object(arrayLike);
if (arrayLike == null) {
throw new TypeError('Array.from requires an array-like object - not null or undefined');
}
var mapFn = arguments.length > 1 ? arguments[1] : void undefined, T;
if (typeof mapFn !== 'undefined') {
if (!isCallable(mapFn)) {
throw new TypeError('Array.from: when provided, the second argument must be a function');
}
while (++index < lengthValue && !event[cancelImmediate]) {
if (index in events) {
eventElement = events[index];
if (list[indexOf](eventElement) !== -1 && typeof eventElement === 'function') {
eventElement.call(element, event);
}
}
if (arguments.length > 2) {
T = arguments[2];
}
};
element[IE8EVENTS][type].list = [];
if (element.attachEvent) {
element.attachEvent('on' + type, element[IE8EVENTS][type]);
}
}
var len = toLength(items.length);
var A = isCallable(C) ? Object(new C(len)) : new Array(len);
element[IE8EVENTS][type].list.push(listener);
};
win[removeEventListener] = WINDOW[prototype][removeEventListener] = DOCUMENT[prototype][removeEventListener] = ELEMENT[prototype][removeEventListener] = function() {
var element = this,
type = arguments[0],
listener = arguments[1],
index;
if (element[IE8EVENTS] && element[IE8EVENTS][type] && element[IE8EVENTS][type].list) {
index = element[IE8EVENTS][type].list[indexOf](listener);
if (index !== -1) {
element[IE8EVENTS][type].list.splice(index, 1);
if (!element[IE8EVENTS][type].list[length]) {
if (element.detachEvent) {
element.detachEvent('on' + type, element[IE8EVENTS][type]);
}
delete element[IE8EVENTS][type];
// 16. Let k be 0.
var k = 0;
// 17. Repeat, while k < len… (also steps a - h)
var kValue;
while (k < len) {
kValue = items[k];
if (mapFn) {
A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
} else {
A[k] = kValue;
}
k += 1;
}
}
};
A.length = len;
return A;
};
}());
}
// Event dispatcher
if (!win[dispatchEvent]||!WINDOW[prototype][dispatchEvent]||!DOCUMENT[prototype][dispatchEvent]||!ELEMENT[prototype][dispatchEvent]) {
win[dispatchEvent] = WINDOW[prototype][dispatchEvent] = DOCUMENT[prototype][dispatchEvent] = ELEMENT[prototype][dispatchEvent] = function (event) {
if (!arguments[length]) {
throw new Error('Not enough arguments');
if (!Node.prototype.contains) {
Node.prototype.contains = function (el) {
while (el = el.parentNode) {
if (el === this) return true;
}
if (!event || typeof event[etype] !== 'string') {
throw new Error('DOM Events Exception 0');
}
var element = this, type = event[etype];
try {
if (!event[bubbles]) {
event[cancelBubble] = true;
var cancelBubbleEvent = function (event) {
event[cancelBubble] = true;
(element || win).detachEvent('on' + type, cancelBubbleEvent);
};
this.attachEvent('on' + type, cancelBubbleEvent);
}
this.fireEvent('on' + type, event);
} catch (error) {
event[target] = element;
do {
event[currentTarget] = element;
if (IE8EVENTS in element && typeof element[IE8EVENTS][type] === 'function') {
element[IE8EVENTS][type].call(element, event);
}
if (typeof element['on' + type] === 'function') {
element['on' + type].call(element, event);
}
element = element.nodeType === 9 ? element.parentWindow : element.parentNode;
} while (element && !event[cancelBubble]);
}
return true;
};
return false;
}
}
}());

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

// Native JavaScript for Bootstrap 3/4 Polyfill
(function(){var F="Document",i=document,g=this[F]||this.HTMLDocument,l="Window",E=window,p=this.constructor||this[l]||Window,u="HTMLElement",k="documentElement",D=Element,J="className",d="add",c="classList",x="remove",z="contains",s="class",e="setAttribute",A="getAttribute",t="prototype",o="indexOf",r="length",y="split",b="trim",f="Event",I="CustomEvent",C="_events",n="type",a="target",m="currentTarget",B="relatedTarget",v="cancelable",q="bubbles",w="cancelBubble",H="cancelImmediate",K="detail",L="addEventListener",h="removeEventListener",j="dispatchEvent";if(!E[u]){E[u]=E[D]}if(!Array[t][o]){Array[t][o]=function(O){if(this===undefined||this===null){throw new TypeError(this+" is not an object")}var N=this instanceof String?this[y](""):this,P=Math.max(Math.min(N[r],9007199254740991),0)||0,M=Number(arguments[1])||0;M=(M<0?Math.max(P+M,0):M)-1;while(++M<P){if(M in N&&N[M]===O){return M}}return -1}}if(!String[t][b]){String[t][b]=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}if(!(c in D[t])){var G=function(M){var N=(M[A](s)||"").replace(/^\s+|\s+$/g,"")[y](/\s+/)||[];hasClass=this[z]=function(O){return N[o](O)>-1},addClass=this[d]=function(O){if(!hasClass(O)){N.push(O);M[e](s,N.join(" "))}},removeClass=this[x]=function(O){if(hasClass(O)){N.splice(N[o](O),1);M[e](s,N.join(" "))}},toggleClass=this.toggle=function(O){if(hasClass(O)){removeClass(O)}else{addClass(O)}}};Object.defineProperty(D[t],c,{get:function(){return new G(this)}})}if(!E[f]||!p[t][f]){E[f]=p[t][f]=g[t][f]=D[t][f]=function(O,Q){if(!O){throw new Error("Not enough arguments")}var P,N=Q&&Q[q]!==undefined?Q[q]:false,M=Q&&Q[v]!==undefined?Q[v]:false;if("createEvent" in i){P=i.createEvent(f);P.initEvent(O,N,M)}else{P=i.createEventObject();P[n]=O;P[q]=N;P[v]=M}return P}}if(!(I in E)||!(I in p[t])){E[I]=p[t][I]=g[t][I]=Element[t][I]=function(M,O){if(!M){throw Error("CustomEvent TypeError: An event name must be provided.")}var N=new Event(M,O);N[K]=O&&O[K]||null;return N}}if(!E[L]||!p[t][L]){E[L]=p[t][L]=g[t][L]=D[t][L]=function(){var M=this,N=arguments[0],O=arguments[1];if(!M[C]){M[C]={}}if(!M[C][N]){M[C][N]=function(T){var U=M[C][T[n]].list,R=U.slice(),Q=-1,S=R[r],P;T.preventDefault=function(){if(T[v]!==false){T.returnValue=false}};T.stopPropagation=function(){T[w]=true};T.stopImmediatePropagation=function(){T[w]=true;T[H]=true};T[m]=M;T[B]=T[B]||T.fromElement||null;T[a]=T[a]||T.srcElement||M;T.timeStamp=new Date().getTime();if(T.clientX){T.pageX=T.clientX+i[k].scrollLeft;T.pageY=T.clientY+i[k].scrollTop}while(++Q<S&&!T[H]){if(Q in R){P=R[Q];if(U[o](P)!==-1&&typeof P==="function"){P.call(M,T)}}}};M[C][N].list=[];if(M.attachEvent){M.attachEvent("on"+N,M[C][N])}}M[C][N].list.push(O)};E[h]=p[t][h]=g[t][h]=D[t][h]=function(){var N=this,O=arguments[0],P=arguments[1],M;if(N[C]&&N[C][O]&&N[C][O].list){M=N[C][O].list[o](P);if(M!==-1){N[C][O].list.splice(M,1);if(!N[C][O].list[r]){if(N.detachEvent){N.detachEvent("on"+O,N[C][O])}delete N[C][O]}}}}}if(!E[j]||!p[t][j]||!g[t][j]||!D[t][j]){E[j]=p[t][j]=g[t][j]=D[t][j]=function(Q){if(!arguments[r]){throw new Error("Not enough arguments")}if(!Q||typeof Q[n]!=="string"){throw new Error("DOM Events Exception 0")}var N=this,P=Q[n];try{if(!Q[q]){Q[w]=true;var O=function(R){R[w]=true;(N||E).detachEvent("on"+P,O)};this.attachEvent("on"+P,O)}this.fireEvent("on"+P,Q)}catch(M){Q[a]=N;do{Q[m]=N;if(C in N&&typeof N[C][P]==="function"){N[C][P].call(N,Q)}if(typeof N["on"+P]==="function"){N["on"+P].call(N,Q)}N=N.nodeType===9?N.parentWindow:N.parentNode}while(N&&!Q[w])}return true}}}());
// Native JavaScript for Bootstrap Polyfill
!function () { function l(t) { return "function" == typeof t || "[object Function]" === e.call(t) } function m(t) { var e, n = (e = Number(t), isNaN(e) ? 0 : 0 !== e && isFinite(e) ? (0 < e ? 1 : -1) * Math.floor(Math.abs(e)) : e); return Math.min(Math.max(n, 0), o) } var e, o; Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector), Element.prototype.closest || (Element.prototype.closest = function (t) { var e = this; do { if (e.matches(t)) return e; e = e.parentElement || e.parentNode } while (null !== e && 1 === e.nodeType); return null }), window.Event && Window.prototype.Event || (window.Event = Window.prototype.Event = Document.prototype.Event = Element.prototype.Event = function (t, e) { if (!t) throw new Error("Not enough arguments"); var n, o = !(!e || void 0 === e.bubbles) && e.bubbles, r = !(!e || void 0 === e.cancelable) && e.cancelable; return "createEvent" in document ? (n = document.createEvent("Event")).initEvent(t, o, r) : ((n = document.createEventObject()).etype = t, n.bubbles = o, n.cancelable = r), n }), window.CustomEvent && Window.prototype.CustomEvent || (window.CustomEvent = Window.prototype.CustomEvent = Document.prototype.CustomEvent = Element.prototype.CustomEvent = function (t, e) { if (!t) throw Error("CustomEvent TypeError: An event name must be provided."); var n = new Event(t, e); return n.detail = e && e.detail || null, n }), Array.from || (Array.from = (e = Object.prototype.toString, o = Math.pow(2, 53) - 1, function (t, e, n) { var o = Object(t); if (null == t) throw new TypeError("Array.from requires an array-like object - not null or undefined"); var r, i = 1 < arguments.length ? e : void 0; if (void 0 !== i) { if (!l(i)) throw new TypeError("Array.from: when provided, the second argument must be a function"); 2 < arguments.length && (r = n) } for (var a, u = m(o.length), p = l(this) ? Object(new this(u)) : new Array(u), c = 0; c < u;)a = o[c], p[c] = i ? void 0 === r ? i(a, c) : i.call(r, a, c) : a, c += 1; return p.length = u, p })), Node.prototype.contains || (Node.prototype.contains = function (t) { for (; t = t.parentNode;)if (t === this) return !0; return !1 }) }();
{
"name": "bootstrap.native",
"version": "2.0.27",
"version": "3.0.0",
"description": "Native JavaScript for Bootstrap, the sweetest JavaScript library without jQuery.",
"main": "dist/bootstrap-native.js",
"module": "dist/bootstrap-native.esm.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"help": "node lib/build.js --help",
"build": "node lib/build.js -v 3 > dist/bootstrap-native.js && npm run build-min",
"build-v4": "node lib/build.js -v 4 > dist/bootstrap-native-v4.js && npm run build-v4-min",
"build-min": "node lib/build.js -m -v 3 > dist/bootstrap-native.min.js",
"build-v4-min": "node lib/build.js -m -v 4 > dist/bootstrap-native-v4.min.js",
"watch": "onchange \"lib/*/**\" -i -- npm run build && npm run build-v4"
"help": "rollup --help",
"build": "npm-run-all --parallel build-*",
"custom": "rollup -c --environment",
"build-esm": "rollup --environment FORMAT:esm,MIN:false -c",
"build-esm-min": "rollup --environment FORMAT:esm,MIN:true -c",
"build-umd": "rollup --environment FORMAT:umd,MIN:false -c",
"build-umd-min": "rollup --environment FORMAT:umd,MIN:true -c",
"watch": "rollup --environment FORMAT:umd,MIN:false -c -w"
},
"browserslist": [
"last 2 versions",
"not <= 1%",
"not IE 10"
],
"repository": {

@@ -33,7 +40,14 @@ "type": "git",

"homepage": "https://thednp.github.io/bootstrap.native/",
"dependencies": {
"shorter-js": "^0.0.5"
},
"devDependencies": {
"onchange": "^3.0.2",
"uglify-js": "^2.7.3",
"yargs": "^5.0.0"
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-json": "^4.0.3",
"@rollup/plugin-node-resolve": "^7.1.0",
"npm-run-all": "^4.1.5",
"rollup": "^1.32.1",
"rollup-plugin-cleanup": "^3.1.1",
"rollup-plugin-terser": "^5.3.0"
}
}
}
# Native JavaScript for Bootstrap
This is a library developed with native JavaScript for both **Bootstrap 3** and **Bootstrap 4** series, featuring superior performance compared to the original jQuery Plugins.
This is a library developed with native JavaScript for **Bootstrap 4** series, featuring superior performance compared to the original jQuery Plugins.

@@ -9,3 +9,3 @@ [![NPM Version](https://img.shields.io/npm/v/bootstrap.native.svg?style=flat-square)](https://www.npmjs.com/package/bootstrap.native)

The library is around ***20Kb*** minified and ***6.5Kb*** gZipped. See <a href="http://thednp.github.io/bootstrap.native/">demo</a> for scripting examples and instructions.
The library is around ***25Kb*** minified and ***7.5Kb*** gZipped. See <a href="http://thednp.github.io/bootstrap.native/">demo</a> for scripting examples and instructions.

@@ -23,7 +23,5 @@ If you use webpack, here is the accompanying [webpack loader](https://github.com/jonathanfleckenstein/bootstrap.native-loader).

# Contributors
- [Ingwie Phoenix](https://github.com/IngwiePhoenix): RequireJS/CommonJS compatibility and usability with common package managers. _Was glad to help!_
- [Ryan Zimmerman](https://github.com/RyanZim): **Amazing** custom build script.
- Full contributors list [here](https://github.com/thednp/bootstrap.native/graphs/contributors). Thanks so much!
* Full contributors list [here](https://github.com/thednp/bootstrap.native/graphs/contributors). Thanks so much!
# License
The library is released under the [MIT license](https://github.com/thednp/bootstrap.native/blob/master/LICENSE).

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc