From 159feceb7a40d4c3947bffc796703cc38eb5eb2f Mon Sep 17 00:00:00 2001 From: thednp Date: Mon, 21 Jan 2019 11:58:44 +0200 Subject: [PATCH] Fixing some build-module-v4.js scripting --- build-module-v4.js | 2 +- build-v4.js | 1 + build.js | 1 + dist/bootstrap-native-v4.js | 17 +++++++++++++++++ dist/bootstrap-native-v4.min.js | 2 +- dist/bootstrap-native.js | 17 +++++++++++++++++ dist/bootstrap-native.min.js | 2 +- 7 files changed, 39 insertions(+), 3 deletions(-) diff --git a/build-module-v4.js b/build-module-v4.js index 97921208..0019c38d 100644 --- a/build-module-v4.js +++ b/build-module-v4.js @@ -86,7 +86,7 @@ module.exports = (options) => { function wrap(main) { var utils = fs.readFileSync(`${libPath}/V4/utils.js`, 'utf8').split('\n').join('\n '); - var init = options.autoInitDataAPI === false ? '' : options.noInitDataAPI ? '' : fs.readFileSync(`${libPath}/V4/utils-init.js`, 'utf8').split('\n').join('\n '); + var init = options.autoInitDataAPI === false ? '' : fs.readFileSync(`${libPath}/V4/utils-init.js`, 'utf8').split('\n').join('\n '); main = main.split('\n').join('\n '); // Initialize arrays: // Arrays will be used in the template literal below diff --git a/build-v4.js b/build-v4.js index ce43876a..d39370ae 100644 --- a/build-v4.js +++ b/build-v4.js @@ -28,6 +28,7 @@ var argv = require('yargs') }, autoInitDataAPI: { type: 'boolean', + default: true, describe: 'Include the auto-initialization utility in the bundle' } }) diff --git a/build.js b/build.js index 8a190e08..115a919a 100755 --- a/build.js +++ b/build.js @@ -29,6 +29,7 @@ var argv = require('yargs') }, autoInitDataAPI: { type: 'boolean', + default: true, describe: 'Include the auto-initialization utility in the bundle' } }) diff --git a/dist/bootstrap-native-v4.js b/dist/bootstrap-native-v4.js index 0ff6ff58..98fee05d 100644 --- a/dist/bootstrap-native-v4.js +++ b/dist/bootstrap-native-v4.js @@ -1871,6 +1871,23 @@ supports[push]( [ stringTooltip, Tooltip, '['+dataToggle+'="tooltip"]' ] ); + + /* Native Javascript for Bootstrap 4 | Initialize Data API + --------------------------------------------------------*/ + var initializeDataAPI = function( constructor, collection ){ + for (var i=0, l=collection[length]; i=p,N=v[b]+f.h/2+k.h/2>=m,B=v[b]-f.h<0,I=v[w]-f.w<0,M=v[b]+f.h+k.h>=m,S=v[w]+f.w+k.w>=p;a=(a===w||"right"===a)&&I&&S?b:a,a=a===b&&B?"bottom":a,a="bottom"===a&&M?b:a,a=a===w&&I?"right":a,a="right"===a&&S?w:a,-1===n.className.indexOf(a)&&(n.className=n.className.replace(y,a)),h=x.offsetWidth,u=x.offsetHeight,a===w||"right"===a?(s=a===w?v[w]+T.x-f.w-(C?h:0):v[w]+T.x+k.w,A?(r=v[b]+T.y,c=k.h/2-h):N?(r=v[b]+T.y-f.h+k.h,c=f.h-k.h/2-h):(r=v[b]+T.y-f.h/2+k.h/2,c=f.h/2-(C?.9*u:u/2))):a!==b&&"bottom"!==a||(r=a===b?v[b]+T.y-f.h-(C?u:0):v[b]+T.y+k.h,E?(s=0,d=v[w]+k.w/2-h):L?(s=p-1.01*f.w,d=f.w-(p-v[w])+k.w/2-h/2):(s=v[w]+T.x-f.w/2+k.w/2,d=f.w/2-h/2)),n[g][b]=r+"px",n[g][w]=s+"px",c&&(x[g][b]=c+"px"),d&&(x[g][w]=d+"px")};n.version="2.0.25";var U=function(t){t=D(t);var e=this,i=I(t,".alert"),o=function(){H(i,"fade")?P(i,a):a()},n=function(o){i=I(o[r],".alert"),(t=D('[data-dismiss="alert"]',i))&&i&&(t===o[r]||t.contains(o[r]))&&e.close()},a=function(){z.call(i,"closed","alert"),S(t,"click",n),i[h].removeChild(i)};this.close=function(){i&&t&&H(i,"show")&&(z.call(i,"close","alert"),N(i,"show"),i&&o())},"Alert"in t||M(t,"click",n),t.Alert=e};a[m](["Alert",U,'[data-dismiss="alert"]']);var q=function(t){t=D(t);var i=!1,o="checked",n=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&l(t)},a=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},l=function(e){var n="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][h].tagName?e[r][h]:null;if(n){var a=e[r],l=B(a[h],"btn"),s=n.getElementsByTagName("INPUT")[0];if(s){if("checkbox"===s.type&&(s[o]?(N(n,v),s[c](o),s.removeAttribute(o),s[o]=!1):(L(n,v),s[c](o),s[d](o,o),s[o]=!0),i||(i=!0,z.call(s,"change","button"),z.call(t,"change","button"))),"radio"===s.type&&!i&&!s[o]){L(n,v),s[d](o,o),s[o]=!0,z.call(s,"change","button"),z.call(t,"change","button"),i=!0;for(var f=0,p=l[u];f=0},F=function(t){for(var e=0,i=S[u];et||n===k-1&&0===t)&&(x=f.direction="right"),t<0?t=k-1:t>=k&&(t=0),p=t,i=x===w?"next":"prev",z.call(o,"slide","carousel",y[t]),m=!0,clearInterval(g),g=null,F(t),C&&H(o,"slide")?(L(y[t],"carousel-item-"+i),y[t].offsetWidth,L(y[t],"carousel-item-"+x),L(y[n],"carousel-item-"+x),P(y[t],function(a){var l=a&&a[r]!==y[t]?1e3*a.elapsedTime+100:20;m&&setTimeout(function(){m=!1,L(y[t],v),N(y[n],v),N(y[t],"carousel-item-"+i),N(y[t],"carousel-item-"+x),N(y[n],"carousel-item-"+x),z.call(o,"slid","carousel",y[t]),e.hidden||!f.interval||H(o,"paused")||f.cycle()},l)})):(L(y[t],v),y[t].offsetWidth,N(y[n],v),setTimeout(function(){m=!1,f.interval&&!H(o,"paused")&&f.cycle(),z.call(o,"slid","carousel",y[t])},100)))}},this.getActiveIndex=function(){return y.indexOf(B(o,"carousel-item active")[0])||0},"Carousel"in o||(f.pause&&f.interval&&(M(o,T[0],W),M(o,T[1],R),M(o,"touchstart",W),M(o,"touchend",R)),E&&M(E,"click",j),A&&M(A,"click",j),I&&M(I,"click",O),!0===f.keyboard&&M(t,"keydown",U)),f.getActiveIndex()<0&&(y[u]&&L(y[0],v),S[u]&&F(0)),f.interval&&f.cycle(),o.Carousel=f}};a[m](["Carousel",F,'[data-ride="carousel"]']);var X=function(t,e){t=D(t),e=e||{};var i,o,n=null,a=null,l=this,r=t[c]("data-parent"),s=function(t,e){z.call(t,"show","collapse"),t.isAnimating=!0,L(t,"collapsing"),N(t,"collapse"),t[g].height=t.scrollHeight+"px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","true"),e[d]("aria-expanded","true"),N(t,"collapsing"),L(t,"collapse"),L(t,"show"),t[g].height="",z.call(t,"shown","collapse")})},h=function(t,e){z.call(t,"hide","collapse"),t.isAnimating=!0,t[g].height=t.scrollHeight+"px",N(t,"collapse"),N(t,"show"),L(t,"collapsing"),t.offsetWidth,t[g].height="0px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","false"),e[d]("aria-expanded","false"),N(t,"collapsing"),L(t,"collapse"),t[g].height="",z.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),H(a,"show")?l.hide():l.show()},this.hide=function(){a.isAnimating||(h(a,t),L(t,"collapsed"))},this.show=function(){n&&(i=D(".collapse.show",n),o=i&&(D('[data-toggle="collapse"][data-target="#'+i.id+'"]',n)||D('[data-toggle="collapse"][href="#'+i.id+'"]',n))),(!a.isAnimating||i&&!i.isAnimating)&&(o&&i!==a&&(h(i,o),L(o,"collapsed")),s(a,t),N(t,"collapsed"))},"Collapse"in t||M(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),o=e||i&&"#"===i.charAt(0)&&i;return o&&D(o)}(),a.isAnimating=!1,n=D(e.parent)||r&&I(t,r),t.Collapse=l};a[m](["Collapse",X,'[data-toggle="collapse"]']);var Y=function(t,i){t=D(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var o=this,n=t[h],a=null,l=D(".dropdown-menu",n),s=function(){for(var t=l.children,e=[],i=0;i1?c-1:0:40===n&&c×',w=D(n.container),y=D(m),k=I(i,".modal"),C=I(i,".fixed-top"),x=I(i,".fixed-bottom");this.template=n.template?n.template:null,this.trigger=n.trigger?n.trigger:a||"hover",this[s]=n[s]&&"fade"!==n[s]?n[s]:h||"fade",this.placement=n.placement?n.placement:u||b,this[l]=parseInt(n[l]||p)||200,this.dismissible=!(!n.dismissible&&"true"!==f),this.container=w||(y||(C||(x||(k||e[o]))));var A=this,E=i[c]("data-title")||null,B=i[c]("data-content")||null;if(B||this.template){var W=null,R=0,O=this.placement,U=function(t){null!==W&&t[r]===D(".close",W)&&A.hide()},q=function(){A.container.removeChild(W),R=null,W=null},F=function(){E=i[c]("data-title"),B=i[c]("data-content"),W=e.createElement("div");var t=e.createElement("div");if(t[d]("class","arrow"),W.appendChild(t),null!==B&&null===A.template){if(W[d]("role","tooltip"),null!==E){var o=e.createElement("h3");o[d]("class","popover-header"),o.innerHTML=A.dismissible?E+v:E,W.appendChild(o)}var n=e.createElement("div");n[d]("class","popover-body"),n.innerHTML=A.dismissible&&null===E?B+v:B,W.appendChild(n)}else{var a=e.createElement("div");a.innerHTML=A.template,W.innerHTML=a.firstChild.innerHTML}A.container.appendChild(W),W[g].display="block",W[d]("class","popover bs-popover-"+O+" "+A[s])},X=function(){!H(W,"show")&&L(W,"show")},Y=function(){j(i,W,O,A.container)},G=function(o){"click"!=A.trigger&&"focus"!=A.trigger||!A.dismissible&&o(i,"blur",A.hide),A.dismissible&&o(e,"click",U),o(t,"resize",A.hide)},J=function(){G(M),z.call(i,"shown","popover")},K=function(){G(S),q(),z.call(i,"hidden","popover")};this.toggle=function(){null===W?A.show():A.hide()},this.show=function(){clearTimeout(R),R=setTimeout(function(){null===W&&(O=A.placement,F(),Y(),X(),z.call(i,"show","popover"),A[s]?P(W,J):J())},20)},this.hide=function(){clearTimeout(R),R=setTimeout(function(){W&&null!==W&&H(W,"show")&&(z.call(i,"hide","popover"),N(W,"show"),A[s]?P(W,K):K())},A[l])},"Popover"in i||("hover"===A.trigger?(M(i,T[0],A.show),A.dismissible||M(i,T[1],A.hide)):"click"!=A.trigger&&"focus"!=A.trigger||M(i,A.trigger,A.toggle)),i.Popover=A}};a[m](["Popover",J,'[data-toggle="popover"]']);var K=function(e,i){e=D(e);var o=D(e[c]("data-target")),n=e[c]("data-offset");if(i=i||{},i[r]||o){for(var a,l=this,s=i[r]&&D(i[r])||o,d=s&&s.getElementsByTagName("A"),f=parseInt(n||i.offset)||10,p=[],g=[],w=e.offsetHeight=c&&d>a;if(!s&&u)H(i,v)||(L(i,v),l&&!H(l,v)&&L(l,v),z.call(e,"activate","scrollspy",p[t]));else if(u){if(!u&&!s||s&&u)return}else H(i,v)&&(N(i,v),l&&H(l,v)&&!B(i[h],v).length&&N(l,v))},E=function(){a=T?O().y:e.scrollTop;for(var t=0,i=p[u];t1&&(t=e[e[u]-1]):t=e[0],t},E=function(){return D(A()[c]("href"))},S=function(t){t.preventDefault(),o=t.currentTarget,!m.isAnimating&&!H(o,v)&&p.show()};this.show=function(){o=o||t,l=D(o[c]("href")),n=A(),a=E(),m.isAnimating=!0,N(n,v),n[d]("aria-selected","false"),L(o,v),o[d]("aria-selected","true"),T&&(H(t[h],"dropdown-menu")?H(T,v)||L(T,v):H(T,v)&&N(T,v)),z.call(n,"hide","tab",o),H(a,"fade")?(N(a,"show"),P(a,x)):x()},"Tab"in t||M(t,"click",S),p.height&&(b=E()[h]),t.Tab=p}};a[m](["Tab",Q,'[data-toggle="tab"]']);var V=function(t,e){t=D(t),e=e||{};var i=t[c]("data-animation"),o=t[c]("data-autohide"),n=t[c]("data-delay");this.animation=!1===e.animation||"false"===i?0:1,this.autohide=!1===e.autohide||"false"===o?0:1,this[l]=parseInt(e[l]||n)||500;var a=this,r=0,s=I(t,".toast"),d=function(){N(s,"showing"),L(s,"show"),z.call(s,"shown","toast"),a.autohide&&a.hide()},h=function(){L(s,"hide"),z.call(s,"hidden","toast")},u=function(){N(s,"show"),a.animation?P(s,h):h()},f=function(){clearTimeout(r),r=null,L(s,"hide"),S(t,"click",a.hide),t.Toast=null,t=null,s=null};this.show=function(){s&&(z.call(s,"show","toast"),a.animation&&L(s,"fade"),N(s,"hide"),L(s,"showing"),a.animation?P(s,d):d())},this.hide=function(t){s&&H(s,"show")&&(z.call(s,"hide","toast"),t?u():r=setTimeout(u,a[l]))},this.dispose=function(){s&&H(s,"show")&&(N(s,"show"),a.animation?P(s,f):f())},"Toast"in t||M(t,"click",a.hide),t.Toast=a};a[m](["Toast",V,'[data-dismiss="toast"]']);var Z=function(i,n){i=D(i),n=n||{};var a=i[c]("data-animation"),r=i[c]("data-placement"),h=i[c]("data-delay"),u=i[c]("data-container"),f=D(n.container),p=D(u),g=I(i,".modal"),m=I(i,".fixed-top"),v=I(i,".fixed-bottom");this[s]=n[s]&&"fade"!==n[s]?n[s]:a||"fade",this.placement=n.placement?n.placement:r||b,this[l]=parseInt(n[l]||h)||200,this.container=f||(p||(m||(v||(g||e[o]))));var w=this,y=0,k=this.placement,C=null,x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(x&&""!=x){var A=function(){w.container.removeChild(C),C=null,y=null},E=function(){if(!(x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==x)return!1;C=e.createElement("div"),C[d]("role","tooltip");var t=e.createElement("div");t[d]("class","arrow"),C.appendChild(t);var o=e.createElement("div");o[d]("class","tooltip-inner"),C.appendChild(o),o.innerHTML=x,w.container.appendChild(C),C[d]("class","tooltip bs-tooltip-"+k+" "+w[s])},B=function(){j(i,C,k,w.container)},W=function(){!H(C,"show")&&L(C,"show")},R=function(){M(t,"resize",w.hide),z.call(i,"shown","tooltip")},O=function(){S(t,"resize",w.hide),A(),z.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(y),y=setTimeout(function(){if(null===C){if(k=w.placement,0==E())return;B(),W(),z.call(i,"show","tooltip"),w[s]?P(C,R):R()}},20)},this.hide=function(){clearTimeout(y),y=setTimeout(function(){C&&H(C,"show")&&(z.call(i,"hide","tooltip"),N(C,"show"),w[s]?P(C,O):O())},w[l])},this.toggle=function(){C?w.hide():w.show()},"Tooltip"in i||(i[d]("data-original-title",x),i.removeAttribute("title"),M(i,T[0],w.show),M(i,T[1],w.hide)),i.Tooltip=w}};return a[m](["Tooltip",Z,'[data-toggle="tooltip"]']),{Alert:U,Button:q,Carousel:F,Collapse:X,Dropdown:Y,Modal:G,Popover:J,ScrollSpy:K,Tab:Q,Toast:V,Tooltip:Z}}); +!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.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.Toast=i.Toast,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,o="body",n=t.BSN={},a=n.supports=[],l="delay",r="target",s="animation",c="getAttribute",d="setAttribute",h="parentNode",u="length",f="Transition",p="Webkit",g="style",m="push",v="active",w="left",b="top",T="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],y=/\b(top|bottom|left|right)+/,k=0,C=p+f in i[g]||f.toLowerCase()in i[g],x=p+f in i[g]?p.toLowerCase()+f+"End":f.toLowerCase()+"end",A=p+"Duration"in i[g]?p.toLowerCase()+f+"Duration":f.toLowerCase()+"Duration",E=function(t){t.focus?t.focus():t.setActive()},L=function(t,e){t.classList.add(e)},N=function(t,e){t.classList.remove(e)},D=function(t,e){return t.classList.contains(e)},H=function(t,e){return[].slice.call(t.getElementsByClassName(e))},B=function(t,i){var o=i||e;return"object"==typeof t?t:o.querySelector(t)},I=function(t,i){var o=i.charAt(0),n=i.substr(1);if("."===o){for(;t&&t!==e;t=t[h])if(null!==B(i,t[h])&&D(t,n))return t}else if("#"===o)for(;t&&t!==e;t=t[h])if(t.id===n)return t;return!1},M=function(t,e,i){t.addEventListener(e,i,!1)},S=function(t,e,i){t.removeEventListener(e,i,!1)},W=function(t,e,i){M(t,e,function o(n){i(n),S(t,e,o)})},R=function(e){var i=C?t.getComputedStyle(e)[A]:0;return i=parseFloat(i),(i="number"!=typeof i||isNaN(i)?0:1e3*i)+17},P=function(t,e){var i=0,o=R(t);C&&W(t,x,function(t){e(t),i=1}),setTimeout(function(){!i&&e()},o+17)},z=function(t,e,i){var o=new CustomEvent(t+".bs."+e);o.relatedTarget=i,this.dispatchEvent(o)},O=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},j=function(t,n,a,l){var r,s,c,d,h,u,f={w:n.offsetWidth,h:n.offsetHeight},p=i.clientWidth||e[o].clientWidth,m=i.clientHeight||e[o].clientHeight,v=t.getBoundingClientRect(),T=l===e[o]?O():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},k={w:v.right-v[w],h:v.bottom-v[b]},C=D(n,"popover"),x=B(".arrow",n),A=v[b]+k.h/2-f.h/2<0,E=v[w]+k.w/2-f.w/2<0,L=v[w]+f.w/2+k.w/2>=p,N=v[b]+f.h/2+k.h/2>=m,H=v[b]-f.h<0,I=v[w]-f.w<0,M=v[b]+f.h+k.h>=m,S=v[w]+f.w+k.w>=p;a=(a===w||"right"===a)&&I&&S?b:a,a=a===b&&H?"bottom":a,a="bottom"===a&&M?b:a,a=a===w&&I?"right":a,a="right"===a&&S?w:a,-1===n.className.indexOf(a)&&(n.className=n.className.replace(y,a)),h=x.offsetWidth,u=x.offsetHeight,a===w||"right"===a?(s=a===w?v[w]+T.x-f.w-(C?h:0):v[w]+T.x+k.w,A?(r=v[b]+T.y,c=k.h/2-h):N?(r=v[b]+T.y-f.h+k.h,c=f.h-k.h/2-h):(r=v[b]+T.y-f.h/2+k.h/2,c=f.h/2-(C?.9*u:u/2))):a!==b&&"bottom"!==a||(r=a===b?v[b]+T.y-f.h-(C?u:0):v[b]+T.y+k.h,E?(s=0,d=v[w]+k.w/2-h):L?(s=p-1.01*f.w,d=f.w-(p-v[w])+k.w/2-h/2):(s=v[w]+T.x-f.w/2+k.w/2,d=f.w/2-h/2)),n[g][b]=r+"px",n[g][w]=s+"px",c&&(x[g][b]=c+"px"),d&&(x[g][w]=d+"px")};n.version="2.0.25";var U=function(t){t=B(t);var e=this,i=I(t,".alert"),o=function(){D(i,"fade")?P(i,a):a()},n=function(o){i=I(o[r],".alert"),(t=B('[data-dismiss="alert"]',i))&&i&&(t===o[r]||t.contains(o[r]))&&e.close()},a=function(){z.call(i,"closed","alert"),S(t,"click",n),i[h].removeChild(i)};this.close=function(){i&&t&&D(i,"show")&&(z.call(i,"close","alert"),N(i,"show"),i&&o())},"Alert"in t||M(t,"click",n),t.Alert=e};a[m](["Alert",U,'[data-dismiss="alert"]']);var q=function(t){t=B(t);var i=!1,o="checked",n=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&l(t)},a=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},l=function(e){var n="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][h].tagName?e[r][h]:null;if(n){var a=e[r],l=H(a[h],"btn"),s=n.getElementsByTagName("INPUT")[0];if(s){if("checkbox"===s.type&&(s[o]?(N(n,v),s[c](o),s.removeAttribute(o),s[o]=!1):(L(n,v),s[c](o),s[d](o,o),s[o]=!0),i||(i=!0,z.call(s,"change","button"),z.call(t,"change","button"))),"radio"===s.type&&!i&&!s[o]){L(n,v),s[d](o,o),s[o]=!0,z.call(s,"change","button"),z.call(t,"change","button"),i=!0;for(var f=0,p=l[u];f=0},F=function(t){for(var e=0,i=S[u];et||n===k-1&&0===t)&&(x=f.direction="right"),t<0?t=k-1:t>=k&&(t=0),p=t,i=x===w?"next":"prev",z.call(o,"slide","carousel",y[t]),m=!0,clearInterval(g),g=null,F(t),C&&D(o,"slide")?(L(y[t],"carousel-item-"+i),y[t].offsetWidth,L(y[t],"carousel-item-"+x),L(y[n],"carousel-item-"+x),P(y[t],function(a){var l=a&&a[r]!==y[t]?1e3*a.elapsedTime+100:20;m&&setTimeout(function(){m=!1,L(y[t],v),N(y[n],v),N(y[t],"carousel-item-"+i),N(y[t],"carousel-item-"+x),N(y[n],"carousel-item-"+x),z.call(o,"slid","carousel",y[t]),e.hidden||!f.interval||D(o,"paused")||f.cycle()},l)})):(L(y[t],v),y[t].offsetWidth,N(y[n],v),setTimeout(function(){m=!1,f.interval&&!D(o,"paused")&&f.cycle(),z.call(o,"slid","carousel",y[t])},100)))}},this.getActiveIndex=function(){return y.indexOf(H(o,"carousel-item active")[0])||0},"Carousel"in o||(f.pause&&f.interval&&(M(o,T[0],W),M(o,T[1],R),M(o,"touchstart",W),M(o,"touchend",R)),E&&M(E,"click",j),A&&M(A,"click",j),I&&M(I,"click",O),!0===f.keyboard&&M(t,"keydown",U)),f.getActiveIndex()<0&&(y[u]&&L(y[0],v),S[u]&&F(0)),f.interval&&f.cycle(),o.Carousel=f}};a[m](["Carousel",F,'[data-ride="carousel"]']);var X=function(t,e){t=B(t),e=e||{};var i,o,n=null,a=null,l=this,r=t[c]("data-parent"),s=function(t,e){z.call(t,"show","collapse"),t.isAnimating=!0,L(t,"collapsing"),N(t,"collapse"),t[g].height=t.scrollHeight+"px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","true"),e[d]("aria-expanded","true"),N(t,"collapsing"),L(t,"collapse"),L(t,"show"),t[g].height="",z.call(t,"shown","collapse")})},h=function(t,e){z.call(t,"hide","collapse"),t.isAnimating=!0,t[g].height=t.scrollHeight+"px",N(t,"collapse"),N(t,"show"),L(t,"collapsing"),t.offsetWidth,t[g].height="0px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","false"),e[d]("aria-expanded","false"),N(t,"collapsing"),L(t,"collapse"),t[g].height="",z.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),D(a,"show")?l.hide():l.show()},this.hide=function(){a.isAnimating||(h(a,t),L(t,"collapsed"))},this.show=function(){n&&(i=B(".collapse.show",n),o=i&&(B('[data-toggle="collapse"][data-target="#'+i.id+'"]',n)||B('[data-toggle="collapse"][href="#'+i.id+'"]',n))),(!a.isAnimating||i&&!i.isAnimating)&&(o&&i!==a&&(h(i,o),L(o,"collapsed")),s(a,t),N(t,"collapsed"))},"Collapse"in t||M(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),o=e||i&&"#"===i.charAt(0)&&i;return o&&B(o)}(),a.isAnimating=!1,n=B(e.parent)||r&&I(t,r),t.Collapse=l};a[m](["Collapse",X,'[data-toggle="collapse"]']);var Y=function(t,i){t=B(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var o=this,n=t[h],a=null,l=B(".dropdown-menu",n),s=function(){for(var t=l.children,e=[],i=0;i1?c-1:0:40===n&&c×',w=B(n.container),y=B(m),k=I(i,".modal"),C=I(i,".fixed-top"),x=I(i,".fixed-bottom");this.template=n.template?n.template:null,this.trigger=n.trigger?n.trigger:a||"hover",this[s]=n[s]&&"fade"!==n[s]?n[s]:h||"fade",this.placement=n.placement?n.placement:u||b,this[l]=parseInt(n[l]||p)||200,this.dismissible=!(!n.dismissible&&"true"!==f),this.container=w||(y||(C||(x||(k||e[o]))));var A=this,E=i[c]("data-title")||null,H=i[c]("data-content")||null;if(H||this.template){var W=null,R=0,O=this.placement,U=function(t){null!==W&&t[r]===B(".close",W)&&A.hide()},q=function(){A.container.removeChild(W),R=null,W=null},F=function(){E=i[c]("data-title"),H=i[c]("data-content"),W=e.createElement("div");var t=e.createElement("div");if(t[d]("class","arrow"),W.appendChild(t),null!==H&&null===A.template){if(W[d]("role","tooltip"),null!==E){var o=e.createElement("h3");o[d]("class","popover-header"),o.innerHTML=A.dismissible?E+v:E,W.appendChild(o)}var n=e.createElement("div");n[d]("class","popover-body"),n.innerHTML=A.dismissible&&null===E?H+v:H,W.appendChild(n)}else{var a=e.createElement("div");a.innerHTML=A.template,W.innerHTML=a.firstChild.innerHTML}A.container.appendChild(W),W[g].display="block",W[d]("class","popover bs-popover-"+O+" "+A[s])},X=function(){!D(W,"show")&&L(W,"show")},Y=function(){j(i,W,O,A.container)},G=function(o){"click"!=A.trigger&&"focus"!=A.trigger||!A.dismissible&&o(i,"blur",A.hide),A.dismissible&&o(e,"click",U),o(t,"resize",A.hide)},J=function(){G(M),z.call(i,"shown","popover")},K=function(){G(S),q(),z.call(i,"hidden","popover")};this.toggle=function(){null===W?A.show():A.hide()},this.show=function(){clearTimeout(R),R=setTimeout(function(){null===W&&(O=A.placement,F(),Y(),X(),z.call(i,"show","popover"),A[s]?P(W,J):J())},20)},this.hide=function(){clearTimeout(R),R=setTimeout(function(){W&&null!==W&&D(W,"show")&&(z.call(i,"hide","popover"),N(W,"show"),A[s]?P(W,K):K())},A[l])},"Popover"in i||("hover"===A.trigger?(M(i,T[0],A.show),A.dismissible||M(i,T[1],A.hide)):"click"!=A.trigger&&"focus"!=A.trigger||M(i,A.trigger,A.toggle)),i.Popover=A}};a[m](["Popover",J,'[data-toggle="popover"]']);var K=function(e,i){e=B(e);var o=B(e[c]("data-target")),n=e[c]("data-offset");if(i=i||{},i[r]||o){for(var a,l=this,s=i[r]&&B(i[r])||o,d=s&&s.getElementsByTagName("A"),f=parseInt(n||i.offset)||10,p=[],g=[],w=e.offsetHeight=c&&d>a;if(!s&&u)D(i,v)||(L(i,v),l&&!D(l,v)&&L(l,v),z.call(e,"activate","scrollspy",p[t]));else if(u){if(!u&&!s||s&&u)return}else D(i,v)&&(N(i,v),l&&D(l,v)&&!H(i[h],v).length&&N(l,v))},E=function(){a=T?O().y:e.scrollTop;for(var t=0,i=p[u];t1&&(t=e[e[u]-1]):t=e[0],t},E=function(){return B(A()[c]("href"))},S=function(t){t.preventDefault(),o=t.currentTarget,!m.isAnimating&&!D(o,v)&&p.show()};this.show=function(){o=o||t,l=B(o[c]("href")),n=A(),a=E(),m.isAnimating=!0,N(n,v),n[d]("aria-selected","false"),L(o,v),o[d]("aria-selected","true"),T&&(D(t[h],"dropdown-menu")?D(T,v)||L(T,v):D(T,v)&&N(T,v)),z.call(n,"hide","tab",o),D(a,"fade")?(N(a,"show"),P(a,x)):x()},"Tab"in t||M(t,"click",S),p.height&&(b=E()[h]),t.Tab=p}};a[m](["Tab",Q,'[data-toggle="tab"]']);var V=function(t,e){t=B(t),e=e||{};var i=t[c]("data-animation"),o=t[c]("data-autohide"),n=t[c]("data-delay");this.animation=!1===e.animation||"false"===i?0:1,this.autohide=!1===e.autohide||"false"===o?0:1,this[l]=parseInt(e[l]||n)||500;var a=this,r=0,s=I(t,".toast"),d=function(){N(s,"showing"),L(s,"show"),z.call(s,"shown","toast"),a.autohide&&a.hide()},h=function(){L(s,"hide"),z.call(s,"hidden","toast")},u=function(){N(s,"show"),a.animation?P(s,h):h()},f=function(){clearTimeout(r),r=null,L(s,"hide"),S(t,"click",a.hide),t.Toast=null,t=null,s=null};this.show=function(){s&&(z.call(s,"show","toast"),a.animation&&L(s,"fade"),N(s,"hide"),L(s,"showing"),a.animation?P(s,d):d())},this.hide=function(t){s&&D(s,"show")&&(z.call(s,"hide","toast"),t?u():r=setTimeout(u,a[l]))},this.dispose=function(){s&&D(s,"show")&&(N(s,"show"),a.animation?P(s,f):f())},"Toast"in t||M(t,"click",a.hide),t.Toast=a};a[m](["Toast",V,'[data-dismiss="toast"]']);var Z=function(i,n){i=B(i),n=n||{};var a=i[c]("data-animation"),r=i[c]("data-placement"),h=i[c]("data-delay"),u=i[c]("data-container"),f=B(n.container),p=B(u),g=I(i,".modal"),m=I(i,".fixed-top"),v=I(i,".fixed-bottom");this[s]=n[s]&&"fade"!==n[s]?n[s]:a||"fade",this.placement=n.placement?n.placement:r||b,this[l]=parseInt(n[l]||h)||200,this.container=f||(p||(m||(v||(g||e[o]))));var w=this,y=0,k=this.placement,C=null,x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(x&&""!=x){var A=function(){w.container.removeChild(C),C=null,y=null},E=function(){if(!(x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==x)return!1;C=e.createElement("div"),C[d]("role","tooltip");var t=e.createElement("div");t[d]("class","arrow"),C.appendChild(t);var o=e.createElement("div");o[d]("class","tooltip-inner"),C.appendChild(o),o.innerHTML=x,w.container.appendChild(C),C[d]("class","tooltip bs-tooltip-"+k+" "+w[s])},H=function(){j(i,C,k,w.container)},W=function(){!D(C,"show")&&L(C,"show")},R=function(){M(t,"resize",w.hide),z.call(i,"shown","tooltip")},O=function(){S(t,"resize",w.hide),A(),z.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(y),y=setTimeout(function(){if(null===C){if(k=w.placement,0==E())return;H(),W(),z.call(i,"show","tooltip"),w[s]?P(C,R):R()}},20)},this.hide=function(){clearTimeout(y),y=setTimeout(function(){C&&D(C,"show")&&(z.call(i,"hide","tooltip"),N(C,"show"),w[s]?P(C,O):O())},w[l])},this.toggle=function(){C?w.hide():w.show()},"Tooltip"in i||(i[d]("data-original-title",x),i.removeAttribute("title"),M(i,T[0],w.show),M(i,T[1],w.hide)),i.Tooltip=w}};a[m](["Tooltip",Z,'[data-toggle="tooltip"]']);var $=function(t,e){for(var i=0,o=e[u];i=u,A=g[b]+f.h/2+w.h/2>=h,I=g[b]-f.h<0,L=g[v]-f.w<0,B=g[b]+f.h+w.h>=h,H=g[v]+f.w+w.w>=u;o=(o===v||"right"===o)&&L&&H?b:o,o=o===b&&I?"bottom":o,o="bottom"===o&&B?b:o,o=o===v&&L?"right":o,o="right"===o&&H?v:o,o===v||"right"===o?(c=o===v?g[v]+m.x-f.w:g[v]+m.x+w.w,x?(r=g[b]+m.y,s=w.h/2):A?(r=g[b]+m.y-f.h+w.h,s=f.h-w.h/2):r=g[b]+m.y-f.h/2+w.h/2):o!==b&&"bottom"!==o||(r=o===b?g[b]+m.y-f.h:g[b]+m.y+w.h,k?(c=0,d=g[v]+w.w/2):C?(c=u-1.01*f.w,d=f.w-(u-g[v])+w.w/2):c=g[v]+m.x-f.w/2+w.w/2),a[p][b]=r+"px",a[p][v]=c+"px",s&&(y[p][b]=s+"px"),d&&(y[p][v]=d+"px"),-1===a.className.indexOf(o)&&(a.className=a.className.replace(T,o))};a.version="2.0.25";var F=function(a,o){a=D(a),o=o||{};var r=a[c]("data-target"),s=a[c]("data-offset-top"),d=a[c]("data-offset-bottom"),f="affix",u="function";if(this[l]=o[l]?D(o[l]):D(r)||null,this.offsetTop=o.offsetTop?o.offsetTop:parseInt(s)||0,this.offsetBottom=o.offsetBottom?o.offsetBottom:parseInt(d)||0,this[l]||this.offsetTop||this.offsetBottom){var h,p,g,m,v,y,T=this,x=!1,k=!1,C=function(){return Math.max(e[n].scrollHeight,e[n].offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},A=function(){return null!==T[l]?T[l].getBoundingClientRect()[b]+m:T.offsetTop?parseInt(typeof T.offsetTop===u?T.offsetTop():T.offsetTop||0):void 0},I=function(){if(T.offsetBottom)return g-a.offsetHeight-parseInt(typeof T.offsetBottom===u?T.offsetBottom():T.offsetBottom||0)},L=function(){g=C(),m=parseInt(U().y,0),h=A(),p=I(),v=parseInt(h)-m<0&&m>parseInt(h),y=parseInt(p)-m<0&&m>parseInt(p)},N=function(){x||E(a,f)||(j.call(a,f,f),j.call(a,"affix-top",f),B(a,f),x=!0,j.call(a,"affixed",f),j.call(a,"affixed-top",f))},M=function(){x&&E(a,f)&&(H(a,f),x=!1)},S=function(){k||E(a,"affix-bottom")||(j.call(a,f,f),j.call(a,"affix-bottom",f),B(a,"affix-bottom"),k=!0,j.call(a,"affixed",f),j.call(a,"affixed-bottom",f))},W=function(){k&&E(a,"affix-bottom")&&(H(a,"affix-bottom"),k=!1)},P=function(){y?(v&&M(),S()):(W(),v?N():M())};this.update=function(){L(),P()},"Affix"in a||(R(t,"scroll",T.update),!w&&R(t,"resize",T.update)),a.Affix=T,T.update()}};o[g](["Affix",F,'[data-spy="affix"]']);var X=function(t){t=D(t);var e=this,i=S(t,".alert"),n=function(){E(i,"fade")?O(i,o):o()},a=function(n){i=S(n[l],".alert"),(t=D('[data-dismiss="alert"]',i))&&i&&(t===n[l]||t.contains(n[l]))&&e.close()},o=function(){j.call(i,"closed","alert"),W(t,"click",a),i[d].removeChild(i)};this.close=function(){i&&t&&E(i,"in")&&(j.call(i,"close","alert"),H(i,"in"),i&&n())},"Alert"in t||R(t,"click",a),t.Alert=e};o[g](["Alert",X,'[data-dismiss="alert"]']);var Y=function(t,i){t=D(t),i=i||null;var n=!1,a="checked",o=function(t){32===(t.which||t.keyCode)&&t[l]===e.activeElement&&u(t)},r=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},u=function(e){var i="LABEL"===e[l].tagName?e[l]:"LABEL"===e[l][d].tagName?e[l][d]:null;if(i){var o=e[l],r=M(o[d],"btn"),u=i.getElementsByTagName("INPUT")[0];if(u){if("checkbox"===u.type&&(u[a]?(H(i,m),u[c](a),u.removeAttribute(a),u[a]=!1):(B(i,m),u[c](a),u[s](a,a),u[a]=!0),n||(n=!0,j.call(u,"change","button"),j.call(t,"change","button"))),"radio"===u.type&&!n&&!u[a]){B(i,m),u[s](a,a),u[a]=!0,j.call(u,"change","button"),j.call(t,"change","button"),n=!0;for(var h=0,p=r[f];h=0},F=function(t){for(var e=0,i=N[f];et||n===T-1&&0===t)&&(x=u.direction="right"),t<0?t=T-1:t>=T&&(t=0),h=t,i=x===v?"next":"prev",j.call(e,"slide","carousel",w[t]),g=!0,clearInterval(p),p=null,F(t),C&&E(e,"slide")?(B(w[t],i),w[t].offsetWidth,B(w[t],x),B(w[n],x),O(w[t],function(a){var o=a&&a[l]!==w[t]?1e3*a.elapsedTime+100:20;g&&setTimeout(function(){g=!1,B(w[t],m),H(w[n],m),H(w[t],i),H(w[t],x),H(w[n],x),j.call(e,"slid","carousel",w[t]),u.interval&&!E(e,"paused")&&u.cycle()},o)})):(B(w[t],m),w[t].offsetWidth,H(w[n],m),setTimeout(function(){g=!1,u.interval&&!E(e,"paused")&&u.cycle(),j.call(e,"slid","carousel",w[t])},100)))}},this.getActiveIndex=function(){return w.indexOf(M(e,"item active")[0])||0},"Carousel"in e||(u.pause&&u.interval&&(R(e,y[0],S),R(e,y[1],W),R(e,"touchstart",S),R(e,"touchend",W)),I&&R(I,"click",z),A&&R(A,"click",z),L&&R(L,"click",P),u.keyboard&&R(t,"keydown",U)),u.getActiveIndex()<0&&(w[f]&&B(w[0],m),N[f]&&F(0)),u.interval&&u.cycle(),e.Carousel=u}};o[g](["Carousel",G,'[data-ride="carousel"]']);var J=function(t,e){t=D(t),e=e||{};var i,n,a=null,o=null,l=this,r=t[c]("data-parent"),d=function(t,e){j.call(t,"show","collapse"),t.isAnimating=!0,B(t,"collapsing"),H(t,"collapse"),t[p].height=t.scrollHeight+"px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","true"),e[s]("aria-expanded","true"),H(t,"collapsing"),B(t,"collapse"),B(t,"in"),t[p].height="",j.call(t,"shown","collapse")})},f=function(t,e){j.call(t,"hide","collapse"),t.isAnimating=!0,t[p].height=t.scrollHeight+"px",H(t,"collapse"),H(t,"in"),B(t,"collapsing"),t.offsetWidth,t[p].height="0px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","false"),e[s]("aria-expanded","false"),H(t,"collapsing"),B(t,"collapse"),t[p].height="",j.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),E(o,"in")?l.hide():l.show()},this.hide=function(){o.isAnimating||(f(o,t),B(t,"collapsed"))},this.show=function(){a&&(i=D(".collapse.in",a),n=i&&(D('[data-toggle="collapse"][data-target="#'+i.id+'"]',a)||D('[data-toggle="collapse"][href="#'+i.id+'"]',a))),(!o.isAnimating||i&&!i.isAnimating)&&(n&&i!==o&&(f(i,n),B(n,"collapsed")),d(o,t),H(t,"collapsed"))},"Collapse"in t||R(t,"click",l.toggle),o=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&D(n)}(),o.isAnimating=!1,a=D(e.parent)||r&&S(t,r),t.Collapse=l};o[g](["Collapse",J,'[data-toggle="collapse"]']);var K=function(t,i){t=D(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var n=this,a=t[d],o="open",r=null,u=D(".dropdown-menu",a),h=function(){for(var t=u.children,e=[],i=0;i1?c-1:0:40===a&&c×',v=D(a.container),T=D(g),x=S(i,".modal"),C=S(i,"."+k),A=S(i,".navbar-fixed-bottom");this.template=a.template?a.template:null,this.trigger=a.trigger?a.trigger:o||"hover",this[r]=a[r]&&"fade"!==a[r]?a[r]:d||"fade",this.placement=a.placement?a.placement:f||b,this.delay=parseInt(a.delay||h)||200,this.dismissible=!(!a.dismissible&&"true"!==u),this.container=v||(T||(C||(A||(x||e[n]))));var I=this,L=i[c]("data-title")||null,N=i[c]("data-content")||null;if(N||this.template){var M=null,P=0,z=this.placement,U=function(t){null!==M&&t[l]===D(".close",M)&&I.hide()},F=function(){I.container.removeChild(M),P=null,M=null},X=function(){if(L=i[c]("data-title"),N=i[c]("data-content"),M=e.createElement("div"),null!==N&&null===I.template){if(M[s]("role","tooltip"),null!==L){var t=e.createElement("h3");t[s]("class","popover-title"),t.innerHTML=I.dismissible?L+m:L,M.appendChild(t)}var n=e.createElement("div"),a=e.createElement("div");n[s]("class","arrow"),a[s]("class","popover-content"),M.appendChild(n),M.appendChild(a),a.innerHTML=I.dismissible&&null===L?N+m:N}else{var o=e.createElement("div");o.innerHTML=I.template,M.innerHTML=o.firstChild.innerHTML}I.container.appendChild(M),M[p].display="block",M[s]("class","popover "+z+" "+I[r])},Y=function(){!E(M,"in")&&B(M,"in")},G=function(){q(i,M,z,I.container)},J=function(n){"click"!=I.trigger&&"focus"!=I.trigger||!I.dismissible&&n(i,"blur",I.hide),I.dismissible&&n(e,"click",U),!w&&n(t,"resize",I.hide)},K=function(){J(R),j.call(i,"shown","popover")},Q=function(){J(W),F(),j.call(i,"hidden","popover")};this.toggle=function(){null===M?I.show():I.hide()},this.show=function(){clearTimeout(P),P=setTimeout(function(){null===M&&(z=I.placement,X(),G(),Y(),j.call(i,"show","popover"),I[r]?O(M,K):K())},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){M&&null!==M&&E(M,"in")&&(j.call(i,"hide","popover"),H(M,"in"),I[r]?O(M,Q):Q())},I.delay)},"Popover"in i||("hover"===I.trigger?(R(i,y[0],I.show),I.dismissible||R(i,y[1],I.hide)):"click"!=I.trigger&&"focus"!=I.trigger||R(i,I.trigger,I.toggle)),i.Popover=I}};o[g](["Popover",V,'[data-toggle="popover"]']);var Z=function(e,i){e=D(e);var n=D(e[c]("data-target")),a=e[c]("data-offset");if(i=i||{},i[l]||n){for(var o,r=this,s=i[l]&&D(i[l])||n,u=s&&s.getElementsByTagName("A"),h=parseInt(a||i.offset)||10,p=[],v=[],y=e.offsetHeight=c&&s>o;if(!r&&f)"LI"!==i.tagName||E(i,m)||(B(i,m),a&&!E(a,m)&&B(a,m),j.call(e,"activate","scrollspy",p[t]));else if(f){if(!f&&!r||r&&f)return}else"LI"===i.tagName&&E(i,m)&&(H(i,m),a&&E(a,m)&&!M(i[d],m).length&&H(a,m))},L=function(){o=T?U().y:e.scrollTop;for(var t=0,i=p[f];t1&&(t=e[e[f]-1]):t=e[0],t.getElementsByTagName("A")[0]},I=function(){return D(A()[c]("href"))},L=function(t){t.preventDefault(),n=t.currentTarget||this,!b.isAnimating&&!E(n[d],m)&&g.show()};this.show=function(){n=n||t,l=D(n[c]("href")),a=A(),o=I(),b.isAnimating=!0,H(a[d],m),a[s]("aria-expanded","false"),B(n[d],m),n[s]("aria-expanded","true"),y&&(E(t[d][d],"dropdown-menu")?E(y,m)||B(y,m):E(y,m)&&H(y,m)),j.call(a,"hide","tab",n),E(o,"fade")?(H(o,"in"),O(o,k)):k()},"Tab"in t||R(t,"click",L),g.height&&(w=I()[d]),t.Tab=g}};o[g](["Tab",$,'[data-toggle="tab"]']);var _=function(i,a){i=D(i),a=a||{};var o=i[c]("data-animation"),l=i[c]("data-placement"),d=i[c]("data-delay"),f=i[c]("data-container"),u=D(a.container),h=D(f),p=S(i,".modal"),g=S(i,"."+k),m=S(i,".navbar-fixed-bottom");this[r]=a[r]&&"fade"!==a[r]?a[r]:o||"fade",this.placement=a.placement?a.placement:l||b,this.delay=parseInt(a.delay||d)||200,this.container=u||(h||(g||(m||(p||e[n]))));var v=this,T=0,x=this.placement,C=null,A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(A&&""!=A){var I=function(){v.container.removeChild(C),C=null,T=null},L=function(){if(!(A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==A)return!1;C=e.createElement("div"),C[s]("role","tooltip");var t=e.createElement("div"),n=e.createElement("div");t[s]("class","tooltip-arrow"),n[s]("class","tooltip-inner"),C.appendChild(t),C.appendChild(n),n.innerHTML=A,v.container.appendChild(C),C[s]("class","tooltip "+x+" "+v[r])},N=function(){q(i,C,x,v.container)},M=function(){!E(C,"in")&&B(C,"in")},P=function(){j.call(i,"shown","tooltip"),!w&&R(t,"resize",v.hide)},z=function(){!w&&W(t,"resize",v.hide),I(),j.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(T),T=setTimeout(function(){if(null===C){if(x=v.placement,0==L())return;N(),M(),j.call(i,"show","tooltip"),v[r]?O(C,P):P()}},20)},this.hide=function(){clearTimeout(T),T=setTimeout(function(){C&&E(C,"in")&&(j.call(i,"hide","tooltip"),H(C,"in"),v[r]?O(C,z):z())},v.delay)},this.toggle=function(){C?v.hide():v.show()},"Tooltip"in i||(i[s]("data-original-title",A),i.removeAttribute("title"),R(i,y[0],v.show),R(i,y[1],v.hide)),i.Tooltip=v}};return o[g](["Tooltip",_,'[data-toggle="tooltip"]']),{Affix:F,Alert:X,Button:Y,Carousel:G,Collapse:J,Dropdown:K,Modal:Q,Popover:V,ScrollSpy:Z,Tab:$,Tooltip:_}}); +!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",o=t.BSN={},a=o.supports=[],l="target",r="animation",c="getAttribute",s="setAttribute",d="parentNode",f="length",u="Transition",h="Webkit",p="style",g="push",m="active",v="left",b="top",w=!("opacity"in i[p]),y="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],T=/\b(top|bottom|left|right)+/,x=0,k="navbar-fixed-top",C=h+u in i[p]||u.toLowerCase()in i[p],A=h+u in i[p]?h.toLowerCase()+u+"End":u.toLowerCase()+"end",L=h+"Duration"in i[p]?h.toLowerCase()+u+"Duration":u.toLowerCase()+"Duration",I=function(t){t.focus?t.focus():t.setActive()},B=function(t,e){t.classList.add(e)},H=function(t,e){t.classList.remove(e)},E=function(t,e){return t.classList.contains(e)},N=function(t){for(var e=[],i=0,n=t[f];i=u,A=g[b]+f.h/2+w.h/2>=h,L=g[b]-f.h<0,I=g[v]-f.w<0,B=g[b]+f.h+w.h>=h,H=g[v]+f.w+w.w>=u;a=(a===v||"right"===a)&&I&&H?b:a,a=a===b&&L?"bottom":a,a="bottom"===a&&B?b:a,a=a===v&&I?"right":a,a="right"===a&&H?v:a,a===v||"right"===a?(c=a===v?g[v]+m.x-f.w:g[v]+m.x+w.w,x?(r=g[b]+m.y,s=w.h/2):A?(r=g[b]+m.y-f.h+w.h,s=f.h-w.h/2):r=g[b]+m.y-f.h/2+w.h/2):a!==b&&"bottom"!==a||(r=a===b?g[b]+m.y-f.h:g[b]+m.y+w.h,k?(c=0,d=g[v]+w.w/2):C?(c=u-1.01*f.w,d=f.w-(u-g[v])+w.w/2):c=g[v]+m.x-f.w/2+w.w/2),o[p][b]=r+"px",o[p][v]=c+"px",s&&(y[p][b]=s+"px"),d&&(y[p][v]=d+"px"),-1===o.className.indexOf(a)&&(o.className=o.className.replace(T,a))};o.version="2.0.25";var F=function(o,a){o=D(o),a=a||{};var r=o[c]("data-target"),s=o[c]("data-offset-top"),d=o[c]("data-offset-bottom"),f="affix",u="function";if(this[l]=a[l]?D(a[l]):D(r)||null,this.offsetTop=a.offsetTop?a.offsetTop:parseInt(s)||0,this.offsetBottom=a.offsetBottom?a.offsetBottom:parseInt(d)||0,this[l]||this.offsetTop||this.offsetBottom){var h,p,g,m,v,y,T=this,x=!1,k=!1,C=function(){return Math.max(e[n].scrollHeight,e[n].offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},A=function(){return null!==T[l]?T[l].getBoundingClientRect()[b]+m:T.offsetTop?parseInt(typeof T.offsetTop===u?T.offsetTop():T.offsetTop||0):void 0},L=function(){if(T.offsetBottom)return g-o.offsetHeight-parseInt(typeof T.offsetBottom===u?T.offsetBottom():T.offsetBottom||0)},I=function(){g=C(),m=parseInt(q().y,0),h=A(),p=L(),v=parseInt(h)-m<0&&m>parseInt(h),y=parseInt(p)-m<0&&m>parseInt(p)},N=function(){x||E(o,f)||(j.call(o,f,f),j.call(o,"affix-top",f),B(o,f),x=!0,j.call(o,"affixed",f),j.call(o,"affixed-top",f))},M=function(){x&&E(o,f)&&(H(o,f),x=!1)},S=function(){k||E(o,"affix-bottom")||(j.call(o,f,f),j.call(o,"affix-bottom",f),B(o,"affix-bottom"),k=!0,j.call(o,"affixed",f),j.call(o,"affixed-bottom",f))},W=function(){k&&E(o,"affix-bottom")&&(H(o,"affix-bottom"),k=!1)},P=function(){y?(v&&M(),S()):(W(),v?N():M())};this.update=function(){I(),P()},"Affix"in o||(R(t,"scroll",T.update),!w&&R(t,"resize",T.update)),o.Affix=T,T.update()}};a[g](["Affix",F,'[data-spy="affix"]']);var X=function(t){t=D(t);var e=this,i=S(t,".alert"),n=function(){E(i,"fade")?O(i,a):a()},o=function(n){i=S(n[l],".alert"),(t=D('[data-dismiss="alert"]',i))&&i&&(t===n[l]||t.contains(n[l]))&&e.close()},a=function(){j.call(i,"closed","alert"),W(t,"click",o),i[d].removeChild(i)};this.close=function(){i&&t&&E(i,"in")&&(j.call(i,"close","alert"),H(i,"in"),i&&n())},"Alert"in t||R(t,"click",o),t.Alert=e};a[g](["Alert",X,'[data-dismiss="alert"]']);var Y=function(t,i){t=D(t),i=i||null;var n=!1,o="checked",a=function(t){32===(t.which||t.keyCode)&&t[l]===e.activeElement&&u(t)},r=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},u=function(e){var i="LABEL"===e[l].tagName?e[l]:"LABEL"===e[l][d].tagName?e[l][d]:null;if(i){var a=e[l],r=M(a[d],"btn"),u=i.getElementsByTagName("INPUT")[0];if(u){if("checkbox"===u.type&&(u[o]?(H(i,m),u[c](o),u.removeAttribute(o),u[o]=!1):(B(i,m),u[c](o),u[s](o,o),u[o]=!0),n||(n=!0,j.call(u,"change","button"),j.call(t,"change","button"))),"radio"===u.type&&!n&&!u[o]){B(i,m),u[s](o,o),u[o]=!0,j.call(u,"change","button"),j.call(t,"change","button"),n=!0;for(var h=0,p=r[f];h=0},F=function(t){for(var e=0,i=N[f];et||n===T-1&&0===t)&&(x=u.direction="right"),t<0?t=T-1:t>=T&&(t=0),h=t,i=x===v?"next":"prev",j.call(e,"slide","carousel",w[t]),g=!0,clearInterval(p),p=null,F(t),C&&E(e,"slide")?(B(w[t],i),w[t].offsetWidth,B(w[t],x),B(w[n],x),O(w[t],function(o){var a=o&&o[l]!==w[t]?1e3*o.elapsedTime+100:20;g&&setTimeout(function(){g=!1,B(w[t],m),H(w[n],m),H(w[t],i),H(w[t],x),H(w[n],x),j.call(e,"slid","carousel",w[t]),u.interval&&!E(e,"paused")&&u.cycle()},a)})):(B(w[t],m),w[t].offsetWidth,H(w[n],m),setTimeout(function(){g=!1,u.interval&&!E(e,"paused")&&u.cycle(),j.call(e,"slid","carousel",w[t])},100)))}},this.getActiveIndex=function(){return w.indexOf(M(e,"item active")[0])||0},"Carousel"in e||(u.pause&&u.interval&&(R(e,y[0],S),R(e,y[1],W),R(e,"touchstart",S),R(e,"touchend",W)),L&&R(L,"click",z),A&&R(A,"click",z),I&&R(I,"click",P),u.keyboard&&R(t,"keydown",q)),u.getActiveIndex()<0&&(w[f]&&B(w[0],m),N[f]&&F(0)),u.interval&&u.cycle(),e.Carousel=u}};a[g](["Carousel",G,'[data-ride="carousel"]']);var J=function(t,e){t=D(t),e=e||{};var i,n,o=null,a=null,l=this,r=t[c]("data-parent"),d=function(t,e){j.call(t,"show","collapse"),t.isAnimating=!0,B(t,"collapsing"),H(t,"collapse"),t[p].height=t.scrollHeight+"px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","true"),e[s]("aria-expanded","true"),H(t,"collapsing"),B(t,"collapse"),B(t,"in"),t[p].height="",j.call(t,"shown","collapse")})},f=function(t,e){j.call(t,"hide","collapse"),t.isAnimating=!0,t[p].height=t.scrollHeight+"px",H(t,"collapse"),H(t,"in"),B(t,"collapsing"),t.offsetWidth,t[p].height="0px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","false"),e[s]("aria-expanded","false"),H(t,"collapsing"),B(t,"collapse"),t[p].height="",j.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),E(a,"in")?l.hide():l.show()},this.hide=function(){a.isAnimating||(f(a,t),B(t,"collapsed"))},this.show=function(){o&&(i=D(".collapse.in",o),n=i&&(D('[data-toggle="collapse"][data-target="#'+i.id+'"]',o)||D('[data-toggle="collapse"][href="#'+i.id+'"]',o))),(!a.isAnimating||i&&!i.isAnimating)&&(n&&i!==a&&(f(i,n),B(n,"collapsed")),d(a,t),H(t,"collapsed"))},"Collapse"in t||R(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&D(n)}(),a.isAnimating=!1,o=D(e.parent)||r&&S(t,r),t.Collapse=l};a[g](["Collapse",J,'[data-toggle="collapse"]']);var K=function(t,i){t=D(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var n=this,o=t[d],a="open",r=null,u=D(".dropdown-menu",o),h=function(){for(var t=u.children,e=[],i=0;i1?c-1:0:40===o&&c×',v=D(o.container),T=D(g),x=S(i,".modal"),C=S(i,"."+k),A=S(i,".navbar-fixed-bottom");this.template=o.template?o.template:null,this.trigger=o.trigger?o.trigger:a||"hover",this[r]=o[r]&&"fade"!==o[r]?o[r]:d||"fade",this.placement=o.placement?o.placement:f||b,this.delay=parseInt(o.delay||h)||200,this.dismissible=!(!o.dismissible&&"true"!==u),this.container=v||(T||(C||(A||(x||e[n]))));var L=this,I=i[c]("data-title")||null,N=i[c]("data-content")||null;if(N||this.template){var M=null,P=0,z=this.placement,q=function(t){null!==M&&t[l]===D(".close",M)&&L.hide()},F=function(){L.container.removeChild(M),P=null,M=null},X=function(){if(I=i[c]("data-title"),N=i[c]("data-content"),M=e.createElement("div"),null!==N&&null===L.template){if(M[s]("role","tooltip"),null!==I){var t=e.createElement("h3");t[s]("class","popover-title"),t.innerHTML=L.dismissible?I+m:I,M.appendChild(t)}var n=e.createElement("div"),o=e.createElement("div");n[s]("class","arrow"),o[s]("class","popover-content"),M.appendChild(n),M.appendChild(o),o.innerHTML=L.dismissible&&null===I?N+m:N}else{var a=e.createElement("div");a.innerHTML=L.template,M.innerHTML=a.firstChild.innerHTML}L.container.appendChild(M),M[p].display="block",M[s]("class","popover "+z+" "+L[r])},Y=function(){!E(M,"in")&&B(M,"in")},G=function(){U(i,M,z,L.container)},J=function(n){"click"!=L.trigger&&"focus"!=L.trigger||!L.dismissible&&n(i,"blur",L.hide),L.dismissible&&n(e,"click",q),!w&&n(t,"resize",L.hide)},K=function(){J(R),j.call(i,"shown","popover")},Q=function(){J(W),F(),j.call(i,"hidden","popover")};this.toggle=function(){null===M?L.show():L.hide()},this.show=function(){clearTimeout(P),P=setTimeout(function(){null===M&&(z=L.placement,X(),G(),Y(),j.call(i,"show","popover"),L[r]?O(M,K):K())},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){M&&null!==M&&E(M,"in")&&(j.call(i,"hide","popover"),H(M,"in"),L[r]?O(M,Q):Q())},L.delay)},"Popover"in i||("hover"===L.trigger?(R(i,y[0],L.show),L.dismissible||R(i,y[1],L.hide)):"click"!=L.trigger&&"focus"!=L.trigger||R(i,L.trigger,L.toggle)),i.Popover=L}};a[g](["Popover",V,'[data-toggle="popover"]']);var Z=function(e,i){e=D(e);var n=D(e[c]("data-target")),o=e[c]("data-offset");if(i=i||{},i[l]||n){for(var a,r=this,s=i[l]&&D(i[l])||n,u=s&&s.getElementsByTagName("A"),h=parseInt(o||i.offset)||10,p=[],v=[],y=e.offsetHeight=c&&s>a;if(!r&&f)"LI"!==i.tagName||E(i,m)||(B(i,m),o&&!E(o,m)&&B(o,m),j.call(e,"activate","scrollspy",p[t]));else if(f){if(!f&&!r||r&&f)return}else"LI"===i.tagName&&E(i,m)&&(H(i,m),o&&E(o,m)&&!M(i[d],m).length&&H(o,m))},I=function(){a=T?q().y:e.scrollTop;for(var t=0,i=p[f];t1&&(t=e[e[f]-1]):t=e[0],t.getElementsByTagName("A")[0]},L=function(){return D(A()[c]("href"))},I=function(t){t.preventDefault(),n=t.currentTarget||this,!b.isAnimating&&!E(n[d],m)&&g.show()};this.show=function(){n=n||t,l=D(n[c]("href")),o=A(),a=L(),b.isAnimating=!0,H(o[d],m),o[s]("aria-expanded","false"),B(n[d],m),n[s]("aria-expanded","true"),y&&(E(t[d][d],"dropdown-menu")?E(y,m)||B(y,m):E(y,m)&&H(y,m)),j.call(o,"hide","tab",n),E(a,"fade")?(H(a,"in"),O(a,k)):k()},"Tab"in t||R(t,"click",I),g.height&&(w=L()[d]),t.Tab=g}};a[g](["Tab",$,'[data-toggle="tab"]']);var _=function(i,o){i=D(i),o=o||{};var a=i[c]("data-animation"),l=i[c]("data-placement"),d=i[c]("data-delay"),f=i[c]("data-container"),u=D(o.container),h=D(f),p=S(i,".modal"),g=S(i,"."+k),m=S(i,".navbar-fixed-bottom");this[r]=o[r]&&"fade"!==o[r]?o[r]:a||"fade",this.placement=o.placement?o.placement:l||b,this.delay=parseInt(o.delay||d)||200,this.container=u||(h||(g||(m||(p||e[n]))));var v=this,T=0,x=this.placement,C=null,A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(A&&""!=A){var L=function(){v.container.removeChild(C),C=null,T=null},I=function(){if(!(A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==A)return!1;C=e.createElement("div"),C[s]("role","tooltip");var t=e.createElement("div"),n=e.createElement("div");t[s]("class","tooltip-arrow"),n[s]("class","tooltip-inner"),C.appendChild(t),C.appendChild(n),n.innerHTML=A,v.container.appendChild(C),C[s]("class","tooltip "+x+" "+v[r])},N=function(){U(i,C,x,v.container)},M=function(){!E(C,"in")&&B(C,"in")},P=function(){j.call(i,"shown","tooltip"),!w&&R(t,"resize",v.hide)},z=function(){!w&&W(t,"resize",v.hide),L(),j.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(T),T=setTimeout(function(){if(null===C){if(x=v.placement,0==I())return;N(),M(),j.call(i,"show","tooltip"),v[r]?O(C,P):P()}},20)},this.hide=function(){clearTimeout(T),T=setTimeout(function(){C&&E(C,"in")&&(j.call(i,"hide","tooltip"),H(C,"in"),v[r]?O(C,z):z())},v.delay)},this.toggle=function(){C?v.hide():v.show()},"Tooltip"in i||(i[s]("data-original-title",A),i.removeAttribute("title"),R(i,y[0],v.show),R(i,y[1],v.hide)),i.Tooltip=v}};a[g](["Tooltip",_,'[data-toggle="tooltip"]']);var tt=function(t,e){for(var i=0,n=e[f];i