1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-09-29 22:50:40 +00:00
ympd/dist/htdocs/js/bootstrap-native-v4.min.js
2018-09-19 00:01:37 +01:00

43 lines
21 KiB
JavaScript

(function(z,g){"function"===typeof define&&define.amd?define([],g):"object"===typeof module&&module.exports?module.exports=g():(g=g(),z.Alert=g.Alert,z.Button=g.Button,z.Carousel=g.Carousel,z.Collapse=g.Collapse,z.Dropdown=g.Dropdown,z.Modal=g.Modal,z.Popover=g.Popover,z.ScrollSpy=g.ScrollSpy,z.Tab=g.Tab,z.Tooltip=g.Tooltip)})(this,function(){var z="undefined"!==typeof global?global:this||window,g=document,E=g.documentElement,Q=z.BSN={},D=Q.supports=[],K="onmouseleave"in g?["mouseenter","mouseleave"]:
["mouseover","mouseout"],ja=/\b(top|bottom|left|right)+/,P=0,N="WebkitTransition"in E.style||"transition"in E.style,T="WebkitTransition"in E.style?"webkitTransitionEnd":"transitionend",ka="WebkitDuration"in E.style?"webkitTransitionDuration":"transitionDuration",O=function(a){a.focus?a.focus():a.setActive()},w=function(a,c){a.classList.add(c)},y=function(a,c){a.classList.remove(c)},p=function(a,c){return a.classList.contains(c)},I=function(a,c){return[].slice.call(a.getElementsByClassName(c))},q=
function(a,c){c=c?c:g;return"object"===typeof a?a:c.querySelector(a)},G=function(a,c){var e=c.charAt(0),b=c.substr(1);if("."===e)for(;a&&a!==g;a=a.parentNode){if(null!==q(c,a.parentNode)&&p(a,b))return a}else if("#"===e)for(;a&&a!==g;a=a.parentNode)if(a.id===b)return a;return!1},u=function(a,c,e){a.addEventListener(c,e,!1)},L=function(a,c,e){a.removeEventListener(c,e,!1)},U=function(a,c,e){u(a,c,function f(m){e(m);L(a,c,f)})},R=function(a){a=z.getComputedStyle(a)[ka];a=parseFloat(a);a="number"!==
typeof a||isNaN(a)?0:1E3*a;return a+50},H=function(a,c){var e=0,b=R(a);N&&U(a,T,function(a){c(a);e=1});setTimeout(function(){!e&&c()},b)},x=function(a,c,e){a=new CustomEvent(a+".bs."+c);a.relatedTarget=e;this.dispatchEvent(a)},V=function(){return{y:z.pageYOffset||E.scrollTop,x:z.pageXOffset||E.scrollLeft}},W=function(a,c,e,b){var m=c.offsetWidth,f=c.offsetHeight,h=E.clientWidth||g.body.clientWidth,n=E.clientHeight||g.body.clientHeight;a=a.getBoundingClientRect();b=b===g.body?V():{x:b.offsetLeft+b.scrollLeft,
y:b.offsetTop+b.scrollTop};var v=a.right-a.left,k=a.bottom-a.top,d=p(c,"popover"),A=q(".arrow",c),l=0>a.top+k/2-f/2,r=0>a.left+v/2-m/2,x=a.left+m/2+v/2>=h,t=a.top+f/2+k/2>=n;var C=0>a.top-f;var F=0>a.left-m;n=a.top+f+k>=n;var M=a.left+m+v>=h;e=("left"===e||"right"===e)&&F&&M?"top":e;e="top"===e&&C?"bottom":e;e="bottom"===e&&n?"top":e;e="left"===e&&F?"right":e;e="right"===e&&M?"left":e;-1===c.className.indexOf(e)&&(c.className=c.className.replace(ja,e));n=A.offsetWidth;C=A.offsetHeight;if("left"===
e||"right"===e){var J="left"===e?a.left+b.x-m-(d?n:0):a.left+b.x+v;if(l){var w=a.top+b.y;var u=k/2-n}else t?(w=a.top+b.y-f+k,u=f-k/2-n):(w=a.top+b.y-f/2+k/2,u=f/2-(d?.9*C:C/2))}else if("top"===e||"bottom"===e)if(w="top"===e?a.top+b.y-f-(d?C:0):a.top+b.y+k,r){J=0;var y=a.left+v/2-n}else x?(J=h-1.01*m,y=m-(h-a.left)+v/2-n/2):(J=a.left+b.x-m/2+v/2,y=m/2-n/2);c.style.top=w+"px";c.style.left=J+"px";u&&(A.style.top=u+"px");y&&(A.style.left=y+"px")};Q.version="2.0.23";var X=function(a){a=q(a);var c=this,
e=G(a,".alert"),b=function(b){e=G(b.target,".alert");(a=q('[data-dismiss="alert"]',e))&&e&&(a===b.target||a.contains(b.target))&&c.close()},m=function(){x.call(e,"closed","alert");L(a,"click",b);e.parentNode.removeChild(e)};this.close=function(){e&&a&&p(e,"show")&&(x.call(e,"close","alert"),y(e,"show"),e&&(p(e,"fade")?H(e,m):m()))};"Alert"in a||u(a,"click",b);a.Alert=c};D.push(["Alert",X,'[data-dismiss="alert"]']);var Y=function(a){a=q(a);var c=!1,e=function(a){32===(a.which||a.keyCode)&&a.target===
g.activeElement&&m(a)},b=function(a){32===(a.which||a.keyCode)&&a.preventDefault()},m=function(b){var e="LABEL"===b.target.tagName?b.target:"LABEL"===b.target.parentNode.tagName?b.target.parentNode:null;if(e){b=I(b.target.parentNode,"btn");var f=e.getElementsByTagName("INPUT")[0];if(f){"checkbox"===f.type&&(f.checked?(y(e,"active"),f.getAttribute("checked"),f.removeAttribute("checked"),f.checked=!1):(w(e,"active"),f.getAttribute("checked"),f.setAttribute("checked","checked"),f.checked=!0),c||(c=!0,
x.call(f,"change","button"),x.call(a,"change","button")));if("radio"===f.type&&!c&&!f.checked){w(e,"active");f.setAttribute("checked","checked");f.checked=!0;x.call(f,"change","button");x.call(a,"change","button");c=!0;f=0;for(var h=b.length;f<h;f++){var d=b[f],m=d.getElementsByTagName("INPUT")[0];d!==e&&p(d,"active")&&(y(d,"active"),m.removeAttribute("checked"),m.checked=!1,x.call(m,"change","button"))}}setTimeout(function(){c=!1},50)}}};"Button"in a||(u(a,"click",m),q("[tabindex]",a)&&u(a,"keyup",
e),u(a,"keydown",b));e=I(a,"btn");b=e.length;for(var f=0;f<b;f++)!p(e[f],"active")&&q("input:checked",e[f])&&w(e[f],"active");a.Button=this};D.push(["Button",Y,'[data-toggle="buttons"]']);var Z=function(a,c){a=q(a);c=c||{};var e=a.getAttribute("data-interval"),b=c.interval;e="false"===e?0:parseInt(e);var m="hover"===a.getAttribute("data-pause")||!1,f="true"===a.getAttribute("data-keyboard")||!1;this.keyboard=!0===c.keyboard||f;this.pause="hover"===c.pause||m?"hover":!1;this.interval="number"===typeof b?
b:!1===b||0===e||!1===e?0:5E3;var h=this,n=a.index=0,v=a.timer=0,k=!1,d=I(a,"carousel-item"),A=d.length,l=this.direction="left",r=I(a,"carousel-control-prev")[0],B=I(a,"carousel-control-next")[0],t=(c=q(".carousel-indicators",a))&&c.getElementsByTagName("LI")||[];b=function(){!1===h.interval||p(a,"paused")||(w(a,"paused"),!k&&clearInterval(v))};e=function(){!1!==h.interval&&p(a,"paused")&&(y(a,"paused"),!k&&clearInterval(v),!k&&h.cycle())};m=function(a){a.preventDefault();if(!k){if((a=a.target)&&
!p(a,"active")&&a.getAttribute("data-slide-to"))n=parseInt(a.getAttribute("data-slide-to"),10);else return!1;h.slideTo(n)}};f=function(a){a.preventDefault();k||(a=a.currentTarget||a.srcElement,a===B?n++:a===r&&n--,h.slideTo(n))};var C=function(a){if(!k){switch(a.which){case 39:n++;break;case 37:n--;break;default:return}h.slideTo(n)}},F=function(a){for(var d=0,b=t.length;d<b;d++)y(t[d],"active");t[a]&&w(t[a],"active")};this.cycle=function(){v=setInterval(function(){var d=a.getBoundingClientRect();
d.top<=(z.innerHeight||E.clientHeight)&&0<=d.bottom&&(n++,h.slideTo(n))},this.interval)};this.slideTo=function(b){if(!k){var c=this.getActiveIndex();if(c<b||0===c&&b===A-1)l=h.direction="left";else if(c>b||c===A-1&&0===b)l=h.direction="right";0>b?b=A-1:b===A&&(b=0);n=b;var e="left"===l?"next":"prev";x.call(a,"slide","carousel",d[b]);k=!0;clearInterval(v);F(b);N&&p(a,"slide")?(w(d[b],"carousel-item-"+e),d[b].offsetWidth,w(d[b],"carousel-item-"+l),w(d[c],"carousel-item-"+l),U(d[b],T,function(f){f=f.target!==
d[b]?1E3*f.elapsedTime+100:20;k&&setTimeout(function(){k=!1;w(d[b],"active");y(d[c],"active");y(d[b],"carousel-item-"+e);y(d[b],"carousel-item-"+l);y(d[c],"carousel-item-"+l);x.call(a,"slid","carousel",d[b]);g.hidden||!h.interval||p(a,"paused")||h.cycle()},f)})):(w(d[b],"active"),d[b].offsetWidth,y(d[c],"active"),setTimeout(function(){k=!1;h.interval&&!p(a,"paused")&&h.cycle();x.call(a,"slid","carousel",d[b])},100))}};this.getActiveIndex=function(){return d.indexOf(I(a,"carousel-item active")[0])||
0};"Carousel"in a||(h.pause&&h.interval&&(u(a,K[0],b),u(a,K[1],e),u(a,"touchstart",b),u(a,"touchend",e)),B&&u(B,"click",f),r&&u(r,"click",f),c&&u(c,"click",m),!0===h.keyboard&&u(z,"keydown",C));0>h.getActiveIndex()&&(d.length&&w(d[0],"active"),t.length&&F(0));h.interval&&h.cycle();a.Carousel=h};D.push(["Carousel",Z,'[data-ride="carousel"]']);var aa=function(a,c){a=q(a);c=c||{};var e=null,b=null,m=this,f=a.getAttribute("data-parent"),h,g,v=function(a,b){x.call(a,"show","collapse");a.isAnimating=!0;
w(a,"collapsing");y(a,"collapse");a.style.height=a.scrollHeight+"px";H(a,function(){a.isAnimating=!1;a.setAttribute("aria-expanded","true");b.setAttribute("aria-expanded","true");y(a,"collapsing");w(a,"collapse");w(a,"show");a.style.height="";x.call(a,"shown","collapse")})},k=function(a,b){x.call(a,"hide","collapse");a.isAnimating=!0;a.style.height=a.scrollHeight+"px";y(a,"collapse");y(a,"show");w(a,"collapsing");a.offsetWidth;a.style.height="0px";H(a,function(){a.isAnimating=!1;a.setAttribute("aria-expanded",
"false");b.setAttribute("aria-expanded","false");y(a,"collapsing");w(a,"collapse");a.style.height="";x.call(a,"hidden","collapse")})};this.toggle=function(a){a.preventDefault();p(b,"show")?m.hide():m.show()};this.hide=function(){b.isAnimating||(k(b,a),w(a,"collapsed"))};this.show=function(){e&&(g=(h=q(".collapse.show",e))&&(q('[data-toggle="collapse"][data-target="#'+h.id+'"]',e)||q('[data-toggle="collapse"][href="#'+h.id+'"]',e)));if(!b.isAnimating||h&&!h.isAnimating)g&&h!==b&&(k(h,g),w(g,"collapsed")),
v(b,a),y(a,"collapsed")};"Collapse"in a||u(a,"click",m.toggle);b=function(){var b=a.href&&a.getAttribute("href"),c=a.getAttribute("data-target");return(b=b||c&&"#"===c.charAt(0)&&c)&&q(b)}();b.isAnimating=!1;e=q(c.parent)||f&&G(a,f);a.Collapse=m};D.push(["Collapse",aa,'[data-toggle="collapse"]']);var ba=function(a,c){a=q(a);this.persist=!0===c||"true"===a.getAttribute("data-persist")||!1;var e=this,b=a.parentNode,m=null,f=q(".dropdown-menu",b),h=function(){for(var a=f.children,b=[],c=0;c<a.length;c++)a[c].children.length&&
"A"===a[c].children[0].tagName&&b.push(a[c].children[0]),"A"===a[c].tagName&&b.push(a[c]);return b}(),n=function(a){(a.href&&"#"===a.href.slice(-1)||a.parentNode&&a.parentNode.href&&"#"===a.parentNode.href.slice(-1))&&this.preventDefault()},v=function(){var b=a.open?u:L;b(g,"click",k);b(g,"keydown",A);b(g,"keyup",l)},k=function(b){var c=b.target,d=c&&("Dropdown"in c||"Dropdown"in c.parentNode);if(c!==f&&!f.contains(c)||!e.persist&&!d)m=c===a||a.contains(c)?a:null,B(),n.call(b,c)},d=function(b){m=
a;r();n.call(b,b.target)},A=function(a){var b=a.which||a.keyCode;38!==b&&40!==b||a.preventDefault()},l=function(b){b=b.which||b.keyCode;var c=g.activeElement,d=h.indexOf(c),l=c===a,n=f.contains(c);if((c=c.parentNode===f||c.parentNode.parentNode===f)||l)d=l?0:38===b?1<d?d-1:0:40===b?d<h.length-1?d+1:d:d,h[d]&&O(h[d]);(h.length&&c||!h.length&&(n||l)||!n)&&a.open&&27===b&&(e.toggle(),m=null)},r=function(){x.call(b,"show","dropdown",m);w(f,"show");w(b,"show");f.setAttribute("aria-expanded",!0);x.call(b,
"shown","dropdown",m);a.open=!0;L(a,"click",d);setTimeout(function(){O(f.getElementsByTagName("INPUT")[0]||a);v()},1)},B=function(){x.call(b,"hide","dropdown",m);y(f,"show");y(b,"show");f.setAttribute("aria-expanded",!1);x.call(b,"hidden","dropdown",m);a.open=!1;v();O(a);setTimeout(function(){u(a,"click",d)},1)};a.open=!1;this.toggle=function(){p(b,"show")&&a.open?B():r()};"Dropdown"in a||(!1 in f&&f.setAttribute("tabindex","0"),u(a,"click",d));a.Dropdown=e};D.push(["Dropdown",ba,'[data-toggle="dropdown"]']);
var ca=function(a,c){a=q(a);var e=a.getAttribute("data-target")||a.getAttribute("href");e=q(e);var b=p(a,"modal")?a:e,m;p(a,"modal")&&(a=null);if(b){c=c||{};this.keyboard=!1===c.keyboard||"false"===b.getAttribute("data-keyboard")?!1:!0;this.backdrop="static"===c.backdrop||"static"===b.getAttribute("data-backdrop")?"static":!0;this.backdrop=!1===c.backdrop||"false"===b.getAttribute("data-backdrop")?!1:this.backdrop;this.content=c.content;var f=this,h=null,n,v,k,d,A=I(E,"fixed-top").concat(I(E,"fixed-bottom")),
l=function(){var a=z.getComputedStyle(g.body);a=parseInt(a.paddingRight,10);if(n&&(g.body.style.paddingRight=a+k+"px",A.length))for(var b=0;b<A.length;b++)a=z.getComputedStyle(A[b]).paddingRight,A[b].style.paddingRight=parseInt(a)+k+"px"},r=function(){var a=g.body.clientWidth,c=E.getBoundingClientRect();n=a<(z.innerWidth||c.right-Math.abs(c.left));v=b.scrollHeight>E.clientHeight;a=g.createElement("div");a.className="modal-scrollbar-measure";g.body.appendChild(a);c=a.offsetWidth-a.clientWidth;g.body.removeChild(a);
k=c},B=function(){b.style.paddingLeft=!n&&v?k+"px":"";b.style.paddingRight=n&&!v?k+"px":""},t=function(){P=1;var a=g.createElement("div");d=q(".modal-backdrop");null===d&&(a.setAttribute("class","modal-backdrop fade"),d=a,g.body.appendChild(d))},C=function(){(d=q(".modal-backdrop"))&&null!==d&&"object"===typeof d&&(P=0,g.body.removeChild(d),d=null);x.call(b,"hidden","modal")},F=function(){p(b,"show")?u(g,"keydown",S):L(g,"keydown",S)},M=function(){p(b,"show")?u(z,"resize",f.update):L(z,"resize",f.update)},
J=function(){p(b,"show")?u(b,"click",K):L(b,"click",K)},D=function(){O(b);x.call(b,"shown","modal",h)},G=function(){b.style.display="";a&&O(a);if(!I(g,"modal show")[0]){b.style.paddingLeft="";b.style.paddingRight="";g.body.style.paddingRight="";if(A.length)for(var c=0;c<A.length;c++)A[c].style.paddingRight="";y(g.body,"modal-open");d&&p(d,"fade")?(y(d,"show"),H(d,C)):C();M();J();F()}};c=function(c){var d=c.target;d=d.hasAttribute("data-target")||d.hasAttribute("href")?d:d.parentNode;d!==a||p(b,"show")||
(h=b.modalTrigger=a,f.show(),c.preventDefault())};var S=function(a){f.keyboard&&27==a.which&&p(b,"show")&&f.hide()},K=function(a){var c=a.target;p(b,"show")&&("modal"===c.parentNode.getAttribute("data-dismiss")||"modal"===c.getAttribute("data-dismiss")||c===b&&"static"!==f.backdrop)&&(f.hide(),h=null,a.preventDefault())};this.toggle=function(){p(b,"show")?this.hide():this.show()};this.show=function(){x.call(b,"show","modal",h);var a=I(g,"modal show")[0];a&&a!==b&&a.modalTrigger.Modal.hide();this.backdrop&&
!P&&t();d&&P&&!p(d,"show")&&(d.offsetWidth,m=R(d),w(d,"show"));setTimeout(function(){b.style.display="block";r();l();B();w(g.body,"modal-open");w(b,"show");b.setAttribute("aria-hidden",!1);M();J();F();p(b,"fade")?H(b,D):D()},N&&d?m:0)};this.hide=function(){x.call(b,"hide","modal");m=(d=q(".modal-backdrop"))&&R(d);y(b,"show");b.setAttribute("aria-hidden",!0);setTimeout(function(){p(b,"fade")?H(b,G):G()},N&&d?m:0)};this.setContent=function(a){q(".modal-content",b).innerHTML=a};this.update=function(){p(b,
"show")&&(r(),l(),B())};!a||"Modal"in a||u(a,"click",c);f.content&&f.setContent(f.content);a&&(a.Modal=f)}};D.push(["Modal",ca,'[data-toggle="modal"]']);var da=function(a,c){a=q(a);c=c||{};var e=a.getAttribute("data-trigger"),b=a.getAttribute("data-animation"),m=a.getAttribute("data-placement"),f=a.getAttribute("data-dismissible"),h=a.getAttribute("data-delay"),n=a.getAttribute("data-container"),v=q(c.container);n=q(n);var k=G(a,".modal"),d=G(a,".fixed-top"),A=G(a,".fixed-bottom");this.template=c.template?
c.template:null;this.trigger=c.trigger?c.trigger:e||"hover";this.animation=c.animation&&"fade"!==c.animation?c.animation:b||"fade";this.placement=c.placement?c.placement:m||"top";this.delay=parseInt(c.delay||h)||200;this.dismissible=c.dismissible||"true"===f?!0:!1;this.container=v?v:n?n:d?d:A?A:k?k:g.body;var l=this,r=a.getAttribute("data-title")||null,B=a.getAttribute("data-content")||null;if(B||this.template){var t=null,C=0,F=this.placement,M=function(a){null!==t&&a.target===q(".close",t)&&l.hide()},
J=function(b){"click"!=l.trigger&&"focus"!=l.trigger||l.dismissible||b(a,"blur",l.hide);l.dismissible&&b(g,"click",M);b(z,"resize",l.hide)},D=function(){J(u);x.call(a,"shown","popover")},E=function(){J(L);try{l.container.removeChild(t),t=C=null}catch(S){}x.call(a,"hidden","popover")};this.toggle=function(){null===t?l.show():l.hide()};this.show=function(){clearTimeout(C);C=setTimeout(function(){if(null===t){F=l.placement;r=a.getAttribute("data-title");B=a.getAttribute("data-content");t=g.createElement("div");
var b=g.createElement("div");b.setAttribute("class","arrow");t.appendChild(b);null!==B&&null===l.template?(t.setAttribute("role","tooltip"),null!==r&&(b=g.createElement("h3"),b.setAttribute("class","popover-header"),b.innerHTML=l.dismissible?r+'<button type="button" class="close">\u00d7</button>':r,t.appendChild(b)),b=g.createElement("div"),b.setAttribute("class","popover-body"),b.innerHTML=l.dismissible&&null===r?B+'<button type="button" class="close">\u00d7</button>':B,t.appendChild(b)):(b=g.createElement("div"),
b.innerHTML=l.template,t.innerHTML=b.firstChild.innerHTML);l.container.appendChild(t);t.style.display="block";t.setAttribute("class","popover bs-popover-"+F+" "+l.animation);W(a,t,F,l.container);!p(t,"show")&&w(t,"show");x.call(a,"show","popover");l.animation?H(t,D):D()}},20)};this.hide=function(){clearTimeout(C);C=setTimeout(function(){t&&null!==t&&p(t,"show")&&(x.call(a,"hide","popover"),y(t,"show"),l.animation?H(t,E):E())},l.delay)};"Popover"in a||("hover"===l.trigger?(u(a,K[0],l.show),l.dismissible||
u(a,K[1],l.hide)):"click"!=l.trigger&&"focus"!=l.trigger||u(a,l.trigger,l.toggle));a.Popover=l}};D.push(["Popover",da,'[data-toggle="popover"]']);var ea=function(a,c){a=q(a);var e=q(a.getAttribute("data-target")),b=a.getAttribute("data-offset");c=c||{};if(c.target||e){e=(e=c.target&&q(c.target)||e)&&e.getElementsByTagName("A");var m=parseInt(b||c.offset)||10,f=[],h=[],g;c=a.offsetHeight<a.scrollHeight?a:z;var v=c===z;b=0;for(var k=e.length;b<k;b++){var d=e[b].getAttribute("href");if(d=d&&"#"===d.charAt(0)&&
"#"!==d.slice(-1)&&q(d))f.push(e[b]),h.push(d)}this.refresh=function(){g=v?V().y:a.scrollTop;for(var b=0,c=f.length;b<c;b++){var d=b,e=f[d],n=h[d],k=e.parentNode.parentNode;k=p(k,"dropdown")&&k.getElementsByTagName("A")[0];var q=v&&n.getBoundingClientRect(),u=p(e,"active")||!1,z=v?q.bottom+g-m:h[d+1]?h[d+1].offsetTop-m:a.scrollHeight;n=g>=(v?q.top+g:n.offsetTop)-m&&z>g;!u&&n?p(e,"active")||(w(e,"active"),k&&!p(k,"active")&&w(k,"active"),x.call(a,"activate","scrollspy",f[d])):!n&&p(e,"active")&&(y(e,
"active"),k&&p(k,"active")&&!I(e.parentNode,"active").length&&y(k,"active"))}};"ScrollSpy"in a||(u(c,"scroll",this.refresh),u(z,"resize",this.refresh));this.refresh();a.ScrollSpy=this}};D.push(["ScrollSpy",ea,'[data-spy="scroll"]']);var fa=function(a,c){a=q(a);var e=a.getAttribute("data-height");c=c||{};this.height=N?c.height||"true"===e:!1;var b=this,g,f=G(a,".nav"),h=!1,n=f&&q(".dropdown-toggle",f),v,k,d,A,l,r,z=function(){h.style.height="";y(h,"collapsing");f.isAnimating=!1},t=function(){h?l?z():
setTimeout(function(){h.style.height=r+"px";h.offsetWidth;H(h,z)},50):f.isAnimating=!1;x.call(g,"shown","tab",v)},C=function(){h&&(k.style["float"]="left",d.style["float"]="left",A=k.scrollHeight);w(d,"active");x.call(g,"show","tab",v);y(k,"active");x.call(v,"hidden","tab",g);h&&(r=d.scrollHeight,l=r===A,w(h,"collapsing"),h.style.height=A+"px",h.offsetHeight,k.style["float"]="",d.style["float"]="");p(d,"fade")?setTimeout(function(){w(d,"show");H(d,t)},20):t()};if(f){f.isAnimating=!1;var F=function(){var a=
I(f,"active"),b;1!==a.length||p(a[0].parentNode,"dropdown")?1<a.length&&(b=a[a.length-1]):b=a[0];return b};c=function(a){var c=a.target.getAttribute("href");a.preventDefault();g="tab"===a.target.getAttribute("data-toggle")||c&&"#"===c.charAt(0)?a.target:a.target.parentNode;f.isAnimating||p(g,"active")||b.show()};this.show=function(){g=g||a;d=q(g.getAttribute("href"));v=F();k=q(F().getAttribute("href"));f.isAnimating=!0;y(v,"active");w(g,"active");n&&(p(a.parentNode,"dropdown-menu")?p(n,"active")||
w(n,"active"):p(n,"active")&&y(n,"active"));x.call(v,"hide","tab",g);p(k,"fade")?(y(k,"show"),H(k,C)):C()};"Tab"in a||u(a,"click",c);b.height&&(h=q(F().getAttribute("href")).parentNode);a.Tab=b}};D.push(["Tab",fa,'[data-toggle="tab"]']);var ha=function(a,c){a=q(a);c=c||{};var e=a.getAttribute("data-animation"),b=a.getAttribute("data-placement"),m=a.getAttribute("data-delay"),f=a.getAttribute("data-container"),h=q(c.container);f=q(f);var n=G(a,".modal"),v=G(a,".fixed-top"),k=G(a,".fixed-bottom");this.animation=
c.animation&&"fade"!==c.animation?c.animation:e||"fade";this.placement=c.placement?c.placement:b||"top";this.delay=parseInt(c.delay||m)||200;this.container=h?h:f?f:v?v:k?k:n?n:g.body;var d=this,A=0,l=this.placement,r=null,B=a.getAttribute("title")||a.getAttribute("data-title")||a.getAttribute("data-original-title");if(B&&""!=B){var t=function(){u(z,"resize",d.hide);x.call(a,"shown","tooltip")},C=function(){L(z,"resize",d.hide);d.container.removeChild(r);A=r=null;x.call(a,"hidden","tooltip")};this.show=
function(){clearTimeout(A);A=setTimeout(function(){if(null===r){l=d.placement;if((B=a.getAttribute("title")||a.getAttribute("data-title")||a.getAttribute("data-original-title"))&&""!=B){r=g.createElement("div");r.setAttribute("role","tooltip");var b=g.createElement("div");b.setAttribute("class","arrow");r.appendChild(b);b=g.createElement("div");b.setAttribute("class","tooltip-inner");r.appendChild(b);b.innerHTML=B;d.container.appendChild(r);r.setAttribute("class","tooltip bs-tooltip-"+l+" "+d.animation);
b=void 0}else b=!1;0!=b&&(W(a,r,l,d.container),!p(r,"show")&&w(r,"show"),x.call(a,"show","tooltip"),d.animation?H(r,t):t())}},20)};this.hide=function(){clearTimeout(A);A=setTimeout(function(){r&&p(r,"show")&&(x.call(a,"hide","tooltip"),y(r,"show"),d.animation?H(r,C):C())},d.delay)};this.toggle=function(){r?d.hide():d.show()};"Tooltip"in a||(a.setAttribute("data-original-title",B),a.removeAttribute("title"),u(a,K[0],d.show),u(a,K[1],d.hide));a.Tooltip=d}};D.push(["Tooltip",ha,'[data-toggle="tooltip"]']);
var ia=Q.initCallback=function(a){a=a||g;for(var c=0,e=D.length;c<e;c++)for(var b=D[c][1],m=a.querySelectorAll(D[c][2]),f=0,h=m.length;f<h;f++)new b(m[f])};g.body?ia():u(g,"DOMContentLoaded",function(){ia()});return{Alert:X,Button:Y,Carousel:Z,Collapse:aa,Dropdown:ba,Modal:ca,Popover:da,ScrollSpy:ea,Tab:fa,Tooltip:ha}});