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 4.1.0-alpha5 to 4.1.0-alpha6

4

dist/bootstrap-native-v4-esm.min.js

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

// Native JavaScript for Bootstrap v4.1.0alpha5 | 2022 © dnp_theme | MIT-License
var t=document.head,e="webkitTransition"in t.style||"transition"in t.style,i="webkitTransition"in t.style?"webkitTransitionEnd":"transitionend",n="webkitTransition"in t.style?"webkitTransitionDelay":"transitionDelay",a="webkitTransition"in t.style?"webkitTransitionProperty":"transitionProperty";function o(t,e){var i=getComputedStyle(t);return e in i?i[e]:""}var s="webkitTransition"in t.style?"webkitTransitionDuration":"transitionDuration";function l(t){var i=o(t,a),n=o(t,s),l=n.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(n)*l:0;return Number.isNaN(r)?0:r}function r(t,s){var r=0,c=new Event(i),d=l(t),u=function(t){var i=o(t,a),s=o(t,n),l=s.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(s)*l:0;return Number.isNaN(r)?0:r}(t);if(e&&d){var m=function(e){e.target===t&&(s.apply(t,[e]),t.removeEventListener(i,m),r=1)};t.addEventListener(i,m),setTimeout((function(){r||t.dispatchEvent(c)}),d+u+17)}else s.apply(t,[c])}function c(t){return t instanceof HTMLElement?t.ownerDocument:t instanceof Window?t.document:window.document}var d=[Document,Element,HTMLElement],u=[Element,HTMLElement];function m(t,e){var i=d.some((function(t){return e instanceof t}))?e:c();return u.some((function(e){return t instanceof e}))?t:i.querySelector(t)}function f(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function h(t){this&&this.dispatchEvent(t)}function g(t){var e,i,n=this,a=f("close","alert"),o=f("closed","alert");function s(t){e[t?"addEventListener":"removeEventListener"]("click",l,!1)}function l(t){i=t&&t.target.closest(".alert"),(e=m('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function c(){s(),i.parentNode.removeChild(i),h.call(i,o)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(h.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?r(i,c):c()}},n.dispose=function(){s(),delete e.Alert},e=m(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||s(1),n.element=e,e.Alert=n}function p(t){var e,i,n=f("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(h.call(l,n),h.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(h.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function s(t){32===(t.which||t.keyCode)&&t.preventDefault()}function l(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function r(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",s,!1),e[i]("focusin",l,!1),e[i]("focusout",l,!1)}this.dispose=function(){r(),delete e.Button},(e=m(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||r(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=m("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var v="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],L={passive:!0};var b=function(t){var e=function(t,e){var i=t.getBoundingClientRect(),n=i.width,a=i.height,o=i.top,s=i.right,l=i.bottom,r=i.left,c=1,d=1;if(e&&t instanceof HTMLElement){var u=t.offsetWidth,m=t.offsetHeight;c=u>0&&Math.round(n)/u||1,d=m>0&&Math.round(a)/m||1}return{width:n/c,height:a/d,top:o/d,right:s/c,bottom:l/d,left:r/c,x:r/c,y:o/d}}(t),i=e.top,n=e.bottom;return i<=c(t).documentElement.clientHeight&&n>=0},y=function(t){return t.offsetHeight};function w(t,e){var i,n,a,o,s,c,d,u,g,p,w,A,T,E=e||{},k=this;function x(){!1===c.interval||o.classList.contains("paused")||(o.classList.add("paused"),s.isSliding||(clearInterval(s.timer),s.timer=null))}function C(){!1!==c.interval&&o.classList.contains("paused")&&(o.classList.remove("paused"),s.isSliding||(clearInterval(s.timer),s.timer=null,k.cycle()))}function N(t){if(t.preventDefault(),!s.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(s.index=+e.getAttribute("data-slide-to"),k.slideTo(s.index))}}function P(t){if(t.preventDefault(),!s.isSliding){var e=t.currentTarget||t.srcElement;e===w?s.index+=1:e===p&&(s.index-=1),k.slideTo(s.index)}}function H(t){var e=t.which;if(!s.isSliding){switch(e){case 39:s.index+=1;break;case 37:s.index-=1;break;default:return}k.slideTo(s.index)}}function M(t){var e=t?"addEventListener":"removeEventListener";c.pause&&c.interval&&(o[e](v[0],x,!1),o[e](v[1],C,!1),o[e]("touchstart",x,L),o[e]("touchend",C,L)),c.touch&&g.length>1&&o[e]("touchstart",B,L),w&&w[e]("click",P,!1),p&&p[e]("click",P,!1),A&&A[e]("click",N,!1),c.keyboard&&window[e]("keydown",H,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";o[e]("touchmove",I,L),o[e]("touchend",D,L)}function B(t){s.isTouch||(s.touchPosition.startX=t.changedTouches[0].pageX,o.contains(t.target)&&(s.isTouch=!0,S(1)))}function I(t){s.isTouch?(s.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function D(t){if(s.isTouch&&!s.isSliding&&(s.touchPosition.endX=s.touchPosition.currentX||t.changedTouches[0].pageX,s.isTouch)){if((!o.contains(t.target)||!o.contains(t.relatedTarget))&&Math.abs(s.touchPosition.startX-s.touchPosition.endX)<75)return;s.touchPosition.currentX<s.touchPosition.startX?s.index+=1:s.touchPosition.currentX>s.touchPosition.startX&&(s.index-=1),s.isTouch=!1,k.slideTo(s.index),S()}}function X(t){Array.from(T).forEach((function(t){return t.classList.remove("active")})),T[t]&&T[t].classList.add("active")}function R(t){if(s.touchPosition){var e=s.index,i=t&&t.target!==g[e]?1e3*t.elapsedTime+100:20,n=k.getActiveIndex(),a="left"===s.direction?"next":"prev";s.isSliding&&setTimeout((function(){s.touchPosition&&(s.isSliding=!1,g[e].classList.add("active"),g[n].classList.remove("active"),g[e].classList.remove("carousel-item-"+a),g[e].classList.remove("carousel-item-"+s.direction),g[n].classList.remove("carousel-item-"+s.direction),h.call(o,u),document.hidden||!c.interval||o.classList.contains("paused")||k.cycle())}),i)}}if(k.cycle=function(){s.timer&&(clearInterval(s.timer),s.timer=null),s.timer=setInterval((function(){var t=s.index||k.getActiveIndex();b(o)&&(t+=1,k.slideTo(t))}),c.interval)},k.slideTo=function(t){if(!s.isSliding){var e=k.getActiveIndex(),i=t;if(e!==i){e<i||0===e&&i===g.length-1?s.direction="left":(e>i||e===g.length-1&&0===i)&&(s.direction="right"),i<0?i=g.length-1:i>=g.length&&(i=0);var n="left"===s.direction?"next":"prev",a={relatedTarget:g[i],direction:s.direction,from:e,to:i};d=f("slide","carousel",a),u=f("slid","carousel",a),h.call(o,d),d.defaultPrevented||(s.index=i,s.isSliding=!0,clearInterval(s.timer),s.timer=null,X(i),l(g[i])&&o.classList.contains("slide")?(g[i].classList.add("carousel-item-"+n),y(g[i]),g[i].classList.add("carousel-item-"+s.direction),g[e].classList.add("carousel-item-"+s.direction),r(g[i],R)):(g[i].classList.add("active"),y(g[i]),g[e].classList.remove("active"),setTimeout((function(){s.isSliding=!1,c.interval&&o&&!o.classList.contains("paused")&&k.cycle(),h.call(o,u)}),100)))}}},k.getActiveIndex=function(){return Array.from(g).indexOf(o.getElementsByClassName("carousel-item active")[0])||0},k.dispose=function(){var t=["left","right","prev","next"];Array.from(g).forEach((function(e,i){e.classList.contains("active")&&X(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(s.timer),M(),s={},c={},delete o.Carousel},(o=m(t)).Carousel&&o.Carousel.dispose(),g=o.getElementsByClassName("carousel-item"),i=o.getElementsByClassName("carousel-control-prev"),p=i[0],n=o.getElementsByClassName("carousel-control-next"),w=n[0],a=o.getElementsByClassName("carousel-indicators"),A=a[0],T=A&&A.getElementsByTagName("LI")||[],!(g.length<2)){var W=o.getAttribute("data-interval"),O="false"===W?0:+W,j="false"===o.getAttribute("data-touch")?0:1,z="hover"===o.getAttribute("data-pause")||!1,U="true"===o.getAttribute("data-keyboard")||!1,q=E.interval,F=E.touch;(c={}).keyboard=!0===E.keyboard||U,c.pause=!("hover"!==E.pause&&!z)&&"hover",c.touch=F||j,c.interval=5e3,"number"==typeof q?c.interval=q:!1===q||0===O||!1===O?c.interval=0:Number.isNaN(O)||(c.interval=O),k.getActiveIndex()<0&&(g.length&&g[0].classList.add("active"),T.length&&X(0)),(s={}).direction="left",s.index=0,s.timer=null,s.isSliding=!1,s.isTouch=!1,s.touchPosition={startX:0,currentX:0,endX:0},M(1),c.interval&&k.cycle(),o.Carousel=k}}function A(t,e){var i,n,a,o,s,l,c,d=e||{},u=this,g=null,p=null;function v(t,e){h.call(t,l),l.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),y(t),t.style.height="0px",r(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",h.call(t,c)})))}u.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(p.classList.contains("show")?u.hide():u.show())},u.hide=function(){p.isAnimating||(v(p,i),i.classList.add("collapsed"))},u.show=function(){var t,e,l;g&&(t=g.getElementsByClassName("collapse show"),n=t[0],a=n&&(m('[data-target="#'+n.id+'"]',g)||m('[href="#'+n.id+'"]',g))),p.isAnimating||(a&&n!==p&&(v(n,a),a.classList.add("collapsed")),e=p,l=i,h.call(e,o),o.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",r(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",h.call(e,s)}))),i.classList.remove("collapsed"))},u.dispose=function(){i.removeEventListener("click",u.toggle,!1),delete i.Collapse},(i=m(t)).Collapse&&i.Collapse.dispose();var L=i.getAttribute("data-parent");o=f("show","collapse"),s=f("shown","collapse"),l=f("hide","collapse"),c=f("hidden","collapse"),null!==(p=m(d.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(p.isAnimating=!1);var b=d.parent||L;g=b?i.closest(b):null,i.Collapse||i.addEventListener("click",u.toggle,!1),i.Collapse=u}var T=function(t){return t.focus()};function E(t,e){var i,n,a,o,s,l,r,c,d=this,u=null,g=[];function p(t){(t.hasAttribute("href")&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.hasAttribute("href")&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function v(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",L,!1),document[t]("keydown",y,!1),document[t]("keyup",w,!1),document[t]("focus",L,!1)}function L(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==r&&!r.contains(e))&&(e!==r&&!r.contains(e)||!c&&!n)&&(u=e===i||i.contains(e)?i:null,d.hide(),p.call(t,e))}}function b(t){u=i,d.show(),p.call(t,t.target)}function y(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function w(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=r.contains(n),s=n.parentNode===r||n.parentNode.parentNode===r,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l<g.length-1?l+1:l),g[l]&&T(g[l])),(g.length&&s||!g.length&&(o||a)||!o)&&i.open&&27===e&&(d.toggle(),u=null)}d.show=function(){n=f("show","dropdown",{relatedTarget:u}),h.call(l,n),n.defaultPrevented||(r.classList.add("show"),l.classList.add("show"),i.setAttribute("aria-expanded",!0),i.open=!0,i.removeEventListener("click",b,!1),setTimeout((function(){T(r.getElementsByTagName("INPUT")[0]||i),v(),a=f("shown","dropdown",{relatedTarget:u}),h.call(l,a)}),1))},d.hide=function(){o=f("hide","dropdown",{relatedTarget:u}),h.call(l,o),o.defaultPrevented||(r.classList.remove("show"),l.classList.remove("show"),i.setAttribute("aria-expanded",!1),i.open=!1,v(),T(i),setTimeout((function(){i.Dropdown&&i.addEventListener("click",b,!1)}),1),s=f("hidden","dropdown",{relatedTarget:u}),h.call(l,s))},d.toggle=function(){l.classList.contains("show")&&i.open?d.hide():d.show()},d.dispose=function(){l.classList.contains("show")&&i.open&&d.hide(),i.removeEventListener("click",b,!1),delete i.Dropdown},(i=m(t)).Dropdown&&i.Dropdown.dispose(),l=i.parentNode,r=m(".dropdown-menu",l),Array.from(r.children).forEach((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),i.Dropdown||("tabindex"in r||r.setAttribute("tabindex","0"),i.addEventListener("click",b,!1)),c=!0===e||"true"===i.getAttribute("data-persist")||!1,i.open=!1,i.Dropdown=d}function k(t,e){var i,n,a,o,s,c,d,u,g,p,v=e||{},b=this,w=null,A={};function E(){var t=document.body.classList.contains("modal-open"),e=parseInt(getComputedStyle(document.body).paddingRight,10),i=document.documentElement.clientHeight,a=document.documentElement.scrollHeight,o=document.body.clientHeight,s=document.body.scrollHeight,l=i!==a||o!==s,r=n.clientHeight!==n.scrollHeight;d=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),n.style.paddingRight=!r&&d?d+"px":"",document.body.style.paddingRight=r||l?e+(t?0:d)+"px":"",p.length&&p.forEach((function(e){var i=getComputedStyle(e).paddingRight;e.style.paddingRight=r||l?parseInt(i,10)+(t?0:d)+"px":parseInt(i,10)+"px"}))}function k(){(u=m(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(u),u=null),null===u&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",n.style.paddingRight="",p.length&&p.forEach((function(t){t.style.paddingRight=""})))}function x(t){var e=t?"addEventListener":"removeEventListener";window[e]("resize",b.update,L),n[e]("click",S,!1),document[e]("keydown",M,!1)}function C(){n.style.display="block",E(),document.getElementsByClassName("modal show")[0]||document.body.classList.add("modal-open"),n.classList.add("show"),n.setAttribute("aria-hidden",!1),n.classList.contains("fade")?r(n,N):N()}function N(){T(n),n.isAnimating=!1,x(1),o=f("shown","modal",{relatedTarget:w}),h.call(n,o)}function P(t){n.style.display="",i&&T(i),u=m(".modal-backdrop"),1!==t&&u&&u.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(u.classList.remove("show"),r(u,k)):k(),x(),n.isAnimating=!1,c=f("hidden","modal"),h.call(n,c)}function H(t){if(!n.isAnimating){var e=t.target,a="#"+n.getAttribute("id"),o=e.getAttribute("data-target")||e.getAttribute("href"),s=i.getAttribute("data-target")||i.getAttribute("href");!n.classList.contains("show")&&(e===i&&o===a||i.contains(e)&&s===a)&&(n.modalTrigger=i,w=i,b.show(),t.preventDefault())}}function M(t){var e=t.which;!n.isAnimating&&A.keyboard&&27===e&&n.classList.contains("show")&&b.hide()}function S(t){if(!n.isAnimating){var e=t.target,i="modal"===e.getAttribute("data-dismiss"),a=e.closest('[data-dismiss="modal"]');n.classList.contains("show")&&(a||i||e===n&&"static"!==A.backdrop)&&(b.hide(),w=null,t.preventDefault())}}b.toggle=function(){n.classList.contains("show")?b.hide():b.show()},b.show=function(){if(!(n.classList.contains("show")&&n.isAnimating||(a=f("show","modal",{relatedTarget:w}),h.call(n,a),a.defaultPrevented))){n.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==n&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),A.backdrop&&(t=document.createElement("div"),null===(u=m(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(A.animation?" fade":"")),u=t,document.body.appendChild(u)),u=u),!u||e||u.classList.contains("show")||(y(u),g=l(u),u.classList.add("show")),e?C():setTimeout(C,u&&g?g:0)}},b.hide=function(t){n.classList.contains("show")&&(s=f("hide","modal"),h.call(n,s),s.defaultPrevented||(n.isAnimating=!0,n.classList.remove("show"),n.setAttribute("aria-hidden",!0),n.classList.contains("fade")&&1!==t?r(n,P):P()))},b.setContent=function(t){m(".modal-content",n).innerHTML=t},b.update=function(){n.classList.contains("show")&&E()},b.dispose=function(){b.hide(1),i?(i.removeEventListener("click",H,!1),delete i.Modal):delete n.Modal},i=m(t);var B=m(i.getAttribute("data-target")||i.getAttribute("href"));n=i.classList.contains("modal")?i:B,p=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),i.classList.contains("modal")&&(i=null),i&&i.Modal&&i.Modal.dispose(),n&&n.Modal&&n.Modal.dispose(),A.keyboard=!(!1===v.keyboard||"false"===n.getAttribute("data-keyboard")),A.backdrop="static"!==v.backdrop&&"static"!==n.getAttribute("data-backdrop")||"static",A.backdrop=!1!==v.backdrop&&"false"!==n.getAttribute("data-backdrop")&&A.backdrop,A.animation=!!n.classList.contains("fade"),A.content=v.content,n.isAnimating=!1,i&&!i.Modal&&i.addEventListener("click",H,!1),A.content&&b.setContent(A.content.trim()),i?(n.modalTrigger=i,i.Modal=b):n.Modal=b}var x="mousedown";function C(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function N(t,e,i,n){var a,o,s,l,r=e.offsetWidth,c=e.offsetHeight,d=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight,m=t.getBoundingClientRect(),f=n===document.body?C():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},h=m.right-m.left,g=m.bottom-m.top,p=e.classList.contains("popover"),v=e.getElementsByClassName("arrow")[0],L=m.top+g/2-c/2<0,b=m.left+h/2-r/2<0,y=m.left+r/2+h/2>=d,w=m.top+c/2+g/2>=u,A=m.top-c<0,T=m.left-r<0,E=m.top+c+g>=u,k=m.left+r+h>=d,x=i;x="right"===(x="left"===(x="bottom"===(x="top"===(x=("left"===x||"right"===x)&&T&&k?"top":x)&&A?"bottom":x)&&E?"top":x)&&T?"right":x)&&k?"left":x,-1===e.className.indexOf(x)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,x));var N=v.offsetWidth,P=v.offsetHeight;"left"===x||"right"===x?(o="left"===x?m.left+f.x-r-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):w?(a=m.top+f.y-c+g,s=c-g/2-N):(a=m.top+f.y-c/2+g/2,s=c/2-(p?.9*P:P/2))):"top"!==x&&"bottom"!==x||(a="top"===x?m.top+f.y-c-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):y?(o=d-1.01*r,l=r-(d-m.left)+h/2-N/2):(o=m.left+f.x-r/2+h/2,l=r/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function P(t,e){var i,n,a,o,s,l,c,d,u,g=e||{},p=this,b=null,y=0,w=/(iPhone|iPod|iPad)/.test(navigator.userAgent),A={};function T(t){null!==b&&t.target===m(".close",b)&&p.hide()}function E(t){return g[t]||i.dataset[t]||null}function k(){return E("title")}function C(){return E("content")}function P(){null===b&&i.focus()}function H(t){var e=t?"addEventListener":"removeEventListener";"hover"===A.trigger?(i[e](x,p.show),i[e](v[0],p.show),A.dismissible||i[e](v[1],p.hide)):"click"===A.trigger?i[e](A.trigger,p.toggle):"focus"===A.trigger&&(w&&i[e]("click",P,!1),i[e](A.trigger,p.toggle))}function M(t){b&&b.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";A.dismissible?document[e]("click",T,!1):("focus"===A.trigger&&i[e]("blur",p.hide),"hover"===A.trigger&&document[e]("touchstart",M,L)),window[e]("resize",p.hide,L)}function B(){S(1),h.call(i,c)}function I(){S(),A.container.removeChild(b),y=null,b=null,h.call(i,u)}p.toggle=function(){null===b?p.show():p.hide()},p.show=function(){clearTimeout(y),y=setTimeout((function(){if(null===b){if(h.call(i,l),l.defaultPrevented)return;!function(){n=k(),a=(a=C())?a.trim():null,b=document.createElement("div");var t=document.createElement("div");if(t.classList.add("arrow"),b.appendChild(t),null!==a&&null===A.template){if(b.setAttribute("role","tooltip"),null!==n){var e=document.createElement("h3");e.classList.add("popover-header"),e.innerHTML=A.dismissible?n+s:n,b.appendChild(e)}var i=document.createElement("div");i.classList.add("popover-body"),i.innerHTML=A.dismissible&&null===n?a+s:a,b.appendChild(i)}else{var l=document.createElement("div");l.innerHTML=A.template.trim(),b.className=l.firstChild.className,b.innerHTML=l.firstChild.innerHTML;var r=m(".popover-header",b),c=m(".popover-body",b);n&&r&&(r.innerHTML=n.trim()),a&&c&&(c.innerHTML=a.trim())}A.container.appendChild(b),b.style.display="block",b.classList.contains("popover")||b.classList.add("popover"),b.classList.contains(A.animation)||b.classList.add(A.animation),b.classList.contains(o)||b.classList.add(o)}(),N(i,b,A.placement,A.container),b.classList.contains("show")||b.classList.add("show"),A.animation?r(b,B):B()}}),20)},p.hide=function(){clearTimeout(y),y=setTimeout((function(){if(b&&null!==b&&b.classList.contains("show")){if(h.call(i,d),d.defaultPrevented)return;b.classList.remove("show"),A.animation?r(b,I):I()}}),A.delay)},p.dispose=function(){p.hide(),H(),delete i.Popover},(i=m(t)).Popover&&i.Popover.dispose();var D=i.getAttribute("data-trigger"),X=i.getAttribute("data-animation"),R=i.getAttribute("data-placement"),W=i.getAttribute("data-dismissible"),O=i.getAttribute("data-delay"),j=i.getAttribute("data-container");s='<button type="button" class="close">×</button>',l=f("show","popover"),c=f("shown","popover"),d=f("hide","popover"),u=f("hidden","popover");var z=m(g.container),U=m(j),q=i.closest(".modal"),F=i.closest(".fixed-top"),Y=i.closest(".fixed-bottom");A.template=g.template?g.template:null,A.trigger=g.trigger?g.trigger:D||"hover",A.animation=g.animation&&"fade"!==g.animation?g.animation:X||"fade",A.placement=g.placement?g.placement:R||"top",A.delay=parseInt(g.delay||O,10)||200,A.dismissible=!(!g.dismissible&&"true"!==W),A.container=z||U||F||Y||q||document.body,o="bs-popover-"+A.placement,n=k(),((a=C())||A.template)&&(i.Popover||H(1),i.Popover=p)}function H(t,e){var i,n,a,o,s,l=e||{},r=this,c={};function d(){var t,e,s;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?C().y:i.scrollTop,n.length!==a.length||g()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=g(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&m(t))&&(n.items.push(i),s=e.getBoundingClientRect(),n.offsets.push((n.isWindow?s.top+n.scrollTop:e.offsetTop)-c.offset))})),n.length=n.items.length)}function u(t){var e=t?"addEventListener":"removeEventListener";s[e]("scroll",r.refresh,L),window[e]("resize",r.refresh,L)}function g(){return s.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function p(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function v(t){var e,a=t;p(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),h.call(i,f("activate","scrollspy",{relatedTarget:n.activeItem}))}r.refresh=function(){if(d(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&v(t)}else{if(n.activeItem&&n.scrollTop<n.offsets[0]&&n.offsets[0]>0)return n.activeItem=null,void p();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop<n.offsets[e+1])&&v(n.items[e]),e-=1}},r.dispose=function(){u(),delete i.ScrollSpy},(i=m(t)).ScrollSpy&&i.ScrollSpy.dispose();var b=i.getAttribute("data-target"),y=i.getAttribute("data-offset");o=m(l.target||b),s=i.clientHeight<i.scrollHeight?i:window,o&&(c.offset=+(l.offset||y)||10,(n={}).length=0,n.items=[],n.offsets=[],n.isWindow=s===window,n.activeItem=null,n.scrollHeight=0,n.maxScroll=0,i.ScrollSpy||u(1),r.refresh(),i.ScrollSpy=r)}function M(t,i){var n,a,o,s,l,c,d,u,g,p,v,L,b,w,A=i||{},T=this,E=!1;function k(){E.style.height="",E.classList.remove("collapsing"),a.isAnimating=!1}function x(){E?b?k():setTimeout((function(){E.style.height=w+"px",y(E),r(E,k)}),50):a.isAnimating=!1,l=f("shown","tab",{relatedTarget:g}),h.call(u,l)}function C(){E&&(p.style.float="left",v.style.float="left",L=p.scrollHeight),s=f("show","tab",{relatedTarget:g}),d=f("hidden","tab",{relatedTarget:u}),h.call(u,s),s.defaultPrevented||(v.classList.add("active"),p.classList.remove("active"),E&&(w=v.scrollHeight,b=w===L,E.classList.add("collapsing"),E.style.height=L+"px",y(E),p.style.float="",v.style.float=""),v.classList.contains("fade")?setTimeout((function(){v.classList.add("show"),r(v,x)}),20):x(),h.call(g,d))}function N(){var t=a.getElementsByClassName("active");return 1!==t.length||t[0].parentNode.classList.contains("dropdown")?t.length>1&&(g=t[t.length-1]):g=t[0],g}function P(){return m(N().getAttribute("href"))}function H(t){t.preventDefault(),u=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(u=u||n).classList.contains("active")){if(v=m(u.getAttribute("href")),g=N(),p=P(),c=f("hide","tab",{relatedTarget:u}),h.call(g,c),c.defaultPrevented)return;a.isAnimating=!0,g.classList.remove("active"),g.setAttribute("aria-selected","false"),u.classList.add("active"),u.setAttribute("aria-selected","true"),o&&(n.parentNode.classList.contains("dropdown-menu")?o.classList.contains("active")||o.classList.add("active"):o.classList.contains("active")&&o.classList.remove("active")),p.classList.contains("fade")?(p.classList.remove("show"),r(p,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=m(t)).Tab&&n.Tab.dispose();var M=n.getAttribute("data-height");a=n.closest(".nav"),o=a&&m(".dropdown-toggle",a);var S=!(!e||!1===A.height||"false"===M);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),S&&(E=P().parentNode),n.Tab=T}function S(t,e){var i,n,a,o,s,l,c=e||{},d=this,u=0,g={};function p(){n.classList.remove("showing"),n.classList.add("show"),h.call(n,s),g.autohide&&d.hide()}function v(){n.classList.add("hide"),h.call(n,l)}function L(){n.classList.remove("show"),g.animation?r(n,v):v()}function b(){clearTimeout(u),i.removeEventListener("click",d.hide,!1),delete i.Toast}d.show=function(){if(n&&!n.classList.contains("show")){if(h.call(n,a),a.defaultPrevented)return;g.animation&&n.classList.add("fade"),n.classList.remove("hide"),y(n),n.classList.add("showing"),g.animation?r(n,p):p()}},d.hide=function(t){if(n&&n.classList.contains("show")){if(h.call(n,o),o.defaultPrevented)return;t?L():u=setTimeout(L,g.delay)}},d.dispose=function(){g.animation?r(n,b):b()},(i=m(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=f("show","toast"),o=f("hide","toast"),s=f("shown","toast"),l=f("hidden","toast"),g.animation=!1===c.animation||"false"===w?0:1,g.autohide=!1===c.autohide||"false"===A?0:1,g.delay=parseInt(c.delay||T,10)||500,i.Toast||i.addEventListener("click",d.hide,!1),i.Toast=d}function B(t,e){var i,n,a,o,s,l,c,d=e||{},u=this,g=null,p=0,b={};function y(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function w(t){g&&g.contains(t.target)||t.target===i||i.contains(t.target)||u.hide()}function A(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",w,L),window[e]("resize",u.hide,L)}function T(){A(1),h.call(i,s)}function E(){A(),b.container.removeChild(g),g=null,p=null,h.call(i,c)}function k(t){var e=t?"addEventListener":"removeEventListener";i[e](x,u.show,!1),i[e](v[0],u.show,!1),i[e](v[1],u.hide,!1)}u.show=function(){clearTimeout(p),p=setTimeout((function(){if(null===g){if(h.call(i,o),o.defaultPrevented)return;!1!==function(){if(n=y()){if(g=document.createElement("div"),b.template){var t=document.createElement("div");t.innerHTML=b.template.trim(),g.className=t.firstChild.className,g.innerHTML=t.firstChild.innerHTML,m(".tooltip-inner",g).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),g.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),g.appendChild(i),i.innerHTML=n}g.style.left="0",g.style.top="0",g.setAttribute("role","tooltip"),g.classList.contains("tooltip")||g.classList.add("tooltip"),g.classList.contains(b.animation)||g.classList.add(b.animation),g.classList.contains(a)||g.classList.add(a),b.container.appendChild(g)}}()&&(N(i,g,b.placement,b.container),g.classList.contains("show")||g.classList.add("show"),b.animation?r(g,T):T())}}),20)},u.hide=function(){clearTimeout(p),p=setTimeout((function(){if(g&&g.classList.contains("show")){if(h.call(i,l),l.defaultPrevented)return;g.classList.remove("show"),b.animation?r(g,E):E()}}),b.delay)},u.toggle=function(){g?u.hide():u.show()},u.dispose=function(){k(),u.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=m(t)).Tooltip&&i.Tooltip.dispose();var C=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),M=i.getAttribute("data-container"),S=m(d.container),B=m(M),I=i.closest(".modal");o=f("show","tooltip"),s=f("shown","tooltip"),l=f("hide","tooltip"),c=f("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");b.animation=d.animation&&"fade"!==d.animation?d.animation:C||"fade",b.placement=d.placement?d.placement:P||"top",b.template=d.template?d.template:null,b.delay=parseInt(d.delay||H,10)||200,b.container=S||B||D||X||I||document.body,a="bs-tooltip-"+b.placement,(n=y())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),k(1)),i.Tooltip=u)}var I={};function D(t){var e=t instanceof Element?t:document;Object.keys(I).forEach((function(t){var i,n;i=I[t][0],n=e.querySelectorAll(I[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}I.Alert=[g,'[data-dismiss="alert"]'],I.Button=[p,'[data-toggle="buttons"]'],I.Carousel=[w,'[data-ride="carousel"]'],I.Collapse=[A,'[data-toggle="collapse"]'],I.Dropdown=[E,'[data-toggle="dropdown"]'],I.Modal=[k,'[data-toggle="modal"]'],I.Popover=[P,'[data-toggle="popover"],[data-tip="popover"]'],I.ScrollSpy=[H,'[data-spy="scroll"]'],I.Tab=[M,'[data-toggle="tab"]'],I.Toast=[S,'[data-dismiss="toast"]'],I.Tooltip=[B,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?D():document.addEventListener("DOMContentLoaded",(function t(){D(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);var X={Alert:g,Button:p,Carousel:w,Collapse:A,Dropdown:E,Modal:k,Popover:P,ScrollSpy:H,Tab:M,Toast:S,Tooltip:B,initCallback:D,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(I).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(I[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:I,Version:"4.1.0alpha5"};export{X as default};
// Native JavaScript for Bootstrap v4.1.0alpha6 | 2022 © dnp_theme | MIT-License
var t=document.head,e="webkitTransition"in t.style||"transition"in t.style,i="webkitTransition"in t.style?"webkitTransitionEnd":"transitionend",n="webkitTransition"in t.style?"webkitTransitionDelay":"transitionDelay",a="webkitTransition"in t.style?"webkitTransitionProperty":"transitionProperty";function o(t,e){var i=getComputedStyle(t);return e in i?i[e]:""}var s="webkitTransition"in t.style?"webkitTransitionDuration":"transitionDuration";function l(t){var i=o(t,a),n=o(t,s),l=n.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(n)*l:0;return Number.isNaN(r)?0:r}function r(t,s){var r=0,c=new Event(i),d=l(t),u=function(t){var i=o(t,a),s=o(t,n),l=s.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(s)*l:0;return Number.isNaN(r)?0:r}(t);if(e&&d){var m=function(e){e.target===t&&(s.apply(t,[e]),t.removeEventListener(i,m),r=1)};t.addEventListener(i,m),setTimeout((function(){r||t.dispatchEvent(c)}),d+u+17)}else s.apply(t,[c])}function c(t){return t instanceof HTMLElement?t.ownerDocument:t instanceof Window?t.document:window.document}var d=[Document,Element,HTMLElement],u=[Element,HTMLElement];function m(t,e){var i=d.some((function(t){return e instanceof t}))?e:c();return u.some((function(e){return t instanceof e}))?t:i.querySelector(t)}function f(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function h(t){this&&this.dispatchEvent(t)}function g(t){var e,i,n=this,a=f("close","alert"),o=f("closed","alert");function s(t){e[t?"addEventListener":"removeEventListener"]("click",l,!1)}function l(t){i=t&&t.target.closest(".alert"),(e=m('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function c(){s(),i.parentNode.removeChild(i),h.call(i,o)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(h.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?r(i,c):c()}},n.dispose=function(){s(),delete e.Alert},e=m(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||s(1),n.element=e,e.Alert=n}function p(t){var e,i,n=f("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(h.call(l,n),h.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(h.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function s(t){32===(t.which||t.keyCode)&&t.preventDefault()}function l(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function r(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",s,!1),e[i]("focusin",l,!1),e[i]("focusout",l,!1)}this.dispose=function(){r(),delete e.Button},(e=m(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||r(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=m("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var v="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],L={passive:!0};var b=function(t){var e=function(t,e){var i=t.getBoundingClientRect(),n=i.width,a=i.height,o=i.top,s=i.right,l=i.bottom,r=i.left,c=1,d=1;if(e&&t instanceof HTMLElement){var u=t.offsetWidth,m=t.offsetHeight;c=u>0&&Math.round(n)/u||1,d=m>0&&Math.round(a)/m||1}return{width:n/c,height:a/d,top:o/d,right:s/c,bottom:l/d,left:r/c,x:r/c,y:o/d}}(t),i=e.top,n=e.bottom;return i<=c(t).documentElement.clientHeight&&n>=0},y=function(t){return t.offsetHeight};function w(t,e){var i,n,a,o,s,c,d,u,g,p,w,A,T,E=e||{},k=this;function x(){!1===c.interval||o.classList.contains("paused")||(o.classList.add("paused"),s.isSliding||(clearInterval(s.timer),s.timer=null))}function C(){!1!==c.interval&&o.classList.contains("paused")&&(o.classList.remove("paused"),s.isSliding||(clearInterval(s.timer),s.timer=null,k.cycle()))}function N(t){if(t.preventDefault(),!s.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(s.index=+e.getAttribute("data-slide-to"),k.slideTo(s.index))}}function P(t){if(t.preventDefault(),!s.isSliding){var e=t.currentTarget||t.srcElement;e===w?s.index+=1:e===p&&(s.index-=1),k.slideTo(s.index)}}function H(t){var e=t.which;if(!s.isSliding){switch(e){case 39:s.index+=1;break;case 37:s.index-=1;break;default:return}k.slideTo(s.index)}}function M(t){var e=t?"addEventListener":"removeEventListener";c.pause&&c.interval&&(o[e](v[0],x,!1),o[e](v[1],C,!1),o[e]("touchstart",x,L),o[e]("touchend",C,L)),c.touch&&g.length>1&&o[e]("touchstart",B,L),w&&w[e]("click",P,!1),p&&p[e]("click",P,!1),A&&A[e]("click",N,!1),c.keyboard&&window[e]("keydown",H,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";o[e]("touchmove",I,L),o[e]("touchend",D,L)}function B(t){s.isTouch||(s.touchPosition.startX=t.changedTouches[0].pageX,o.contains(t.target)&&(s.isTouch=!0,S(1)))}function I(t){s.isTouch?(s.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function D(t){if(s.isTouch&&!s.isSliding&&(s.touchPosition.endX=s.touchPosition.currentX||t.changedTouches[0].pageX,s.isTouch)){if((!o.contains(t.target)||!o.contains(t.relatedTarget))&&Math.abs(s.touchPosition.startX-s.touchPosition.endX)<75)return;s.touchPosition.currentX<s.touchPosition.startX?s.index+=1:s.touchPosition.currentX>s.touchPosition.startX&&(s.index-=1),s.isTouch=!1,k.slideTo(s.index),S()}}function X(t){Array.from(T).forEach((function(t){return t.classList.remove("active")})),T[t]&&T[t].classList.add("active")}function R(t){if(s.touchPosition){var e=s.index,i=t&&t.target!==g[e]?1e3*t.elapsedTime+100:20,n=k.getActiveIndex(),a="left"===s.direction?"next":"prev";s.isSliding&&setTimeout((function(){s.touchPosition&&(s.isSliding=!1,g[e].classList.add("active"),g[n].classList.remove("active"),g[e].classList.remove("carousel-item-"+a),g[e].classList.remove("carousel-item-"+s.direction),g[n].classList.remove("carousel-item-"+s.direction),h.call(o,u),document.hidden||!c.interval||o.classList.contains("paused")||k.cycle())}),i)}}if(k.cycle=function(){s.timer&&(clearInterval(s.timer),s.timer=null),s.timer=setInterval((function(){var t=s.index||k.getActiveIndex();b(o)&&(t+=1,k.slideTo(t))}),c.interval)},k.slideTo=function(t){if(!s.isSliding){var e=k.getActiveIndex(),i=t;if(e!==i){e<i||0===e&&i===g.length-1?s.direction="left":(e>i||e===g.length-1&&0===i)&&(s.direction="right"),i<0?i=g.length-1:i>=g.length&&(i=0);var n="left"===s.direction?"next":"prev",a={relatedTarget:g[i],direction:s.direction,from:e,to:i};d=f("slide","carousel",a),u=f("slid","carousel",a),h.call(o,d),d.defaultPrevented||(s.index=i,s.isSliding=!0,clearInterval(s.timer),s.timer=null,X(i),l(g[i])&&o.classList.contains("slide")?(g[i].classList.add("carousel-item-"+n),y(g[i]),g[i].classList.add("carousel-item-"+s.direction),g[e].classList.add("carousel-item-"+s.direction),r(g[i],R)):(g[i].classList.add("active"),y(g[i]),g[e].classList.remove("active"),setTimeout((function(){s.isSliding=!1,c.interval&&o&&!o.classList.contains("paused")&&k.cycle(),h.call(o,u)}),100)))}}},k.getActiveIndex=function(){return Array.from(g).indexOf(o.getElementsByClassName("carousel-item active")[0])||0},k.dispose=function(){var t=["left","right","prev","next"];Array.from(g).forEach((function(e,i){e.classList.contains("active")&&X(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(s.timer),M(),s={},c={},delete o.Carousel},(o=m(t)).Carousel&&o.Carousel.dispose(),g=o.getElementsByClassName("carousel-item"),i=o.getElementsByClassName("carousel-control-prev"),p=i[0],n=o.getElementsByClassName("carousel-control-next"),w=n[0],a=o.getElementsByClassName("carousel-indicators"),A=a[0],T=A&&A.getElementsByTagName("LI")||[],!(g.length<2)){var W=o.getAttribute("data-interval"),O="false"===W?0:+W,j="false"===o.getAttribute("data-touch")?0:1,z="hover"===o.getAttribute("data-pause")||!1,U="true"===o.getAttribute("data-keyboard")||!1,q=E.interval,F=E.touch;(c={}).keyboard=!0===E.keyboard||U,c.pause=!("hover"!==E.pause&&!z)&&"hover",c.touch=F||j,c.interval=5e3,"number"==typeof q?c.interval=q:!1===q||0===O||!1===O?c.interval=0:Number.isNaN(O)||(c.interval=O),k.getActiveIndex()<0&&(g.length&&g[0].classList.add("active"),T.length&&X(0)),(s={}).direction="left",s.index=0,s.timer=null,s.isSliding=!1,s.isTouch=!1,s.touchPosition={startX:0,currentX:0,endX:0},M(1),c.interval&&k.cycle(),o.Carousel=k}}function A(t,e){var i,n,a,o,s,l,c,d=e||{},u=this,g=null,p=null;function v(t,e){h.call(t,l),l.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),y(t),t.style.height="0px",r(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",h.call(t,c)})))}u.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(p.classList.contains("show")?u.hide():u.show())},u.hide=function(){p.isAnimating||(v(p,i),i.classList.add("collapsed"))},u.show=function(){var t,e,l;g&&(t=g.getElementsByClassName("collapse show"),n=t[0],a=n&&(m('[data-target="#'+n.id+'"]',g)||m('[href="#'+n.id+'"]',g))),p.isAnimating||(a&&n!==p&&(v(n,a),a.classList.add("collapsed")),e=p,l=i,h.call(e,o),o.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",r(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",h.call(e,s)}))),i.classList.remove("collapsed"))},u.dispose=function(){i.removeEventListener("click",u.toggle,!1),delete i.Collapse},(i=m(t)).Collapse&&i.Collapse.dispose();var L=i.getAttribute("data-parent");o=f("show","collapse"),s=f("shown","collapse"),l=f("hide","collapse"),c=f("hidden","collapse"),null!==(p=m(d.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(p.isAnimating=!1);var b=d.parent||L;g=b?i.closest(b):null,i.Collapse||i.addEventListener("click",u.toggle,!1),i.Collapse=u}var T=function(t){return t.focus()};function E(t,e){var i,n,a,o,s,l,r,c,d=this,u=null,g=[];function p(t){(t.hasAttribute("href")&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.hasAttribute("href")&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function v(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",L,!1),document[t]("keydown",y,!1),document[t]("keyup",w,!1),document[t]("focus",L,!1)}function L(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==r&&!r.contains(e))&&(e!==r&&!r.contains(e)||!c&&!n)&&(u=e===i||i.contains(e)?i:null,d.hide(),p.call(t,e))}}function b(t){u=i,d.show(),p.call(t,t.target)}function y(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function w(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=r.contains(n),s=n.parentNode===r||n.parentNode.parentNode===r,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l<g.length-1?l+1:l),g[l]&&T(g[l])),(g.length&&s||!g.length&&(o||a)||!o)&&i.open&&27===e&&(d.toggle(),u=null)}d.show=function(){n=f("show","dropdown",{relatedTarget:u}),h.call(l,n),n.defaultPrevented||(r.classList.add("show"),l.classList.add("show"),i.setAttribute("aria-expanded",!0),i.open=!0,i.removeEventListener("click",b,!1),setTimeout((function(){T(r.getElementsByTagName("INPUT")[0]||i),v(),a=f("shown","dropdown",{relatedTarget:u}),h.call(l,a)}),1))},d.hide=function(){o=f("hide","dropdown",{relatedTarget:u}),h.call(l,o),o.defaultPrevented||(r.classList.remove("show"),l.classList.remove("show"),i.setAttribute("aria-expanded",!1),i.open=!1,v(),T(i),setTimeout((function(){i.Dropdown&&i.addEventListener("click",b,!1)}),1),s=f("hidden","dropdown",{relatedTarget:u}),h.call(l,s))},d.toggle=function(){l.classList.contains("show")&&i.open?d.hide():d.show()},d.dispose=function(){l.classList.contains("show")&&i.open&&d.hide(),i.removeEventListener("click",b,!1),delete i.Dropdown},(i=m(t)).Dropdown&&i.Dropdown.dispose(),l=i.parentNode,r=m(".dropdown-menu",l),Array.from(r.children).forEach((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),i.Dropdown||("tabindex"in r||r.setAttribute("tabindex","0"),i.addEventListener("click",b,!1)),c=!0===e||"true"===i.getAttribute("data-persist")||!1,i.open=!1,i.Dropdown=d}function k(t,e){var i,n,a,o,s,c,d,u,g,p,v=e||{},b=this,w=null,A={};function E(){var t=document.body.classList.contains("modal-open"),e=parseInt(getComputedStyle(document.body).paddingRight,10),i=document.documentElement.clientHeight,a=document.documentElement.scrollHeight,o=document.body.clientHeight,s=document.body.scrollHeight,l=i!==a||o!==s,r=n.clientHeight!==n.scrollHeight;d=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),n.style.paddingRight=!r&&d?d+"px":"",document.body.style.paddingRight=r||l?e+(t?0:d)+"px":"",p.length&&p.forEach((function(e){var i=getComputedStyle(e).paddingRight;e.style.paddingRight=r||l?parseInt(i,10)+(t?0:d)+"px":parseInt(i,10)+"px"}))}function k(){(u=m(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(u),u=null),null===u&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",n.style.paddingRight="",p.length&&p.forEach((function(t){t.style.paddingRight=""})))}function x(t){var e=t?"addEventListener":"removeEventListener";window[e]("resize",b.update,L),n[e]("click",S,!1),document[e]("keydown",M,!1)}function C(){n.style.display="block",E(),document.getElementsByClassName("modal show")[0]||document.body.classList.add("modal-open"),n.classList.add("show"),n.setAttribute("aria-hidden",!1),n.classList.contains("fade")?r(n,N):N()}function N(){T(n),n.isAnimating=!1,x(1),o=f("shown","modal",{relatedTarget:w}),h.call(n,o)}function P(t){n.style.display="",i&&T(i),u=m(".modal-backdrop"),1!==t&&u&&u.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(u.classList.remove("show"),r(u,k)):k(),x(),n.isAnimating=!1,c=f("hidden","modal"),h.call(n,c)}function H(t){if(!n.isAnimating){var e=t.target,a="#"+n.getAttribute("id"),o=e.getAttribute("data-target")||e.getAttribute("href"),s=i.getAttribute("data-target")||i.getAttribute("href");!n.classList.contains("show")&&(e===i&&o===a||i.contains(e)&&s===a)&&(n.modalTrigger=i,w=i,b.show(),t.preventDefault())}}function M(t){var e=t.which;!n.isAnimating&&A.keyboard&&27===e&&n.classList.contains("show")&&b.hide()}function S(t){if(!n.isAnimating){var e=t.target,i="modal"===e.getAttribute("data-dismiss"),a=e.closest('[data-dismiss="modal"]');n.classList.contains("show")&&(a||i||e===n&&"static"!==A.backdrop)&&(b.hide(),w=null,t.preventDefault())}}b.toggle=function(){n.classList.contains("show")?b.hide():b.show()},b.show=function(){if(!(n.classList.contains("show")&&n.isAnimating||(a=f("show","modal",{relatedTarget:w}),h.call(n,a),a.defaultPrevented))){n.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==n&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),A.backdrop&&(t=document.createElement("div"),null===(u=m(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(A.animation?" fade":"")),u=t,document.body.appendChild(u)),u=u),!u||e||u.classList.contains("show")||(y(u),g=l(u),u.classList.add("show")),e?C():setTimeout(C,u&&g?g:0)}},b.hide=function(t){n.classList.contains("show")&&(s=f("hide","modal"),h.call(n,s),s.defaultPrevented||(n.isAnimating=!0,n.classList.remove("show"),n.setAttribute("aria-hidden",!0),n.classList.contains("fade")&&1!==t?r(n,P):P()))},b.setContent=function(t){m(".modal-content",n).innerHTML=t},b.update=function(){n.classList.contains("show")&&E()},b.dispose=function(){b.hide(1),i?(i.removeEventListener("click",H,!1),delete i.Modal):delete n.Modal},i=m(t);var B=m(i.getAttribute("data-target")||i.getAttribute("href"));n=i.classList.contains("modal")?i:B,p=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),i.classList.contains("modal")&&(i=null),i&&i.Modal&&i.Modal.dispose(),n&&n.Modal&&n.Modal.dispose(),A.keyboard=!(!1===v.keyboard||"false"===n.getAttribute("data-keyboard")),A.backdrop="static"!==v.backdrop&&"static"!==n.getAttribute("data-backdrop")||"static",A.backdrop=!1!==v.backdrop&&"false"!==n.getAttribute("data-backdrop")&&A.backdrop,A.animation=!!n.classList.contains("fade"),A.content=v.content,n.isAnimating=!1,i&&!i.Modal&&i.addEventListener("click",H,!1),A.content&&b.setContent(A.content.trim()),i?(n.modalTrigger=i,i.Modal=b):n.Modal=b}var x="mousedown";function C(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function N(t,e,i,n){var a,o,s,l,r=e.offsetWidth,c=e.offsetHeight,d=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight,m=t.getBoundingClientRect(),f=n===document.body?C():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},h=m.right-m.left,g=m.bottom-m.top,p=e.classList.contains("popover"),v=e.getElementsByClassName("arrow")[0],L=m.top+g/2-c/2<0,b=m.left+h/2-r/2<0,y=m.left+r/2+h/2>=d,w=m.top+c/2+g/2>=u,A=m.top-c<0,T=m.left-r<0,E=m.top+c+g>=u,k=m.left+r+h>=d,x=i;x="right"===(x="left"===(x="bottom"===(x="top"===(x=("left"===x||"right"===x)&&T&&k?"top":x)&&A?"bottom":x)&&E?"top":x)&&T?"right":x)&&k?"left":x,-1===e.className.indexOf(x)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,x));var N=v.offsetWidth,P=v.offsetHeight;"left"===x||"right"===x?(o="left"===x?m.left+f.x-r-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):w?(a=m.top+f.y-c+g,s=c-g/2-N):(a=m.top+f.y-c/2+g/2,s=c/2-(p?.9*P:P/2))):"top"!==x&&"bottom"!==x||(a="top"===x?m.top+f.y-c-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):y?(o=d-1.01*r,l=r-(d-m.left)+h/2-N/2):(o=m.left+f.x-r/2+h/2,l=r/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function P(t,e){var i,n,a,o,s,l,c,d,u,g=e||{},p=this,b=null,y=0,w=/(iPhone|iPod|iPad)/.test(navigator.userAgent),A={};function T(t){null!==b&&t.target===m(".close",b)&&p.hide()}function E(t){return g[t]||i.dataset[t]||null}function k(){return E("title")}function C(){return E("content")}function P(){null===b&&i.focus()}function H(t){var e=t?"addEventListener":"removeEventListener";"hover"===A.trigger?(i[e](x,p.show),i[e](v[0],p.show),A.dismissible||i[e](v[1],p.hide)):"click"===A.trigger?i[e](A.trigger,p.toggle):"focus"===A.trigger&&(w&&i[e]("click",P,!1),i[e](A.trigger,p.toggle))}function M(t){b&&b.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";A.dismissible?document[e]("click",T,!1):("focus"===A.trigger&&i[e]("blur",p.hide),"hover"===A.trigger&&document[e]("touchstart",M,L)),window[e]("resize",p.hide,L)}function B(){S(1),h.call(i,c)}function I(){S(),A.container.removeChild(b),y=null,b=null,h.call(i,u)}p.toggle=function(){null===b?p.show():p.hide()},p.show=function(){clearTimeout(y),y=setTimeout((function(){if(null===b){if(h.call(i,l),l.defaultPrevented)return;!function(){n=k(),a=(a=C())?a.trim():null,b=document.createElement("div");var t=document.createElement("div");if(t.classList.add("arrow"),b.appendChild(t),null!==a&&null===A.template){if(b.setAttribute("role","tooltip"),null!==n){var e=document.createElement("h3");e.classList.add("popover-header"),e.innerHTML=A.dismissible?n+s:n,b.appendChild(e)}var i=document.createElement("div");i.classList.add("popover-body"),i.innerHTML=A.dismissible&&null===n?a+s:a,b.appendChild(i)}else{var l=document.createElement("div");l.innerHTML=A.template.trim(),b.className=l.firstChild.className,b.innerHTML=l.firstChild.innerHTML;var r=m(".popover-header",b),c=m(".popover-body",b);n&&r&&(r.innerHTML=n.trim()),a&&c&&(c.innerHTML=a.trim())}A.container.appendChild(b),b.style.display="block",b.classList.contains("popover")||b.classList.add("popover"),b.classList.contains(A.animation)||b.classList.add(A.animation),b.classList.contains(o)||b.classList.add(o)}(),N(i,b,A.placement,A.container),b.classList.contains("show")||b.classList.add("show"),A.animation?r(b,B):B()}}),20)},p.hide=function(){clearTimeout(y),y=setTimeout((function(){if(b&&null!==b&&b.classList.contains("show")){if(h.call(i,d),d.defaultPrevented)return;b.classList.remove("show"),A.animation?r(b,I):I()}}),A.delay)},p.dispose=function(){p.hide(),H(),delete i.Popover},(i=m(t)).Popover&&i.Popover.dispose();var D=i.getAttribute("data-trigger"),X=i.getAttribute("data-animation"),R=i.getAttribute("data-placement"),W=i.getAttribute("data-dismissible"),O=i.getAttribute("data-delay"),j=i.getAttribute("data-container");s='<button type="button" class="close">×</button>',l=f("show","popover"),c=f("shown","popover"),d=f("hide","popover"),u=f("hidden","popover");var z=m(g.container),U=m(j),q=i.closest(".modal"),F=i.closest(".fixed-top"),Y=i.closest(".fixed-bottom");A.template=g.template?g.template:null,A.trigger=g.trigger?g.trigger:D||"hover",A.animation=g.animation&&"fade"!==g.animation?g.animation:X||"fade",A.placement=g.placement?g.placement:R||"top",A.delay=parseInt(g.delay||O,10)||200,A.dismissible=!(!g.dismissible&&"true"!==W),A.container=z||U||F||Y||q||document.body,o="bs-popover-"+A.placement,n=k(),((a=C())||A.template)&&(i.Popover||H(1),i.Popover=p)}function H(t,e){var i,n,a,o,s,l=e||{},r=this,c={};function d(){var t,e,s;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?C().y:i.scrollTop,n.length!==a.length||g()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=g(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&m(t))&&(n.items.push(i),s=e.getBoundingClientRect(),n.offsets.push((n.isWindow?s.top+n.scrollTop:e.offsetTop)-c.offset))})),n.length=n.items.length)}function u(t){var e=t?"addEventListener":"removeEventListener";s[e]("scroll",r.refresh,L),window[e]("resize",r.refresh,L)}function g(){return s.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function p(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function v(t){var e,a=t;p(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),h.call(i,f("activate","scrollspy",{relatedTarget:n.activeItem}))}r.refresh=function(){if(d(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&v(t)}else{if(n.activeItem&&n.scrollTop<n.offsets[0]&&n.offsets[0]>0)return n.activeItem=null,void p();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop<n.offsets[e+1])&&v(n.items[e]),e-=1}},r.dispose=function(){u(),delete i.ScrollSpy},(i=m(t)).ScrollSpy&&i.ScrollSpy.dispose();var b=i.getAttribute("data-target"),y=i.getAttribute("data-offset");o=m(l.target||b),s=i.clientHeight<i.scrollHeight?i:window,o&&(c.offset=+(l.offset||y)||10,(n={}).length=0,n.items=[],n.offsets=[],n.isWindow=s===window,n.activeItem=null,n.scrollHeight=0,n.maxScroll=0,i.ScrollSpy||u(1),r.refresh(),i.ScrollSpy=r)}function M(t,i){var n,a,o,s,l,c,d,u,g,p,v,L,b,w,A=i||{},T=this,E=!1;function k(){E.style.height="",E.classList.remove("collapsing"),a.isAnimating=!1}function x(){E?b?k():setTimeout((function(){E.style.height=w+"px",y(E),r(E,k)}),50):a.isAnimating=!1,l=f("shown","tab",{relatedTarget:g}),h.call(u,l)}function C(){E&&(p.style.float="left",v.style.float="left",L=p.scrollHeight),s=f("show","tab",{relatedTarget:g}),d=f("hidden","tab",{relatedTarget:u}),h.call(u,s),s.defaultPrevented||(v.classList.add("active"),p.classList.remove("active"),E&&(w=v.scrollHeight,b=w===L,E.classList.add("collapsing"),E.style.height=L+"px",y(E),p.style.float="",v.style.float=""),v.classList.contains("fade")?setTimeout((function(){v.classList.add("show"),r(v,x)}),20):x(),h.call(g,d))}function N(){var t=a.getElementsByClassName("active");return 1!==t.length||t[0].parentNode.classList.contains("dropdown")?t.length>1&&(g=t[t.length-1]):g=t[0],g}function P(){return m(N().getAttribute("href"))}function H(t){t.preventDefault(),u=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(u=u||n).classList.contains("active")){if(v=m(u.getAttribute("href")),g=N(),p=P(),c=f("hide","tab",{relatedTarget:u}),h.call(g,c),c.defaultPrevented)return;a.isAnimating=!0,g.classList.remove("active"),g.setAttribute("aria-selected","false"),u.classList.add("active"),u.setAttribute("aria-selected","true"),o&&(n.parentNode.classList.contains("dropdown-menu")?o.classList.contains("active")||o.classList.add("active"):o.classList.contains("active")&&o.classList.remove("active")),p.classList.contains("fade")?(p.classList.remove("show"),r(p,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=m(t)).Tab&&n.Tab.dispose();var M=n.getAttribute("data-height");a=n.closest(".nav"),o=a&&m(".dropdown-toggle",a);var S=!(!e||!1===A.height||"false"===M);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),S&&(E=P().parentNode),n.Tab=T}function S(t,e){var i,n,a,o,s,l,c=e||{},d=this,u=0,g={};function p(){n.classList.remove("showing"),n.classList.add("show"),h.call(n,s),g.autohide&&d.hide()}function v(){n.classList.add("hide"),h.call(n,l)}function L(){n.classList.remove("show"),g.animation?r(n,v):v()}function b(){clearTimeout(u),i.removeEventListener("click",d.hide,!1),delete i.Toast}d.show=function(){if(n&&!n.classList.contains("show")){if(h.call(n,a),a.defaultPrevented)return;g.animation&&n.classList.add("fade"),n.classList.remove("hide"),y(n),n.classList.add("showing"),g.animation?r(n,p):p()}},d.hide=function(t){if(n&&n.classList.contains("show")){if(h.call(n,o),o.defaultPrevented)return;t?L():u=setTimeout(L,g.delay)}},d.dispose=function(){g.animation?r(n,b):b()},(i=m(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=f("show","toast"),o=f("hide","toast"),s=f("shown","toast"),l=f("hidden","toast"),g.animation=!1===c.animation||"false"===w?0:1,g.autohide=!1===c.autohide||"false"===A?0:1,g.delay=parseInt(c.delay||T,10)||500,i.Toast||i.addEventListener("click",d.hide,!1),i.Toast=d}function B(t,e){var i,n,a,o,s,l,c,d=e||{},u=this,g=null,p=0,b={};function y(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function w(t){g&&g.contains(t.target)||t.target===i||i.contains(t.target)||u.hide()}function A(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",w,L),window[e]("resize",u.hide,L)}function T(){A(1),h.call(i,s)}function E(){A(),b.container.removeChild(g),g=null,p=null,h.call(i,c)}function k(t){var e=t?"addEventListener":"removeEventListener";i[e](x,u.show,!1),i[e](v[0],u.show,!1),i[e](v[1],u.hide,!1)}u.show=function(){clearTimeout(p),p=setTimeout((function(){if(null===g){if(h.call(i,o),o.defaultPrevented)return;!1!==function(){if(n=y()){if(g=document.createElement("div"),b.template){var t=document.createElement("div");t.innerHTML=b.template.trim(),g.className=t.firstChild.className,g.innerHTML=t.firstChild.innerHTML,m(".tooltip-inner",g).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),g.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),g.appendChild(i),i.innerHTML=n}g.style.left="0",g.style.top="0",g.setAttribute("role","tooltip"),g.classList.contains("tooltip")||g.classList.add("tooltip"),g.classList.contains(b.animation)||g.classList.add(b.animation),g.classList.contains(a)||g.classList.add(a),b.container.appendChild(g)}}()&&(N(i,g,b.placement,b.container),g.classList.contains("show")||g.classList.add("show"),b.animation?r(g,T):T())}}),20)},u.hide=function(){clearTimeout(p),p=setTimeout((function(){if(g&&g.classList.contains("show")){if(h.call(i,l),l.defaultPrevented)return;g.classList.remove("show"),b.animation?r(g,E):E()}}),b.delay)},u.toggle=function(){g?u.hide():u.show()},u.dispose=function(){k(),u.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=m(t)).Tooltip&&i.Tooltip.dispose();var C=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),M=i.getAttribute("data-container"),S=m(d.container),B=m(M),I=i.closest(".modal");o=f("show","tooltip"),s=f("shown","tooltip"),l=f("hide","tooltip"),c=f("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");b.animation=d.animation&&"fade"!==d.animation?d.animation:C||"fade",b.placement=d.placement?d.placement:P||"top",b.template=d.template?d.template:null,b.delay=parseInt(d.delay||H,10)||200,b.container=S||B||D||X||I||document.body,a="bs-tooltip-"+b.placement,(n=y())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),k(1)),i.Tooltip=u)}var I={};function D(t){var e=t instanceof Element?t:document;Object.keys(I).forEach((function(t){var i,n;i=I[t][0],n=e.querySelectorAll(I[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}I.Alert=[g,'[data-dismiss="alert"]'],I.Button=[p,'[data-toggle="buttons"]'],I.Carousel=[w,'[data-ride="carousel"]'],I.Collapse=[A,'[data-toggle="collapse"]'],I.Dropdown=[E,'[data-toggle="dropdown"]'],I.Modal=[k,'[data-toggle="modal"]'],I.Popover=[P,'[data-toggle="popover"],[data-tip="popover"]'],I.ScrollSpy=[H,'[data-spy="scroll"]'],I.Tab=[M,'[data-toggle="tab"]'],I.Toast=[S,'[data-dismiss="toast"]'],I.Tooltip=[B,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?D():document.addEventListener("DOMContentLoaded",(function t(){D(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);var X={Alert:g,Button:p,Carousel:w,Collapse:A,Dropdown:E,Modal:k,Popover:P,ScrollSpy:H,Tab:M,Toast:S,Tooltip:B,initCallback:D,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(I).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(I[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:I,Version:"4.1.0alpha6"};export{X as default};

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

// Native JavaScript for Bootstrap v4.1.0alpha5 | 2022 © dnp_theme | MIT-License
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).BSN=e()}(this,(function(){"use strict";var t=document.head,e="webkitTransition"in t.style||"transition"in t.style,i="webkitTransition"in t.style?"webkitTransitionEnd":"transitionend",n="webkitTransition"in t.style?"webkitTransitionDelay":"transitionDelay",a="webkitTransition"in t.style?"webkitTransitionProperty":"transitionProperty";function o(t,e){var i=getComputedStyle(t);return e in i?i[e]:""}var s="webkitTransition"in t.style?"webkitTransitionDuration":"transitionDuration";function l(t){var i=o(t,a),n=o(t,s),l=n.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(n)*l:0;return Number.isNaN(r)?0:r}function r(t,s){var r=0,c=new Event(i),d=l(t),u=function(t){var i=o(t,a),s=o(t,n),l=s.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(s)*l:0;return Number.isNaN(r)?0:r}(t);if(e&&d){var m=function(e){e.target===t&&(s.apply(t,[e]),t.removeEventListener(i,m),r=1)};t.addEventListener(i,m),setTimeout((function(){r||t.dispatchEvent(c)}),d+u+17)}else s.apply(t,[c])}function c(t){return t instanceof HTMLElement?t.ownerDocument:t instanceof Window?t.document:window.document}var d=[Document,Element,HTMLElement],u=[Element,HTMLElement];function m(t,e){var i=d.some((function(t){return e instanceof t}))?e:c();return u.some((function(e){return t instanceof e}))?t:i.querySelector(t)}function f(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function h(t){this&&this.dispatchEvent(t)}function g(t){var e,i,n=this,a=f("close","alert"),o=f("closed","alert");function s(t){e[t?"addEventListener":"removeEventListener"]("click",l,!1)}function l(t){i=t&&t.target.closest(".alert"),(e=m('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function c(){s(),i.parentNode.removeChild(i),h.call(i,o)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(h.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?r(i,c):c()}},n.dispose=function(){s(),delete e.Alert},e=m(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||s(1),n.element=e,e.Alert=n}function p(t){var e,i,n=f("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(h.call(l,n),h.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(h.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function s(t){32===(t.which||t.keyCode)&&t.preventDefault()}function l(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function r(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",s,!1),e[i]("focusin",l,!1),e[i]("focusout",l,!1)}this.dispose=function(){r(),delete e.Button},(e=m(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||r(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=m("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var v="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],L={passive:!0};var b=function(t){var e=function(t,e){var i=t.getBoundingClientRect(),n=i.width,a=i.height,o=i.top,s=i.right,l=i.bottom,r=i.left,c=1,d=1;if(e&&t instanceof HTMLElement){var u=t.offsetWidth,m=t.offsetHeight;c=u>0&&Math.round(n)/u||1,d=m>0&&Math.round(a)/m||1}return{width:n/c,height:a/d,top:o/d,right:s/c,bottom:l/d,left:r/c,x:r/c,y:o/d}}(t),i=e.top,n=e.bottom;return i<=c(t).documentElement.clientHeight&&n>=0},y=function(t){return t.offsetHeight};function w(t,e){var i,n,a,o,s,c,d,u,g,p,w,A,T,E=e||{},k=this;function x(){!1===c.interval||o.classList.contains("paused")||(o.classList.add("paused"),s.isSliding||(clearInterval(s.timer),s.timer=null))}function N(){!1!==c.interval&&o.classList.contains("paused")&&(o.classList.remove("paused"),s.isSliding||(clearInterval(s.timer),s.timer=null,k.cycle()))}function C(t){if(t.preventDefault(),!s.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(s.index=+e.getAttribute("data-slide-to"),k.slideTo(s.index))}}function P(t){if(t.preventDefault(),!s.isSliding){var e=t.currentTarget||t.srcElement;e===w?s.index+=1:e===p&&(s.index-=1),k.slideTo(s.index)}}function H(t){var e=t.which;if(!s.isSliding){switch(e){case 39:s.index+=1;break;case 37:s.index-=1;break;default:return}k.slideTo(s.index)}}function M(t){var e=t?"addEventListener":"removeEventListener";c.pause&&c.interval&&(o[e](v[0],x,!1),o[e](v[1],N,!1),o[e]("touchstart",x,L),o[e]("touchend",N,L)),c.touch&&g.length>1&&o[e]("touchstart",B,L),w&&w[e]("click",P,!1),p&&p[e]("click",P,!1),A&&A[e]("click",C,!1),c.keyboard&&window[e]("keydown",H,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";o[e]("touchmove",I,L),o[e]("touchend",D,L)}function B(t){s.isTouch||(s.touchPosition.startX=t.changedTouches[0].pageX,o.contains(t.target)&&(s.isTouch=!0,S(1)))}function I(t){s.isTouch?(s.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function D(t){if(s.isTouch&&!s.isSliding&&(s.touchPosition.endX=s.touchPosition.currentX||t.changedTouches[0].pageX,s.isTouch)){if((!o.contains(t.target)||!o.contains(t.relatedTarget))&&Math.abs(s.touchPosition.startX-s.touchPosition.endX)<75)return;s.touchPosition.currentX<s.touchPosition.startX?s.index+=1:s.touchPosition.currentX>s.touchPosition.startX&&(s.index-=1),s.isTouch=!1,k.slideTo(s.index),S()}}function X(t){Array.from(T).forEach((function(t){return t.classList.remove("active")})),T[t]&&T[t].classList.add("active")}function R(t){if(s.touchPosition){var e=s.index,i=t&&t.target!==g[e]?1e3*t.elapsedTime+100:20,n=k.getActiveIndex(),a="left"===s.direction?"next":"prev";s.isSliding&&setTimeout((function(){s.touchPosition&&(s.isSliding=!1,g[e].classList.add("active"),g[n].classList.remove("active"),g[e].classList.remove("carousel-item-"+a),g[e].classList.remove("carousel-item-"+s.direction),g[n].classList.remove("carousel-item-"+s.direction),h.call(o,u),document.hidden||!c.interval||o.classList.contains("paused")||k.cycle())}),i)}}if(k.cycle=function(){s.timer&&(clearInterval(s.timer),s.timer=null),s.timer=setInterval((function(){var t=s.index||k.getActiveIndex();b(o)&&(t+=1,k.slideTo(t))}),c.interval)},k.slideTo=function(t){if(!s.isSliding){var e=k.getActiveIndex(),i=t;if(e!==i){e<i||0===e&&i===g.length-1?s.direction="left":(e>i||e===g.length-1&&0===i)&&(s.direction="right"),i<0?i=g.length-1:i>=g.length&&(i=0);var n="left"===s.direction?"next":"prev",a={relatedTarget:g[i],direction:s.direction,from:e,to:i};d=f("slide","carousel",a),u=f("slid","carousel",a),h.call(o,d),d.defaultPrevented||(s.index=i,s.isSliding=!0,clearInterval(s.timer),s.timer=null,X(i),l(g[i])&&o.classList.contains("slide")?(g[i].classList.add("carousel-item-"+n),y(g[i]),g[i].classList.add("carousel-item-"+s.direction),g[e].classList.add("carousel-item-"+s.direction),r(g[i],R)):(g[i].classList.add("active"),y(g[i]),g[e].classList.remove("active"),setTimeout((function(){s.isSliding=!1,c.interval&&o&&!o.classList.contains("paused")&&k.cycle(),h.call(o,u)}),100)))}}},k.getActiveIndex=function(){return Array.from(g).indexOf(o.getElementsByClassName("carousel-item active")[0])||0},k.dispose=function(){var t=["left","right","prev","next"];Array.from(g).forEach((function(e,i){e.classList.contains("active")&&X(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(s.timer),M(),s={},c={},delete o.Carousel},(o=m(t)).Carousel&&o.Carousel.dispose(),g=o.getElementsByClassName("carousel-item"),i=o.getElementsByClassName("carousel-control-prev"),p=i[0],n=o.getElementsByClassName("carousel-control-next"),w=n[0],a=o.getElementsByClassName("carousel-indicators"),A=a[0],T=A&&A.getElementsByTagName("LI")||[],!(g.length<2)){var W=o.getAttribute("data-interval"),O="false"===W?0:+W,j="false"===o.getAttribute("data-touch")?0:1,z="hover"===o.getAttribute("data-pause")||!1,U="true"===o.getAttribute("data-keyboard")||!1,q=E.interval,F=E.touch;(c={}).keyboard=!0===E.keyboard||U,c.pause=!("hover"!==E.pause&&!z)&&"hover",c.touch=F||j,c.interval=5e3,"number"==typeof q?c.interval=q:!1===q||0===O||!1===O?c.interval=0:Number.isNaN(O)||(c.interval=O),k.getActiveIndex()<0&&(g.length&&g[0].classList.add("active"),T.length&&X(0)),(s={}).direction="left",s.index=0,s.timer=null,s.isSliding=!1,s.isTouch=!1,s.touchPosition={startX:0,currentX:0,endX:0},M(1),c.interval&&k.cycle(),o.Carousel=k}}function A(t,e){var i,n,a,o,s,l,c,d=e||{},u=this,g=null,p=null;function v(t,e){h.call(t,l),l.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),y(t),t.style.height="0px",r(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",h.call(t,c)})))}u.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(p.classList.contains("show")?u.hide():u.show())},u.hide=function(){p.isAnimating||(v(p,i),i.classList.add("collapsed"))},u.show=function(){var t,e,l;g&&(t=g.getElementsByClassName("collapse show"),n=t[0],a=n&&(m('[data-target="#'+n.id+'"]',g)||m('[href="#'+n.id+'"]',g))),p.isAnimating||(a&&n!==p&&(v(n,a),a.classList.add("collapsed")),e=p,l=i,h.call(e,o),o.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",r(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",h.call(e,s)}))),i.classList.remove("collapsed"))},u.dispose=function(){i.removeEventListener("click",u.toggle,!1),delete i.Collapse},(i=m(t)).Collapse&&i.Collapse.dispose();var L=i.getAttribute("data-parent");o=f("show","collapse"),s=f("shown","collapse"),l=f("hide","collapse"),c=f("hidden","collapse"),null!==(p=m(d.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(p.isAnimating=!1);var b=d.parent||L;g=b?i.closest(b):null,i.Collapse||i.addEventListener("click",u.toggle,!1),i.Collapse=u}var T=function(t){return t.focus()};function E(t,e){var i,n,a,o,s,l,r,c,d=this,u=null,g=[];function p(t){(t.hasAttribute("href")&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.hasAttribute("href")&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function v(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",L,!1),document[t]("keydown",y,!1),document[t]("keyup",w,!1),document[t]("focus",L,!1)}function L(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==r&&!r.contains(e))&&(e!==r&&!r.contains(e)||!c&&!n)&&(u=e===i||i.contains(e)?i:null,d.hide(),p.call(t,e))}}function b(t){u=i,d.show(),p.call(t,t.target)}function y(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function w(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=r.contains(n),s=n.parentNode===r||n.parentNode.parentNode===r,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l<g.length-1?l+1:l),g[l]&&T(g[l])),(g.length&&s||!g.length&&(o||a)||!o)&&i.open&&27===e&&(d.toggle(),u=null)}d.show=function(){n=f("show","dropdown",{relatedTarget:u}),h.call(l,n),n.defaultPrevented||(r.classList.add("show"),l.classList.add("show"),i.setAttribute("aria-expanded",!0),i.open=!0,i.removeEventListener("click",b,!1),setTimeout((function(){T(r.getElementsByTagName("INPUT")[0]||i),v(),a=f("shown","dropdown",{relatedTarget:u}),h.call(l,a)}),1))},d.hide=function(){o=f("hide","dropdown",{relatedTarget:u}),h.call(l,o),o.defaultPrevented||(r.classList.remove("show"),l.classList.remove("show"),i.setAttribute("aria-expanded",!1),i.open=!1,v(),T(i),setTimeout((function(){i.Dropdown&&i.addEventListener("click",b,!1)}),1),s=f("hidden","dropdown",{relatedTarget:u}),h.call(l,s))},d.toggle=function(){l.classList.contains("show")&&i.open?d.hide():d.show()},d.dispose=function(){l.classList.contains("show")&&i.open&&d.hide(),i.removeEventListener("click",b,!1),delete i.Dropdown},(i=m(t)).Dropdown&&i.Dropdown.dispose(),l=i.parentNode,r=m(".dropdown-menu",l),Array.from(r.children).forEach((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),i.Dropdown||("tabindex"in r||r.setAttribute("tabindex","0"),i.addEventListener("click",b,!1)),c=!0===e||"true"===i.getAttribute("data-persist")||!1,i.open=!1,i.Dropdown=d}function k(t,e){var i,n,a,o,s,c,d,u,g,p,v=e||{},b=this,w=null,A={};function E(){var t=document.body.classList.contains("modal-open"),e=parseInt(getComputedStyle(document.body).paddingRight,10),i=document.documentElement.clientHeight,a=document.documentElement.scrollHeight,o=document.body.clientHeight,s=document.body.scrollHeight,l=i!==a||o!==s,r=n.clientHeight!==n.scrollHeight;d=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),n.style.paddingRight=!r&&d?d+"px":"",document.body.style.paddingRight=r||l?e+(t?0:d)+"px":"",p.length&&p.forEach((function(e){var i=getComputedStyle(e).paddingRight;e.style.paddingRight=r||l?parseInt(i,10)+(t?0:d)+"px":parseInt(i,10)+"px"}))}function k(){(u=m(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(u),u=null),null===u&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",n.style.paddingRight="",p.length&&p.forEach((function(t){t.style.paddingRight=""})))}function x(t){var e=t?"addEventListener":"removeEventListener";window[e]("resize",b.update,L),n[e]("click",S,!1),document[e]("keydown",M,!1)}function N(){n.style.display="block",E(),document.getElementsByClassName("modal show")[0]||document.body.classList.add("modal-open"),n.classList.add("show"),n.setAttribute("aria-hidden",!1),n.classList.contains("fade")?r(n,C):C()}function C(){T(n),n.isAnimating=!1,x(1),o=f("shown","modal",{relatedTarget:w}),h.call(n,o)}function P(t){n.style.display="",i&&T(i),u=m(".modal-backdrop"),1!==t&&u&&u.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(u.classList.remove("show"),r(u,k)):k(),x(),n.isAnimating=!1,c=f("hidden","modal"),h.call(n,c)}function H(t){if(!n.isAnimating){var e=t.target,a="#"+n.getAttribute("id"),o=e.getAttribute("data-target")||e.getAttribute("href"),s=i.getAttribute("data-target")||i.getAttribute("href");!n.classList.contains("show")&&(e===i&&o===a||i.contains(e)&&s===a)&&(n.modalTrigger=i,w=i,b.show(),t.preventDefault())}}function M(t){var e=t.which;!n.isAnimating&&A.keyboard&&27===e&&n.classList.contains("show")&&b.hide()}function S(t){if(!n.isAnimating){var e=t.target,i="modal"===e.getAttribute("data-dismiss"),a=e.closest('[data-dismiss="modal"]');n.classList.contains("show")&&(a||i||e===n&&"static"!==A.backdrop)&&(b.hide(),w=null,t.preventDefault())}}b.toggle=function(){n.classList.contains("show")?b.hide():b.show()},b.show=function(){if(!(n.classList.contains("show")&&n.isAnimating||(a=f("show","modal",{relatedTarget:w}),h.call(n,a),a.defaultPrevented))){n.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==n&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),A.backdrop&&(t=document.createElement("div"),null===(u=m(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(A.animation?" fade":"")),u=t,document.body.appendChild(u)),u=u),!u||e||u.classList.contains("show")||(y(u),g=l(u),u.classList.add("show")),e?N():setTimeout(N,u&&g?g:0)}},b.hide=function(t){n.classList.contains("show")&&(s=f("hide","modal"),h.call(n,s),s.defaultPrevented||(n.isAnimating=!0,n.classList.remove("show"),n.setAttribute("aria-hidden",!0),n.classList.contains("fade")&&1!==t?r(n,P):P()))},b.setContent=function(t){m(".modal-content",n).innerHTML=t},b.update=function(){n.classList.contains("show")&&E()},b.dispose=function(){b.hide(1),i?(i.removeEventListener("click",H,!1),delete i.Modal):delete n.Modal},i=m(t);var B=m(i.getAttribute("data-target")||i.getAttribute("href"));n=i.classList.contains("modal")?i:B,p=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),i.classList.contains("modal")&&(i=null),i&&i.Modal&&i.Modal.dispose(),n&&n.Modal&&n.Modal.dispose(),A.keyboard=!(!1===v.keyboard||"false"===n.getAttribute("data-keyboard")),A.backdrop="static"!==v.backdrop&&"static"!==n.getAttribute("data-backdrop")||"static",A.backdrop=!1!==v.backdrop&&"false"!==n.getAttribute("data-backdrop")&&A.backdrop,A.animation=!!n.classList.contains("fade"),A.content=v.content,n.isAnimating=!1,i&&!i.Modal&&i.addEventListener("click",H,!1),A.content&&b.setContent(A.content.trim()),i?(n.modalTrigger=i,i.Modal=b):n.Modal=b}var x="mousedown";function N(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function C(t,e,i,n){var a,o,s,l,r=e.offsetWidth,c=e.offsetHeight,d=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight,m=t.getBoundingClientRect(),f=n===document.body?N():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},h=m.right-m.left,g=m.bottom-m.top,p=e.classList.contains("popover"),v=e.getElementsByClassName("arrow")[0],L=m.top+g/2-c/2<0,b=m.left+h/2-r/2<0,y=m.left+r/2+h/2>=d,w=m.top+c/2+g/2>=u,A=m.top-c<0,T=m.left-r<0,E=m.top+c+g>=u,k=m.left+r+h>=d,x=i;x="right"===(x="left"===(x="bottom"===(x="top"===(x=("left"===x||"right"===x)&&T&&k?"top":x)&&A?"bottom":x)&&E?"top":x)&&T?"right":x)&&k?"left":x,-1===e.className.indexOf(x)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,x));var C=v.offsetWidth,P=v.offsetHeight;"left"===x||"right"===x?(o="left"===x?m.left+f.x-r-(p?C:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-C):w?(a=m.top+f.y-c+g,s=c-g/2-C):(a=m.top+f.y-c/2+g/2,s=c/2-(p?.9*P:P/2))):"top"!==x&&"bottom"!==x||(a="top"===x?m.top+f.y-c-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-C):y?(o=d-1.01*r,l=r-(d-m.left)+h/2-C/2):(o=m.left+f.x-r/2+h/2,l=r/2-(p?C:C/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function P(t,e){var i,n,a,o,s,l,c,d,u,g=e||{},p=this,b=null,y=0,w=/(iPhone|iPod|iPad)/.test(navigator.userAgent),A={};function T(t){null!==b&&t.target===m(".close",b)&&p.hide()}function E(t){return g[t]||i.dataset[t]||null}function k(){return E("title")}function N(){return E("content")}function P(){null===b&&i.focus()}function H(t){var e=t?"addEventListener":"removeEventListener";"hover"===A.trigger?(i[e](x,p.show),i[e](v[0],p.show),A.dismissible||i[e](v[1],p.hide)):"click"===A.trigger?i[e](A.trigger,p.toggle):"focus"===A.trigger&&(w&&i[e]("click",P,!1),i[e](A.trigger,p.toggle))}function M(t){b&&b.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";A.dismissible?document[e]("click",T,!1):("focus"===A.trigger&&i[e]("blur",p.hide),"hover"===A.trigger&&document[e]("touchstart",M,L)),window[e]("resize",p.hide,L)}function B(){S(1),h.call(i,c)}function I(){S(),A.container.removeChild(b),y=null,b=null,h.call(i,u)}p.toggle=function(){null===b?p.show():p.hide()},p.show=function(){clearTimeout(y),y=setTimeout((function(){if(null===b){if(h.call(i,l),l.defaultPrevented)return;!function(){n=k(),a=(a=N())?a.trim():null,b=document.createElement("div");var t=document.createElement("div");if(t.classList.add("arrow"),b.appendChild(t),null!==a&&null===A.template){if(b.setAttribute("role","tooltip"),null!==n){var e=document.createElement("h3");e.classList.add("popover-header"),e.innerHTML=A.dismissible?n+s:n,b.appendChild(e)}var i=document.createElement("div");i.classList.add("popover-body"),i.innerHTML=A.dismissible&&null===n?a+s:a,b.appendChild(i)}else{var l=document.createElement("div");l.innerHTML=A.template.trim(),b.className=l.firstChild.className,b.innerHTML=l.firstChild.innerHTML;var r=m(".popover-header",b),c=m(".popover-body",b);n&&r&&(r.innerHTML=n.trim()),a&&c&&(c.innerHTML=a.trim())}A.container.appendChild(b),b.style.display="block",b.classList.contains("popover")||b.classList.add("popover"),b.classList.contains(A.animation)||b.classList.add(A.animation),b.classList.contains(o)||b.classList.add(o)}(),C(i,b,A.placement,A.container),b.classList.contains("show")||b.classList.add("show"),A.animation?r(b,B):B()}}),20)},p.hide=function(){clearTimeout(y),y=setTimeout((function(){if(b&&null!==b&&b.classList.contains("show")){if(h.call(i,d),d.defaultPrevented)return;b.classList.remove("show"),A.animation?r(b,I):I()}}),A.delay)},p.dispose=function(){p.hide(),H(),delete i.Popover},(i=m(t)).Popover&&i.Popover.dispose();var D=i.getAttribute("data-trigger"),X=i.getAttribute("data-animation"),R=i.getAttribute("data-placement"),W=i.getAttribute("data-dismissible"),O=i.getAttribute("data-delay"),j=i.getAttribute("data-container");s='<button type="button" class="close">×</button>',l=f("show","popover"),c=f("shown","popover"),d=f("hide","popover"),u=f("hidden","popover");var z=m(g.container),U=m(j),q=i.closest(".modal"),F=i.closest(".fixed-top"),Y=i.closest(".fixed-bottom");A.template=g.template?g.template:null,A.trigger=g.trigger?g.trigger:D||"hover",A.animation=g.animation&&"fade"!==g.animation?g.animation:X||"fade",A.placement=g.placement?g.placement:R||"top",A.delay=parseInt(g.delay||O,10)||200,A.dismissible=!(!g.dismissible&&"true"!==W),A.container=z||U||F||Y||q||document.body,o="bs-popover-"+A.placement,n=k(),((a=N())||A.template)&&(i.Popover||H(1),i.Popover=p)}function H(t,e){var i,n,a,o,s,l=e||{},r=this,c={};function d(){var t,e,s;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?N().y:i.scrollTop,n.length!==a.length||g()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=g(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&m(t))&&(n.items.push(i),s=e.getBoundingClientRect(),n.offsets.push((n.isWindow?s.top+n.scrollTop:e.offsetTop)-c.offset))})),n.length=n.items.length)}function u(t){var e=t?"addEventListener":"removeEventListener";s[e]("scroll",r.refresh,L),window[e]("resize",r.refresh,L)}function g(){return s.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function p(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function v(t){var e,a=t;p(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),h.call(i,f("activate","scrollspy",{relatedTarget:n.activeItem}))}r.refresh=function(){if(d(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&v(t)}else{if(n.activeItem&&n.scrollTop<n.offsets[0]&&n.offsets[0]>0)return n.activeItem=null,void p();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop<n.offsets[e+1])&&v(n.items[e]),e-=1}},r.dispose=function(){u(),delete i.ScrollSpy},(i=m(t)).ScrollSpy&&i.ScrollSpy.dispose();var b=i.getAttribute("data-target"),y=i.getAttribute("data-offset");o=m(l.target||b),s=i.clientHeight<i.scrollHeight?i:window,o&&(c.offset=+(l.offset||y)||10,(n={}).length=0,n.items=[],n.offsets=[],n.isWindow=s===window,n.activeItem=null,n.scrollHeight=0,n.maxScroll=0,i.ScrollSpy||u(1),r.refresh(),i.ScrollSpy=r)}function M(t,i){var n,a,o,s,l,c,d,u,g,p,v,L,b,w,A=i||{},T=this,E=!1;function k(){E.style.height="",E.classList.remove("collapsing"),a.isAnimating=!1}function x(){E?b?k():setTimeout((function(){E.style.height=w+"px",y(E),r(E,k)}),50):a.isAnimating=!1,l=f("shown","tab",{relatedTarget:g}),h.call(u,l)}function N(){E&&(p.style.float="left",v.style.float="left",L=p.scrollHeight),s=f("show","tab",{relatedTarget:g}),d=f("hidden","tab",{relatedTarget:u}),h.call(u,s),s.defaultPrevented||(v.classList.add("active"),p.classList.remove("active"),E&&(w=v.scrollHeight,b=w===L,E.classList.add("collapsing"),E.style.height=L+"px",y(E),p.style.float="",v.style.float=""),v.classList.contains("fade")?setTimeout((function(){v.classList.add("show"),r(v,x)}),20):x(),h.call(g,d))}function C(){var t=a.getElementsByClassName("active");return 1!==t.length||t[0].parentNode.classList.contains("dropdown")?t.length>1&&(g=t[t.length-1]):g=t[0],g}function P(){return m(C().getAttribute("href"))}function H(t){t.preventDefault(),u=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(u=u||n).classList.contains("active")){if(v=m(u.getAttribute("href")),g=C(),p=P(),c=f("hide","tab",{relatedTarget:u}),h.call(g,c),c.defaultPrevented)return;a.isAnimating=!0,g.classList.remove("active"),g.setAttribute("aria-selected","false"),u.classList.add("active"),u.setAttribute("aria-selected","true"),o&&(n.parentNode.classList.contains("dropdown-menu")?o.classList.contains("active")||o.classList.add("active"):o.classList.contains("active")&&o.classList.remove("active")),p.classList.contains("fade")?(p.classList.remove("show"),r(p,N)):N()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=m(t)).Tab&&n.Tab.dispose();var M=n.getAttribute("data-height");a=n.closest(".nav"),o=a&&m(".dropdown-toggle",a);var S=!(!e||!1===A.height||"false"===M);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),S&&(E=P().parentNode),n.Tab=T}function S(t,e){var i,n,a,o,s,l,c=e||{},d=this,u=0,g={};function p(){n.classList.remove("showing"),n.classList.add("show"),h.call(n,s),g.autohide&&d.hide()}function v(){n.classList.add("hide"),h.call(n,l)}function L(){n.classList.remove("show"),g.animation?r(n,v):v()}function b(){clearTimeout(u),i.removeEventListener("click",d.hide,!1),delete i.Toast}d.show=function(){if(n&&!n.classList.contains("show")){if(h.call(n,a),a.defaultPrevented)return;g.animation&&n.classList.add("fade"),n.classList.remove("hide"),y(n),n.classList.add("showing"),g.animation?r(n,p):p()}},d.hide=function(t){if(n&&n.classList.contains("show")){if(h.call(n,o),o.defaultPrevented)return;t?L():u=setTimeout(L,g.delay)}},d.dispose=function(){g.animation?r(n,b):b()},(i=m(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=f("show","toast"),o=f("hide","toast"),s=f("shown","toast"),l=f("hidden","toast"),g.animation=!1===c.animation||"false"===w?0:1,g.autohide=!1===c.autohide||"false"===A?0:1,g.delay=parseInt(c.delay||T,10)||500,i.Toast||i.addEventListener("click",d.hide,!1),i.Toast=d}function B(t,e){var i,n,a,o,s,l,c,d=e||{},u=this,g=null,p=0,b={};function y(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function w(t){g&&g.contains(t.target)||t.target===i||i.contains(t.target)||u.hide()}function A(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",w,L),window[e]("resize",u.hide,L)}function T(){A(1),h.call(i,s)}function E(){A(),b.container.removeChild(g),g=null,p=null,h.call(i,c)}function k(t){var e=t?"addEventListener":"removeEventListener";i[e](x,u.show,!1),i[e](v[0],u.show,!1),i[e](v[1],u.hide,!1)}u.show=function(){clearTimeout(p),p=setTimeout((function(){if(null===g){if(h.call(i,o),o.defaultPrevented)return;!1!==function(){if(n=y()){if(g=document.createElement("div"),b.template){var t=document.createElement("div");t.innerHTML=b.template.trim(),g.className=t.firstChild.className,g.innerHTML=t.firstChild.innerHTML,m(".tooltip-inner",g).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),g.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),g.appendChild(i),i.innerHTML=n}g.style.left="0",g.style.top="0",g.setAttribute("role","tooltip"),g.classList.contains("tooltip")||g.classList.add("tooltip"),g.classList.contains(b.animation)||g.classList.add(b.animation),g.classList.contains(a)||g.classList.add(a),b.container.appendChild(g)}}()&&(C(i,g,b.placement,b.container),g.classList.contains("show")||g.classList.add("show"),b.animation?r(g,T):T())}}),20)},u.hide=function(){clearTimeout(p),p=setTimeout((function(){if(g&&g.classList.contains("show")){if(h.call(i,l),l.defaultPrevented)return;g.classList.remove("show"),b.animation?r(g,E):E()}}),b.delay)},u.toggle=function(){g?u.hide():u.show()},u.dispose=function(){k(),u.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=m(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),M=i.getAttribute("data-container"),S=m(d.container),B=m(M),I=i.closest(".modal");o=f("show","tooltip"),s=f("shown","tooltip"),l=f("hide","tooltip"),c=f("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");b.animation=d.animation&&"fade"!==d.animation?d.animation:N||"fade",b.placement=d.placement?d.placement:P||"top",b.template=d.template?d.template:null,b.delay=parseInt(d.delay||H,10)||200,b.container=S||B||D||X||I||document.body,a="bs-tooltip-"+b.placement,(n=y())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),k(1)),i.Tooltip=u)}var I={};function D(t){var e=t instanceof Element?t:document;Object.keys(I).forEach((function(t){var i,n;i=I[t][0],n=e.querySelectorAll(I[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}I.Alert=[g,'[data-dismiss="alert"]'],I.Button=[p,'[data-toggle="buttons"]'],I.Carousel=[w,'[data-ride="carousel"]'],I.Collapse=[A,'[data-toggle="collapse"]'],I.Dropdown=[E,'[data-toggle="dropdown"]'],I.Modal=[k,'[data-toggle="modal"]'],I.Popover=[P,'[data-toggle="popover"],[data-tip="popover"]'],I.ScrollSpy=[H,'[data-spy="scroll"]'],I.Tab=[M,'[data-toggle="tab"]'],I.Toast=[S,'[data-dismiss="toast"]'],I.Tooltip=[B,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?D():document.addEventListener("DOMContentLoaded",(function t(){D(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);return{Alert:g,Button:p,Carousel:w,Collapse:A,Dropdown:E,Modal:k,Popover:P,ScrollSpy:H,Tab:M,Toast:S,Tooltip:B,initCallback:D,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(I).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(I[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:I,Version:"4.1.0alpha5"}}));
// Native JavaScript for Bootstrap v4.1.0alpha6 | 2022 © dnp_theme | MIT-License
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).BSN=e()}(this,(function(){"use strict";var t=document.head,e="webkitTransition"in t.style||"transition"in t.style,i="webkitTransition"in t.style?"webkitTransitionEnd":"transitionend",n="webkitTransition"in t.style?"webkitTransitionDelay":"transitionDelay",a="webkitTransition"in t.style?"webkitTransitionProperty":"transitionProperty";function o(t,e){var i=getComputedStyle(t);return e in i?i[e]:""}var s="webkitTransition"in t.style?"webkitTransitionDuration":"transitionDuration";function l(t){var i=o(t,a),n=o(t,s),l=n.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(n)*l:0;return Number.isNaN(r)?0:r}function r(t,s){var r=0,c=new Event(i),d=l(t),u=function(t){var i=o(t,a),s=o(t,n),l=s.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(s)*l:0;return Number.isNaN(r)?0:r}(t);if(e&&d){var m=function(e){e.target===t&&(s.apply(t,[e]),t.removeEventListener(i,m),r=1)};t.addEventListener(i,m),setTimeout((function(){r||t.dispatchEvent(c)}),d+u+17)}else s.apply(t,[c])}function c(t){return t instanceof HTMLElement?t.ownerDocument:t instanceof Window?t.document:window.document}var d=[Document,Element,HTMLElement],u=[Element,HTMLElement];function m(t,e){var i=d.some((function(t){return e instanceof t}))?e:c();return u.some((function(e){return t instanceof e}))?t:i.querySelector(t)}function f(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function h(t){this&&this.dispatchEvent(t)}function g(t){var e,i,n=this,a=f("close","alert"),o=f("closed","alert");function s(t){e[t?"addEventListener":"removeEventListener"]("click",l,!1)}function l(t){i=t&&t.target.closest(".alert"),(e=m('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function c(){s(),i.parentNode.removeChild(i),h.call(i,o)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(h.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?r(i,c):c()}},n.dispose=function(){s(),delete e.Alert},e=m(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||s(1),n.element=e,e.Alert=n}function p(t){var e,i,n=f("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(h.call(l,n),h.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(h.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function s(t){32===(t.which||t.keyCode)&&t.preventDefault()}function l(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function r(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",s,!1),e[i]("focusin",l,!1),e[i]("focusout",l,!1)}this.dispose=function(){r(),delete e.Button},(e=m(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||r(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=m("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var v="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],L={passive:!0};var b=function(t){var e=function(t,e){var i=t.getBoundingClientRect(),n=i.width,a=i.height,o=i.top,s=i.right,l=i.bottom,r=i.left,c=1,d=1;if(e&&t instanceof HTMLElement){var u=t.offsetWidth,m=t.offsetHeight;c=u>0&&Math.round(n)/u||1,d=m>0&&Math.round(a)/m||1}return{width:n/c,height:a/d,top:o/d,right:s/c,bottom:l/d,left:r/c,x:r/c,y:o/d}}(t),i=e.top,n=e.bottom;return i<=c(t).documentElement.clientHeight&&n>=0},y=function(t){return t.offsetHeight};function w(t,e){var i,n,a,o,s,c,d,u,g,p,w,A,T,E=e||{},k=this;function x(){!1===c.interval||o.classList.contains("paused")||(o.classList.add("paused"),s.isSliding||(clearInterval(s.timer),s.timer=null))}function N(){!1!==c.interval&&o.classList.contains("paused")&&(o.classList.remove("paused"),s.isSliding||(clearInterval(s.timer),s.timer=null,k.cycle()))}function C(t){if(t.preventDefault(),!s.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(s.index=+e.getAttribute("data-slide-to"),k.slideTo(s.index))}}function P(t){if(t.preventDefault(),!s.isSliding){var e=t.currentTarget||t.srcElement;e===w?s.index+=1:e===p&&(s.index-=1),k.slideTo(s.index)}}function H(t){var e=t.which;if(!s.isSliding){switch(e){case 39:s.index+=1;break;case 37:s.index-=1;break;default:return}k.slideTo(s.index)}}function M(t){var e=t?"addEventListener":"removeEventListener";c.pause&&c.interval&&(o[e](v[0],x,!1),o[e](v[1],N,!1),o[e]("touchstart",x,L),o[e]("touchend",N,L)),c.touch&&g.length>1&&o[e]("touchstart",B,L),w&&w[e]("click",P,!1),p&&p[e]("click",P,!1),A&&A[e]("click",C,!1),c.keyboard&&window[e]("keydown",H,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";o[e]("touchmove",I,L),o[e]("touchend",D,L)}function B(t){s.isTouch||(s.touchPosition.startX=t.changedTouches[0].pageX,o.contains(t.target)&&(s.isTouch=!0,S(1)))}function I(t){s.isTouch?(s.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function D(t){if(s.isTouch&&!s.isSliding&&(s.touchPosition.endX=s.touchPosition.currentX||t.changedTouches[0].pageX,s.isTouch)){if((!o.contains(t.target)||!o.contains(t.relatedTarget))&&Math.abs(s.touchPosition.startX-s.touchPosition.endX)<75)return;s.touchPosition.currentX<s.touchPosition.startX?s.index+=1:s.touchPosition.currentX>s.touchPosition.startX&&(s.index-=1),s.isTouch=!1,k.slideTo(s.index),S()}}function X(t){Array.from(T).forEach((function(t){return t.classList.remove("active")})),T[t]&&T[t].classList.add("active")}function R(t){if(s.touchPosition){var e=s.index,i=t&&t.target!==g[e]?1e3*t.elapsedTime+100:20,n=k.getActiveIndex(),a="left"===s.direction?"next":"prev";s.isSliding&&setTimeout((function(){s.touchPosition&&(s.isSliding=!1,g[e].classList.add("active"),g[n].classList.remove("active"),g[e].classList.remove("carousel-item-"+a),g[e].classList.remove("carousel-item-"+s.direction),g[n].classList.remove("carousel-item-"+s.direction),h.call(o,u),document.hidden||!c.interval||o.classList.contains("paused")||k.cycle())}),i)}}if(k.cycle=function(){s.timer&&(clearInterval(s.timer),s.timer=null),s.timer=setInterval((function(){var t=s.index||k.getActiveIndex();b(o)&&(t+=1,k.slideTo(t))}),c.interval)},k.slideTo=function(t){if(!s.isSliding){var e=k.getActiveIndex(),i=t;if(e!==i){e<i||0===e&&i===g.length-1?s.direction="left":(e>i||e===g.length-1&&0===i)&&(s.direction="right"),i<0?i=g.length-1:i>=g.length&&(i=0);var n="left"===s.direction?"next":"prev",a={relatedTarget:g[i],direction:s.direction,from:e,to:i};d=f("slide","carousel",a),u=f("slid","carousel",a),h.call(o,d),d.defaultPrevented||(s.index=i,s.isSliding=!0,clearInterval(s.timer),s.timer=null,X(i),l(g[i])&&o.classList.contains("slide")?(g[i].classList.add("carousel-item-"+n),y(g[i]),g[i].classList.add("carousel-item-"+s.direction),g[e].classList.add("carousel-item-"+s.direction),r(g[i],R)):(g[i].classList.add("active"),y(g[i]),g[e].classList.remove("active"),setTimeout((function(){s.isSliding=!1,c.interval&&o&&!o.classList.contains("paused")&&k.cycle(),h.call(o,u)}),100)))}}},k.getActiveIndex=function(){return Array.from(g).indexOf(o.getElementsByClassName("carousel-item active")[0])||0},k.dispose=function(){var t=["left","right","prev","next"];Array.from(g).forEach((function(e,i){e.classList.contains("active")&&X(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(s.timer),M(),s={},c={},delete o.Carousel},(o=m(t)).Carousel&&o.Carousel.dispose(),g=o.getElementsByClassName("carousel-item"),i=o.getElementsByClassName("carousel-control-prev"),p=i[0],n=o.getElementsByClassName("carousel-control-next"),w=n[0],a=o.getElementsByClassName("carousel-indicators"),A=a[0],T=A&&A.getElementsByTagName("LI")||[],!(g.length<2)){var W=o.getAttribute("data-interval"),O="false"===W?0:+W,j="false"===o.getAttribute("data-touch")?0:1,z="hover"===o.getAttribute("data-pause")||!1,U="true"===o.getAttribute("data-keyboard")||!1,q=E.interval,F=E.touch;(c={}).keyboard=!0===E.keyboard||U,c.pause=!("hover"!==E.pause&&!z)&&"hover",c.touch=F||j,c.interval=5e3,"number"==typeof q?c.interval=q:!1===q||0===O||!1===O?c.interval=0:Number.isNaN(O)||(c.interval=O),k.getActiveIndex()<0&&(g.length&&g[0].classList.add("active"),T.length&&X(0)),(s={}).direction="left",s.index=0,s.timer=null,s.isSliding=!1,s.isTouch=!1,s.touchPosition={startX:0,currentX:0,endX:0},M(1),c.interval&&k.cycle(),o.Carousel=k}}function A(t,e){var i,n,a,o,s,l,c,d=e||{},u=this,g=null,p=null;function v(t,e){h.call(t,l),l.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),y(t),t.style.height="0px",r(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",h.call(t,c)})))}u.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(p.classList.contains("show")?u.hide():u.show())},u.hide=function(){p.isAnimating||(v(p,i),i.classList.add("collapsed"))},u.show=function(){var t,e,l;g&&(t=g.getElementsByClassName("collapse show"),n=t[0],a=n&&(m('[data-target="#'+n.id+'"]',g)||m('[href="#'+n.id+'"]',g))),p.isAnimating||(a&&n!==p&&(v(n,a),a.classList.add("collapsed")),e=p,l=i,h.call(e,o),o.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",r(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",h.call(e,s)}))),i.classList.remove("collapsed"))},u.dispose=function(){i.removeEventListener("click",u.toggle,!1),delete i.Collapse},(i=m(t)).Collapse&&i.Collapse.dispose();var L=i.getAttribute("data-parent");o=f("show","collapse"),s=f("shown","collapse"),l=f("hide","collapse"),c=f("hidden","collapse"),null!==(p=m(d.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(p.isAnimating=!1);var b=d.parent||L;g=b?i.closest(b):null,i.Collapse||i.addEventListener("click",u.toggle,!1),i.Collapse=u}var T=function(t){return t.focus()};function E(t,e){var i,n,a,o,s,l,r,c,d=this,u=null,g=[];function p(t){(t.hasAttribute("href")&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.hasAttribute("href")&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function v(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",L,!1),document[t]("keydown",y,!1),document[t]("keyup",w,!1),document[t]("focus",L,!1)}function L(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==r&&!r.contains(e))&&(e!==r&&!r.contains(e)||!c&&!n)&&(u=e===i||i.contains(e)?i:null,d.hide(),p.call(t,e))}}function b(t){u=i,d.show(),p.call(t,t.target)}function y(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function w(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=r.contains(n),s=n.parentNode===r||n.parentNode.parentNode===r,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l<g.length-1?l+1:l),g[l]&&T(g[l])),(g.length&&s||!g.length&&(o||a)||!o)&&i.open&&27===e&&(d.toggle(),u=null)}d.show=function(){n=f("show","dropdown",{relatedTarget:u}),h.call(l,n),n.defaultPrevented||(r.classList.add("show"),l.classList.add("show"),i.setAttribute("aria-expanded",!0),i.open=!0,i.removeEventListener("click",b,!1),setTimeout((function(){T(r.getElementsByTagName("INPUT")[0]||i),v(),a=f("shown","dropdown",{relatedTarget:u}),h.call(l,a)}),1))},d.hide=function(){o=f("hide","dropdown",{relatedTarget:u}),h.call(l,o),o.defaultPrevented||(r.classList.remove("show"),l.classList.remove("show"),i.setAttribute("aria-expanded",!1),i.open=!1,v(),T(i),setTimeout((function(){i.Dropdown&&i.addEventListener("click",b,!1)}),1),s=f("hidden","dropdown",{relatedTarget:u}),h.call(l,s))},d.toggle=function(){l.classList.contains("show")&&i.open?d.hide():d.show()},d.dispose=function(){l.classList.contains("show")&&i.open&&d.hide(),i.removeEventListener("click",b,!1),delete i.Dropdown},(i=m(t)).Dropdown&&i.Dropdown.dispose(),l=i.parentNode,r=m(".dropdown-menu",l),Array.from(r.children).forEach((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),i.Dropdown||("tabindex"in r||r.setAttribute("tabindex","0"),i.addEventListener("click",b,!1)),c=!0===e||"true"===i.getAttribute("data-persist")||!1,i.open=!1,i.Dropdown=d}function k(t,e){var i,n,a,o,s,c,d,u,g,p,v=e||{},b=this,w=null,A={};function E(){var t=document.body.classList.contains("modal-open"),e=parseInt(getComputedStyle(document.body).paddingRight,10),i=document.documentElement.clientHeight,a=document.documentElement.scrollHeight,o=document.body.clientHeight,s=document.body.scrollHeight,l=i!==a||o!==s,r=n.clientHeight!==n.scrollHeight;d=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),n.style.paddingRight=!r&&d?d+"px":"",document.body.style.paddingRight=r||l?e+(t?0:d)+"px":"",p.length&&p.forEach((function(e){var i=getComputedStyle(e).paddingRight;e.style.paddingRight=r||l?parseInt(i,10)+(t?0:d)+"px":parseInt(i,10)+"px"}))}function k(){(u=m(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(u),u=null),null===u&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",n.style.paddingRight="",p.length&&p.forEach((function(t){t.style.paddingRight=""})))}function x(t){var e=t?"addEventListener":"removeEventListener";window[e]("resize",b.update,L),n[e]("click",S,!1),document[e]("keydown",M,!1)}function N(){n.style.display="block",E(),document.getElementsByClassName("modal show")[0]||document.body.classList.add("modal-open"),n.classList.add("show"),n.setAttribute("aria-hidden",!1),n.classList.contains("fade")?r(n,C):C()}function C(){T(n),n.isAnimating=!1,x(1),o=f("shown","modal",{relatedTarget:w}),h.call(n,o)}function P(t){n.style.display="",i&&T(i),u=m(".modal-backdrop"),1!==t&&u&&u.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(u.classList.remove("show"),r(u,k)):k(),x(),n.isAnimating=!1,c=f("hidden","modal"),h.call(n,c)}function H(t){if(!n.isAnimating){var e=t.target,a="#"+n.getAttribute("id"),o=e.getAttribute("data-target")||e.getAttribute("href"),s=i.getAttribute("data-target")||i.getAttribute("href");!n.classList.contains("show")&&(e===i&&o===a||i.contains(e)&&s===a)&&(n.modalTrigger=i,w=i,b.show(),t.preventDefault())}}function M(t){var e=t.which;!n.isAnimating&&A.keyboard&&27===e&&n.classList.contains("show")&&b.hide()}function S(t){if(!n.isAnimating){var e=t.target,i="modal"===e.getAttribute("data-dismiss"),a=e.closest('[data-dismiss="modal"]');n.classList.contains("show")&&(a||i||e===n&&"static"!==A.backdrop)&&(b.hide(),w=null,t.preventDefault())}}b.toggle=function(){n.classList.contains("show")?b.hide():b.show()},b.show=function(){if(!(n.classList.contains("show")&&n.isAnimating||(a=f("show","modal",{relatedTarget:w}),h.call(n,a),a.defaultPrevented))){n.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==n&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),A.backdrop&&(t=document.createElement("div"),null===(u=m(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(A.animation?" fade":"")),u=t,document.body.appendChild(u)),u=u),!u||e||u.classList.contains("show")||(y(u),g=l(u),u.classList.add("show")),e?N():setTimeout(N,u&&g?g:0)}},b.hide=function(t){n.classList.contains("show")&&(s=f("hide","modal"),h.call(n,s),s.defaultPrevented||(n.isAnimating=!0,n.classList.remove("show"),n.setAttribute("aria-hidden",!0),n.classList.contains("fade")&&1!==t?r(n,P):P()))},b.setContent=function(t){m(".modal-content",n).innerHTML=t},b.update=function(){n.classList.contains("show")&&E()},b.dispose=function(){b.hide(1),i?(i.removeEventListener("click",H,!1),delete i.Modal):delete n.Modal},i=m(t);var B=m(i.getAttribute("data-target")||i.getAttribute("href"));n=i.classList.contains("modal")?i:B,p=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),i.classList.contains("modal")&&(i=null),i&&i.Modal&&i.Modal.dispose(),n&&n.Modal&&n.Modal.dispose(),A.keyboard=!(!1===v.keyboard||"false"===n.getAttribute("data-keyboard")),A.backdrop="static"!==v.backdrop&&"static"!==n.getAttribute("data-backdrop")||"static",A.backdrop=!1!==v.backdrop&&"false"!==n.getAttribute("data-backdrop")&&A.backdrop,A.animation=!!n.classList.contains("fade"),A.content=v.content,n.isAnimating=!1,i&&!i.Modal&&i.addEventListener("click",H,!1),A.content&&b.setContent(A.content.trim()),i?(n.modalTrigger=i,i.Modal=b):n.Modal=b}var x="mousedown";function N(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function C(t,e,i,n){var a,o,s,l,r=e.offsetWidth,c=e.offsetHeight,d=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight,m=t.getBoundingClientRect(),f=n===document.body?N():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},h=m.right-m.left,g=m.bottom-m.top,p=e.classList.contains("popover"),v=e.getElementsByClassName("arrow")[0],L=m.top+g/2-c/2<0,b=m.left+h/2-r/2<0,y=m.left+r/2+h/2>=d,w=m.top+c/2+g/2>=u,A=m.top-c<0,T=m.left-r<0,E=m.top+c+g>=u,k=m.left+r+h>=d,x=i;x="right"===(x="left"===(x="bottom"===(x="top"===(x=("left"===x||"right"===x)&&T&&k?"top":x)&&A?"bottom":x)&&E?"top":x)&&T?"right":x)&&k?"left":x,-1===e.className.indexOf(x)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,x));var C=v.offsetWidth,P=v.offsetHeight;"left"===x||"right"===x?(o="left"===x?m.left+f.x-r-(p?C:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-C):w?(a=m.top+f.y-c+g,s=c-g/2-C):(a=m.top+f.y-c/2+g/2,s=c/2-(p?.9*P:P/2))):"top"!==x&&"bottom"!==x||(a="top"===x?m.top+f.y-c-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-C):y?(o=d-1.01*r,l=r-(d-m.left)+h/2-C/2):(o=m.left+f.x-r/2+h/2,l=r/2-(p?C:C/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function P(t,e){var i,n,a,o,s,l,c,d,u,g=e||{},p=this,b=null,y=0,w=/(iPhone|iPod|iPad)/.test(navigator.userAgent),A={};function T(t){null!==b&&t.target===m(".close",b)&&p.hide()}function E(t){return g[t]||i.dataset[t]||null}function k(){return E("title")}function N(){return E("content")}function P(){null===b&&i.focus()}function H(t){var e=t?"addEventListener":"removeEventListener";"hover"===A.trigger?(i[e](x,p.show),i[e](v[0],p.show),A.dismissible||i[e](v[1],p.hide)):"click"===A.trigger?i[e](A.trigger,p.toggle):"focus"===A.trigger&&(w&&i[e]("click",P,!1),i[e](A.trigger,p.toggle))}function M(t){b&&b.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";A.dismissible?document[e]("click",T,!1):("focus"===A.trigger&&i[e]("blur",p.hide),"hover"===A.trigger&&document[e]("touchstart",M,L)),window[e]("resize",p.hide,L)}function B(){S(1),h.call(i,c)}function I(){S(),A.container.removeChild(b),y=null,b=null,h.call(i,u)}p.toggle=function(){null===b?p.show():p.hide()},p.show=function(){clearTimeout(y),y=setTimeout((function(){if(null===b){if(h.call(i,l),l.defaultPrevented)return;!function(){n=k(),a=(a=N())?a.trim():null,b=document.createElement("div");var t=document.createElement("div");if(t.classList.add("arrow"),b.appendChild(t),null!==a&&null===A.template){if(b.setAttribute("role","tooltip"),null!==n){var e=document.createElement("h3");e.classList.add("popover-header"),e.innerHTML=A.dismissible?n+s:n,b.appendChild(e)}var i=document.createElement("div");i.classList.add("popover-body"),i.innerHTML=A.dismissible&&null===n?a+s:a,b.appendChild(i)}else{var l=document.createElement("div");l.innerHTML=A.template.trim(),b.className=l.firstChild.className,b.innerHTML=l.firstChild.innerHTML;var r=m(".popover-header",b),c=m(".popover-body",b);n&&r&&(r.innerHTML=n.trim()),a&&c&&(c.innerHTML=a.trim())}A.container.appendChild(b),b.style.display="block",b.classList.contains("popover")||b.classList.add("popover"),b.classList.contains(A.animation)||b.classList.add(A.animation),b.classList.contains(o)||b.classList.add(o)}(),C(i,b,A.placement,A.container),b.classList.contains("show")||b.classList.add("show"),A.animation?r(b,B):B()}}),20)},p.hide=function(){clearTimeout(y),y=setTimeout((function(){if(b&&null!==b&&b.classList.contains("show")){if(h.call(i,d),d.defaultPrevented)return;b.classList.remove("show"),A.animation?r(b,I):I()}}),A.delay)},p.dispose=function(){p.hide(),H(),delete i.Popover},(i=m(t)).Popover&&i.Popover.dispose();var D=i.getAttribute("data-trigger"),X=i.getAttribute("data-animation"),R=i.getAttribute("data-placement"),W=i.getAttribute("data-dismissible"),O=i.getAttribute("data-delay"),j=i.getAttribute("data-container");s='<button type="button" class="close">×</button>',l=f("show","popover"),c=f("shown","popover"),d=f("hide","popover"),u=f("hidden","popover");var z=m(g.container),U=m(j),q=i.closest(".modal"),F=i.closest(".fixed-top"),Y=i.closest(".fixed-bottom");A.template=g.template?g.template:null,A.trigger=g.trigger?g.trigger:D||"hover",A.animation=g.animation&&"fade"!==g.animation?g.animation:X||"fade",A.placement=g.placement?g.placement:R||"top",A.delay=parseInt(g.delay||O,10)||200,A.dismissible=!(!g.dismissible&&"true"!==W),A.container=z||U||F||Y||q||document.body,o="bs-popover-"+A.placement,n=k(),((a=N())||A.template)&&(i.Popover||H(1),i.Popover=p)}function H(t,e){var i,n,a,o,s,l=e||{},r=this,c={};function d(){var t,e,s;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?N().y:i.scrollTop,n.length!==a.length||g()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=g(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&m(t))&&(n.items.push(i),s=e.getBoundingClientRect(),n.offsets.push((n.isWindow?s.top+n.scrollTop:e.offsetTop)-c.offset))})),n.length=n.items.length)}function u(t){var e=t?"addEventListener":"removeEventListener";s[e]("scroll",r.refresh,L),window[e]("resize",r.refresh,L)}function g(){return s.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function p(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function v(t){var e,a=t;p(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),h.call(i,f("activate","scrollspy",{relatedTarget:n.activeItem}))}r.refresh=function(){if(d(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&v(t)}else{if(n.activeItem&&n.scrollTop<n.offsets[0]&&n.offsets[0]>0)return n.activeItem=null,void p();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop<n.offsets[e+1])&&v(n.items[e]),e-=1}},r.dispose=function(){u(),delete i.ScrollSpy},(i=m(t)).ScrollSpy&&i.ScrollSpy.dispose();var b=i.getAttribute("data-target"),y=i.getAttribute("data-offset");o=m(l.target||b),s=i.clientHeight<i.scrollHeight?i:window,o&&(c.offset=+(l.offset||y)||10,(n={}).length=0,n.items=[],n.offsets=[],n.isWindow=s===window,n.activeItem=null,n.scrollHeight=0,n.maxScroll=0,i.ScrollSpy||u(1),r.refresh(),i.ScrollSpy=r)}function M(t,i){var n,a,o,s,l,c,d,u,g,p,v,L,b,w,A=i||{},T=this,E=!1;function k(){E.style.height="",E.classList.remove("collapsing"),a.isAnimating=!1}function x(){E?b?k():setTimeout((function(){E.style.height=w+"px",y(E),r(E,k)}),50):a.isAnimating=!1,l=f("shown","tab",{relatedTarget:g}),h.call(u,l)}function N(){E&&(p.style.float="left",v.style.float="left",L=p.scrollHeight),s=f("show","tab",{relatedTarget:g}),d=f("hidden","tab",{relatedTarget:u}),h.call(u,s),s.defaultPrevented||(v.classList.add("active"),p.classList.remove("active"),E&&(w=v.scrollHeight,b=w===L,E.classList.add("collapsing"),E.style.height=L+"px",y(E),p.style.float="",v.style.float=""),v.classList.contains("fade")?setTimeout((function(){v.classList.add("show"),r(v,x)}),20):x(),h.call(g,d))}function C(){var t=a.getElementsByClassName("active");return 1!==t.length||t[0].parentNode.classList.contains("dropdown")?t.length>1&&(g=t[t.length-1]):g=t[0],g}function P(){return m(C().getAttribute("href"))}function H(t){t.preventDefault(),u=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(u=u||n).classList.contains("active")){if(v=m(u.getAttribute("href")),g=C(),p=P(),c=f("hide","tab",{relatedTarget:u}),h.call(g,c),c.defaultPrevented)return;a.isAnimating=!0,g.classList.remove("active"),g.setAttribute("aria-selected","false"),u.classList.add("active"),u.setAttribute("aria-selected","true"),o&&(n.parentNode.classList.contains("dropdown-menu")?o.classList.contains("active")||o.classList.add("active"):o.classList.contains("active")&&o.classList.remove("active")),p.classList.contains("fade")?(p.classList.remove("show"),r(p,N)):N()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=m(t)).Tab&&n.Tab.dispose();var M=n.getAttribute("data-height");a=n.closest(".nav"),o=a&&m(".dropdown-toggle",a);var S=!(!e||!1===A.height||"false"===M);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),S&&(E=P().parentNode),n.Tab=T}function S(t,e){var i,n,a,o,s,l,c=e||{},d=this,u=0,g={};function p(){n.classList.remove("showing"),n.classList.add("show"),h.call(n,s),g.autohide&&d.hide()}function v(){n.classList.add("hide"),h.call(n,l)}function L(){n.classList.remove("show"),g.animation?r(n,v):v()}function b(){clearTimeout(u),i.removeEventListener("click",d.hide,!1),delete i.Toast}d.show=function(){if(n&&!n.classList.contains("show")){if(h.call(n,a),a.defaultPrevented)return;g.animation&&n.classList.add("fade"),n.classList.remove("hide"),y(n),n.classList.add("showing"),g.animation?r(n,p):p()}},d.hide=function(t){if(n&&n.classList.contains("show")){if(h.call(n,o),o.defaultPrevented)return;t?L():u=setTimeout(L,g.delay)}},d.dispose=function(){g.animation?r(n,b):b()},(i=m(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=f("show","toast"),o=f("hide","toast"),s=f("shown","toast"),l=f("hidden","toast"),g.animation=!1===c.animation||"false"===w?0:1,g.autohide=!1===c.autohide||"false"===A?0:1,g.delay=parseInt(c.delay||T,10)||500,i.Toast||i.addEventListener("click",d.hide,!1),i.Toast=d}function B(t,e){var i,n,a,o,s,l,c,d=e||{},u=this,g=null,p=0,b={};function y(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function w(t){g&&g.contains(t.target)||t.target===i||i.contains(t.target)||u.hide()}function A(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",w,L),window[e]("resize",u.hide,L)}function T(){A(1),h.call(i,s)}function E(){A(),b.container.removeChild(g),g=null,p=null,h.call(i,c)}function k(t){var e=t?"addEventListener":"removeEventListener";i[e](x,u.show,!1),i[e](v[0],u.show,!1),i[e](v[1],u.hide,!1)}u.show=function(){clearTimeout(p),p=setTimeout((function(){if(null===g){if(h.call(i,o),o.defaultPrevented)return;!1!==function(){if(n=y()){if(g=document.createElement("div"),b.template){var t=document.createElement("div");t.innerHTML=b.template.trim(),g.className=t.firstChild.className,g.innerHTML=t.firstChild.innerHTML,m(".tooltip-inner",g).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),g.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),g.appendChild(i),i.innerHTML=n}g.style.left="0",g.style.top="0",g.setAttribute("role","tooltip"),g.classList.contains("tooltip")||g.classList.add("tooltip"),g.classList.contains(b.animation)||g.classList.add(b.animation),g.classList.contains(a)||g.classList.add(a),b.container.appendChild(g)}}()&&(C(i,g,b.placement,b.container),g.classList.contains("show")||g.classList.add("show"),b.animation?r(g,T):T())}}),20)},u.hide=function(){clearTimeout(p),p=setTimeout((function(){if(g&&g.classList.contains("show")){if(h.call(i,l),l.defaultPrevented)return;g.classList.remove("show"),b.animation?r(g,E):E()}}),b.delay)},u.toggle=function(){g?u.hide():u.show()},u.dispose=function(){k(),u.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=m(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),M=i.getAttribute("data-container"),S=m(d.container),B=m(M),I=i.closest(".modal");o=f("show","tooltip"),s=f("shown","tooltip"),l=f("hide","tooltip"),c=f("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");b.animation=d.animation&&"fade"!==d.animation?d.animation:N||"fade",b.placement=d.placement?d.placement:P||"top",b.template=d.template?d.template:null,b.delay=parseInt(d.delay||H,10)||200,b.container=S||B||D||X||I||document.body,a="bs-tooltip-"+b.placement,(n=y())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),k(1)),i.Tooltip=u)}var I={};function D(t){var e=t instanceof Element?t:document;Object.keys(I).forEach((function(t){var i,n;i=I[t][0],n=e.querySelectorAll(I[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}I.Alert=[g,'[data-dismiss="alert"]'],I.Button=[p,'[data-toggle="buttons"]'],I.Carousel=[w,'[data-ride="carousel"]'],I.Collapse=[A,'[data-toggle="collapse"]'],I.Dropdown=[E,'[data-toggle="dropdown"]'],I.Modal=[k,'[data-toggle="modal"]'],I.Popover=[P,'[data-toggle="popover"],[data-tip="popover"]'],I.ScrollSpy=[H,'[data-spy="scroll"]'],I.Tab=[M,'[data-toggle="tab"]'],I.Toast=[S,'[data-dismiss="toast"]'],I.Tooltip=[B,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?D():document.addEventListener("DOMContentLoaded",(function t(){D(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);return{Alert:g,Button:p,Carousel:w,Collapse:A,Dropdown:E,Modal:k,Popover:P,ScrollSpy:H,Tab:M,Toast:S,Tooltip:B,initCallback:D,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(I).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(I[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:I,Version:"4.1.0alpha6"}}));

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

// Native JavaScript for Bootstrap v4.1.0alpha5 | 2022 © dnp_theme | MIT-License
const t={};function e(e){const n=this,{type:s}=e;(t[s]?[...t[s]]:[]).forEach(t=>{const[i,a]=t;[...a].forEach(t=>{if(i===n){const[n,a]=t;n.apply(i,[e]),a&&a.once&&o(i,s,n,a)}})})}const n=(n,o,s,i)=>{t[o]||(t[o]=new Map);const a=t[o];a.has(n)||a.set(n,new Map);const l=a.get(n),{size:r}=l;l&&l.set(s,i),r||n.addEventListener(o,e,i)},o=(n,o,s,i)=>{const a=t[o],l=a&&a.get(n),r=l&&l.get(s),{options:c}=void 0!==r?r:{options:i};l&&l.has(s)&&l.delete(s),!a||l&&l.size||a.delete(n),a&&a.size||delete t[o],l&&l.size||n.removeEventListener(o,e,c)},s={on:n,off:o,globalListener:e,registry:t};function i(t,e){const n=getComputedStyle(t);return e in n?n[e]:""}function a(t){const e=i(t,"transitionProperty"),n=i(t,"transitionDuration"),o=n.includes("ms")?1:1e3,s=e&&"none"!==e?parseFloat(n)*o:0;return Number.isNaN(s)?0:s}function l(t,e){let n=0;const o=new Event("transitionend"),s=a(t),l=function(t){const e=i(t,"transitionProperty"),n=i(t,"transitionDelay"),o=n.includes("ms")?1:1e3,s=e&&"none"!==e?parseFloat(n)*o:0;return Number.isNaN(s)?0:s}(t);if(s){const i=o=>{o.target===t&&(e.apply(t,[o]),t.removeEventListener("transitionend",i),n=1)};t.addEventListener("transitionend",i),setTimeout(()=>{n||t.dispatchEvent(o)},s+l+17)}else e.apply(t,[o])}function r(t){return t instanceof HTMLElement?t.ownerDocument:t instanceof Window?t.document:window.document}const c=[Document,Element,HTMLElement],d=[Element,HTMLElement];function h(t,e){const n=c.some(t=>e instanceof t)?e:r();return d.some(e=>t instanceof e)?t:n.querySelector(t)}function u(t,e){return t?t.closest(e)||u(t.getRootNode().host,e):null}const f=(t,e)=>Object.assign(t,e);function p(t,e){return t.classList.contains(e)}function g(t,e){t.classList.remove(e)}const m=(t,e)=>t.dispatchEvent(e),b=new Map,v={set:(t,e,n)=>{const o=h(t);if(!o)return;b.has(e)||b.set(e,new Map);b.get(e).set(o,n)},getAllFor:t=>b.get(t)||null,get:(t,e)=>{const n=h(t),o=v.getAllFor(e);return n&&o&&o.get(n)||null},remove:(t,e)=>{const n=h(t),o=b.get(e);o&&n&&(o.delete(n),0===o.size&&b.delete(e))}},w=(t,e)=>v.get(t,e);function y(t,e){const n=new CustomEvent(t,{cancelable:!0,bubbles:!0});return e instanceof Object&&f(n,e),n}const T=(t,e)=>t.getAttribute(e);function E(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}const x=t=>Object.keys(t),H=t=>t.toLowerCase();class k{constructor(t,e){const n=this,o=h(t);if(!o)throw Error(`${n.name} Error: "${t}" is not a valid selector.`);n.options={};const s=v.get(o,n.name);s&&s.dispose(),n.element=o,n.defaults&&Object.keys(n.defaults).length&&(n.options=function(t,e,n,o){const s={...t.dataset},i={},a={};return x(s).forEach(t=>{const e=o&&t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>H(t)):t;a[e]=E(s[t])}),x(n).forEach(t=>{n[t]=E(n[t])}),x(e).forEach(o=>{i[o]=o in n?n[o]:o in a?a[o]:"title"===o?T(t,"title"):e[o]}),i}(o,n.defaults,e||{},"bs")),v.set(o,n.name,n)}get version(){return"4.1.0alpha5"}get name(){return this.constructor.name}get defaults(){return this.constructor.defaults}dispose(){const t=this;v.remove(t.element,t.name),x(t).forEach(e=>{t[e]=null})}}const A=t=>w(t,"Alert"),P=y("close.bs.alert"),M=y("closed.bs.alert");function N(t){const{element:e}=t;L(t),m(e,M),t.dispose(),e.remove()}function L(t,e){const s=e?n:o,{dismiss:i}=t;i&&s(i,"click",t.close)}class D extends k{constructor(t){super(t);const{element:e}=this;this.dismiss=h('[data-bs-dismiss="alert"]',e),L(this,!0)}get name(){return"Alert"}close(t){const e=t?A(u(this,".alert")):this;if(!e)return;const{element:n}=e;if(p(n,"show")){if(m(n,P),P.defaultPrevented)return;g(n,"show"),p(n,"fade")?l(n,()=>N(e)):N(e)}}dispose(){L(this),super.dispose()}}f(D,{selector:".alert",init:t=>new D(t),getInstance:A});const C=(t,e,n)=>t.setAttribute(e,n);function S(t,e){t.classList.add(e)}const I="data-bs-toggle",R=t=>w(t,"Button");function $(t,e){(e?n:o)(t.element,"click",t.toggle)}class O extends k{constructor(t){super(t);const{element:e}=this;this.isActive=p(e,"active"),C(e,"aria-pressed",""+!!this.isActive),$(this,!0)}get name(){return"Button"}toggle(t){t&&t.preventDefault();const e=t?R(this):this;if(!e)return;const{element:n}=e;if(p(n,"disabled"))return;e.isActive=p(n,"active");const{isActive:o}=e;(o?g:S)(n,"active"),C(n,"aria-pressed",o?"false":"true")}dispose(){$(this),super.dispose()}}f(O,{selector:'[data-bs-toggle="button"]',init:t=>new O(t),getInstance:R});const W="mouseenter",F="mouseleave";function B(t){if(null==t)return window;if(!(t instanceof Window)){const{ownerDocument:e}=t;return e&&e.defaultView||window}return t}function z(t,e){const{width:n,height:o,top:s,right:i,bottom:a,left:l}=t.getBoundingClientRect();let r=1,c=1;if(e&&t instanceof HTMLElement){const{offsetWidth:e,offsetHeight:s}=t;r=e>0&&Math.round(n)/e||1,c=s>0&&Math.round(o)/s||1}return{width:n/r,height:o/c,top:s/c,right:i/r,bottom:a/c,left:l/r,x:l/r,y:s/c}}function X(t){return r(t).documentElement}const j=t=>{const{top:e,bottom:n}=z(t),{clientHeight:o}=X(t);return e<=o&&n>=0},Y=t=>"rtl"===X(t).dir;function V(t,e){return(e&&c.some(t=>e instanceof t)?e:r()).querySelectorAll(t)}function q(t,e){return(e&&c.some(t=>e instanceof t)?e:r()).getElementsByClassName(t)}const U=new Map,G=(t,e,n,o)=>{const s=h(t);if(s)if(o&&o.length){U.has(s)||U.set(s,new Map);U.get(s).set(o,setTimeout(e,n))}else U.set(s,setTimeout(e,n))},Z=(t,e)=>{const n=h(t);if(!n)return null;const o=U.get(n);return e&&e.length&&o&&o.get?o.get(e)||null:o||null},J=(t,e)=>{const n=h(t);if(n)if(e&&e.length){const t=U.get(n);t&&t.get&&(clearTimeout(t.get(e)),t.delete(e),0===t.size&&U.delete(n))}else clearTimeout(U.get(n)),U.delete(n)},K=t=>t.offsetHeight,Q={passive:!0};function _(t){const e=["data-bs-target","data-bs-parent","data-bs-container","href"],n=r(t);return e.map(e=>{const o=T(t,e);return o?"data-bs-parent"===e?u(t,o):h(o,n):null}).filter(t=>t)[0]}const tt="carousel-item",et={pause:"hover",keyboard:!1,touch:!0,interval:5e3},nt=t=>w(t,"Carousel");let ot=0,st=0,it=0;const at=y("slide.bs.carousel"),lt=y("slid.bs.carousel");function rt(){const t=this,e=nt(t);!e||e.isPaused||Z(t,"paused")||S(t,"paused")}function ct(){const t=nt(this);t&&t.isPaused&&!Z(this,"paused")&&t.cycle()}function dt(t){t.preventDefault();const e=u(this,'[data-bs-ride="carousel"]')||_(this);if(!e)return;const n=nt(e);if(!n||n.isAnimating)return;const o=+T(this,"data-bs-slide-to");!this||p(this,"active")||Number.isNaN(o)||n.to(o)}function ht(t){t.preventDefault();const e=u(this,'[data-bs-ride="carousel"]')||_(this),n=e&&nt(e);if(!n||n.isAnimating)return;const o=T(this,"data-bs-slide");"next"===o?n.next():"prev"===o&&n.prev()}function ut({code:t}){const[e]=[...V('[data-bs-ride="carousel"]')].filter(t=>j(t)),n=nt(e);if(!n)return;const o=Y(),s=o?"ArrowLeft":"ArrowRight";t===(o?"ArrowRight":"ArrowLeft")?n.prev():t===s&&n.next()}function ft(t){const e=nt(this);e&&!e.isTouch&&(ot=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,bt(e,!0)))}function pt(t){const{changedTouches:e,type:n}=t,o=nt(this);o&&o.isTouch&&(st=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function gt(t){const e=this,n=nt(e);if(n&&n.isTouch&&(it=st||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(ot-it)<75)return;st<ot?n.index+=1:st>ot&&(n.index-=1),n.isTouch=!1,n.to(n.index),bt(n)}}function mt(t,e){const{indicators:n}=t;[...n].forEach(t=>g(t,"active")),t.indicators[e]&&S(n[e],"active")}function bt(t,e){const{element:s}=t,i=e?n:o;i(s,"touchmove",pt,Q),i(s,"touchend",gt,Q)}function vt(t,e){const{element:s,options:i,slides:a,controls:l,indicators:r}=t,{touch:c,pause:d,interval:h,keyboard:u}=i,f=e?n:o;d&&h&&(f(s,W,rt),f(s,F,ct),f(s,"touchstart",rt,Q),f(s,"touchend",ct,Q)),c&&a.length>1&&f(s,"touchstart",ft,Q),l.length&&l.forEach(t=>{t&&f(t,"click",ht)}),r.length&&r.forEach(t=>{f(t,"click",dt)}),u&&f(B(s),"keydown",ut)}function wt(t){const{slides:e,element:n}=t,o=h(".carousel-item.active",n);return[...e].indexOf(o)}class yt extends k{constructor(t,e){super(t,e);const n=this;n.direction=Y()?"right":"left",n.index=0,n.isTouch=!1;const{element:o}=n;n.slides=q(tt,o);const{slides:s}=n;if(s.length<2)return;n.controls=[...V("[data-bs-slide]",o),...V(`[data-bs-slide][data-bs-target="#${o.id}"]`)],n.indicator=h(".carousel-indicators",o),n.indicators=[...n.indicator?V("[data-bs-slide-to]",n.indicator):[],...V(`[data-bs-slide-to][data-bs-target="#${o.id}"]`)];const{options:i}=n;n.options.interval=!0===i.interval?et.interval:i.interval,wt(n)<0&&(s.length&&S(s[0],"active"),n.indicators.length&&mt(n,0)),vt(n,!0),i.interval&&n.cycle()}get name(){return"Carousel"}get defaults(){return et}get isPaused(){return p(this.element,"paused")}get isAnimating(){return null!==h(".carousel-item-next,.carousel-item-prev",this.element)}cycle(){const t=this,{element:e,options:n,isPaused:o}=t;J(e,"carousel"),o&&(J(e,"paused"),g(e,"paused")),G(e,()=>{!t.isPaused&&j(e)&&(t.index+=1,t.to(t.index))},n.interval,"carousel")}pause(){const{element:t,options:e}=this;!this.isPaused&&e.interval&&(S(t,"paused"),G(t,()=>{},1,"paused"))}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,slides:o,options:s}=e,i=wt(e),c=Y();let d=t;if(e.isAnimating||i===d)return;i<d||0===i&&d===o.length-1?e.direction=c?"right":"left":(i>d||i===o.length-1&&0===d)&&(e.direction=c?"left":"right");const{direction:h}=e;d<0?d=o.length-1:d>=o.length&&(d=0);const u="left"===h?"next":"prev",b="left"===h?"start":"end",v={relatedTarget:o[d],from:i,to:d,direction:h};f(at,v),f(lt,v),m(n,at),at.defaultPrevented||(e.index=d,mt(e,d),a(o[d])&&p(n,"slide")?G(n,()=>{S(o[d],"carousel-item-"+u),K(o[d]),S(o[d],"carousel-item-"+b),S(o[i],"carousel-item-"+b),l(o[d],()=>function(t){const{index:e,direction:n,element:o,slides:s,options:i}=t;if(t.isAnimating&&nt(o)){const a=wt(t),l="left"===n?"next":"prev",c="left"===n?"start":"end";S(s[e],"active"),g(s[e],"carousel-item-"+l),g(s[e],"carousel-item-"+c),g(s[a],"active"),g(s[a],"carousel-item-"+c),m(o,lt),J(o,"data-bs-slide"),r(o).hidden||!i.interval||t.isPaused||t.cycle()}}(e))},17,"data-bs-slide"):(S(o[d],"active"),g(o[i],"active"),G(n,()=>{J(n,"data-bs-slide"),n&&s.interval&&!e.isPaused&&e.cycle(),m(n,lt)},17,"data-bs-slide")))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];[...e].forEach((e,o)=>{p(e,"active")&&mt(t,o),n.forEach(t=>g(e,"carousel-item-"+t))}),vt(t),super.dispose()}}f(yt,{selector:'[data-bs-ride="carousel"]',init:t=>new yt(t),getInstance:nt});const Tt={parent:null},Et=t=>w(t,"Collapse"),xt=y("show.bs.collapse"),Ht=y("shown.bs.collapse"),kt=y("hide.bs.collapse"),At=y("hidden.bs.collapse");function Pt(t){const{element:e,parent:n,triggers:o}=t;m(e,kt),kt.defaultPrevented||(G(e,()=>{},17),n&&G(n,()=>{},17),e.style.height=e.scrollHeight+"px",g(e,"collapse"),g(e,"show"),S(e,"collapsing"),K(e),e.style.height="0px",l(e,()=>{J(e),n&&J(n),o.forEach(t=>C(t,"aria-expanded","false")),g(e,"collapsing"),S(e,"collapse"),e.style.height="",m(e,At)}))}function Mt(t,e){const s=e?n:o,{triggers:i}=t;i.length&&i.forEach(t=>s(t,"click",Nt))}function Nt(t){const{target:e}=t,n=e&&u(e,'[data-bs-toggle="collapse"]'),o=n&&_(n),s=o&&Et(o);s&&s.toggle(),n&&"A"===n.tagName&&t.preventDefault()}class Lt extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;this.triggers=[...V('[data-bs-toggle="collapse"]')].filter(t=>_(t)===n),this.parent=h(o.parent),Mt(this,!0)}get name(){return"Collapse"}get defaults(){return Tt}toggle(){p(this.element,"show")?this.hide():this.show()}hide(){const{triggers:t,element:e}=this;Z(e)||(Pt(this),t.length&&t.forEach(t=>S(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o}=t;let s,i;n&&(s=[...V(".collapse.show",n)].find(t=>Et(t)),i=s&&Et(s)),n&&(!n||Z(n))||Z(e)||(i&&s!==e&&(Pt(i),i.triggers.forEach(t=>{S(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;m(e,xt),xt.defaultPrevented||(G(e,()=>{},17),n&&G(n,()=>{},17),S(e,"collapsing"),g(e,"collapse"),e.style.height=e.scrollHeight+"px",l(e,()=>{J(e),n&&J(n),o.forEach(t=>C(t,"aria-expanded","true")),g(e,"collapsing"),S(e,"collapse"),S(e,"show"),e.style.height="",m(e,Ht)}))}(t),o.length&&o.forEach(t=>g(t,"collapsed")))}dispose(){Mt(this),super.dispose()}}f(Lt,{selector:".collapse",init:t=>new Lt(t),getInstance:Et});const Dt="scroll",Ct="resize",St="ArrowUp",It="ArrowDown",Rt=(t,e)=>t.hasAttribute(e),$t=(t,e)=>{f(t.style,e)},Ot=t=>t.focus(),Wt=["dropdown","dropup","dropstart","dropend"];function Ft(t){const e=u(t,"A");return t&&(Rt(t,"href")&&"#"===t.href.slice(-1)||e&&Rt(e,"href")&&"#"===e.href.slice(-1))}const[Bt,zt,Xt,jt]=Wt,Yt=`[data-bs-toggle="${Bt}"]`,Vt=t=>w(t,"Dropdown"),qt=[Bt,zt],Ut=[Xt,jt],Gt=["A","BUTTON"],Zt={offset:5,display:"dynamic"},Jt=y("show.bs."+Bt),Kt=y("shown.bs."+Bt),Qt=y("hide.bs."+Bt),_t=y("hidden.bs."+Bt);function te(t){const{element:e,menu:n,parentElement:o,options:s}=t,{offset:a}=s;if("static"===i(n,"position"))return;const l=Y(e),r=p(o,"dropdown-menu-end");["margin","top","bottom","left","right"].forEach(t=>{n.style[t]=""});let c=Wt.find(t=>p(o,t))||Bt,d={dropdown:[a,0,0],dropup:[0,0,a],dropstart:l?[-1,0,0,a]:[-1,a,0],dropend:l?[-1,a,0]:[-1,0,0,a]};const h={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:l?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:l?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuEnd:l?{right:"auto",left:0}:{right:0,left:"auto"}},{offsetWidth:u,offsetHeight:g}=n,{clientWidth:m,clientHeight:b}=X(e),{left:v,top:w,width:y,height:T}=z(e),E=v-u-a<0,x=v+u+y+a>=m,H=w+g+a>=b,k=w+g+T+a>=b,A=w-g-a<0,P=(!l&&r||l&&!r)&&v+y-u<0,M=(l&&r||!l&&!r)&&v+u>=m;Ut.includes(c)&&E&&x&&(c=Bt),c===Xt&&(l?x:E)&&(c=jt),c===jt&&(l?E:x)&&(c=Xt),c===zt&&A&&!k&&(c=Bt),c===Bt&&k&&!A&&(c=zt),Ut.includes(c)&&H&&f(h[c],{top:"auto",bottom:0}),qt.includes(c)&&(P||M)&&v+y+Math.abs(u-y)+a<m&&f(h[c],P?{left:0,right:"auto"}:{left:"auto",right:0}),d=d[c],n.style.margin=""+d.map(t=>t?t+"px":t).join(" "),$t(n,h[c]),p(n,"dropdown-menu-end")&&$t(n,h.menuEnd)}function ee(t){const{element:e}=t,s=t.open?n:o,i=r(e);s(i,"click",se),s(i,"focus",se),s(i,"keydown",ae),s(i,"keyup",le),"dynamic"===t.options.display&&[Dt,Ct].forEach(t=>{s(B(e),t,re,Q)})}function ne(t,e){(e?n:o)(t.element,"click",ie)}function oe(t){const e=[...Wt,"btn-group","input-group"].map(t=>q(t+" show"),r(t)).find(t=>t.length);return e&&e.length?[...e[0].children].find(t=>Rt(t,I)):null}function se(t){const{target:e,type:n}=t;if(!e||!e.closest)return;const o=oe(e);if(!o)return;const s=Vt(o);if(!s)return;const{parentElement:i,menu:a}=s,l=null!==u(e,Yt),r=i&&i.contains(e)&&("form"===e.tagName||null!==u(e,"form"));"click"===n&&Ft(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(r||l||s&&s.hide())}function ie(t){const{target:e}=t,n=Vt(this);n&&(n.toggle(),e&&Ft(e)&&t.preventDefault())}function ae(t){[It,St].includes(t.code)&&t.preventDefault()}function le(t){const{code:e}=t,n=oe(this),o=n&&Vt(n),s=n&&r(n).activeElement;if(!o||!s)return;const{menu:i,open:a}=o,l=function(t){return[...t.children].map(t=>{if(t&&Gt.includes(t.tagName))return t;const{firstElementChild:e}=t;return e&&Gt.includes(e.tagName)?e:null}).filter(t=>t)}(i);if(l&&l.length&&[It,St].includes(e)){let t=l.indexOf(s);s===n?t=0:e===St?t=t>1?t-1:0:e===It&&(t=t<l.length-1?t+1:t),l[t]&&Ot(l[t])}"Escape"===e&&a&&(o.toggle(),Ot(n))}function re(){const t=oe(this),e=t&&Vt(t);e&&e.open&&te(e)}class ce extends k{constructor(t,e){super(t,e);const{element:n}=this,{parentElement:o}=n;this.parentElement=o,this.menu=h(".dropdown-menu",o),this.open=!1,ne(this,!0)}get name(){return"Dropdown"}get defaults(){return Zt}toggle(){this.open?this.hide():this.show()}show(){const t=this,{element:e,open:n,menu:o,parentElement:s}=t,i=oe(e),a=i&&Vt(i);a&&a.hide(),[Jt,Kt].forEach(t=>{t.relatedTarget=e}),m(s,Jt),Jt.defaultPrevented||(S(o,"show"),S(s,"show"),C(e,"aria-expanded","true"),te(t),t.open=!n,setTimeout(()=>{Ot(e),ee(t),m(s,Kt)},1))}hide(){const t=this,{element:e,open:n,menu:o,parentElement:s}=t;[Qt,_t].forEach(t=>{t.relatedTarget=e}),m(s,Qt),Qt.defaultPrevented||(g(o,"show"),g(s,"show"),C(e,"aria-expanded","false"),t.open=!n,setTimeout(()=>ee(t),1),m(s,_t))}dispose(){const{parentElement:t}=this;p(t,"show")&&this.open&&this.hide(),ne(this),super.dispose()}}f(ce,{selector:Yt,init:t=>new ce(t),getInstance:Vt});const de=(t,e)=>t.removeAttribute(e);function he(t){return r(t).body}const ue=t=>t instanceof B(t).ShadowRoot||t instanceof ShadowRoot;const fe=t=>["TABLE","TD","TH"].includes(t.tagName),pe=t=>t instanceof HTMLElement;function ge(t,e){const n=["HTML","BODY"];if(e){let{offsetParent:e}=t;const o=B(t);for(;e&&(fe(e)||pe(e)&&!["sticky","fixed"].includes(i(e,"position")));)e=e.offsetParent;return(!e||e&&(n.includes(e.tagName)||"static"===i(e,"position")))&&(e=o),e}const o=[];let{parentNode:s}=t;for(;s&&!n.includes(s.nodeName);)s="HTML"===(a=s).nodeName?a:a.assignedSlot||a.parentNode||(ue(a)?a.host:null)||X(a),ue(s)||s.shadowRoot||fe(s)||o.push(s);var a;return o.find((t,e)=>"relative"!==i(t,"position")&&o.slice(e+1).every(t=>"static"===i(t,"position"))?t:null)||he(t)}const me="sticky-top",be="position-sticky",ve=t=>[...q("fixed-top",t),...q("fixed-bottom",t),...q(me,t),...q(be,t),...q("is-fixed",t)];function we(t){const{clientWidth:e}=X(t),{innerWidth:n}=B(t);return Math.abs(n-e)}function ye(t,e){const n=he(t),o=parseInt(i(n,"paddingRight"),10),s="hidden"===i(n,"overflow")&&o?0:we(t),a=ve(n);e&&($t(n,{overflow:"hidden",paddingRight:o+s+"px"}),a.length&&a.forEach(t=>{const e=i(t,"paddingRight");if(t.style.paddingRight=parseInt(e,10)+s+"px",[me,be].some(e=>p(t,e))){const e=i(t,"marginRight");t.style.marginRight=parseInt(e,10)-s+"px"}}))}const Te="modal-backdrop",Ee="offcanvas-backdrop",xe=r().createElement("div");function He(t){return h(".modal.show,.offcanvas.show",r(t))}function ke(t){const e=t?Te:Ee;[Te,Ee].forEach(t=>{g(xe,t)}),S(xe,e)}function Ae(t,e,n){ke(n),t.append(xe),e&&S(xe,"fade")}function Pe(){S(xe,"show"),K(xe)}function Me(){g(xe,"show")}function Ne(t){He(t)||(g(xe,"fade"),xe.remove(),function(t){const e=he(t);$t(e,{paddingRight:"",overflow:""});const n=ve(e);n.length&&n.forEach(t=>{$t(t,{paddingRight:"",marginRight:""})})}(t))}function Le(t){return t&&"hidden"!==i(t,"visibility")&&null!==t.offsetParent}const De={backdrop:!0,keyboard:!0},Ce=t=>w(t,"Modal"),Se=y("show.bs.modal"),Ie=y("shown.bs.modal"),Re=y("hide.bs.modal"),$e=y("hidden.bs.modal");function Oe(t){const{element:e}=t,n=we(e),{clientHeight:o,scrollHeight:s}=X(e),{clientHeight:i,scrollHeight:a}=e,l=i!==a;if(!l&&n){const t=Y(e)?"paddingLeft":"paddingRight";e.style[t]=n+"px"}ye(e,l||o!==s)}function We(t,e){const s=e?n:o,{element:i}=t;s(i,"click",qe),s(B(i),Ct,t.update,Q),s(r(i),"keydown",Ve)}function Fe(t,e){const s=e?n:o,{triggers:i}=t;i.length&&i.forEach(t=>s(t,"click",Ye))}function Be(t){const{triggers:e,element:n}=t;if(Ne(n),n.style.paddingRight="",e.length){const t=e.find(t=>Le(t));t&&Ot(t)}}function ze(t){const{element:e,relatedTarget:n}=t;Ot(e),We(t,!0),Ie.relatedTarget=n,m(e,Ie)}function Xe(t){const{element:e,hasFade:n}=t;e.style.display="block",Oe(t),He(e)||(he(e).style.overflow="hidden"),S(e,"show"),de(e,"aria-hidden"),C(e,"aria-modal","true"),n?l(e,()=>ze(t)):ze(t)}function je(t,e){const{element:n,options:o,relatedTarget:s,hasFade:i}=t;n.style.display="",o.backdrop&&!e&&i&&p(xe,"show")&&!He(n)?(Me(),l(xe,()=>Be(t))):Be(t),We(t),$e.relatedTarget=s,m(n,$e)}function Ye(t){const{target:e}=t,n=e&&u(this,'[data-bs-toggle="modal"]'),o=n&&_(n),s=o&&Ce(o);s&&(n&&"A"===n.tagName&&t.preventDefault(),s.relatedTarget=n,s.toggle())}function Ve({code:t}){const e=h(".modal.show"),n=e&&Ce(e);if(!n)return;const{options:o}=n;o.keyboard&&"Escape"===t&&p(e,"show")&&(n.relatedTarget=null,n.hide())}function qe(t){const e=this,n=Ce(e);if(!n||Z(e))return;const{options:o,isStatic:s,modalDialog:i}=n,{backdrop:c}=o,{target:d}=t,h=r(e).getSelection().toString().length,f=i.contains(d),p=d&&u(d,'[data-bs-dismiss="modal"]');s&&!f?G(e,()=>{S(e,"modal-static"),l(i,()=>function(t){const{element:e,modalDialog:n}=t,o=a(n)+17;g(e,"modal-static"),G(e,()=>J(e),o)}(n))},17):(p||!h&&!s&&!f&&c)&&(n.relatedTarget=p||null,n.hide(),t.preventDefault())}class Ue extends k{constructor(t,e){super(t,e);const{element:n}=this;this.modalDialog=h(".modal-dialog",n),this.triggers=[...V('[data-bs-toggle="modal"]')].filter(t=>_(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=p(n,"fade"),this.relatedTarget=null,this.container=ge(n),Fe(this,!0),this.update=this.update.bind(this)}get name(){return"Modal"}get defaults(){return De}toggle(){p(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,options:n,hasFade:o,relatedTarget:s,container:i}=t,{backdrop:l}=n;let r=0;if(p(e,"show"))return;if(Se.relatedTarget=s||null,m(e,Se),Se.defaultPrevented)return;const c=He(e);if(c&&c!==e){(Ce(c)||w(c,"Offcanvas")).hide()}l?(c||p(xe,"show")?ke(!0):Ae(i,o,!0),r=a(xe),p(xe,"show")||Pe(),setTimeout(()=>Xe(t),r)):(Xe(t),c&&p(xe,"show")&&Me())}hide(t){const e=this,{element:n,hasFade:o,relatedTarget:s}=e;p(n,"show")&&(Re.relatedTarget=s||null,m(n,Re),Re.defaultPrevented||(g(n,"show"),C(n,"aria-hidden","true"),de(n,"aria-modal"),o&&!1!==t?l(n,()=>je(e)):je(e,t)))}update(){p(this.element,"show")&&Oe(this)}dispose(){this.hide(!0),Fe(this),super.dispose()}}f(Ue,{selector:".modal",init:t=>new Ue(t),getInstance:Ce});const Ge={backdrop:!0,keyboard:!0,scroll:!1},Ze=t=>w(t,"Offcanvas"),Je=y("show.bs.offcanvas"),Ke=y("shown.bs.offcanvas"),Qe=y("hide.bs.offcanvas"),_e=y("hidden.bs.offcanvas");function tn(t,e){const s=e?n:o;t.triggers.forEach(t=>s(t,"click",sn))}function en(t,e){const s=e?n:o,i=r(t.element);s(i,"keydown",ln),s(i,"click",an)}function nn(t){const{element:e,options:n}=t;n.scroll||(!function(t){const{element:e}=t,{clientHeight:n,scrollHeight:o}=X(e);ye(e,n!==o)}(t),he(e).style.overflow="hidden"),S(e,"offcanvas-toggling"),S(e,"show"),e.style.visibility="visible",l(e,()=>function(t){const{element:e,triggers:n}=t;g(e,"offcanvas-toggling"),de(e,"aria-hidden"),C(e,"aria-modal","true"),C(e,"role","dialog"),n.length&&n.forEach(t=>C(t,"aria-expanded","true"));m(e,Ke),en(t,!0),Ot(e)}(t))}function on(t){const{element:e,options:n}=t,o=He(e);e.blur(),!o&&n.backdrop&&p(xe,"show")?(Me(),l(xe,()=>rn(t))):rn(t)}function sn(t){const e=u(this,'[data-bs-toggle="offcanvas"]'),n=e&&_(e),o=n&&Ze(n);o&&(o.relatedTarget=e,o.toggle(),e&&"A"===e.tagName&&t.preventDefault())}function an(t){const e=h(".offcanvas.show",this);if(!e)return;const n=h('[data-bs-dismiss="offcanvas"]',e),o=Ze(e);if(!o)return;const{options:s,triggers:i}=o,{target:a}=t,l=u(a,'[data-bs-toggle="offcanvas"]'),c=r(e).getSelection();c&&c.toString().length||!(!e.contains(a)&&s.backdrop&&(!l||l&&!i.includes(l))||n&&n.contains(a))||(o.relatedTarget=n&&n.contains(a)?n:null,o.hide()),l&&"A"===l.tagName&&t.preventDefault()}function ln({code:t}){const e=h(".offcanvas.show",this);if(!e)return;const n=Ze(e);n&&n.options.keyboard&&"Escape"===t&&(n.relatedTarget=null,n.hide())}function rn(t){const{element:e,triggers:n}=t;if(C(e,"aria-hidden","true"),de(e,"aria-modal"),de(e,"role"),e.style.visibility="",n.length){n.forEach(t=>C(t,"aria-expanded","false"));const t=n.find(t=>Le(t));t&&Ot(t)}Ne(e),m(e,_e),g(e,"offcanvas-toggling"),He(e)||en(t)}class cn extends k{constructor(t,e){super(t,e);const{element:n}=this;this.triggers=[...V('[data-bs-toggle="offcanvas"]')].filter(t=>_(t)===n),this.container=ge(n),this.relatedTarget=null,tn(this,!0)}get name(){return"Offcanvas"}get defaults(){return Ge}toggle(){p(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,options:n,container:o,relatedTarget:s}=t;let i=0;if(p(e,"show"))return;if(Je.relatedTarget=s,Ke.relatedTarget=s,m(e,Je),Je.defaultPrevented)return;const l=He(e);if(l&&l!==e){(Ze(l)||w(l,"Modal")).hide()}n.backdrop?(l?ke():Ae(o,!0),i=a(xe),p(xe,"show")||Pe(),setTimeout(()=>nn(t),i)):(nn(t),l&&p(xe,"show")&&Me())}hide(t){const e=this,{element:n,relatedTarget:o}=e;p(n,"show")&&(Qe.relatedTarget=o,_e.relatedTarget=o,m(n,Qe),Qe.defaultPrevented||(S(n,"offcanvas-toggling"),g(n,"show"),t?on(e):l(n,()=>on(e))))}dispose(){this.hide(!0),tn(this),super.dispose()}}f(cn,{selector:".offcanvas",init:t=>new cn(t),getInstance:Ze});function dn(t){const e="tooltip"===t;return`<div class="${t}" role="tooltip">${(e?"":`<h3 class="${t}-header"></h3>`)+`<div class="${t}-arrow"></div>`+`<div class="${e?t+"-inner":t+"-body"}"></div>`}</div>`}const hn=t=>t&&[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e);function un(t,e,n){const o=e instanceof HTMLElement,s=z(t,o&&function(t){const{width:e,height:n}=z(t),{offsetWidth:o,offsetHeight:s}=t;return Math.round(e)!==o||Math.round(n)!==s}(e)),i={x:0,y:0};if(o){const t=z(e,!0);i.x=t.x+e.clientLeft,i.y=t.y+e.clientTop}return{x:s.left+n.x-i.x,y:s.top+n.y-i.y,width:s.width,height:s.height}}var fn={top:"top",bottom:"bottom",left:"start",right:"end"};function pn(t,e){const n=/\b(top|bottom|start|end)+/,{element:o,tooltip:s,options:a,arrow:l,offsetParent:r}=t,c={...fn};$t(s,{top:"0px",left:"0px",right:""});const d="Popover"===t.name,h=s.offsetWidth,u=s.offsetHeight,f=Y(o);f&&(c.left="end",c.right="start");const p=X(o),g=p.clientWidth,m=p.clientHeight,{container:b}=a;let{placement:v}=a;const{left:w,right:y,top:T}=z(b,!0),E=b.clientWidth,x=Math.abs(E-b.offsetWidth),H=i(b,"position"),k="fixed"===H,A="static"===H,P="sticky"===H&&T===parseFloat(i(b,"top")),M=f&&k?x:0,N=k?E+w+(f?x:0):E+w+(g-y)-1,{width:L,height:D,left:C,right:S,top:I}=z(o,!0),R=function(t){const e="scrollX"in t;return{x:e?t.scrollX:t.scrollLeft,y:e?t.scrollY:t.scrollTop}}(r),{x:$,y:O}=un(o,r,R);let W,F,B,j,V,q;$t(l,{top:"",left:"",right:""});const U=l.offsetWidth||0,G=l.offsetHeight||0,Z=U/2;let J=I-u-G<0,K=I+u+D+G>=m,Q=C-h-U<M,_=C+h+L+U>=N;const tt=["left","right"],et=["top","bottom"];if(J=tt.includes(v)?I+D/2-u/2-G<0:J,K=tt.includes(v)?I+u/2+D/2+G>=m:K,Q=et.includes(v)?C+L/2-h/2<M:Q,_=et.includes(v)?C+h/2+L/2>=N:_,v=tt.includes(v)&&Q&&_?"top":v,v="top"===v&&J?"bottom":v,v="bottom"===v&&K?"top":v,v="left"===v&&Q?"right":v,v="right"===v&&_?"left":v,s.className.includes(v)||(s.className=s.className.replace(n,c[v])),tt.includes(v))F="left"===v?$-h-(d?U:0):$+L+(d?U:0),J?(W=O,W+=P?-T-R.y:0,j=D/2-U):K?(W=O-u+D,W+=P?-T-R.y:0,j=u-D/2-U):(W=O-u/2+D/2,W+=P?-T-R.y:0,j=u/2-G/2);else if(et.includes(v))if(e&&hn(o)){let t=0,n=0;A?(t=e.pageX,n=e.pageY):(t=e.clientX-w+(k?R.x:0),n=e.clientY-T+(k?R.y:0)),t-=f&&k&&x?x:0,W="top"===v?n-u-U:n+U,e.clientX-h/2<M?(F=0,V=t-Z):e.clientX+h/2>N?(F="auto",B=0,q=N-t-Z,q-=k?w+(f?x:0):0):(F=t-h/2,V=h/2-Z)}else W="top"===v?O-u-(d?G:0):O+D+(d?G:0),Q?(F=0,V=$+L/2-Z):_?(F="auto",B=0,q=L/2+N-S-Z):(F=$-h/2+L/2,V=h/2-Z);$t(s,{top:W+"px",left:"auto"===F?F:F+"px",right:void 0!==B?B+"px":""}),l instanceof HTMLElement&&(void 0!==j&&(l.style.top=j+"px"),void 0!==V?l.style.left=V+"px":void 0!==q&&(l.style.right=q+"px"))}const gn={template:dn("tooltip"),title:null,customClass:null,trigger:"hover focus",placement:"top",sanitizeFn:null,animation:!0,delay:200,container:null},mn="focusin",bn="focusout",{userAgentData:vn}=navigator,wn=vn,{userAgent:yn}=navigator,Tn=yn,En=/(iPhone|iPod|iPad)/,xn=wn?wn.brands.some(t=>En.test(t.brand)):En.test(Tn);let Hn=1;const kn=new Map;function An(t,e,n){if("string"!=typeof e||e.length)if("string"==typeof e){let o=e.trim();"function"==typeof n&&(o=n(o));const s=(new DOMParser).parseFromString(o,"text/html"),{body:i}=s,a=i.children.length?"innerHTML":"innerText";t[a]=i[a]}else e instanceof HTMLElement&&t.append(e)}function Pn(t,e){return t instanceof HTMLElement&&e.contains(t)}let Mn=t=>w(t,"Tooltip");function Nn(t){const{element:e}=t;Sn(t),e.hasAttribute("data-original-title")&&"tooltip"===t.name&&Rn(t)}function Ln(t,e){const s=e?n:o,{element:i}=t;s(r(i),"touchstart",$n,Q),hn(i)||[Dt,Ct].forEach(e=>{s(B(i),e,t.update,Q)})}function Dn(t){const{element:e}=t,n=y("shown.bs."+H(t.name));Ln(t,!0),m(e,n),J(e,"in")}function Cn(t){const{element:e}=t,n=y("hidden.bs."+H(t.name));Ln(t),function(t){const{element:e,tooltip:n}=t;de(e,"aria-describedby"),n.remove()}(t),m(e,n),J(e,"out")}function Sn(t,e){const s=e?n:o,{element:i,options:a,btn:l}=t,{trigger:c,dismissible:d}=a;if(c.includes("manual"))return;t.enabled=!!e;const h=c.split(" "),u=hn(i);u&&s(i,"mousemove",t.update,Q),h.forEach(e=>{u||"hover"===e?(s(i,"mousedown",t.show),s(i,W,t.show),d&&l?s(l,"click",t.hide):(s(i,F,t.hide),s(r(i),"touchstart",$n,Q))):"click"===e?s(i,e,d?t.show:t.toggle):"focus"===e&&(s(i,mn,t.show),d||s(i,bn,t.hide),xn&&s(i,"click",()=>Ot(i)))})}function In(t,e){const s=e?n:o,{element:i,options:a,offsetParent:l}=t,{container:r}=a,{offsetHeight:c,scrollHeight:d}=r,h=u(i,".modal"),f=u(i,".offcanvas");if(!hn(i)){const e=B(i),n=c!==d||l!==e?r:e;s(e,Ct,t.update,Q),s(n,Dt,t.update,Q)}h&&s(h,"hide.bs.modal",t.hide),f&&s(f,"hide.bs.offcanvas",t.hide)}function Rn(t,e){const n=["data-original-title","title"],{element:o}=t;C(o,n[e?0:1],e||T(o,n[0])),de(o,n[e?1:0])}function $n({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class On extends k{constructor(t,e){super(t,e);const n=this,{element:o}=n,s="Tooltip"===n.name,a=s?"tooltip":"popover",l=s?"Tooltip":"Popover";Mn=t=>w(t,l),n.tooltip={},s||(n.btn=null),n.arrow={},n.offsetParent={},n.enabled=!0,n.id=`${a}-${function(t,e){Hn+=1;let n=kn.get(t),o=Hn;if(e&&e.length)if(n){const t=n.get(e);Number.isNaN(t)?n.set(e,o):o=t}else kn.set(t,new Map),n=kn.get(t),n.set(e,o);else Number.isNaN(n)?kn.set(t,o):o=n;return o}(o,a)}`;const{options:c}=n;if(!c.title&&s||!s&&!c.content)return;const d=h(c.container),u=ge(o);n.options.container=!d||d&&["static","relative"].includes(i(d,"position"))?u:d||he(o),gn.title=null,$n.bind(n),n.update=n.update.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n.toggle=n.toggle.bind(n),o.hasAttribute("title")&&s&&Rn(n,c.title),function(t){const{id:e,element:n,options:o}=t,{animation:s,customClass:i,sanitizeFn:a,placement:l,dismissible:c}=o;let{title:d,content:u}=o;const f="Tooltip"===t.name,g=f?"tooltip":"popover",{template:m,btnClose:b}=o,v={...fn};Y(n)&&(v.left="end",v.right="start");const w=`bs-${g}-${v[l]}`;let y;if([Element,HTMLElement].some(t=>m instanceof t))y=m;else{const t=r(n).createElement("div");An(t,m,a),y=t.firstElementChild}t.tooltip=y&&y.cloneNode(!0);const{tooltip:T}=t;C(T,"id",e),C(T,"role","tooltip");const E=f?"tooltip-inner":"popover-body",x=f?null:h(".popover-header",T),H=h("."+E,T);t.arrow=h(`.${g}-arrow`,T),c&&(d?d instanceof HTMLElement?An(d,b,a):d+=b:(x&&x.remove(),u instanceof HTMLElement?An(u,b,a):u+=b)),f?d&&H&&An(H,d,a):(d&&x&&An(x,d,a),u&&H&&An(H,u,a),t.btn=h(".btn-close",T)),p(T,g)||S(T,g),s&&!p(T,"fade")&&S(T,"fade"),i&&!p(T,i)&&S(T,i),p(T,w)||S(T,w)}(n),Sn(n,!0)}get name(){return"Tooltip"}get defaults(){return gn}show(t){const e=this,{options:n,tooltip:o,element:s,id:i}=e,{container:a,animation:r}=n,c=Z(s,"out");J(s,"out"),!o||c||Pn(o,a)||G(s,()=>{const n=y("show.bs."+H(e.name));m(s,n),n.defaultPrevented||(a.append(o),C(s,"aria-describedby","#"+i),e.offsetParent=ge(o,!0),e.update(t),In(e,!0),p(o,"show")||S(o,"show"),r?l(o,()=>Dn(e)):Dn(e))},17,"in")}hide(){const t=this,{options:e,tooltip:n,element:o}=t,{container:s,animation:i,delay:a}=e;J(o,"in"),n&&Pn(n,s)&&G(o,()=>{const e=y("hide.bs."+H(t.name));m(o,e),e.defaultPrevented||(g(n,"show"),In(t),i?l(n,()=>Cn(t)):Cn(t))},a+17,"out")}update(t){pn(this,t)}toggle(t){const{tooltip:e,options:n}=this;Pn(e,n.container)?this.hide():this.show(t)}enable(){const t=this,{enabled:e}=t;e||(Sn(t,!0),t.enabled=!e)}disable(){const t=this,{element:e,tooltip:n,options:o,enabled:s}=t,{animation:i,container:l,delay:r}=o;s&&(Pn(n,l)&&i?(t.hide(),G(e,()=>{Sn(t),J(e,"tooltip")},a(n)+r+17,"tooltip")):Sn(t),t.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&Pn(e,n.container)?(n.delay=0,t.hide(),l(e,()=>Nn(t))):Nn(t),super.dispose()}}f(On,{selector:'[data-bs-toggle="tooltip"],[data-tip="tooltip"]',init:t=>new On(t),getInstance:Mn,styleTip:pn});const Wn={...gn,template:dn("popover"),btnClose:'<button class="btn-close" aria-label="Close"></button>',dismissible:!1,content:null};class Fn extends On{constructor(t,e){super(t,e)}get name(){return"Popover"}get defaults(){return Wn}show(){super.show();const{options:t,btn:e}=this;t.dismissible&&e&&setTimeout(()=>Ot(e),17)}}function Bn(t,e){return(e&&c.some(t=>e instanceof t)?e:r()).getElementsByTagName(t)}f(Fn,{selector:'[data-bs-toggle="popover"],[data-tip="popover"]',init:t=>new Fn(t),getInstance:t=>w(t,"Popover"),styleTip:pn});const zn={offset:10,target:null},Xn=y("activate.bs.scrollspy");function jn(t){const{target:e,scrollTarget:n,options:o,itemsLength:s,scrollHeight:i,element:a}=t,{offset:l}=o,c=n instanceof Window,d=e&&Bn("A",e),u=n&&function(t){return t instanceof HTMLElement?t.scrollHeight:X(t).scrollHeight}(n);if(t.scrollTop=c?n.scrollY:n.scrollTop,d&&(s!==d.length||u!==i)){let e,n,o;t.items=[],t.offsets=[],t.scrollHeight=u,t.maxScroll=t.scrollHeight-function({element:t,scrollTarget:e}){return e instanceof Window?e.innerHeight:z(t).height}(t),[...d].forEach(s=>{e=T(s,"href"),n=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&h(e,r(a)),n&&(t.items.push(s),o=z(n),t.offsets.push((c?o.top+t.scrollTop:n.offsetTop)-l))}),t.itemsLength=t.items.length}}function Yn(t){[...Bn("A",t)].forEach(t=>{p(t,"active")&&g(t,"active")})}function Vn(t,e){const{target:n,element:o}=t;Yn(n),t.activeItem=e,S(e,"active");const s=[];let i=e;for(;i!==he(o);)i=i.parentElement,(p(i,"nav")||p(i,"dropdown-menu"))&&s.push(i);s.forEach(t=>{const e=t.previousElementSibling;e&&!p(e,"active")&&S(e,"active")}),Xn.relatedTarget=e,m(o,Xn)}function qn(t,e){(e?n:o)(t.scrollTarget,Dt,t.refresh,Q)}class Un extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;if(this.target=h(o.target,r(n)),!this.target)return;const s=B(n);this.scrollTarget=n.clientHeight<n.scrollHeight?n:s,this.scrollTop=0,this.maxScroll=0,this.scrollHeight=0,this.activeItem=null,this.items=[],this.itemsLength=0,this.offsets=[],this.refresh=this.refresh.bind(this),qn(this,!0),this.refresh()}get name(){return"ScrollSpy"}get defaults(){return zn}refresh(){const t=this,{target:e}=t;if(0===e.offsetHeight)return;jn(t);const{scrollTop:n,maxScroll:o,itemsLength:s,items:i,activeItem:a}=t;if(n>=o){const e=i[s-1];return void(a!==e&&Vn(t,e))}const{offsets:l}=t;if(a&&n<l[0]&&l[0]>0)return t.activeItem=null,void Yn(e);i.forEach((e,o)=>{a!==e&&n>=l[o]&&(void 0===l[o+1]||n<l[o+1])&&Vn(t,e)})}dispose(){qn(this),super.dispose()}}f(Un,{selector:'[data-bs-spy="scroll"]',init:t=>new Un(t),getInstance:t=>w(t,"ScrollSpy")});const Gn=t=>w(t,"Tab"),Zn=y("show.bs.tab"),Jn=y("shown.bs.tab"),Kn=y("hide.bs.tab"),Qn=y("hidden.bs.tab"),_n=new Map;function to(t){const{tabContent:e,nav:n}=t;e&&(e.style.height="",g(e,"collapsing")),n&&J(n)}function eo(t){const{element:e,tabContent:n,nav:o}=t,{currentHeight:s,nextHeight:i}=_n.get(e),{tab:a}=o&&_n.get(o);n?s===i?to(t):setTimeout(()=>{n.style.height=i+"px",K(n),l(n,()=>to(t))},50):o&&J(o),Jn.relatedTarget=a,m(e,Jn)}function no(t){const{element:e,content:n,tabContent:o,nav:s}=t,{tab:i,content:a}=s&&_n.get(s);let r=0;if(o&&([a,n].forEach(t=>S(t,"overflow-hidden")),r=a.scrollHeight),Zn.relatedTarget=i,Qn.relatedTarget=e,m(e,Zn),!Zn.defaultPrevented){if(S(n,"active"),g(a,"active"),o){const t=n.scrollHeight;_n.set(e,{currentHeight:r,nextHeight:t}),S(o,"collapsing"),o.style.height=r+"px",K(o),[a,n].forEach(t=>g(t,"overflow-hidden"))}n&&p(n,"fade")?setTimeout(()=>{S(n,"show"),l(n,()=>{eo(t)})},17):eo(t),m(i,Qn)}}function oo(t,e){(e?n:o)(t.element,"click",so)}function so(t){const e=Gn(this);e&&(t.preventDefault(),e.show())}class io extends k{constructor(t){super(t);const{element:e}=this,n=_(e);if(!n)return;const o=u(e,".nav"),s=u(n,".tab-content");this.nav=o,this.content=n,this.tabContent=s,this.dropdown=o&&h(`.${Wt[0]}-toggle`,o),oo(this,!0)}get name(){return"Tab"}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(!(n&&Z(n)||p(e,"active"))){const{tab:s,content:i}=function(t){const{nav:e}=t,n=q("active",e);let o;return 1!==n.length||Wt.some(t=>p(n[0].parentElement,t))?n.length>1&&(o=n[n.length-1]):[o]=n,{tab:o,content:o?_(o):null}}(t);if(n&&_n.set(n,{tab:s,content:i}),Kn.relatedTarget=e,m(s,Kn),Kn.defaultPrevented)return;n&&G(n,()=>{},17),g(s,"active"),C(s,"aria-selected","false"),S(e,"active"),C(e,"aria-selected","true"),o&&(p(e.parentNode,"dropdown-menu")?p(o,"active")||S(o,"active"):p(o,"active")&&g(o,"active")),p(i,"fade")?(g(i,"show"),l(i,()=>no(t))):no(t)}}dispose(){oo(this),super.dispose()}}f(io,{selector:'[data-bs-toggle="tab"]',init:t=>new io(t),getInstance:Gn});const ao={animation:!0,autohide:!0,delay:5e3},lo=t=>w(t,"Toast"),ro=y("show.bs.toast"),co=y("shown.bs.toast"),ho=y("hide.bs.toast"),uo=y("hidden.bs.toast");function fo(t){const{element:e,options:n}=t;g(e,"showing"),J(e,"showing"),m(e,co),n.autohide&&G(e,()=>t.hide(),n.delay,"toast")}function po(t){const{element:e}=t;g(e,"showing"),g(e,"show"),S(e,"hide"),J(e,"toast"),m(e,uo)}function go(t,e){const s=e?n:o,{element:i,dismiss:a,options:l}=t;a&&s(a,"click",t.hide),l.autohide&&[mn,bn,W,F].forEach(t=>s(i,t,mo))}function mo(t){const e=this,n=lo(e),{type:o,relatedTarget:s}=t;n&&e!==s&&!e.contains(s)&&([W,mn].includes(o)?J(e,"toast"):G(e,()=>n.hide(),n.options.delay,"toast"))}class bo extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;o.animation&&!p(n,"fade")?S(n,"fade"):!o.animation&&p(n,"fade")&&g(n,"fade"),this.dismiss=h('[data-bs-dismiss="toast"]',n),this.show=this.show.bind(this),this.hide=this.hide.bind(this),go(this,!0)}get name(){return"Toast"}get defaults(){return ao}show(){const t=this,{element:e}=t;if(e&&!p(e,"show")){if(m(e,ro),ro.defaultPrevented)return;!function(t){const{element:e,options:n}=t;G(e,()=>{g(e,"hide"),K(e),S(e,"show"),S(e,"showing"),n.animation?l(e,()=>fo(t)):fo(t)},17,"showing")}(t)}}hide(){const t=this,{element:e}=t;if(e&&p(e,"show")){if(m(e,ho),ho.defaultPrevented)return;!function(t){const{element:e,options:n}=t;S(e,"showing"),n.animation?(K(e),l(e,()=>po(t))):po(t)}(t)}}dispose(){const{element:t}=this;p(t,"show")&&g(t,"show"),function(t){J(t.element,"toast"),go(t)}(this),super.dispose()}}f(bo,{selector:".toast",init:t=>new bo(t),getInstance:lo});const vo={Alert:D,Button:O,Carousel:yt,Collapse:Lt,Dropdown:ce,Modal:Ue,Offcanvas:cn,Popover:Fn,ScrollSpy:Un,Tab:io,Toast:bo,Tooltip:On};function wo(t){const e=[...Bn("*",t&&c.some(e=>t instanceof e)?t:void 0)];x(vo).forEach(t=>{const{init:n,selector:o}=vo[t];var s,i;s=n,i=e.filter(t=>function(t,e){return t.matches(e)}(t,o)),[...i].forEach(t=>s(t))})}document.body?wo():n(document,"DOMContentLoaded",()=>wo(),{once:!0});const yo={Alert:D,Button:O,Carousel:yt,Collapse:Lt,Dropdown:ce,Modal:Ue,Offcanvas:cn,Popover:Fn,ScrollSpy:Un,Tab:io,Toast:bo,Tooltip:On,initCallback:wo,removeDataAPI:function(t){const e=t&&c.some(e=>t instanceof e)?t:void 0;x(vo).forEach(t=>{!function(t,e){const n=v.getAllFor(t);n&&[...n].forEach(t=>{const[n,o]=t;e&&e.contains(n)&&o.dispose()})}(t,e)})},Version:"4.1.0alpha5",EventListener:s};export{yo as default};
// Native JavaScript for Bootstrap v4.1.0alpha6 | 2022 © dnp_theme | MIT-License
const t={};function e(e){const n=this,{type:s}=e;(t[s]?[...t[s]]:[]).forEach(t=>{const[i,a]=t;[...a].forEach(t=>{if(i===n){const[n,a]=t;n.apply(i,[e]),a&&a.once&&o(i,s,n,a)}})})}const n=(n,o,s,i)=>{t[o]||(t[o]=new Map);const a=t[o];a.has(n)||a.set(n,new Map);const l=a.get(n),{size:r}=l;l&&l.set(s,i),r||n.addEventListener(o,e,i)},o=(n,o,s,i)=>{const a=t[o],l=a&&a.get(n),r=l&&l.get(s),{options:c}=void 0!==r?r:{options:i};l&&l.has(s)&&l.delete(s),!a||l&&l.size||a.delete(n),a&&a.size||delete t[o],l&&l.size||n.removeEventListener(o,e,c)},s={on:n,off:o,globalListener:e,registry:t};function i(t,e){const n=getComputedStyle(t);return e in n?n[e]:""}function a(t){const e=i(t,"transitionProperty"),n=i(t,"transitionDuration"),o=n.includes("ms")?1:1e3,s=e&&"none"!==e?parseFloat(n)*o:0;return Number.isNaN(s)?0:s}function l(t,e){let n=0;const o=new Event("transitionend"),s=a(t),l=function(t){const e=i(t,"transitionProperty"),n=i(t,"transitionDelay"),o=n.includes("ms")?1:1e3,s=e&&"none"!==e?parseFloat(n)*o:0;return Number.isNaN(s)?0:s}(t);if(s){const i=o=>{o.target===t&&(e.apply(t,[o]),t.removeEventListener("transitionend",i),n=1)};t.addEventListener("transitionend",i),setTimeout(()=>{n||t.dispatchEvent(o)},s+l+17)}else e.apply(t,[o])}function r(t){return t instanceof HTMLElement?t.ownerDocument:t instanceof Window?t.document:window.document}const c=[Document,Element,HTMLElement],d=[Element,HTMLElement];function h(t,e){const n=c.some(t=>e instanceof t)?e:r();return d.some(e=>t instanceof e)?t:n.querySelector(t)}function u(t,e){return t?t.closest(e)||u(t.getRootNode().host,e):null}const f=(t,e)=>Object.assign(t,e);function p(t,e){return t.classList.contains(e)}function g(t,e){t.classList.remove(e)}const m=(t,e)=>t.dispatchEvent(e),b=new Map,v={set:(t,e,n)=>{const o=h(t);if(!o)return;b.has(e)||b.set(e,new Map);b.get(e).set(o,n)},getAllFor:t=>b.get(t)||null,get:(t,e)=>{const n=h(t),o=v.getAllFor(e);return n&&o&&o.get(n)||null},remove:(t,e)=>{const n=h(t),o=b.get(e);o&&n&&(o.delete(n),0===o.size&&b.delete(e))}},w=(t,e)=>v.get(t,e);function T(t,e){const n=new CustomEvent(t,{cancelable:!0,bubbles:!0});return e instanceof Object&&f(n,e),n}const y=(t,e)=>t.getAttribute(e);function E(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}const x=t=>Object.keys(t),H=t=>t.toLowerCase();class k{constructor(t,e){const n=this,o=h(t);if(!o)throw Error(`${n.name} Error: "${t}" is not a valid selector.`);n.options={};const s=v.get(o,n.name);s&&s.dispose(),n.element=o,n.defaults&&Object.keys(n.defaults).length&&(n.options=function(t,e,n,o){const s={...t.dataset},i={},a={};return x(s).forEach(t=>{const e=o&&t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>H(t)):t;a[e]=E(s[t])}),x(n).forEach(t=>{n[t]=E(n[t])}),x(e).forEach(o=>{i[o]=o in n?n[o]:o in a?a[o]:"title"===o?y(t,"title"):e[o]}),i}(o,n.defaults,e||{},"bs")),v.set(o,n.name,n)}get version(){return"4.1.0alpha6"}get name(){return this.constructor.name}get defaults(){return this.constructor.defaults}dispose(){const t=this;v.remove(t.element,t.name),x(t).forEach(e=>{t[e]=null})}}const A=t=>w(t,"Alert"),P=T("close.bs.alert"),M=T("closed.bs.alert");function N(t){const{element:e}=t;L(t),m(e,M),t.dispose(),e.remove()}function L(t,e){const s=e?n:o,{dismiss:i}=t;i&&s(i,"click",t.close)}class D extends k{constructor(t){super(t);const{element:e}=this;this.dismiss=h('[data-bs-dismiss="alert"]',e),L(this,!0)}get name(){return"Alert"}close(t){const e=t?A(u(this,".alert")):this;if(!e)return;const{element:n}=e;if(p(n,"show")){if(m(n,P),P.defaultPrevented)return;g(n,"show"),p(n,"fade")?l(n,()=>N(e)):N(e)}}dispose(){L(this),super.dispose()}}f(D,{selector:".alert",init:t=>new D(t),getInstance:A});const C=(t,e,n)=>t.setAttribute(e,n);function S(t,e){t.classList.add(e)}const I="data-bs-toggle",R=t=>w(t,"Button");function $(t,e){(e?n:o)(t.element,"click",t.toggle)}class O extends k{constructor(t){super(t);const{element:e}=this;this.isActive=p(e,"active"),C(e,"aria-pressed",""+!!this.isActive),$(this,!0)}get name(){return"Button"}toggle(t){t&&t.preventDefault();const e=t?R(this):this;if(!e)return;const{element:n}=e;if(p(n,"disabled"))return;e.isActive=p(n,"active");const{isActive:o}=e;(o?g:S)(n,"active"),C(n,"aria-pressed",o?"false":"true")}dispose(){$(this),super.dispose()}}f(O,{selector:'[data-bs-toggle="button"]',init:t=>new O(t),getInstance:R});const W="mouseenter",F="mouseleave";function B(t){if(null==t)return window;if(!(t instanceof Window)){const{ownerDocument:e}=t;return e&&e.defaultView||window}return t}function z(t,e){const{width:n,height:o,top:s,right:i,bottom:a,left:l}=t.getBoundingClientRect();let r=1,c=1;if(e&&t instanceof HTMLElement){const{offsetWidth:e,offsetHeight:s}=t;r=e>0&&Math.round(n)/e||1,c=s>0&&Math.round(o)/s||1}return{width:n/r,height:o/c,top:s/c,right:i/r,bottom:a/c,left:l/r,x:l/r,y:s/c}}function X(t){return r(t).documentElement}const j=t=>{const{top:e,bottom:n}=z(t),{clientHeight:o}=X(t);return e<=o&&n>=0},Y=t=>"rtl"===X(t).dir;function V(t,e){return(e&&c.some(t=>e instanceof t)?e:r()).querySelectorAll(t)}function q(t,e){return(e&&c.some(t=>e instanceof t)?e:r()).getElementsByClassName(t)}const U=new Map,G=(t,e,n,o)=>{const s=h(t);if(s)if(o&&o.length){U.has(s)||U.set(s,new Map);U.get(s).set(o,setTimeout(e,n))}else U.set(s,setTimeout(e,n))},Z=(t,e)=>{const n=h(t);if(!n)return null;const o=U.get(n);return e&&e.length&&o&&o.get?o.get(e)||null:o||null},J=(t,e)=>{const n=h(t);if(n)if(e&&e.length){const t=U.get(n);t&&t.get&&(clearTimeout(t.get(e)),t.delete(e),0===t.size&&U.delete(n))}else clearTimeout(U.get(n)),U.delete(n)},K=t=>t.offsetHeight,Q={passive:!0};function _(t){const e=["data-bs-target","data-bs-parent","data-bs-container","href"],n=r(t);return e.map(e=>{const o=y(t,e);return o?"data-bs-parent"===e?u(t,o):h(o,n):null}).filter(t=>t)[0]}const tt="carousel-item",et={pause:"hover",keyboard:!1,touch:!0,interval:5e3},nt=t=>w(t,"Carousel");let ot=0,st=0,it=0;const at=T("slide.bs.carousel"),lt=T("slid.bs.carousel");function rt(){const t=this,e=nt(t);!e||e.isPaused||Z(t,"paused")||S(t,"paused")}function ct(){const t=nt(this);t&&t.isPaused&&!Z(this,"paused")&&t.cycle()}function dt(t){t.preventDefault();const e=u(this,'[data-bs-ride="carousel"]')||_(this);if(!e)return;const n=nt(e);if(!n||n.isAnimating)return;const o=+y(this,"data-bs-slide-to");!this||p(this,"active")||Number.isNaN(o)||n.to(o)}function ht(t){t.preventDefault();const e=u(this,'[data-bs-ride="carousel"]')||_(this),n=e&&nt(e);if(!n||n.isAnimating)return;const o=y(this,"data-bs-slide");"next"===o?n.next():"prev"===o&&n.prev()}function ut({code:t}){const[e]=[...V('[data-bs-ride="carousel"]')].filter(t=>j(t)),n=nt(e);if(!n)return;const o=Y(),s=o?"ArrowLeft":"ArrowRight";t===(o?"ArrowRight":"ArrowLeft")?n.prev():t===s&&n.next()}function ft(t){const e=nt(this);e&&!e.isTouch&&(ot=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,bt(e,!0)))}function pt(t){const{changedTouches:e,type:n}=t,o=nt(this);o&&o.isTouch&&(st=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function gt(t){const e=this,n=nt(e);if(n&&n.isTouch&&(it=st||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(ot-it)<75)return;st<ot?n.index+=1:st>ot&&(n.index-=1),n.isTouch=!1,n.to(n.index),bt(n)}}function mt(t,e){const{indicators:n}=t;[...n].forEach(t=>g(t,"active")),t.indicators[e]&&S(n[e],"active")}function bt(t,e){const{element:s}=t,i=e?n:o;i(s,"touchmove",pt,Q),i(s,"touchend",gt,Q)}function vt(t,e){const{element:s,options:i,slides:a,controls:l,indicators:r}=t,{touch:c,pause:d,interval:h,keyboard:u}=i,f=e?n:o;d&&h&&(f(s,W,rt),f(s,F,ct),f(s,"touchstart",rt,Q),f(s,"touchend",ct,Q)),c&&a.length>1&&f(s,"touchstart",ft,Q),l.length&&l.forEach(t=>{t&&f(t,"click",ht)}),r.length&&r.forEach(t=>{f(t,"click",dt)}),u&&f(B(s),"keydown",ut)}function wt(t){const{slides:e,element:n}=t,o=h(".carousel-item.active",n);return[...e].indexOf(o)}class Tt extends k{constructor(t,e){super(t,e);const n=this;n.direction=Y()?"right":"left",n.index=0,n.isTouch=!1;const{element:o}=n;n.slides=q(tt,o);const{slides:s}=n;if(s.length<2)return;n.controls=[...V("[data-bs-slide]",o),...V(`[data-bs-slide][data-bs-target="#${o.id}"]`)],n.indicator=h(".carousel-indicators",o),n.indicators=[...n.indicator?V("[data-bs-slide-to]",n.indicator):[],...V(`[data-bs-slide-to][data-bs-target="#${o.id}"]`)];const{options:i}=n;n.options.interval=!0===i.interval?et.interval:i.interval,wt(n)<0&&(s.length&&S(s[0],"active"),n.indicators.length&&mt(n,0)),vt(n,!0),i.interval&&n.cycle()}get name(){return"Carousel"}get defaults(){return et}get isPaused(){return p(this.element,"paused")}get isAnimating(){return null!==h(".carousel-item-next,.carousel-item-prev",this.element)}cycle(){const t=this,{element:e,options:n,isPaused:o}=t;J(e,"carousel"),o&&(J(e,"paused"),g(e,"paused")),G(e,()=>{!t.isPaused&&j(e)&&(t.index+=1,t.to(t.index))},n.interval,"carousel")}pause(){const{element:t,options:e}=this;!this.isPaused&&e.interval&&(S(t,"paused"),G(t,()=>{},1,"paused"))}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,slides:o,options:s}=e,i=wt(e),c=Y();let d=t;if(e.isAnimating||i===d)return;i<d||0===i&&d===o.length-1?e.direction=c?"right":"left":(i>d||i===o.length-1&&0===d)&&(e.direction=c?"left":"right");const{direction:h}=e;d<0?d=o.length-1:d>=o.length&&(d=0);const u="left"===h?"next":"prev",b="left"===h?"start":"end",v={relatedTarget:o[d],from:i,to:d,direction:h};f(at,v),f(lt,v),m(n,at),at.defaultPrevented||(e.index=d,mt(e,d),a(o[d])&&p(n,"slide")?G(n,()=>{S(o[d],"carousel-item-"+u),K(o[d]),S(o[d],"carousel-item-"+b),S(o[i],"carousel-item-"+b),l(o[d],()=>function(t){const{index:e,direction:n,element:o,slides:s,options:i}=t;if(t.isAnimating&&nt(o)){const a=wt(t),l="left"===n?"next":"prev",c="left"===n?"start":"end";S(s[e],"active"),g(s[e],"carousel-item-"+l),g(s[e],"carousel-item-"+c),g(s[a],"active"),g(s[a],"carousel-item-"+c),m(o,lt),J(o,"data-bs-slide"),r(o).hidden||!i.interval||t.isPaused||t.cycle()}}(e))},17,"data-bs-slide"):(S(o[d],"active"),g(o[i],"active"),G(n,()=>{J(n,"data-bs-slide"),n&&s.interval&&!e.isPaused&&e.cycle(),m(n,lt)},17,"data-bs-slide")))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];[...e].forEach((e,o)=>{p(e,"active")&&mt(t,o),n.forEach(t=>g(e,"carousel-item-"+t))}),vt(t),super.dispose()}}f(Tt,{selector:'[data-bs-ride="carousel"]',init:t=>new Tt(t),getInstance:nt});const yt={parent:null},Et=t=>w(t,"Collapse"),xt=T("show.bs.collapse"),Ht=T("shown.bs.collapse"),kt=T("hide.bs.collapse"),At=T("hidden.bs.collapse");function Pt(t){const{element:e,parent:n,triggers:o}=t;m(e,kt),kt.defaultPrevented||(G(e,()=>{},17),n&&G(n,()=>{},17),e.style.height=e.scrollHeight+"px",g(e,"collapse"),g(e,"show"),S(e,"collapsing"),K(e),e.style.height="0px",l(e,()=>{J(e),n&&J(n),o.forEach(t=>C(t,"aria-expanded","false")),g(e,"collapsing"),S(e,"collapse"),e.style.height="",m(e,At)}))}function Mt(t,e){const s=e?n:o,{triggers:i}=t;i.length&&i.forEach(t=>s(t,"click",Nt))}function Nt(t){const{target:e}=t,n=e&&u(e,'[data-bs-toggle="collapse"]'),o=n&&_(n),s=o&&Et(o);s&&s.toggle(),n&&"A"===n.tagName&&t.preventDefault()}class Lt extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;this.triggers=[...V('[data-bs-toggle="collapse"]')].filter(t=>_(t)===n),this.parent=h(o.parent),Mt(this,!0)}get name(){return"Collapse"}get defaults(){return yt}toggle(){p(this.element,"show")?this.hide():this.show()}hide(){const{triggers:t,element:e}=this;Z(e)||(Pt(this),t.length&&t.forEach(t=>S(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o}=t;let s,i;n&&(s=[...V(".collapse.show",n)].find(t=>Et(t)),i=s&&Et(s)),n&&(!n||Z(n))||Z(e)||(i&&s!==e&&(Pt(i),i.triggers.forEach(t=>{S(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;m(e,xt),xt.defaultPrevented||(G(e,()=>{},17),n&&G(n,()=>{},17),S(e,"collapsing"),g(e,"collapse"),e.style.height=e.scrollHeight+"px",l(e,()=>{J(e),n&&J(n),o.forEach(t=>C(t,"aria-expanded","true")),g(e,"collapsing"),S(e,"collapse"),S(e,"show"),e.style.height="",m(e,Ht)}))}(t),o.length&&o.forEach(t=>g(t,"collapsed")))}dispose(){Mt(this),super.dispose()}}f(Lt,{selector:".collapse",init:t=>new Lt(t),getInstance:Et});const Dt="scroll",Ct="resize",St="ArrowUp",It="ArrowDown",Rt=(t,e)=>t.hasAttribute(e),$t=(t,e)=>{f(t.style,e)},Ot=t=>t.focus(),Wt=["dropdown","dropup","dropstart","dropend"];function Ft(t){const e=u(t,"A");return t&&(Rt(t,"href")&&"#"===t.href.slice(-1)||e&&Rt(e,"href")&&"#"===e.href.slice(-1))}const[Bt,zt,Xt,jt]=Wt,Yt=`[data-bs-toggle="${Bt}"]`,Vt=t=>w(t,"Dropdown"),qt=[Bt,zt],Ut=[Xt,jt],Gt=["A","BUTTON"],Zt={offset:5,display:"dynamic"},Jt=T("show.bs."+Bt),Kt=T("shown.bs."+Bt),Qt=T("hide.bs."+Bt),_t=T("hidden.bs."+Bt);function te(t){const{element:e,menu:n,parentElement:o,options:s}=t,{offset:a}=s;if("static"===i(n,"position"))return;const l=Y(e),r=p(o,"dropdown-menu-end");["margin","top","bottom","left","right"].forEach(t=>{n.style[t]=""});let c=Wt.find(t=>p(o,t))||Bt,d={dropdown:[a,0,0],dropup:[0,0,a],dropstart:l?[-1,0,0,a]:[-1,a,0],dropend:l?[-1,a,0]:[-1,0,0,a]};const h={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:l?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:l?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuEnd:l?{right:"auto",left:0}:{right:0,left:"auto"}},{offsetWidth:u,offsetHeight:g}=n,{clientWidth:m,clientHeight:b}=X(e),{left:v,top:w,width:T,height:y}=z(e),E=v-u-a<0,x=v+u+T+a>=m,H=w+g+a>=b,k=w+g+y+a>=b,A=w-g-a<0,P=(!l&&r||l&&!r)&&v+T-u<0,M=(l&&r||!l&&!r)&&v+u>=m;Ut.includes(c)&&E&&x&&(c=Bt),c===Xt&&(l?x:E)&&(c=jt),c===jt&&(l?E:x)&&(c=Xt),c===zt&&A&&!k&&(c=Bt),c===Bt&&k&&!A&&(c=zt),Ut.includes(c)&&H&&f(h[c],{top:"auto",bottom:0}),qt.includes(c)&&(P||M)&&v+T+Math.abs(u-T)+a<m&&f(h[c],P?{left:0,right:"auto"}:{left:"auto",right:0}),d=d[c],n.style.margin=""+d.map(t=>t?t+"px":t).join(" "),$t(n,h[c]),p(n,"dropdown-menu-end")&&$t(n,h.menuEnd)}function ee(t){const{element:e}=t,s=t.open?n:o,i=r(e);s(i,"click",se),s(i,"focus",se),s(i,"keydown",ae),s(i,"keyup",le),"dynamic"===t.options.display&&[Dt,Ct].forEach(t=>{s(B(e),t,re,Q)})}function ne(t,e){(e?n:o)(t.element,"click",ie)}function oe(t){const e=[...Wt,"btn-group","input-group"].map(t=>q(t+" show"),r(t)).find(t=>t.length);return e&&e.length?[...e[0].children].find(t=>Rt(t,I)):null}function se(t){const{target:e,type:n}=t;if(!e||!e.closest)return;const o=oe(e);if(!o)return;const s=Vt(o);if(!s)return;const{parentElement:i,menu:a}=s,l=null!==u(e,Yt),r=i&&i.contains(e)&&("form"===e.tagName||null!==u(e,"form"));"click"===n&&Ft(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(r||l||s&&s.hide())}function ie(t){const{target:e}=t,n=Vt(this);n&&(n.toggle(),e&&Ft(e)&&t.preventDefault())}function ae(t){[It,St].includes(t.code)&&t.preventDefault()}function le(t){const{code:e}=t,n=oe(this),o=n&&Vt(n),s=n&&r(n).activeElement;if(!o||!s)return;const{menu:i,open:a}=o,l=function(t){return[...t.children].map(t=>{if(t&&Gt.includes(t.tagName))return t;const{firstElementChild:e}=t;return e&&Gt.includes(e.tagName)?e:null}).filter(t=>t)}(i);if(l&&l.length&&[It,St].includes(e)){let t=l.indexOf(s);s===n?t=0:e===St?t=t>1?t-1:0:e===It&&(t=t<l.length-1?t+1:t),l[t]&&Ot(l[t])}"Escape"===e&&a&&(o.toggle(),Ot(n))}function re(){const t=oe(this),e=t&&Vt(t);e&&e.open&&te(e)}class ce extends k{constructor(t,e){super(t,e);const{element:n}=this,{parentElement:o}=n;this.parentElement=o,this.menu=h(".dropdown-menu",o),this.open=!1,ne(this,!0)}get name(){return"Dropdown"}get defaults(){return Zt}toggle(){this.open?this.hide():this.show()}show(){const t=this,{element:e,open:n,menu:o,parentElement:s}=t,i=oe(e),a=i&&Vt(i);a&&a.hide(),[Jt,Kt].forEach(t=>{t.relatedTarget=e}),m(s,Jt),Jt.defaultPrevented||(S(o,"show"),S(s,"show"),C(e,"aria-expanded","true"),te(t),t.open=!n,setTimeout(()=>{Ot(e),ee(t),m(s,Kt)},1))}hide(){const t=this,{element:e,open:n,menu:o,parentElement:s}=t;[Qt,_t].forEach(t=>{t.relatedTarget=e}),m(s,Qt),Qt.defaultPrevented||(g(o,"show"),g(s,"show"),C(e,"aria-expanded","false"),t.open=!n,setTimeout(()=>ee(t),1),m(s,_t))}dispose(){const{parentElement:t}=this;p(t,"show")&&this.open&&this.hide(),ne(this),super.dispose()}}f(ce,{selector:Yt,init:t=>new ce(t),getInstance:Vt});const de=(t,e)=>t.removeAttribute(e);function he(t){return r(t).body}const ue=t=>t instanceof B(t).ShadowRoot||t instanceof ShadowRoot;const fe=t=>["TABLE","TD","TH"].includes(t.tagName),pe=t=>t instanceof HTMLElement;function ge(t,e){const n=["HTML","BODY"];if(e){let{offsetParent:e}=t;const o=B(t);for(;e&&(fe(e)||pe(e)&&!["sticky","fixed"].includes(i(e,"position")));)e=e.offsetParent;return(!e||e&&(n.includes(e.tagName)||"static"===i(e,"position")))&&(e=o),e}const o=[];let{parentNode:s}=t;for(;s&&!n.includes(s.nodeName);)s="HTML"===(a=s).nodeName?a:a.assignedSlot||a.parentNode||(ue(a)?a.host:null)||X(a),ue(s)||s.shadowRoot||fe(s)||o.push(s);var a;return o.find((t,e)=>"relative"!==i(t,"position")&&o.slice(e+1).every(t=>"static"===i(t,"position"))?t:null)||he(t)}const me="sticky-top",be="position-sticky",ve=t=>[...q("fixed-top",t),...q("fixed-bottom",t),...q(me,t),...q(be,t),...q("is-fixed",t)];function we(t){const{clientWidth:e}=X(t),{innerWidth:n}=B(t);return Math.abs(n-e)}function Te(t,e){const n=he(t),o=parseInt(i(n,"paddingRight"),10),s="hidden"===i(n,"overflow")&&o?0:we(t),a=ve(n);e&&($t(n,{overflow:"hidden",paddingRight:o+s+"px"}),a.length&&a.forEach(t=>{const e=i(t,"paddingRight");if(t.style.paddingRight=parseInt(e,10)+s+"px",[me,be].some(e=>p(t,e))){const e=i(t,"marginRight");t.style.marginRight=parseInt(e,10)-s+"px"}}))}const ye="modal-backdrop",Ee="offcanvas-backdrop",xe=r().createElement("div");function He(t){return h(".modal.show,.offcanvas.show",r(t))}function ke(t){const e=t?ye:Ee;[ye,Ee].forEach(t=>{g(xe,t)}),S(xe,e)}function Ae(t,e,n){ke(n),t.append(xe),e&&S(xe,"fade")}function Pe(){S(xe,"show"),K(xe)}function Me(){g(xe,"show")}function Ne(t){He(t)||(g(xe,"fade"),xe.remove(),function(t){const e=he(t);$t(e,{paddingRight:"",overflow:""});const n=ve(e);n.length&&n.forEach(t=>{$t(t,{paddingRight:"",marginRight:""})})}(t))}function Le(t){return t&&"hidden"!==i(t,"visibility")&&null!==t.offsetParent}const De={backdrop:!0,keyboard:!0},Ce=t=>w(t,"Modal"),Se=T("show.bs.modal"),Ie=T("shown.bs.modal"),Re=T("hide.bs.modal"),$e=T("hidden.bs.modal");function Oe(t){const{element:e}=t,n=we(e),{clientHeight:o,scrollHeight:s}=X(e),{clientHeight:i,scrollHeight:a}=e,l=i!==a;if(!l&&n){const t=Y(e)?"paddingLeft":"paddingRight";e.style[t]=n+"px"}Te(e,l||o!==s)}function We(t,e){const s=e?n:o,{element:i}=t;s(i,"click",qe),s(B(i),Ct,t.update,Q),s(r(i),"keydown",Ve)}function Fe(t,e){const s=e?n:o,{triggers:i}=t;i.length&&i.forEach(t=>s(t,"click",Ye))}function Be(t){const{triggers:e,element:n}=t;if(Ne(n),n.style.paddingRight="",e.length){const t=e.find(t=>Le(t));t&&Ot(t)}}function ze(t){const{element:e,relatedTarget:n}=t;Ot(e),We(t,!0),Ie.relatedTarget=n,m(e,Ie)}function Xe(t){const{element:e,hasFade:n}=t;e.style.display="block",Oe(t),He(e)||(he(e).style.overflow="hidden"),S(e,"show"),de(e,"aria-hidden"),C(e,"aria-modal","true"),n?l(e,()=>ze(t)):ze(t)}function je(t,e){const{element:n,options:o,relatedTarget:s,hasFade:i}=t;n.style.display="",o.backdrop&&!e&&i&&p(xe,"show")&&!He(n)?(Me(),l(xe,()=>Be(t))):Be(t),We(t),$e.relatedTarget=s,m(n,$e)}function Ye(t){const{target:e}=t,n=e&&u(this,'[data-bs-toggle="modal"]'),o=n&&_(n),s=o&&Ce(o);s&&(n&&"A"===n.tagName&&t.preventDefault(),s.relatedTarget=n,s.toggle())}function Ve({code:t}){const e=h(".modal.show"),n=e&&Ce(e);if(!n)return;const{options:o}=n;o.keyboard&&"Escape"===t&&p(e,"show")&&(n.relatedTarget=null,n.hide())}function qe(t){const e=this,n=Ce(e);if(!n||Z(e))return;const{options:o,isStatic:s,modalDialog:i}=n,{backdrop:c}=o,{target:d}=t,h=r(e).getSelection().toString().length,f=i.contains(d),p=d&&u(d,'[data-bs-dismiss="modal"]');s&&!f?G(e,()=>{S(e,"modal-static"),l(i,()=>function(t){const{element:e,modalDialog:n}=t,o=a(n)+17;g(e,"modal-static"),G(e,()=>J(e),o)}(n))},17):(p||!h&&!s&&!f&&c)&&(n.relatedTarget=p||null,n.hide(),t.preventDefault())}class Ue extends k{constructor(t,e){super(t,e);const{element:n}=this;this.modalDialog=h(".modal-dialog",n),this.triggers=[...V('[data-bs-toggle="modal"]')].filter(t=>_(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=p(n,"fade"),this.relatedTarget=null,this.container=ge(n),Fe(this,!0),this.update=this.update.bind(this)}get name(){return"Modal"}get defaults(){return De}toggle(){p(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,options:n,hasFade:o,relatedTarget:s,container:i}=t,{backdrop:l}=n;let r=0;if(p(e,"show"))return;if(Se.relatedTarget=s||null,m(e,Se),Se.defaultPrevented)return;const c=He(e);if(c&&c!==e){(Ce(c)||w(c,"Offcanvas")).hide()}l?(c||p(xe,"show")?ke(!0):Ae(i,o,!0),r=a(xe),p(xe,"show")||Pe(),setTimeout(()=>Xe(t),r)):(Xe(t),c&&p(xe,"show")&&Me())}hide(t){const e=this,{element:n,hasFade:o,relatedTarget:s}=e;p(n,"show")&&(Re.relatedTarget=s||null,m(n,Re),Re.defaultPrevented||(g(n,"show"),C(n,"aria-hidden","true"),de(n,"aria-modal"),o&&!1!==t?l(n,()=>je(e)):je(e,t)))}update(){p(this.element,"show")&&Oe(this)}dispose(){this.hide(!0),Fe(this),super.dispose()}}f(Ue,{selector:".modal",init:t=>new Ue(t),getInstance:Ce});const Ge={backdrop:!0,keyboard:!0,scroll:!1},Ze=t=>w(t,"Offcanvas"),Je=T("show.bs.offcanvas"),Ke=T("shown.bs.offcanvas"),Qe=T("hide.bs.offcanvas"),_e=T("hidden.bs.offcanvas");function tn(t,e){const s=e?n:o;t.triggers.forEach(t=>s(t,"click",sn))}function en(t,e){const s=e?n:o,i=r(t.element);s(i,"keydown",ln),s(i,"click",an)}function nn(t){const{element:e,options:n}=t;n.scroll||(!function(t){const{element:e}=t,{clientHeight:n,scrollHeight:o}=X(e);Te(e,n!==o)}(t),he(e).style.overflow="hidden"),S(e,"offcanvas-toggling"),S(e,"show"),e.style.visibility="visible",l(e,()=>function(t){const{element:e,triggers:n}=t;g(e,"offcanvas-toggling"),de(e,"aria-hidden"),C(e,"aria-modal","true"),C(e,"role","dialog"),n.length&&n.forEach(t=>C(t,"aria-expanded","true"));m(e,Ke),en(t,!0),Ot(e)}(t))}function on(t){const{element:e,options:n}=t,o=He(e);e.blur(),!o&&n.backdrop&&p(xe,"show")?(Me(),l(xe,()=>rn(t))):rn(t)}function sn(t){const e=u(this,'[data-bs-toggle="offcanvas"]'),n=e&&_(e),o=n&&Ze(n);o&&(o.relatedTarget=e,o.toggle(),e&&"A"===e.tagName&&t.preventDefault())}function an(t){const e=h(".offcanvas.show",this);if(!e)return;const n=h('[data-bs-dismiss="offcanvas"]',e),o=Ze(e);if(!o)return;const{options:s,triggers:i}=o,{target:a}=t,l=u(a,'[data-bs-toggle="offcanvas"]'),c=r(e).getSelection();c&&c.toString().length||!(!e.contains(a)&&s.backdrop&&(!l||l&&!i.includes(l))||n&&n.contains(a))||(o.relatedTarget=n&&n.contains(a)?n:null,o.hide()),l&&"A"===l.tagName&&t.preventDefault()}function ln({code:t}){const e=h(".offcanvas.show",this);if(!e)return;const n=Ze(e);n&&n.options.keyboard&&"Escape"===t&&(n.relatedTarget=null,n.hide())}function rn(t){const{element:e,triggers:n}=t;if(C(e,"aria-hidden","true"),de(e,"aria-modal"),de(e,"role"),e.style.visibility="",n.length){n.forEach(t=>C(t,"aria-expanded","false"));const t=n.find(t=>Le(t));t&&Ot(t)}Ne(e),m(e,_e),g(e,"offcanvas-toggling"),He(e)||en(t)}class cn extends k{constructor(t,e){super(t,e);const{element:n}=this;this.triggers=[...V('[data-bs-toggle="offcanvas"]')].filter(t=>_(t)===n),this.container=ge(n),this.relatedTarget=null,tn(this,!0)}get name(){return"Offcanvas"}get defaults(){return Ge}toggle(){p(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,options:n,container:o,relatedTarget:s}=t;let i=0;if(p(e,"show"))return;if(Je.relatedTarget=s,Ke.relatedTarget=s,m(e,Je),Je.defaultPrevented)return;const l=He(e);if(l&&l!==e){(Ze(l)||w(l,"Modal")).hide()}n.backdrop?(l?ke():Ae(o,!0),i=a(xe),p(xe,"show")||Pe(),setTimeout(()=>nn(t),i)):(nn(t),l&&p(xe,"show")&&Me())}hide(t){const e=this,{element:n,relatedTarget:o}=e;p(n,"show")&&(Qe.relatedTarget=o,_e.relatedTarget=o,m(n,Qe),Qe.defaultPrevented||(S(n,"offcanvas-toggling"),g(n,"show"),t?on(e):l(n,()=>on(e))))}dispose(){this.hide(!0),tn(this),super.dispose()}}f(cn,{selector:".offcanvas",init:t=>new cn(t),getInstance:Ze});function dn(t){const e="tooltip"===t;return`<div class="${t}" role="tooltip">${(e?"":`<h3 class="${t}-header"></h3>`)+`<div class="${t}-arrow"></div>`+`<div class="${e?t+"-inner":t+"-body"}"></div>`}</div>`}const hn=t=>t&&[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e);function un(t,e,n){const o=e instanceof HTMLElement,s=z(t,o&&function(t){const{width:e,height:n}=z(t),{offsetWidth:o,offsetHeight:s}=t;return Math.round(e)!==o||Math.round(n)!==s}(e)),i={x:0,y:0};if(o){const t=z(e,!0);i.x=t.x+e.clientLeft,i.y=t.y+e.clientTop}return{x:s.left+n.x-i.x,y:s.top+n.y-i.y,width:s.width,height:s.height}}var fn={top:"top",bottom:"bottom",left:"start",right:"end"};function pn(t,e){const n=/\b(top|bottom|start|end)+/,{element:o,tooltip:s,options:a,arrow:l,offsetParent:r}=t,c={...fn};$t(s,{top:"0px",left:"0px",right:""});const d="Popover"===t.name,h=s.offsetWidth,u=s.offsetHeight,f=Y(o);f&&(c.left="end",c.right="start");const p=X(o),g=p.clientWidth,m=p.clientHeight,{container:b}=a;let{placement:v}=a;const{left:w,right:T,top:y}=z(b,!0),E=b.clientWidth,x=Math.abs(E-b.offsetWidth),H=i(b,"position"),k="fixed"===H,A="static"===H,P="sticky"===H&&y===parseFloat(i(b,"top")),M=f&&k?x:0,N=k?E+w+(f?x:0):E+w+(g-T)-1,{width:L,height:D,left:C,right:S,top:I}=z(o,!0),R=function(t){const e="scrollX"in t;return{x:e?t.scrollX:t.scrollLeft,y:e?t.scrollY:t.scrollTop}}(r),{x:$,y:O}=un(o,r,R);let W,F,B,j,V,q;$t(l,{top:"",left:"",right:""});const U=l.offsetWidth||0,G=l.offsetHeight||0,Z=U/2;let J=I-u-G<0,K=I+u+D+G>=m,Q=C-h-U<M,_=C+h+L+U>=N;const tt=["left","right"],et=["top","bottom"];if(J=tt.includes(v)?I+D/2-u/2-G<0:J,K=tt.includes(v)?I+u/2+D/2+G>=m:K,Q=et.includes(v)?C+L/2-h/2<M:Q,_=et.includes(v)?C+h/2+L/2>=N:_,v=tt.includes(v)&&Q&&_?"top":v,v="top"===v&&J?"bottom":v,v="bottom"===v&&K?"top":v,v="left"===v&&Q?"right":v,v="right"===v&&_?"left":v,s.className.includes(v)||(s.className=s.className.replace(n,c[v])),tt.includes(v))F="left"===v?$-h-(d?U:0):$+L+(d?U:0),J?(W=O,W+=P?-y-R.y:0,j=D/2-U):K?(W=O-u+D,W+=P?-y-R.y:0,j=u-D/2-U):(W=O-u/2+D/2,W+=P?-y-R.y:0,j=u/2-G/2);else if(et.includes(v))if(e&&hn(o)){let t=0,n=0;A?(t=e.pageX,n=e.pageY):(t=e.clientX-w+(k?R.x:0),n=e.clientY-y+(k?R.y:0)),t-=f&&k&&x?x:0,W="top"===v?n-u-U:n+U,e.clientX-h/2<M?(F=0,V=t-Z):e.clientX+h/2>N?(F="auto",B=0,q=N-t-Z,q-=k?w+(f?x:0):0):(F=t-h/2,V=h/2-Z)}else W="top"===v?O-u-(d?G:0):O+D+(d?G:0),Q?(F=0,V=$+L/2-Z):_?(F="auto",B=0,q=L/2+N-S-Z):(F=$-h/2+L/2,V=h/2-Z);$t(s,{top:W+"px",left:"auto"===F?F:F+"px",right:void 0!==B?B+"px":""}),l instanceof HTMLElement&&(void 0!==j&&(l.style.top=j+"px"),void 0!==V?l.style.left=V+"px":void 0!==q&&(l.style.right=q+"px"))}const gn={template:dn("tooltip"),title:null,customClass:null,trigger:"hover focus",placement:"top",sanitizeFn:null,animation:!0,delay:200,container:null},mn="focusin",bn="focusout",{userAgentData:vn}=navigator,wn=vn,{userAgent:Tn}=navigator,yn=Tn,En=/(iPhone|iPod|iPad)/,xn=wn?wn.brands.some(t=>En.test(t.brand)):En.test(yn);let Hn=1;const kn=new Map;function An(t,e,n){if("string"!=typeof e||e.length)if("string"==typeof e){let o=e.trim();"function"==typeof n&&(o=n(o));const s=(new DOMParser).parseFromString(o,"text/html"),{body:i}=s,a=i.children.length?"innerHTML":"innerText";t[a]=i[a]}else e instanceof HTMLElement&&t.append(e)}function Pn(t,e){return t instanceof HTMLElement&&e.contains(t)}let Mn=t=>w(t,"Tooltip");function Nn(t){const{element:e}=t;Sn(t),e.hasAttribute("data-original-title")&&"tooltip"===t.name&&Rn(t)}function Ln(t,e){const s=e?n:o,{element:i}=t;s(r(i),"touchstart",t.handleTouch,Q),hn(i)||[Dt,Ct].forEach(e=>{s(B(i),e,t.update,Q)})}function Dn(t){const{element:e}=t,n=T("shown.bs."+H(t.name));Ln(t,!0),m(e,n),J(e,"in")}function Cn(t){const{element:e}=t,n=T("hidden.bs."+H(t.name));Ln(t),function(t){const{element:e,tooltip:n}=t;de(e,"aria-describedby"),n.remove()}(t),m(e,n),J(e,"out")}function Sn(t,e){const s=e?n:o,{element:i,options:a,btn:l}=t,{trigger:c,dismissible:d}=a;if(c.includes("manual"))return;t.enabled=!!e;const h=c.split(" "),u=hn(i);u&&s(i,"mousemove",t.update,Q),h.forEach(e=>{u||"hover"===e?(s(i,"mousedown",t.show),s(i,W,t.show),d&&l?s(l,"click",t.hide):(s(i,F,t.hide),s(r(i),"touchstart",t.handleTouch,Q))):"click"===e?s(i,e,d?t.show:t.toggle):"focus"===e&&(s(i,mn,t.show),d||s(i,bn,t.hide),xn&&s(i,"click",()=>Ot(i)))})}function In(t,e){const s=e?n:o,{element:i,options:a,offsetParent:l}=t,{container:r}=a,{offsetHeight:c,scrollHeight:d}=r,h=u(i,".modal"),f=u(i,".offcanvas");if(!hn(i)){const e=B(i),n=c!==d||l!==e?r:e;s(e,Ct,t.update,Q),s(n,Dt,t.update,Q)}h&&s(h,"hide.bs.modal",t.hide),f&&s(f,"hide.bs.offcanvas",t.hide)}function Rn(t,e){const n=["data-original-title","title"],{element:o}=t;C(o,n[e?0:1],e||y(o,n[0])),de(o,n[e?1:0])}class $n extends k{constructor(t,e){super(t,e);const n=this,{element:o}=n,s="Tooltip"===n.name,a=s?"tooltip":"popover",l=s?"Tooltip":"Popover";Mn=t=>w(t,l),n.tooltip={},s||(n.btn=null),n.arrow={},n.offsetParent={},n.enabled=!0,n.id=`${a}-${function(t,e){Hn+=1;let n=kn.get(t),o=Hn;if(e&&e.length)if(n){const t=n.get(e);Number.isNaN(t)?n.set(e,o):o=t}else kn.set(t,new Map),n=kn.get(t),n.set(e,o);else Number.isNaN(n)?kn.set(t,o):o=n;return o}(o,a)}`;const{options:c}=n;if(!c.title&&s||!s&&!c.content)return;const d=h(c.container),u=ge(o);n.options.container=!d||d&&["static","relative"].includes(i(d,"position"))?u:d||he(o),gn.title=null,n.handleTouch=n.handleTouch.bind(n),n.update=n.update.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n.toggle=n.toggle.bind(n),o.hasAttribute("title")&&s&&Rn(n,c.title),function(t){const{id:e,element:n,options:o}=t,{animation:s,customClass:i,sanitizeFn:a,placement:l,dismissible:c}=o;let{title:d,content:u}=o;const f="Tooltip"===t.name,g=f?"tooltip":"popover",{template:m,btnClose:b}=o,v={...fn};Y(n)&&(v.left="end",v.right="start");const w=`bs-${g}-${v[l]}`;let T;if([Element,HTMLElement].some(t=>m instanceof t))T=m;else{const t=r(n).createElement("div");An(t,m,a),T=t.firstElementChild}t.tooltip=T&&T.cloneNode(!0);const{tooltip:y}=t;C(y,"id",e),C(y,"role","tooltip");const E=f?"tooltip-inner":"popover-body",x=f?null:h(".popover-header",y),H=h("."+E,y);t.arrow=h(`.${g}-arrow`,y),c&&(d?d instanceof HTMLElement?An(d,b,a):d+=b:(x&&x.remove(),u instanceof HTMLElement?An(u,b,a):u+=b)),f?d&&H&&An(H,d,a):(d&&x&&An(x,d,a),u&&H&&An(H,u,a),t.btn=h(".btn-close",y)),p(y,g)||S(y,g),s&&!p(y,"fade")&&S(y,"fade"),i&&!p(y,i)&&S(y,i),p(y,w)||S(y,w)}(n),Sn(n,!0)}get name(){return"Tooltip"}get defaults(){return gn}show(t){const e=this,{options:n,tooltip:o,element:s,id:i}=e,{container:a,animation:r}=n,c=Z(s,"out");J(s,"out"),!o||c||Pn(o,a)||G(s,()=>{const n=T("show.bs."+H(e.name));m(s,n),n.defaultPrevented||(a.append(o),C(s,"aria-describedby","#"+i),e.offsetParent=ge(o,!0),e.update(t),In(e,!0),p(o,"show")||S(o,"show"),r?l(o,()=>Dn(e)):Dn(e))},17,"in")}hide(){const t=this,{options:e,tooltip:n,element:o}=t,{container:s,animation:i,delay:a}=e;J(o,"in"),n&&Pn(n,s)&&G(o,()=>{const e=T("hide.bs."+H(t.name));m(o,e),e.defaultPrevented||(g(n,"show"),In(t),i?l(n,()=>Cn(t)):Cn(t))},a+17,"out")}update(t){pn(this,t)}toggle(t){const{tooltip:e,options:n}=this;Pn(e,n.container)?this.hide():this.show(t)}enable(){const t=this,{enabled:e}=t;e||(Sn(t,!0),t.enabled=!e)}disable(){const t=this,{element:e,tooltip:n,options:o,enabled:s}=t,{animation:i,container:l,delay:r}=o;s&&(Pn(n,l)&&i?(t.hide(),G(e,()=>{Sn(t),J(e,"tooltip")},a(n)+r+17,"tooltip")):Sn(t),t.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||t&&n.contains(t)||this.hide()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&Pn(e,n.container)?(n.delay=0,t.hide(),l(e,()=>Nn(t))):Nn(t),super.dispose()}}f($n,{selector:'[data-bs-toggle="tooltip"],[data-tip="tooltip"]',init:t=>new $n(t),getInstance:Mn,styleTip:pn});const On={...gn,template:dn("popover"),btnClose:'<button class="btn-close" aria-label="Close"></button>',dismissible:!1,content:null};class Wn extends $n{constructor(t,e){super(t,e)}get name(){return"Popover"}get defaults(){return On}show(){super.show();const{options:t,btn:e}=this;t.dismissible&&e&&setTimeout(()=>Ot(e),17)}}function Fn(t,e){return(e&&c.some(t=>e instanceof t)?e:r()).getElementsByTagName(t)}f(Wn,{selector:'[data-bs-toggle="popover"],[data-tip="popover"]',init:t=>new Wn(t),getInstance:t=>w(t,"Popover"),styleTip:pn});const Bn={offset:10,target:null},zn=T("activate.bs.scrollspy");function Xn(t){const{target:e,scrollTarget:n,options:o,itemsLength:s,scrollHeight:i,element:a}=t,{offset:l}=o,c=n instanceof Window,d=e&&Fn("A",e),u=n&&function(t){return t instanceof HTMLElement?t.scrollHeight:X(t).scrollHeight}(n);if(t.scrollTop=c?n.scrollY:n.scrollTop,d&&(s!==d.length||u!==i)){let e,n,o;t.items=[],t.offsets=[],t.scrollHeight=u,t.maxScroll=t.scrollHeight-function({element:t,scrollTarget:e}){return e instanceof Window?e.innerHeight:z(t).height}(t),[...d].forEach(s=>{e=y(s,"href"),n=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&h(e,r(a)),n&&(t.items.push(s),o=z(n),t.offsets.push((c?o.top+t.scrollTop:n.offsetTop)-l))}),t.itemsLength=t.items.length}}function jn(t){[...Fn("A",t)].forEach(t=>{p(t,"active")&&g(t,"active")})}function Yn(t,e){const{target:n,element:o}=t;jn(n),t.activeItem=e,S(e,"active");const s=[];let i=e;for(;i!==he(o);)i=i.parentElement,(p(i,"nav")||p(i,"dropdown-menu"))&&s.push(i);s.forEach(t=>{const e=t.previousElementSibling;e&&!p(e,"active")&&S(e,"active")}),zn.relatedTarget=e,m(o,zn)}function Vn(t,e){(e?n:o)(t.scrollTarget,Dt,t.refresh,Q)}class qn extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;if(this.target=h(o.target,r(n)),!this.target)return;const s=B(n);this.scrollTarget=n.clientHeight<n.scrollHeight?n:s,this.scrollTop=0,this.maxScroll=0,this.scrollHeight=0,this.activeItem=null,this.items=[],this.itemsLength=0,this.offsets=[],this.refresh=this.refresh.bind(this),Vn(this,!0),this.refresh()}get name(){return"ScrollSpy"}get defaults(){return Bn}refresh(){const t=this,{target:e}=t;if(0===e.offsetHeight)return;Xn(t);const{scrollTop:n,maxScroll:o,itemsLength:s,items:i,activeItem:a}=t;if(n>=o){const e=i[s-1];return void(a!==e&&Yn(t,e))}const{offsets:l}=t;if(a&&n<l[0]&&l[0]>0)return t.activeItem=null,void jn(e);i.forEach((e,o)=>{a!==e&&n>=l[o]&&(void 0===l[o+1]||n<l[o+1])&&Yn(t,e)})}dispose(){Vn(this),super.dispose()}}f(qn,{selector:'[data-bs-spy="scroll"]',init:t=>new qn(t),getInstance:t=>w(t,"ScrollSpy")});const Un=t=>w(t,"Tab"),Gn=T("show.bs.tab"),Zn=T("shown.bs.tab"),Jn=T("hide.bs.tab"),Kn=T("hidden.bs.tab"),Qn=new Map;function _n(t){const{tabContent:e,nav:n}=t;e&&(e.style.height="",g(e,"collapsing")),n&&J(n)}function to(t){const{element:e,tabContent:n,nav:o}=t,{currentHeight:s,nextHeight:i}=Qn.get(e),{tab:a}=o&&Qn.get(o);n?s===i?_n(t):setTimeout(()=>{n.style.height=i+"px",K(n),l(n,()=>_n(t))},50):o&&J(o),Zn.relatedTarget=a,m(e,Zn)}function eo(t){const{element:e,content:n,tabContent:o,nav:s}=t,{tab:i,content:a}=s&&Qn.get(s);let r=0;if(o&&([a,n].forEach(t=>S(t,"overflow-hidden")),r=a.scrollHeight),Gn.relatedTarget=i,Kn.relatedTarget=e,m(e,Gn),!Gn.defaultPrevented){if(S(n,"active"),g(a,"active"),o){const t=n.scrollHeight;Qn.set(e,{currentHeight:r,nextHeight:t}),S(o,"collapsing"),o.style.height=r+"px",K(o),[a,n].forEach(t=>g(t,"overflow-hidden"))}n&&p(n,"fade")?setTimeout(()=>{S(n,"show"),l(n,()=>{to(t)})},17):to(t),m(i,Kn)}}function no(t,e){(e?n:o)(t.element,"click",oo)}function oo(t){const e=Un(this);e&&(t.preventDefault(),e.show())}class so extends k{constructor(t){super(t);const{element:e}=this,n=_(e);if(!n)return;const o=u(e,".nav"),s=u(n,".tab-content");this.nav=o,this.content=n,this.tabContent=s,this.dropdown=o&&h(`.${Wt[0]}-toggle`,o),no(this,!0)}get name(){return"Tab"}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(!(n&&Z(n)||p(e,"active"))){const{tab:s,content:i}=function(t){const{nav:e}=t,n=q("active",e);let o;return 1!==n.length||Wt.some(t=>p(n[0].parentElement,t))?n.length>1&&(o=n[n.length-1]):[o]=n,{tab:o,content:o?_(o):null}}(t);if(n&&Qn.set(n,{tab:s,content:i}),Jn.relatedTarget=e,m(s,Jn),Jn.defaultPrevented)return;n&&G(n,()=>{},17),g(s,"active"),C(s,"aria-selected","false"),S(e,"active"),C(e,"aria-selected","true"),o&&(p(e.parentNode,"dropdown-menu")?p(o,"active")||S(o,"active"):p(o,"active")&&g(o,"active")),p(i,"fade")?(g(i,"show"),l(i,()=>eo(t))):eo(t)}}dispose(){no(this),super.dispose()}}f(so,{selector:'[data-bs-toggle="tab"]',init:t=>new so(t),getInstance:Un});const io={animation:!0,autohide:!0,delay:5e3},ao=t=>w(t,"Toast"),lo=T("show.bs.toast"),ro=T("shown.bs.toast"),co=T("hide.bs.toast"),ho=T("hidden.bs.toast");function uo(t){const{element:e,options:n}=t;g(e,"showing"),J(e,"showing"),m(e,ro),n.autohide&&G(e,()=>t.hide(),n.delay,"toast")}function fo(t){const{element:e}=t;g(e,"showing"),g(e,"show"),S(e,"hide"),J(e,"toast"),m(e,ho)}function po(t,e){const s=e?n:o,{element:i,dismiss:a,options:l}=t;a&&s(a,"click",t.hide),l.autohide&&[mn,bn,W,F].forEach(t=>s(i,t,go))}function go(t){const e=this,n=ao(e),{type:o,relatedTarget:s}=t;n&&e!==s&&!e.contains(s)&&([W,mn].includes(o)?J(e,"toast"):G(e,()=>n.hide(),n.options.delay,"toast"))}class mo extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;o.animation&&!p(n,"fade")?S(n,"fade"):!o.animation&&p(n,"fade")&&g(n,"fade"),this.dismiss=h('[data-bs-dismiss="toast"]',n),this.show=this.show.bind(this),this.hide=this.hide.bind(this),po(this,!0)}get name(){return"Toast"}get defaults(){return io}show(){const t=this,{element:e}=t;if(e&&!p(e,"show")){if(m(e,lo),lo.defaultPrevented)return;!function(t){const{element:e,options:n}=t;G(e,()=>{g(e,"hide"),K(e),S(e,"show"),S(e,"showing"),n.animation?l(e,()=>uo(t)):uo(t)},17,"showing")}(t)}}hide(){const t=this,{element:e}=t;if(e&&p(e,"show")){if(m(e,co),co.defaultPrevented)return;!function(t){const{element:e,options:n}=t;S(e,"showing"),n.animation?(K(e),l(e,()=>fo(t))):fo(t)}(t)}}dispose(){const{element:t}=this;p(t,"show")&&g(t,"show"),function(t){J(t.element,"toast"),po(t)}(this),super.dispose()}}f(mo,{selector:".toast",init:t=>new mo(t),getInstance:ao});const bo={Alert:D,Button:O,Carousel:Tt,Collapse:Lt,Dropdown:ce,Modal:Ue,Offcanvas:cn,Popover:Wn,ScrollSpy:qn,Tab:so,Toast:mo,Tooltip:$n};function vo(t){const e=[...Fn("*",t&&c.some(e=>t instanceof e)?t:void 0)];x(bo).forEach(t=>{const{init:n,selector:o}=bo[t];var s,i;s=n,i=e.filter(t=>function(t,e){return t.matches(e)}(t,o)),[...i].forEach(t=>s(t))})}document.body?vo():n(document,"DOMContentLoaded",()=>vo(),{once:!0});const wo={Alert:D,Button:O,Carousel:Tt,Collapse:Lt,Dropdown:ce,Modal:Ue,Offcanvas:cn,Popover:Wn,ScrollSpy:qn,Tab:so,Toast:mo,Tooltip:$n,initCallback:vo,removeDataAPI:function(t){const e=t&&c.some(e=>t instanceof e)?t:void 0;x(bo).forEach(t=>{!function(t,e){const n=v.getAllFor(t);n&&[...n].forEach(t=>{const[n,o]=t;e&&e.contains(n)&&o.dispose()})}(t,e)})},Version:"4.1.0alpha6",EventListener:s};export{wo as default};

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

// Native JavaScript for Bootstrap v4.1.0alpha5 | 2022 © dnp_theme | MIT-License
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).BSN=e()}(this,(function(){"use strict";const t={};function e(e){const n=this,{type:s}=e;(t[s]?[...t[s]]:[]).forEach(t=>{const[i,a]=t;[...a].forEach(t=>{if(i===n){const[n,a]=t;n.apply(i,[e]),a&&a.once&&o(i,s,n,a)}})})}const n=(n,o,s,i)=>{t[o]||(t[o]=new Map);const a=t[o];a.has(n)||a.set(n,new Map);const r=a.get(n),{size:l}=r;r&&r.set(s,i),l||n.addEventListener(o,e,i)},o=(n,o,s,i)=>{const a=t[o],r=a&&a.get(n),l=r&&r.get(s),{options:c}=void 0!==l?l:{options:i};r&&r.has(s)&&r.delete(s),!a||r&&r.size||a.delete(n),a&&a.size||delete t[o],r&&r.size||n.removeEventListener(o,e,c)},s={on:n,off:o,globalListener:e,registry:t};function i(t,e){const n=getComputedStyle(t);return e in n?n[e]:""}function a(t){const e=i(t,"transitionProperty"),n=i(t,"transitionDuration"),o=n.includes("ms")?1:1e3,s=e&&"none"!==e?parseFloat(n)*o:0;return Number.isNaN(s)?0:s}function r(t,e){let n=0;const o=new Event("transitionend"),s=a(t),r=function(t){const e=i(t,"transitionProperty"),n=i(t,"transitionDelay"),o=n.includes("ms")?1:1e3,s=e&&"none"!==e?parseFloat(n)*o:0;return Number.isNaN(s)?0:s}(t);if(s){const i=o=>{o.target===t&&(e.apply(t,[o]),t.removeEventListener("transitionend",i),n=1)};t.addEventListener("transitionend",i),setTimeout(()=>{n||t.dispatchEvent(o)},s+r+17)}else e.apply(t,[o])}function l(t){return t instanceof HTMLElement?t.ownerDocument:t instanceof Window?t.document:window.document}const c=[Document,Element,HTMLElement],d=[Element,HTMLElement];function h(t,e){const n=c.some(t=>e instanceof t)?e:l();return d.some(e=>t instanceof e)?t:n.querySelector(t)}function u(t,e){return t?t.closest(e)||u(t.getRootNode().host,e):null}const f=(t,e)=>Object.assign(t,e);function p(t,e){return t.classList.contains(e)}function g(t,e){t.classList.remove(e)}const m=(t,e)=>t.dispatchEvent(e),b=new Map,v={set:(t,e,n)=>{const o=h(t);if(!o)return;b.has(e)||b.set(e,new Map);b.get(e).set(o,n)},getAllFor:t=>b.get(t)||null,get:(t,e)=>{const n=h(t),o=v.getAllFor(e);return n&&o&&o.get(n)||null},remove:(t,e)=>{const n=h(t),o=b.get(e);o&&n&&(o.delete(n),0===o.size&&b.delete(e))}},w=(t,e)=>v.get(t,e);function y(t,e){const n=new CustomEvent(t,{cancelable:!0,bubbles:!0});return e instanceof Object&&f(n,e),n}const T=(t,e)=>t.getAttribute(e);function E(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}const x=t=>Object.keys(t),H=t=>t.toLowerCase();class k{constructor(t,e){const n=this,o=h(t);if(!o)throw Error(`${n.name} Error: "${t}" is not a valid selector.`);n.options={};const s=v.get(o,n.name);s&&s.dispose(),n.element=o,n.defaults&&Object.keys(n.defaults).length&&(n.options=function(t,e,n,o){const s={...t.dataset},i={},a={};return x(s).forEach(t=>{const e=o&&t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>H(t)):t;a[e]=E(s[t])}),x(n).forEach(t=>{n[t]=E(n[t])}),x(e).forEach(o=>{i[o]=o in n?n[o]:o in a?a[o]:"title"===o?T(t,"title"):e[o]}),i}(o,n.defaults,e||{},"bs")),v.set(o,n.name,n)}get version(){return"4.1.0alpha5"}get name(){return this.constructor.name}get defaults(){return this.constructor.defaults}dispose(){const t=this;v.remove(t.element,t.name),x(t).forEach(e=>{t[e]=null})}}const A=t=>w(t,"Alert"),P=y("close.bs.alert"),M=y("closed.bs.alert");function N(t){const{element:e}=t;$(t),m(e,M),t.dispose(),e.remove()}function $(t,e){const s=e?n:o,{dismiss:i}=t;i&&s(i,"click",t.close)}class L extends k{constructor(t){super(t);const{element:e}=this;this.dismiss=h('[data-bs-dismiss="alert"]',e),$(this,!0)}get name(){return"Alert"}close(t){const e=t?A(u(this,".alert")):this;if(!e)return;const{element:n}=e;if(p(n,"show")){if(m(n,P),P.defaultPrevented)return;g(n,"show"),p(n,"fade")?r(n,()=>N(e)):N(e)}}dispose(){$(this),super.dispose()}}f(L,{selector:".alert",init:t=>new L(t),getInstance:A});const D=(t,e,n)=>t.setAttribute(e,n);function S(t,e){t.classList.add(e)}const C="data-bs-toggle",I=`[${C}="button"]`,R=t=>w(t,"Button");function O(t,e){(e?n:o)(t.element,"click",t.toggle)}class W extends k{constructor(t){super(t);const{element:e}=this;this.isActive=p(e,"active"),D(e,"aria-pressed",""+!!this.isActive),O(this,!0)}get name(){return"Button"}toggle(t){t&&t.preventDefault();const e=t?R(this):this;if(!e)return;const{element:n}=e;if(p(n,"disabled"))return;e.isActive=p(n,"active");const{isActive:o}=e;(o?g:S)(n,"active"),D(n,"aria-pressed",o?"false":"true")}dispose(){O(this),super.dispose()}}f(W,{selector:I,init:t=>new W(t),getInstance:R});const F="mouseenter",B="mouseleave";function z(t){if(null==t)return window;if(!(t instanceof Window)){const{ownerDocument:e}=t;return e&&e.defaultView||window}return t}function X(t,e){const{width:n,height:o,top:s,right:i,bottom:a,left:r}=t.getBoundingClientRect();let l=1,c=1;if(e&&t instanceof HTMLElement){const{offsetWidth:e,offsetHeight:s}=t;l=e>0&&Math.round(n)/e||1,c=s>0&&Math.round(o)/s||1}return{width:n/l,height:o/c,top:s/c,right:i/l,bottom:a/c,left:r/l,x:r/l,y:s/c}}function j(t){return l(t).documentElement}const Y=t=>{const{top:e,bottom:n}=X(t),{clientHeight:o}=j(t);return e<=o&&n>=0},V=t=>"rtl"===j(t).dir;function q(t,e){return(e&&c.some(t=>e instanceof t)?e:l()).querySelectorAll(t)}function U(t,e){return(e&&c.some(t=>e instanceof t)?e:l()).getElementsByClassName(t)}const G=new Map,Z=(t,e,n,o)=>{const s=h(t);if(s)if(o&&o.length){G.has(s)||G.set(s,new Map);G.get(s).set(o,setTimeout(e,n))}else G.set(s,setTimeout(e,n))},J=(t,e)=>{const n=h(t);if(!n)return null;const o=G.get(n);return e&&e.length&&o&&o.get?o.get(e)||null:o||null},K=(t,e)=>{const n=h(t);if(n)if(e&&e.length){const t=G.get(n);t&&t.get&&(clearTimeout(t.get(e)),t.delete(e),0===t.size&&G.delete(n))}else clearTimeout(G.get(n)),G.delete(n)},Q=t=>t.offsetHeight,_={passive:!0};function tt(t){const e=["data-bs-target","data-bs-parent","data-bs-container","href"],n=l(t);return e.map(e=>{const o=T(t,e);return o?"data-bs-parent"===e?u(t,o):h(o,n):null}).filter(t=>t)[0]}const et="carousel-item",nt={pause:"hover",keyboard:!1,touch:!0,interval:5e3},ot=t=>w(t,"Carousel");let st=0,it=0,at=0;const rt=y("slide.bs.carousel"),lt=y("slid.bs.carousel");function ct(){const t=this,e=ot(t);!e||e.isPaused||J(t,"paused")||S(t,"paused")}function dt(){const t=ot(this);t&&t.isPaused&&!J(this,"paused")&&t.cycle()}function ht(t){t.preventDefault();const e=u(this,'[data-bs-ride="carousel"]')||tt(this);if(!e)return;const n=ot(e);if(!n||n.isAnimating)return;const o=+T(this,"data-bs-slide-to");!this||p(this,"active")||Number.isNaN(o)||n.to(o)}function ut(t){t.preventDefault();const e=u(this,'[data-bs-ride="carousel"]')||tt(this),n=e&&ot(e);if(!n||n.isAnimating)return;const o=T(this,"data-bs-slide");"next"===o?n.next():"prev"===o&&n.prev()}function ft({code:t}){const[e]=[...q('[data-bs-ride="carousel"]')].filter(t=>Y(t)),n=ot(e);if(!n)return;const o=V(),s=o?"ArrowLeft":"ArrowRight";t===(o?"ArrowRight":"ArrowLeft")?n.prev():t===s&&n.next()}function pt(t){const e=ot(this);e&&!e.isTouch&&(st=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,vt(e,!0)))}function gt(t){const{changedTouches:e,type:n}=t,o=ot(this);o&&o.isTouch&&(it=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function mt(t){const e=this,n=ot(e);if(n&&n.isTouch&&(at=it||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(st-at)<75)return;it<st?n.index+=1:it>st&&(n.index-=1),n.isTouch=!1,n.to(n.index),vt(n)}}function bt(t,e){const{indicators:n}=t;[...n].forEach(t=>g(t,"active")),t.indicators[e]&&S(n[e],"active")}function vt(t,e){const{element:s}=t,i=e?n:o;i(s,"touchmove",gt,_),i(s,"touchend",mt,_)}function wt(t,e){const{element:s,options:i,slides:a,controls:r,indicators:l}=t,{touch:c,pause:d,interval:h,keyboard:u}=i,f=e?n:o;d&&h&&(f(s,F,ct),f(s,B,dt),f(s,"touchstart",ct,_),f(s,"touchend",dt,_)),c&&a.length>1&&f(s,"touchstart",pt,_),r.length&&r.forEach(t=>{t&&f(t,"click",ut)}),l.length&&l.forEach(t=>{f(t,"click",ht)}),u&&f(z(s),"keydown",ft)}function yt(t){const{slides:e,element:n}=t,o=h(`.${et}.active`,n);return[...e].indexOf(o)}class Tt extends k{constructor(t,e){super(t,e);const n=this;n.direction=V()?"right":"left",n.index=0,n.isTouch=!1;const{element:o}=n;n.slides=U(et,o);const{slides:s}=n;if(s.length<2)return;n.controls=[...q("[data-bs-slide]",o),...q(`[data-bs-slide][data-bs-target="#${o.id}"]`)],n.indicator=h(".carousel-indicators",o),n.indicators=[...n.indicator?q("[data-bs-slide-to]",n.indicator):[],...q(`[data-bs-slide-to][data-bs-target="#${o.id}"]`)];const{options:i}=n;n.options.interval=!0===i.interval?nt.interval:i.interval,yt(n)<0&&(s.length&&S(s[0],"active"),n.indicators.length&&bt(n,0)),wt(n,!0),i.interval&&n.cycle()}get name(){return"Carousel"}get defaults(){return nt}get isPaused(){return p(this.element,"paused")}get isAnimating(){return null!==h(`.${et}-next,.${et}-prev`,this.element)}cycle(){const t=this,{element:e,options:n,isPaused:o}=t;K(e,"carousel"),o&&(K(e,"paused"),g(e,"paused")),Z(e,()=>{!t.isPaused&&Y(e)&&(t.index+=1,t.to(t.index))},n.interval,"carousel")}pause(){const{element:t,options:e}=this;!this.isPaused&&e.interval&&(S(t,"paused"),Z(t,()=>{},1,"paused"))}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,slides:o,options:s}=e,i=yt(e),c=V();let d=t;if(e.isAnimating||i===d)return;i<d||0===i&&d===o.length-1?e.direction=c?"right":"left":(i>d||i===o.length-1&&0===d)&&(e.direction=c?"left":"right");const{direction:h}=e;d<0?d=o.length-1:d>=o.length&&(d=0);const u="left"===h?"next":"prev",b="left"===h?"start":"end",v={relatedTarget:o[d],from:i,to:d,direction:h};f(rt,v),f(lt,v),m(n,rt),rt.defaultPrevented||(e.index=d,bt(e,d),a(o[d])&&p(n,"slide")?Z(n,()=>{S(o[d],`${et}-${u}`),Q(o[d]),S(o[d],`${et}-${b}`),S(o[i],`${et}-${b}`),r(o[d],()=>function(t){const{index:e,direction:n,element:o,slides:s,options:i}=t;if(t.isAnimating&&ot(o)){const a=yt(t),r="left"===n?"next":"prev",c="left"===n?"start":"end";S(s[e],"active"),g(s[e],`${et}-${r}`),g(s[e],`${et}-${c}`),g(s[a],"active"),g(s[a],`${et}-${c}`),m(o,lt),K(o,"data-bs-slide"),l(o).hidden||!i.interval||t.isPaused||t.cycle()}}(e))},17,"data-bs-slide"):(S(o[d],"active"),g(o[i],"active"),Z(n,()=>{K(n,"data-bs-slide"),n&&s.interval&&!e.isPaused&&e.cycle(),m(n,lt)},17,"data-bs-slide")))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];[...e].forEach((e,o)=>{p(e,"active")&&bt(t,o),n.forEach(t=>g(e,`${et}-${t}`))}),wt(t),super.dispose()}}f(Tt,{selector:'[data-bs-ride="carousel"]',init:t=>new Tt(t),getInstance:ot});const Et=`[${C}="collapse"]`,xt={parent:null},Ht=t=>w(t,"Collapse"),kt=y("show.bs.collapse"),At=y("shown.bs.collapse"),Pt=y("hide.bs.collapse"),Mt=y("hidden.bs.collapse");function Nt(t){const{element:e,parent:n,triggers:o}=t;m(e,Pt),Pt.defaultPrevented||(Z(e,()=>{},17),n&&Z(n,()=>{},17),e.style.height=e.scrollHeight+"px",g(e,"collapse"),g(e,"show"),S(e,"collapsing"),Q(e),e.style.height="0px",r(e,()=>{K(e),n&&K(n),o.forEach(t=>D(t,"aria-expanded","false")),g(e,"collapsing"),S(e,"collapse"),e.style.height="",m(e,Mt)}))}function $t(t,e){const s=e?n:o,{triggers:i}=t;i.length&&i.forEach(t=>s(t,"click",Lt))}function Lt(t){const{target:e}=t,n=e&&u(e,Et),o=n&&tt(n),s=o&&Ht(o);s&&s.toggle(),n&&"A"===n.tagName&&t.preventDefault()}class Dt extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;this.triggers=[...q(Et)].filter(t=>tt(t)===n),this.parent=h(o.parent),$t(this,!0)}get name(){return"Collapse"}get defaults(){return xt}toggle(){p(this.element,"show")?this.hide():this.show()}hide(){const{triggers:t,element:e}=this;J(e)||(Nt(this),t.length&&t.forEach(t=>S(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o}=t;let s,i;n&&(s=[...q(".collapse.show",n)].find(t=>Ht(t)),i=s&&Ht(s)),n&&(!n||J(n))||J(e)||(i&&s!==e&&(Nt(i),i.triggers.forEach(t=>{S(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;m(e,kt),kt.defaultPrevented||(Z(e,()=>{},17),n&&Z(n,()=>{},17),S(e,"collapsing"),g(e,"collapse"),e.style.height=e.scrollHeight+"px",r(e,()=>{K(e),n&&K(n),o.forEach(t=>D(t,"aria-expanded","true")),g(e,"collapsing"),S(e,"collapse"),S(e,"show"),e.style.height="",m(e,At)}))}(t),o.length&&o.forEach(t=>g(t,"collapsed")))}dispose(){$t(this),super.dispose()}}f(Dt,{selector:".collapse",init:t=>new Dt(t),getInstance:Ht});const St="scroll",Ct="resize",It="ArrowUp",Rt="ArrowDown",Ot=(t,e)=>t.hasAttribute(e),Wt=(t,e)=>{f(t.style,e)},Ft=t=>t.focus(),Bt=["dropdown","dropup","dropstart","dropend"];function zt(t){const e=u(t,"A");return t&&(Ot(t,"href")&&"#"===t.href.slice(-1)||e&&Ot(e,"href")&&"#"===e.href.slice(-1))}const[Xt,jt,Yt,Vt]=Bt,qt=`[${C}="${Xt}"]`,Ut=t=>w(t,"Dropdown"),Gt=[Xt,jt],Zt=[Yt,Vt],Jt=["A","BUTTON"],Kt={offset:5,display:"dynamic"},Qt=y("show.bs."+Xt),_t=y("shown.bs."+Xt),te=y("hide.bs."+Xt),ee=y("hidden.bs."+Xt);function ne(t){const{element:e,menu:n,parentElement:o,options:s}=t,{offset:a}=s;if("static"===i(n,"position"))return;const r=V(e),l=p(o,"dropdown-menu-end");["margin","top","bottom","left","right"].forEach(t=>{n.style[t]=""});let c=Bt.find(t=>p(o,t))||Xt,d={dropdown:[a,0,0],dropup:[0,0,a],dropstart:r?[-1,0,0,a]:[-1,a,0],dropend:r?[-1,a,0]:[-1,0,0,a]};const h={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:r?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:r?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuEnd:r?{right:"auto",left:0}:{right:0,left:"auto"}},{offsetWidth:u,offsetHeight:g}=n,{clientWidth:m,clientHeight:b}=j(e),{left:v,top:w,width:y,height:T}=X(e),E=v-u-a<0,x=v+u+y+a>=m,H=w+g+a>=b,k=w+g+T+a>=b,A=w-g-a<0,P=(!r&&l||r&&!l)&&v+y-u<0,M=(r&&l||!r&&!l)&&v+u>=m;Zt.includes(c)&&E&&x&&(c=Xt),c===Yt&&(r?x:E)&&(c=Vt),c===Vt&&(r?E:x)&&(c=Yt),c===jt&&A&&!k&&(c=Xt),c===Xt&&k&&!A&&(c=jt),Zt.includes(c)&&H&&f(h[c],{top:"auto",bottom:0}),Gt.includes(c)&&(P||M)&&v+y+Math.abs(u-y)+a<m&&f(h[c],P?{left:0,right:"auto"}:{left:"auto",right:0}),d=d[c],n.style.margin=""+d.map(t=>t?t+"px":t).join(" "),Wt(n,h[c]),p(n,"dropdown-menu-end")&&Wt(n,h.menuEnd)}function oe(t){const{element:e}=t,s=t.open?n:o,i=l(e);s(i,"click",ae),s(i,"focus",ae),s(i,"keydown",le),s(i,"keyup",ce),"dynamic"===t.options.display&&[St,Ct].forEach(t=>{s(z(e),t,de,_)})}function se(t,e){(e?n:o)(t.element,"click",re)}function ie(t){const e=[...Bt,"btn-group","input-group"].map(t=>U(t+" show"),l(t)).find(t=>t.length);return e&&e.length?[...e[0].children].find(t=>Ot(t,C)):null}function ae(t){const{target:e,type:n}=t;if(!e||!e.closest)return;const o=ie(e);if(!o)return;const s=Ut(o);if(!s)return;const{parentElement:i,menu:a}=s,r=null!==u(e,qt),l=i&&i.contains(e)&&("form"===e.tagName||null!==u(e,"form"));"click"===n&&zt(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(l||r||s&&s.hide())}function re(t){const{target:e}=t,n=Ut(this);n&&(n.toggle(),e&&zt(e)&&t.preventDefault())}function le(t){[Rt,It].includes(t.code)&&t.preventDefault()}function ce(t){const{code:e}=t,n=ie(this),o=n&&Ut(n),s=n&&l(n).activeElement;if(!o||!s)return;const{menu:i,open:a}=o,r=function(t){return[...t.children].map(t=>{if(t&&Jt.includes(t.tagName))return t;const{firstElementChild:e}=t;return e&&Jt.includes(e.tagName)?e:null}).filter(t=>t)}(i);if(r&&r.length&&[Rt,It].includes(e)){let t=r.indexOf(s);s===n?t=0:e===It?t=t>1?t-1:0:e===Rt&&(t=t<r.length-1?t+1:t),r[t]&&Ft(r[t])}"Escape"===e&&a&&(o.toggle(),Ft(n))}function de(){const t=ie(this),e=t&&Ut(t);e&&e.open&&ne(e)}class he extends k{constructor(t,e){super(t,e);const{element:n}=this,{parentElement:o}=n;this.parentElement=o,this.menu=h(".dropdown-menu",o),this.open=!1,se(this,!0)}get name(){return"Dropdown"}get defaults(){return Kt}toggle(){this.open?this.hide():this.show()}show(){const t=this,{element:e,open:n,menu:o,parentElement:s}=t,i=ie(e),a=i&&Ut(i);a&&a.hide(),[Qt,_t].forEach(t=>{t.relatedTarget=e}),m(s,Qt),Qt.defaultPrevented||(S(o,"show"),S(s,"show"),D(e,"aria-expanded","true"),ne(t),t.open=!n,setTimeout(()=>{Ft(e),oe(t),m(s,_t)},1))}hide(){const t=this,{element:e,open:n,menu:o,parentElement:s}=t;[te,ee].forEach(t=>{t.relatedTarget=e}),m(s,te),te.defaultPrevented||(g(o,"show"),g(s,"show"),D(e,"aria-expanded","false"),t.open=!n,setTimeout(()=>oe(t),1),m(s,ee))}dispose(){const{parentElement:t}=this;p(t,"show")&&this.open&&this.hide(),se(this),super.dispose()}}f(he,{selector:qt,init:t=>new he(t),getInstance:Ut});const ue=(t,e)=>t.removeAttribute(e);function fe(t){return l(t).body}const pe=t=>t instanceof z(t).ShadowRoot||t instanceof ShadowRoot;const ge=t=>["TABLE","TD","TH"].includes(t.tagName),me=t=>t instanceof HTMLElement;function be(t,e){const n=["HTML","BODY"];if(e){let{offsetParent:e}=t;const o=z(t);for(;e&&(ge(e)||me(e)&&!["sticky","fixed"].includes(i(e,"position")));)e=e.offsetParent;return(!e||e&&(n.includes(e.tagName)||"static"===i(e,"position")))&&(e=o),e}const o=[];let{parentNode:s}=t;for(;s&&!n.includes(s.nodeName);)s="HTML"===(a=s).nodeName?a:a.assignedSlot||a.parentNode||(pe(a)?a.host:null)||j(a),pe(s)||s.shadowRoot||ge(s)||o.push(s);var a;return o.find((t,e)=>"relative"!==i(t,"position")&&o.slice(e+1).every(t=>"static"===i(t,"position"))?t:null)||fe(t)}const ve="sticky-top",we="position-sticky",ye=t=>[...U("fixed-top",t),...U("fixed-bottom",t),...U(ve,t),...U(we,t),...U("is-fixed",t)];function Te(t){const{clientWidth:e}=j(t),{innerWidth:n}=z(t);return Math.abs(n-e)}function Ee(t,e){const n=fe(t),o=parseInt(i(n,"paddingRight"),10),s="hidden"===i(n,"overflow")&&o?0:Te(t),a=ye(n);e&&(Wt(n,{overflow:"hidden",paddingRight:o+s+"px"}),a.length&&a.forEach(t=>{const e=i(t,"paddingRight");if(t.style.paddingRight=parseInt(e,10)+s+"px",[ve,we].some(e=>p(t,e))){const e=i(t,"marginRight");t.style.marginRight=parseInt(e,10)-s+"px"}}))}const xe="modal-backdrop",He="offcanvas-backdrop",ke=l().createElement("div");function Ae(t){return h(".modal.show,.offcanvas.show",l(t))}function Pe(t){const e=t?xe:He;[xe,He].forEach(t=>{g(ke,t)}),S(ke,e)}function Me(t,e,n){Pe(n),t.append(ke),e&&S(ke,"fade")}function Ne(){S(ke,"show"),Q(ke)}function $e(){g(ke,"show")}function Le(t){Ae(t)||(g(ke,"fade"),ke.remove(),function(t){const e=fe(t);Wt(e,{paddingRight:"",overflow:""});const n=ye(e);n.length&&n.forEach(t=>{Wt(t,{paddingRight:"",marginRight:""})})}(t))}function De(t){return t&&"hidden"!==i(t,"visibility")&&null!==t.offsetParent}const Se=`[${C}="modal"]`,Ce={backdrop:!0,keyboard:!0},Ie=t=>w(t,"Modal"),Re=y("show.bs.modal"),Oe=y("shown.bs.modal"),We=y("hide.bs.modal"),Fe=y("hidden.bs.modal");function Be(t){const{element:e}=t,n=Te(e),{clientHeight:o,scrollHeight:s}=j(e),{clientHeight:i,scrollHeight:a}=e,r=i!==a;if(!r&&n){const t=V(e)?"paddingLeft":"paddingRight";e.style[t]=n+"px"}Ee(e,r||o!==s)}function ze(t,e){const s=e?n:o,{element:i}=t;s(i,"click",Ze),s(z(i),Ct,t.update,_),s(l(i),"keydown",Ge)}function Xe(t,e){const s=e?n:o,{triggers:i}=t;i.length&&i.forEach(t=>s(t,"click",Ue))}function je(t){const{triggers:e,element:n}=t;if(Le(n),n.style.paddingRight="",e.length){const t=e.find(t=>De(t));t&&Ft(t)}}function Ye(t){const{element:e,relatedTarget:n}=t;Ft(e),ze(t,!0),Oe.relatedTarget=n,m(e,Oe)}function Ve(t){const{element:e,hasFade:n}=t;e.style.display="block",Be(t),Ae(e)||(fe(e).style.overflow="hidden"),S(e,"show"),ue(e,"aria-hidden"),D(e,"aria-modal","true"),n?r(e,()=>Ye(t)):Ye(t)}function qe(t,e){const{element:n,options:o,relatedTarget:s,hasFade:i}=t;n.style.display="",o.backdrop&&!e&&i&&p(ke,"show")&&!Ae(n)?($e(),r(ke,()=>je(t))):je(t),ze(t),Fe.relatedTarget=s,m(n,Fe)}function Ue(t){const{target:e}=t,n=e&&u(this,Se),o=n&&tt(n),s=o&&Ie(o);s&&(n&&"A"===n.tagName&&t.preventDefault(),s.relatedTarget=n,s.toggle())}function Ge({code:t}){const e=h(".modal.show"),n=e&&Ie(e);if(!n)return;const{options:o}=n;o.keyboard&&"Escape"===t&&p(e,"show")&&(n.relatedTarget=null,n.hide())}function Ze(t){const e=this,n=Ie(e);if(!n||J(e))return;const{options:o,isStatic:s,modalDialog:i}=n,{backdrop:c}=o,{target:d}=t,h=l(e).getSelection().toString().length,f=i.contains(d),p=d&&u(d,'[data-bs-dismiss="modal"]');s&&!f?Z(e,()=>{S(e,"modal-static"),r(i,()=>function(t){const{element:e,modalDialog:n}=t,o=a(n)+17;g(e,"modal-static"),Z(e,()=>K(e),o)}(n))},17):(p||!h&&!s&&!f&&c)&&(n.relatedTarget=p||null,n.hide(),t.preventDefault())}class Je extends k{constructor(t,e){super(t,e);const{element:n}=this;this.modalDialog=h(".modal-dialog",n),this.triggers=[...q(Se)].filter(t=>tt(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=p(n,"fade"),this.relatedTarget=null,this.container=be(n),Xe(this,!0),this.update=this.update.bind(this)}get name(){return"Modal"}get defaults(){return Ce}toggle(){p(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,options:n,hasFade:o,relatedTarget:s,container:i}=t,{backdrop:r}=n;let l=0;if(p(e,"show"))return;if(Re.relatedTarget=s||null,m(e,Re),Re.defaultPrevented)return;const c=Ae(e);if(c&&c!==e){(Ie(c)||w(c,"Offcanvas")).hide()}r?(c||p(ke,"show")?Pe(!0):Me(i,o,!0),l=a(ke),p(ke,"show")||Ne(),setTimeout(()=>Ve(t),l)):(Ve(t),c&&p(ke,"show")&&$e())}hide(t){const e=this,{element:n,hasFade:o,relatedTarget:s}=e;p(n,"show")&&(We.relatedTarget=s||null,m(n,We),We.defaultPrevented||(g(n,"show"),D(n,"aria-hidden","true"),ue(n,"aria-modal"),o&&!1!==t?r(n,()=>qe(e)):qe(e,t)))}update(){p(this.element,"show")&&Be(this)}dispose(){this.hide(!0),Xe(this),super.dispose()}}f(Je,{selector:".modal",init:t=>new Je(t),getInstance:Ie});const Ke=`[${C}="offcanvas"]`,Qe={backdrop:!0,keyboard:!0,scroll:!1},_e=t=>w(t,"Offcanvas"),tn=y("show.bs.offcanvas"),en=y("shown.bs.offcanvas"),nn=y("hide.bs.offcanvas"),on=y("hidden.bs.offcanvas");function sn(t,e){const s=e?n:o;t.triggers.forEach(t=>s(t,"click",cn))}function an(t,e){const s=e?n:o,i=l(t.element);s(i,"keydown",hn),s(i,"click",dn)}function rn(t){const{element:e,options:n}=t;n.scroll||(!function(t){const{element:e}=t,{clientHeight:n,scrollHeight:o}=j(e);Ee(e,n!==o)}(t),fe(e).style.overflow="hidden"),S(e,"offcanvas-toggling"),S(e,"show"),e.style.visibility="visible",r(e,()=>function(t){const{element:e,triggers:n}=t;g(e,"offcanvas-toggling"),ue(e,"aria-hidden"),D(e,"aria-modal","true"),D(e,"role","dialog"),n.length&&n.forEach(t=>D(t,"aria-expanded","true"));m(e,en),an(t,!0),Ft(e)}(t))}function ln(t){const{element:e,options:n}=t,o=Ae(e);e.blur(),!o&&n.backdrop&&p(ke,"show")?($e(),r(ke,()=>un(t))):un(t)}function cn(t){const e=u(this,Ke),n=e&&tt(e),o=n&&_e(n);o&&(o.relatedTarget=e,o.toggle(),e&&"A"===e.tagName&&t.preventDefault())}function dn(t){const e=h(".offcanvas.show",this);if(!e)return;const n=h('[data-bs-dismiss="offcanvas"]',e),o=_e(e);if(!o)return;const{options:s,triggers:i}=o,{target:a}=t,r=u(a,Ke),c=l(e).getSelection();c&&c.toString().length||!(!e.contains(a)&&s.backdrop&&(!r||r&&!i.includes(r))||n&&n.contains(a))||(o.relatedTarget=n&&n.contains(a)?n:null,o.hide()),r&&"A"===r.tagName&&t.preventDefault()}function hn({code:t}){const e=h(".offcanvas.show",this);if(!e)return;const n=_e(e);n&&n.options.keyboard&&"Escape"===t&&(n.relatedTarget=null,n.hide())}function un(t){const{element:e,triggers:n}=t;if(D(e,"aria-hidden","true"),ue(e,"aria-modal"),ue(e,"role"),e.style.visibility="",n.length){n.forEach(t=>D(t,"aria-expanded","false"));const t=n.find(t=>De(t));t&&Ft(t)}Le(e),m(e,on),g(e,"offcanvas-toggling"),Ae(e)||an(t)}class fn extends k{constructor(t,e){super(t,e);const{element:n}=this;this.triggers=[...q(Ke)].filter(t=>tt(t)===n),this.container=be(n),this.relatedTarget=null,sn(this,!0)}get name(){return"Offcanvas"}get defaults(){return Qe}toggle(){p(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,options:n,container:o,relatedTarget:s}=t;let i=0;if(p(e,"show"))return;if(tn.relatedTarget=s,en.relatedTarget=s,m(e,tn),tn.defaultPrevented)return;const r=Ae(e);if(r&&r!==e){(_e(r)||w(r,"Modal")).hide()}n.backdrop?(r?Pe():Me(o,!0),i=a(ke),p(ke,"show")||Ne(),setTimeout(()=>rn(t),i)):(rn(t),r&&p(ke,"show")&&$e())}hide(t){const e=this,{element:n,relatedTarget:o}=e;p(n,"show")&&(nn.relatedTarget=o,on.relatedTarget=o,m(n,nn),nn.defaultPrevented||(S(n,"offcanvas-toggling"),g(n,"show"),t?ln(e):r(n,()=>ln(e))))}dispose(){this.hide(!0),sn(this),super.dispose()}}f(fn,{selector:".offcanvas",init:t=>new fn(t),getInstance:_e});function pn(t){const e="tooltip"===t;return`<div class="${t}" role="tooltip">${(e?"":`<h3 class="${t}-header"></h3>`)+`<div class="${t}-arrow"></div>`+`<div class="${e?t+"-inner":t+"-body"}"></div>`}</div>`}const gn=t=>t&&[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e);function mn(t,e,n){const o=e instanceof HTMLElement,s=X(t,o&&function(t){const{width:e,height:n}=X(t),{offsetWidth:o,offsetHeight:s}=t;return Math.round(e)!==o||Math.round(n)!==s}(e)),i={x:0,y:0};if(o){const t=X(e,!0);i.x=t.x+e.clientLeft,i.y=t.y+e.clientTop}return{x:s.left+n.x-i.x,y:s.top+n.y-i.y,width:s.width,height:s.height}}var bn={top:"top",bottom:"bottom",left:"start",right:"end"};function vn(t,e){const n=/\b(top|bottom|start|end)+/,{element:o,tooltip:s,options:a,arrow:r,offsetParent:l}=t,c={...bn};Wt(s,{top:"0px",left:"0px",right:""});const d="Popover"===t.name,h=s.offsetWidth,u=s.offsetHeight,f=V(o);f&&(c.left="end",c.right="start");const p=j(o),g=p.clientWidth,m=p.clientHeight,{container:b}=a;let{placement:v}=a;const{left:w,right:y,top:T}=X(b,!0),E=b.clientWidth,x=Math.abs(E-b.offsetWidth),H=i(b,"position"),k="fixed"===H,A="static"===H,P="sticky"===H&&T===parseFloat(i(b,"top")),M=f&&k?x:0,N=k?E+w+(f?x:0):E+w+(g-y)-1,{width:$,height:L,left:D,right:S,top:C}=X(o,!0),I=function(t){const e="scrollX"in t;return{x:e?t.scrollX:t.scrollLeft,y:e?t.scrollY:t.scrollTop}}(l),{x:R,y:O}=mn(o,l,I);let W,F,B,z,Y,q;Wt(r,{top:"",left:"",right:""});const U=r.offsetWidth||0,G=r.offsetHeight||0,Z=U/2;let J=C-u-G<0,K=C+u+L+G>=m,Q=D-h-U<M,_=D+h+$+U>=N;const tt=["left","right"],et=["top","bottom"];if(J=tt.includes(v)?C+L/2-u/2-G<0:J,K=tt.includes(v)?C+u/2+L/2+G>=m:K,Q=et.includes(v)?D+$/2-h/2<M:Q,_=et.includes(v)?D+h/2+$/2>=N:_,v=tt.includes(v)&&Q&&_?"top":v,v="top"===v&&J?"bottom":v,v="bottom"===v&&K?"top":v,v="left"===v&&Q?"right":v,v="right"===v&&_?"left":v,s.className.includes(v)||(s.className=s.className.replace(n,c[v])),tt.includes(v))F="left"===v?R-h-(d?U:0):R+$+(d?U:0),J?(W=O,W+=P?-T-I.y:0,z=L/2-U):K?(W=O-u+L,W+=P?-T-I.y:0,z=u-L/2-U):(W=O-u/2+L/2,W+=P?-T-I.y:0,z=u/2-G/2);else if(et.includes(v))if(e&&gn(o)){let t=0,n=0;A?(t=e.pageX,n=e.pageY):(t=e.clientX-w+(k?I.x:0),n=e.clientY-T+(k?I.y:0)),t-=f&&k&&x?x:0,W="top"===v?n-u-U:n+U,e.clientX-h/2<M?(F=0,Y=t-Z):e.clientX+h/2>N?(F="auto",B=0,q=N-t-Z,q-=k?w+(f?x:0):0):(F=t-h/2,Y=h/2-Z)}else W="top"===v?O-u-(d?G:0):O+L+(d?G:0),Q?(F=0,Y=R+$/2-Z):_?(F="auto",B=0,q=$/2+N-S-Z):(F=R-h/2+$/2,Y=h/2-Z);Wt(s,{top:W+"px",left:"auto"===F?F:F+"px",right:void 0!==B?B+"px":""}),r instanceof HTMLElement&&(void 0!==z&&(r.style.top=z+"px"),void 0!==Y?r.style.left=Y+"px":void 0!==q&&(r.style.right=q+"px"))}const wn={template:pn("tooltip"),title:null,customClass:null,trigger:"hover focus",placement:"top",sanitizeFn:null,animation:!0,delay:200,container:null},yn="focusin",Tn="focusout",{userAgentData:En}=navigator,xn=En,{userAgent:Hn}=navigator,kn=Hn,An=/(iPhone|iPod|iPad)/,Pn=xn?xn.brands.some(t=>An.test(t.brand)):An.test(kn);let Mn=1;const Nn=new Map;function $n(t,e,n){if("string"!=typeof e||e.length)if("string"==typeof e){let o=e.trim();"function"==typeof n&&(o=n(o));const s=(new DOMParser).parseFromString(o,"text/html"),{body:i}=s,a=i.children.length?"innerHTML":"innerText";t[a]=i[a]}else e instanceof HTMLElement&&t.append(e)}function Ln(t,e){return t instanceof HTMLElement&&e.contains(t)}const Dn=`[${C}="tooltip"],[data-tip="tooltip"]`;let Sn=t=>w(t,"Tooltip");function Cn(t){const{element:e}=t;Wn(t),e.hasAttribute("data-original-title")&&"tooltip"===t.name&&Bn(t)}function In(t,e){const s=e?n:o,{element:i}=t;s(l(i),"touchstart",zn,_),gn(i)||[St,Ct].forEach(e=>{s(z(i),e,t.update,_)})}function Rn(t){const{element:e}=t,n=y("shown.bs."+H(t.name));In(t,!0),m(e,n),K(e,"in")}function On(t){const{element:e}=t,n=y("hidden.bs."+H(t.name));In(t),function(t){const{element:e,tooltip:n}=t;ue(e,"aria-describedby"),n.remove()}(t),m(e,n),K(e,"out")}function Wn(t,e){const s=e?n:o,{element:i,options:a,btn:r}=t,{trigger:c,dismissible:d}=a;if(c.includes("manual"))return;t.enabled=!!e;const h=c.split(" "),u=gn(i);u&&s(i,"mousemove",t.update,_),h.forEach(e=>{u||"hover"===e?(s(i,"mousedown",t.show),s(i,F,t.show),d&&r?s(r,"click",t.hide):(s(i,B,t.hide),s(l(i),"touchstart",zn,_))):"click"===e?s(i,e,d?t.show:t.toggle):"focus"===e&&(s(i,yn,t.show),d||s(i,Tn,t.hide),Pn&&s(i,"click",()=>Ft(i)))})}function Fn(t,e){const s=e?n:o,{element:i,options:a,offsetParent:r}=t,{container:l}=a,{offsetHeight:c,scrollHeight:d}=l,h=u(i,".modal"),f=u(i,".offcanvas");if(!gn(i)){const e=z(i),n=c!==d||r!==e?l:e;s(e,Ct,t.update,_),s(n,St,t.update,_)}h&&s(h,"hide.bs.modal",t.hide),f&&s(f,"hide.bs.offcanvas",t.hide)}function Bn(t,e){const n=["data-original-title","title"],{element:o}=t;D(o,n[e?0:1],e||T(o,n[0])),ue(o,n[e?1:0])}function zn({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class Xn extends k{constructor(t,e){super(t,e);const n=this,{element:o}=n,s="Tooltip"===n.name,a=s?"tooltip":"popover",r=s?"Tooltip":"Popover";Sn=t=>w(t,r),n.tooltip={},s||(n.btn=null),n.arrow={},n.offsetParent={},n.enabled=!0,n.id=`${a}-${function(t,e){Mn+=1;let n=Nn.get(t),o=Mn;if(e&&e.length)if(n){const t=n.get(e);Number.isNaN(t)?n.set(e,o):o=t}else Nn.set(t,new Map),n=Nn.get(t),n.set(e,o);else Number.isNaN(n)?Nn.set(t,o):o=n;return o}(o,a)}`;const{options:c}=n;if(!c.title&&s||!s&&!c.content)return;const d=h(c.container),u=be(o);n.options.container=!d||d&&["static","relative"].includes(i(d,"position"))?u:d||fe(o),wn.title=null,zn.bind(n),n.update=n.update.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n.toggle=n.toggle.bind(n),o.hasAttribute("title")&&s&&Bn(n,c.title),function(t){const{id:e,element:n,options:o}=t,{animation:s,customClass:i,sanitizeFn:a,placement:r,dismissible:c}=o;let{title:d,content:u}=o;const f="Tooltip"===t.name,g=f?"tooltip":"popover",{template:m,btnClose:b}=o,v={...bn};V(n)&&(v.left="end",v.right="start");const w=`bs-${g}-${v[r]}`;let y;if([Element,HTMLElement].some(t=>m instanceof t))y=m;else{const t=l(n).createElement("div");$n(t,m,a),y=t.firstElementChild}t.tooltip=y&&y.cloneNode(!0);const{tooltip:T}=t;D(T,"id",e),D(T,"role","tooltip");const E=f?"tooltip-inner":"popover-body",x=f?null:h(".popover-header",T),H=h("."+E,T);t.arrow=h(`.${g}-arrow`,T),c&&(d?d instanceof HTMLElement?$n(d,b,a):d+=b:(x&&x.remove(),u instanceof HTMLElement?$n(u,b,a):u+=b)),f?d&&H&&$n(H,d,a):(d&&x&&$n(x,d,a),u&&H&&$n(H,u,a),t.btn=h(".btn-close",T)),p(T,g)||S(T,g),s&&!p(T,"fade")&&S(T,"fade"),i&&!p(T,i)&&S(T,i),p(T,w)||S(T,w)}(n),Wn(n,!0)}get name(){return"Tooltip"}get defaults(){return wn}show(t){const e=this,{options:n,tooltip:o,element:s,id:i}=e,{container:a,animation:l}=n,c=J(s,"out");K(s,"out"),!o||c||Ln(o,a)||Z(s,()=>{const n=y("show.bs."+H(e.name));m(s,n),n.defaultPrevented||(a.append(o),D(s,"aria-describedby","#"+i),e.offsetParent=be(o,!0),e.update(t),Fn(e,!0),p(o,"show")||S(o,"show"),l?r(o,()=>Rn(e)):Rn(e))},17,"in")}hide(){const t=this,{options:e,tooltip:n,element:o}=t,{container:s,animation:i,delay:a}=e;K(o,"in"),n&&Ln(n,s)&&Z(o,()=>{const e=y("hide.bs."+H(t.name));m(o,e),e.defaultPrevented||(g(n,"show"),Fn(t),i?r(n,()=>On(t)):On(t))},a+17,"out")}update(t){vn(this,t)}toggle(t){const{tooltip:e,options:n}=this;Ln(e,n.container)?this.hide():this.show(t)}enable(){const t=this,{enabled:e}=t;e||(Wn(t,!0),t.enabled=!e)}disable(){const t=this,{element:e,tooltip:n,options:o,enabled:s}=t,{animation:i,container:r,delay:l}=o;s&&(Ln(n,r)&&i?(t.hide(),Z(e,()=>{Wn(t),K(e,"tooltip")},a(n)+l+17,"tooltip")):Wn(t),t.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&Ln(e,n.container)?(n.delay=0,t.hide(),r(e,()=>Cn(t))):Cn(t),super.dispose()}}f(Xn,{selector:Dn,init:t=>new Xn(t),getInstance:Sn,styleTip:vn});const jn=`[${C}="popover"],[data-tip="popover"]`,Yn={...wn,template:pn("popover"),btnClose:'<button class="btn-close" aria-label="Close"></button>',dismissible:!1,content:null};class Vn extends Xn{constructor(t,e){super(t,e)}get name(){return"Popover"}get defaults(){return Yn}show(){super.show();const{options:t,btn:e}=this;t.dismissible&&e&&setTimeout(()=>Ft(e),17)}}function qn(t,e){return(e&&c.some(t=>e instanceof t)?e:l()).getElementsByTagName(t)}f(Vn,{selector:jn,init:t=>new Vn(t),getInstance:t=>w(t,"Popover"),styleTip:vn});const Un={offset:10,target:null},Gn=y("activate.bs.scrollspy");function Zn(t){const{target:e,scrollTarget:n,options:o,itemsLength:s,scrollHeight:i,element:a}=t,{offset:r}=o,c=n instanceof Window,d=e&&qn("A",e),u=n&&function(t){return t instanceof HTMLElement?t.scrollHeight:j(t).scrollHeight}(n);if(t.scrollTop=c?n.scrollY:n.scrollTop,d&&(s!==d.length||u!==i)){let e,n,o;t.items=[],t.offsets=[],t.scrollHeight=u,t.maxScroll=t.scrollHeight-function({element:t,scrollTarget:e}){return e instanceof Window?e.innerHeight:X(t).height}(t),[...d].forEach(s=>{e=T(s,"href"),n=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&h(e,l(a)),n&&(t.items.push(s),o=X(n),t.offsets.push((c?o.top+t.scrollTop:n.offsetTop)-r))}),t.itemsLength=t.items.length}}function Jn(t){[...qn("A",t)].forEach(t=>{p(t,"active")&&g(t,"active")})}function Kn(t,e){const{target:n,element:o}=t;Jn(n),t.activeItem=e,S(e,"active");const s=[];let i=e;for(;i!==fe(o);)i=i.parentElement,(p(i,"nav")||p(i,"dropdown-menu"))&&s.push(i);s.forEach(t=>{const e=t.previousElementSibling;e&&!p(e,"active")&&S(e,"active")}),Gn.relatedTarget=e,m(o,Gn)}function Qn(t,e){(e?n:o)(t.scrollTarget,St,t.refresh,_)}class _n extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;if(this.target=h(o.target,l(n)),!this.target)return;const s=z(n);this.scrollTarget=n.clientHeight<n.scrollHeight?n:s,this.scrollTop=0,this.maxScroll=0,this.scrollHeight=0,this.activeItem=null,this.items=[],this.itemsLength=0,this.offsets=[],this.refresh=this.refresh.bind(this),Qn(this,!0),this.refresh()}get name(){return"ScrollSpy"}get defaults(){return Un}refresh(){const t=this,{target:e}=t;if(0===e.offsetHeight)return;Zn(t);const{scrollTop:n,maxScroll:o,itemsLength:s,items:i,activeItem:a}=t;if(n>=o){const e=i[s-1];return void(a!==e&&Kn(t,e))}const{offsets:r}=t;if(a&&n<r[0]&&r[0]>0)return t.activeItem=null,void Jn(e);i.forEach((e,o)=>{a!==e&&n>=r[o]&&(void 0===r[o+1]||n<r[o+1])&&Kn(t,e)})}dispose(){Qn(this),super.dispose()}}f(_n,{selector:'[data-bs-spy="scroll"]',init:t=>new _n(t),getInstance:t=>w(t,"ScrollSpy")});const to=`[${C}="tab"]`,eo=t=>w(t,"Tab"),no=y("show.bs.tab"),oo=y("shown.bs.tab"),so=y("hide.bs.tab"),io=y("hidden.bs.tab"),ao=new Map;function ro(t){const{tabContent:e,nav:n}=t;e&&(e.style.height="",g(e,"collapsing")),n&&K(n)}function lo(t){const{element:e,tabContent:n,nav:o}=t,{currentHeight:s,nextHeight:i}=ao.get(e),{tab:a}=o&&ao.get(o);n?s===i?ro(t):setTimeout(()=>{n.style.height=i+"px",Q(n),r(n,()=>ro(t))},50):o&&K(o),oo.relatedTarget=a,m(e,oo)}function co(t){const{element:e,content:n,tabContent:o,nav:s}=t,{tab:i,content:a}=s&&ao.get(s);let l=0;if(o&&([a,n].forEach(t=>S(t,"overflow-hidden")),l=a.scrollHeight),no.relatedTarget=i,io.relatedTarget=e,m(e,no),!no.defaultPrevented){if(S(n,"active"),g(a,"active"),o){const t=n.scrollHeight;ao.set(e,{currentHeight:l,nextHeight:t}),S(o,"collapsing"),o.style.height=l+"px",Q(o),[a,n].forEach(t=>g(t,"overflow-hidden"))}n&&p(n,"fade")?setTimeout(()=>{S(n,"show"),r(n,()=>{lo(t)})},17):lo(t),m(i,io)}}function ho(t,e){(e?n:o)(t.element,"click",uo)}function uo(t){const e=eo(this);e&&(t.preventDefault(),e.show())}class fo extends k{constructor(t){super(t);const{element:e}=this,n=tt(e);if(!n)return;const o=u(e,".nav"),s=u(n,".tab-content");this.nav=o,this.content=n,this.tabContent=s,this.dropdown=o&&h(`.${Bt[0]}-toggle`,o),ho(this,!0)}get name(){return"Tab"}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(!(n&&J(n)||p(e,"active"))){const{tab:s,content:i}=function(t){const{nav:e}=t,n=U("active",e);let o;return 1!==n.length||Bt.some(t=>p(n[0].parentElement,t))?n.length>1&&(o=n[n.length-1]):[o]=n,{tab:o,content:o?tt(o):null}}(t);if(n&&ao.set(n,{tab:s,content:i}),so.relatedTarget=e,m(s,so),so.defaultPrevented)return;n&&Z(n,()=>{},17),g(s,"active"),D(s,"aria-selected","false"),S(e,"active"),D(e,"aria-selected","true"),o&&(p(e.parentNode,"dropdown-menu")?p(o,"active")||S(o,"active"):p(o,"active")&&g(o,"active")),p(i,"fade")?(g(i,"show"),r(i,()=>co(t))):co(t)}}dispose(){ho(this),super.dispose()}}f(fo,{selector:to,init:t=>new fo(t),getInstance:eo});const po={animation:!0,autohide:!0,delay:5e3},go=t=>w(t,"Toast"),mo=y("show.bs.toast"),bo=y("shown.bs.toast"),vo=y("hide.bs.toast"),wo=y("hidden.bs.toast");function yo(t){const{element:e,options:n}=t;g(e,"showing"),K(e,"showing"),m(e,bo),n.autohide&&Z(e,()=>t.hide(),n.delay,"toast")}function To(t){const{element:e}=t;g(e,"showing"),g(e,"show"),S(e,"hide"),K(e,"toast"),m(e,wo)}function Eo(t,e){const s=e?n:o,{element:i,dismiss:a,options:r}=t;a&&s(a,"click",t.hide),r.autohide&&[yn,Tn,F,B].forEach(t=>s(i,t,xo))}function xo(t){const e=this,n=go(e),{type:o,relatedTarget:s}=t;n&&e!==s&&!e.contains(s)&&([F,yn].includes(o)?K(e,"toast"):Z(e,()=>n.hide(),n.options.delay,"toast"))}class Ho extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;o.animation&&!p(n,"fade")?S(n,"fade"):!o.animation&&p(n,"fade")&&g(n,"fade"),this.dismiss=h('[data-bs-dismiss="toast"]',n),this.show=this.show.bind(this),this.hide=this.hide.bind(this),Eo(this,!0)}get name(){return"Toast"}get defaults(){return po}show(){const t=this,{element:e}=t;if(e&&!p(e,"show")){if(m(e,mo),mo.defaultPrevented)return;!function(t){const{element:e,options:n}=t;Z(e,()=>{g(e,"hide"),Q(e),S(e,"show"),S(e,"showing"),n.animation?r(e,()=>yo(t)):yo(t)},17,"showing")}(t)}}hide(){const t=this,{element:e}=t;if(e&&p(e,"show")){if(m(e,vo),vo.defaultPrevented)return;!function(t){const{element:e,options:n}=t;S(e,"showing"),n.animation?(Q(e),r(e,()=>To(t))):To(t)}(t)}}dispose(){const{element:t}=this;p(t,"show")&&g(t,"show"),function(t){K(t.element,"toast"),Eo(t)}(this),super.dispose()}}f(Ho,{selector:".toast",init:t=>new Ho(t),getInstance:go});const ko={Alert:L,Button:W,Carousel:Tt,Collapse:Dt,Dropdown:he,Modal:Je,Offcanvas:fn,Popover:Vn,ScrollSpy:_n,Tab:fo,Toast:Ho,Tooltip:Xn};function Ao(t){const e=[...qn("*",t&&c.some(e=>t instanceof e)?t:void 0)];x(ko).forEach(t=>{const{init:n,selector:o}=ko[t];var s,i;s=n,i=e.filter(t=>function(t,e){return t.matches(e)}(t,o)),[...i].forEach(t=>s(t))})}document.body?Ao():n(document,"DOMContentLoaded",()=>Ao(),{once:!0});return{Alert:L,Button:W,Carousel:Tt,Collapse:Dt,Dropdown:he,Modal:Je,Offcanvas:fn,Popover:Vn,ScrollSpy:_n,Tab:fo,Toast:Ho,Tooltip:Xn,initCallback:Ao,removeDataAPI:function(t){const e=t&&c.some(e=>t instanceof e)?t:void 0;x(ko).forEach(t=>{!function(t,e){const n=v.getAllFor(t);n&&[...n].forEach(t=>{const[n,o]=t;e&&e.contains(n)&&o.dispose()})}(t,e)})},Version:"4.1.0alpha5",EventListener:s}}));
// Native JavaScript for Bootstrap v4.1.0alpha6 | 2022 © dnp_theme | MIT-License
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).BSN=e()}(this,(function(){"use strict";const t={};function e(e){const n=this,{type:s}=e;(t[s]?[...t[s]]:[]).forEach(t=>{const[i,a]=t;[...a].forEach(t=>{if(i===n){const[n,a]=t;n.apply(i,[e]),a&&a.once&&o(i,s,n,a)}})})}const n=(n,o,s,i)=>{t[o]||(t[o]=new Map);const a=t[o];a.has(n)||a.set(n,new Map);const l=a.get(n),{size:r}=l;l&&l.set(s,i),r||n.addEventListener(o,e,i)},o=(n,o,s,i)=>{const a=t[o],l=a&&a.get(n),r=l&&l.get(s),{options:c}=void 0!==r?r:{options:i};l&&l.has(s)&&l.delete(s),!a||l&&l.size||a.delete(n),a&&a.size||delete t[o],l&&l.size||n.removeEventListener(o,e,c)},s={on:n,off:o,globalListener:e,registry:t};function i(t,e){const n=getComputedStyle(t);return e in n?n[e]:""}function a(t){const e=i(t,"transitionProperty"),n=i(t,"transitionDuration"),o=n.includes("ms")?1:1e3,s=e&&"none"!==e?parseFloat(n)*o:0;return Number.isNaN(s)?0:s}function l(t,e){let n=0;const o=new Event("transitionend"),s=a(t),l=function(t){const e=i(t,"transitionProperty"),n=i(t,"transitionDelay"),o=n.includes("ms")?1:1e3,s=e&&"none"!==e?parseFloat(n)*o:0;return Number.isNaN(s)?0:s}(t);if(s){const i=o=>{o.target===t&&(e.apply(t,[o]),t.removeEventListener("transitionend",i),n=1)};t.addEventListener("transitionend",i),setTimeout(()=>{n||t.dispatchEvent(o)},s+l+17)}else e.apply(t,[o])}function r(t){return t instanceof HTMLElement?t.ownerDocument:t instanceof Window?t.document:window.document}const c=[Document,Element,HTMLElement],d=[Element,HTMLElement];function h(t,e){const n=c.some(t=>e instanceof t)?e:r();return d.some(e=>t instanceof e)?t:n.querySelector(t)}function u(t,e){return t?t.closest(e)||u(t.getRootNode().host,e):null}const f=(t,e)=>Object.assign(t,e);function p(t,e){return t.classList.contains(e)}function g(t,e){t.classList.remove(e)}const m=(t,e)=>t.dispatchEvent(e),b=new Map,v={set:(t,e,n)=>{const o=h(t);if(!o)return;b.has(e)||b.set(e,new Map);b.get(e).set(o,n)},getAllFor:t=>b.get(t)||null,get:(t,e)=>{const n=h(t),o=v.getAllFor(e);return n&&o&&o.get(n)||null},remove:(t,e)=>{const n=h(t),o=b.get(e);o&&n&&(o.delete(n),0===o.size&&b.delete(e))}},w=(t,e)=>v.get(t,e);function T(t,e){const n=new CustomEvent(t,{cancelable:!0,bubbles:!0});return e instanceof Object&&f(n,e),n}const y=(t,e)=>t.getAttribute(e);function E(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}const x=t=>Object.keys(t),H=t=>t.toLowerCase();class k{constructor(t,e){const n=this,o=h(t);if(!o)throw Error(`${n.name} Error: "${t}" is not a valid selector.`);n.options={};const s=v.get(o,n.name);s&&s.dispose(),n.element=o,n.defaults&&Object.keys(n.defaults).length&&(n.options=function(t,e,n,o){const s={...t.dataset},i={},a={};return x(s).forEach(t=>{const e=o&&t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>H(t)):t;a[e]=E(s[t])}),x(n).forEach(t=>{n[t]=E(n[t])}),x(e).forEach(o=>{i[o]=o in n?n[o]:o in a?a[o]:"title"===o?y(t,"title"):e[o]}),i}(o,n.defaults,e||{},"bs")),v.set(o,n.name,n)}get version(){return"4.1.0alpha6"}get name(){return this.constructor.name}get defaults(){return this.constructor.defaults}dispose(){const t=this;v.remove(t.element,t.name),x(t).forEach(e=>{t[e]=null})}}const A=t=>w(t,"Alert"),P=T("close.bs.alert"),M=T("closed.bs.alert");function N(t){const{element:e}=t;$(t),m(e,M),t.dispose(),e.remove()}function $(t,e){const s=e?n:o,{dismiss:i}=t;i&&s(i,"click",t.close)}class L extends k{constructor(t){super(t);const{element:e}=this;this.dismiss=h('[data-bs-dismiss="alert"]',e),$(this,!0)}get name(){return"Alert"}close(t){const e=t?A(u(this,".alert")):this;if(!e)return;const{element:n}=e;if(p(n,"show")){if(m(n,P),P.defaultPrevented)return;g(n,"show"),p(n,"fade")?l(n,()=>N(e)):N(e)}}dispose(){$(this),super.dispose()}}f(L,{selector:".alert",init:t=>new L(t),getInstance:A});const D=(t,e,n)=>t.setAttribute(e,n);function S(t,e){t.classList.add(e)}const C="data-bs-toggle",I=`[${C}="button"]`,R=t=>w(t,"Button");function O(t,e){(e?n:o)(t.element,"click",t.toggle)}class W extends k{constructor(t){super(t);const{element:e}=this;this.isActive=p(e,"active"),D(e,"aria-pressed",""+!!this.isActive),O(this,!0)}get name(){return"Button"}toggle(t){t&&t.preventDefault();const e=t?R(this):this;if(!e)return;const{element:n}=e;if(p(n,"disabled"))return;e.isActive=p(n,"active");const{isActive:o}=e;(o?g:S)(n,"active"),D(n,"aria-pressed",o?"false":"true")}dispose(){O(this),super.dispose()}}f(W,{selector:I,init:t=>new W(t),getInstance:R});const F="mouseenter",B="mouseleave";function z(t){if(null==t)return window;if(!(t instanceof Window)){const{ownerDocument:e}=t;return e&&e.defaultView||window}return t}function X(t,e){const{width:n,height:o,top:s,right:i,bottom:a,left:l}=t.getBoundingClientRect();let r=1,c=1;if(e&&t instanceof HTMLElement){const{offsetWidth:e,offsetHeight:s}=t;r=e>0&&Math.round(n)/e||1,c=s>0&&Math.round(o)/s||1}return{width:n/r,height:o/c,top:s/c,right:i/r,bottom:a/c,left:l/r,x:l/r,y:s/c}}function j(t){return r(t).documentElement}const Y=t=>{const{top:e,bottom:n}=X(t),{clientHeight:o}=j(t);return e<=o&&n>=0},V=t=>"rtl"===j(t).dir;function q(t,e){return(e&&c.some(t=>e instanceof t)?e:r()).querySelectorAll(t)}function U(t,e){return(e&&c.some(t=>e instanceof t)?e:r()).getElementsByClassName(t)}const G=new Map,Z=(t,e,n,o)=>{const s=h(t);if(s)if(o&&o.length){G.has(s)||G.set(s,new Map);G.get(s).set(o,setTimeout(e,n))}else G.set(s,setTimeout(e,n))},J=(t,e)=>{const n=h(t);if(!n)return null;const o=G.get(n);return e&&e.length&&o&&o.get?o.get(e)||null:o||null},K=(t,e)=>{const n=h(t);if(n)if(e&&e.length){const t=G.get(n);t&&t.get&&(clearTimeout(t.get(e)),t.delete(e),0===t.size&&G.delete(n))}else clearTimeout(G.get(n)),G.delete(n)},Q=t=>t.offsetHeight,_={passive:!0};function tt(t){const e=["data-bs-target","data-bs-parent","data-bs-container","href"],n=r(t);return e.map(e=>{const o=y(t,e);return o?"data-bs-parent"===e?u(t,o):h(o,n):null}).filter(t=>t)[0]}const et="carousel-item",nt={pause:"hover",keyboard:!1,touch:!0,interval:5e3},ot=t=>w(t,"Carousel");let st=0,it=0,at=0;const lt=T("slide.bs.carousel"),rt=T("slid.bs.carousel");function ct(){const t=this,e=ot(t);!e||e.isPaused||J(t,"paused")||S(t,"paused")}function dt(){const t=ot(this);t&&t.isPaused&&!J(this,"paused")&&t.cycle()}function ht(t){t.preventDefault();const e=u(this,'[data-bs-ride="carousel"]')||tt(this);if(!e)return;const n=ot(e);if(!n||n.isAnimating)return;const o=+y(this,"data-bs-slide-to");!this||p(this,"active")||Number.isNaN(o)||n.to(o)}function ut(t){t.preventDefault();const e=u(this,'[data-bs-ride="carousel"]')||tt(this),n=e&&ot(e);if(!n||n.isAnimating)return;const o=y(this,"data-bs-slide");"next"===o?n.next():"prev"===o&&n.prev()}function ft({code:t}){const[e]=[...q('[data-bs-ride="carousel"]')].filter(t=>Y(t)),n=ot(e);if(!n)return;const o=V(),s=o?"ArrowLeft":"ArrowRight";t===(o?"ArrowRight":"ArrowLeft")?n.prev():t===s&&n.next()}function pt(t){const e=ot(this);e&&!e.isTouch&&(st=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,vt(e,!0)))}function gt(t){const{changedTouches:e,type:n}=t,o=ot(this);o&&o.isTouch&&(it=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function mt(t){const e=this,n=ot(e);if(n&&n.isTouch&&(at=it||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(st-at)<75)return;it<st?n.index+=1:it>st&&(n.index-=1),n.isTouch=!1,n.to(n.index),vt(n)}}function bt(t,e){const{indicators:n}=t;[...n].forEach(t=>g(t,"active")),t.indicators[e]&&S(n[e],"active")}function vt(t,e){const{element:s}=t,i=e?n:o;i(s,"touchmove",gt,_),i(s,"touchend",mt,_)}function wt(t,e){const{element:s,options:i,slides:a,controls:l,indicators:r}=t,{touch:c,pause:d,interval:h,keyboard:u}=i,f=e?n:o;d&&h&&(f(s,F,ct),f(s,B,dt),f(s,"touchstart",ct,_),f(s,"touchend",dt,_)),c&&a.length>1&&f(s,"touchstart",pt,_),l.length&&l.forEach(t=>{t&&f(t,"click",ut)}),r.length&&r.forEach(t=>{f(t,"click",ht)}),u&&f(z(s),"keydown",ft)}function Tt(t){const{slides:e,element:n}=t,o=h(`.${et}.active`,n);return[...e].indexOf(o)}class yt extends k{constructor(t,e){super(t,e);const n=this;n.direction=V()?"right":"left",n.index=0,n.isTouch=!1;const{element:o}=n;n.slides=U(et,o);const{slides:s}=n;if(s.length<2)return;n.controls=[...q("[data-bs-slide]",o),...q(`[data-bs-slide][data-bs-target="#${o.id}"]`)],n.indicator=h(".carousel-indicators",o),n.indicators=[...n.indicator?q("[data-bs-slide-to]",n.indicator):[],...q(`[data-bs-slide-to][data-bs-target="#${o.id}"]`)];const{options:i}=n;n.options.interval=!0===i.interval?nt.interval:i.interval,Tt(n)<0&&(s.length&&S(s[0],"active"),n.indicators.length&&bt(n,0)),wt(n,!0),i.interval&&n.cycle()}get name(){return"Carousel"}get defaults(){return nt}get isPaused(){return p(this.element,"paused")}get isAnimating(){return null!==h(`.${et}-next,.${et}-prev`,this.element)}cycle(){const t=this,{element:e,options:n,isPaused:o}=t;K(e,"carousel"),o&&(K(e,"paused"),g(e,"paused")),Z(e,()=>{!t.isPaused&&Y(e)&&(t.index+=1,t.to(t.index))},n.interval,"carousel")}pause(){const{element:t,options:e}=this;!this.isPaused&&e.interval&&(S(t,"paused"),Z(t,()=>{},1,"paused"))}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,slides:o,options:s}=e,i=Tt(e),c=V();let d=t;if(e.isAnimating||i===d)return;i<d||0===i&&d===o.length-1?e.direction=c?"right":"left":(i>d||i===o.length-1&&0===d)&&(e.direction=c?"left":"right");const{direction:h}=e;d<0?d=o.length-1:d>=o.length&&(d=0);const u="left"===h?"next":"prev",b="left"===h?"start":"end",v={relatedTarget:o[d],from:i,to:d,direction:h};f(lt,v),f(rt,v),m(n,lt),lt.defaultPrevented||(e.index=d,bt(e,d),a(o[d])&&p(n,"slide")?Z(n,()=>{S(o[d],`${et}-${u}`),Q(o[d]),S(o[d],`${et}-${b}`),S(o[i],`${et}-${b}`),l(o[d],()=>function(t){const{index:e,direction:n,element:o,slides:s,options:i}=t;if(t.isAnimating&&ot(o)){const a=Tt(t),l="left"===n?"next":"prev",c="left"===n?"start":"end";S(s[e],"active"),g(s[e],`${et}-${l}`),g(s[e],`${et}-${c}`),g(s[a],"active"),g(s[a],`${et}-${c}`),m(o,rt),K(o,"data-bs-slide"),r(o).hidden||!i.interval||t.isPaused||t.cycle()}}(e))},17,"data-bs-slide"):(S(o[d],"active"),g(o[i],"active"),Z(n,()=>{K(n,"data-bs-slide"),n&&s.interval&&!e.isPaused&&e.cycle(),m(n,rt)},17,"data-bs-slide")))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];[...e].forEach((e,o)=>{p(e,"active")&&bt(t,o),n.forEach(t=>g(e,`${et}-${t}`))}),wt(t),super.dispose()}}f(yt,{selector:'[data-bs-ride="carousel"]',init:t=>new yt(t),getInstance:ot});const Et=`[${C}="collapse"]`,xt={parent:null},Ht=t=>w(t,"Collapse"),kt=T("show.bs.collapse"),At=T("shown.bs.collapse"),Pt=T("hide.bs.collapse"),Mt=T("hidden.bs.collapse");function Nt(t){const{element:e,parent:n,triggers:o}=t;m(e,Pt),Pt.defaultPrevented||(Z(e,()=>{},17),n&&Z(n,()=>{},17),e.style.height=e.scrollHeight+"px",g(e,"collapse"),g(e,"show"),S(e,"collapsing"),Q(e),e.style.height="0px",l(e,()=>{K(e),n&&K(n),o.forEach(t=>D(t,"aria-expanded","false")),g(e,"collapsing"),S(e,"collapse"),e.style.height="",m(e,Mt)}))}function $t(t,e){const s=e?n:o,{triggers:i}=t;i.length&&i.forEach(t=>s(t,"click",Lt))}function Lt(t){const{target:e}=t,n=e&&u(e,Et),o=n&&tt(n),s=o&&Ht(o);s&&s.toggle(),n&&"A"===n.tagName&&t.preventDefault()}class Dt extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;this.triggers=[...q(Et)].filter(t=>tt(t)===n),this.parent=h(o.parent),$t(this,!0)}get name(){return"Collapse"}get defaults(){return xt}toggle(){p(this.element,"show")?this.hide():this.show()}hide(){const{triggers:t,element:e}=this;J(e)||(Nt(this),t.length&&t.forEach(t=>S(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o}=t;let s,i;n&&(s=[...q(".collapse.show",n)].find(t=>Ht(t)),i=s&&Ht(s)),n&&(!n||J(n))||J(e)||(i&&s!==e&&(Nt(i),i.triggers.forEach(t=>{S(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;m(e,kt),kt.defaultPrevented||(Z(e,()=>{},17),n&&Z(n,()=>{},17),S(e,"collapsing"),g(e,"collapse"),e.style.height=e.scrollHeight+"px",l(e,()=>{K(e),n&&K(n),o.forEach(t=>D(t,"aria-expanded","true")),g(e,"collapsing"),S(e,"collapse"),S(e,"show"),e.style.height="",m(e,At)}))}(t),o.length&&o.forEach(t=>g(t,"collapsed")))}dispose(){$t(this),super.dispose()}}f(Dt,{selector:".collapse",init:t=>new Dt(t),getInstance:Ht});const St="scroll",Ct="resize",It="ArrowUp",Rt="ArrowDown",Ot=(t,e)=>t.hasAttribute(e),Wt=(t,e)=>{f(t.style,e)},Ft=t=>t.focus(),Bt=["dropdown","dropup","dropstart","dropend"];function zt(t){const e=u(t,"A");return t&&(Ot(t,"href")&&"#"===t.href.slice(-1)||e&&Ot(e,"href")&&"#"===e.href.slice(-1))}const[Xt,jt,Yt,Vt]=Bt,qt=`[${C}="${Xt}"]`,Ut=t=>w(t,"Dropdown"),Gt=[Xt,jt],Zt=[Yt,Vt],Jt=["A","BUTTON"],Kt={offset:5,display:"dynamic"},Qt=T("show.bs."+Xt),_t=T("shown.bs."+Xt),te=T("hide.bs."+Xt),ee=T("hidden.bs."+Xt);function ne(t){const{element:e,menu:n,parentElement:o,options:s}=t,{offset:a}=s;if("static"===i(n,"position"))return;const l=V(e),r=p(o,"dropdown-menu-end");["margin","top","bottom","left","right"].forEach(t=>{n.style[t]=""});let c=Bt.find(t=>p(o,t))||Xt,d={dropdown:[a,0,0],dropup:[0,0,a],dropstart:l?[-1,0,0,a]:[-1,a,0],dropend:l?[-1,a,0]:[-1,0,0,a]};const h={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:l?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:l?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuEnd:l?{right:"auto",left:0}:{right:0,left:"auto"}},{offsetWidth:u,offsetHeight:g}=n,{clientWidth:m,clientHeight:b}=j(e),{left:v,top:w,width:T,height:y}=X(e),E=v-u-a<0,x=v+u+T+a>=m,H=w+g+a>=b,k=w+g+y+a>=b,A=w-g-a<0,P=(!l&&r||l&&!r)&&v+T-u<0,M=(l&&r||!l&&!r)&&v+u>=m;Zt.includes(c)&&E&&x&&(c=Xt),c===Yt&&(l?x:E)&&(c=Vt),c===Vt&&(l?E:x)&&(c=Yt),c===jt&&A&&!k&&(c=Xt),c===Xt&&k&&!A&&(c=jt),Zt.includes(c)&&H&&f(h[c],{top:"auto",bottom:0}),Gt.includes(c)&&(P||M)&&v+T+Math.abs(u-T)+a<m&&f(h[c],P?{left:0,right:"auto"}:{left:"auto",right:0}),d=d[c],n.style.margin=""+d.map(t=>t?t+"px":t).join(" "),Wt(n,h[c]),p(n,"dropdown-menu-end")&&Wt(n,h.menuEnd)}function oe(t){const{element:e}=t,s=t.open?n:o,i=r(e);s(i,"click",ae),s(i,"focus",ae),s(i,"keydown",re),s(i,"keyup",ce),"dynamic"===t.options.display&&[St,Ct].forEach(t=>{s(z(e),t,de,_)})}function se(t,e){(e?n:o)(t.element,"click",le)}function ie(t){const e=[...Bt,"btn-group","input-group"].map(t=>U(t+" show"),r(t)).find(t=>t.length);return e&&e.length?[...e[0].children].find(t=>Ot(t,C)):null}function ae(t){const{target:e,type:n}=t;if(!e||!e.closest)return;const o=ie(e);if(!o)return;const s=Ut(o);if(!s)return;const{parentElement:i,menu:a}=s,l=null!==u(e,qt),r=i&&i.contains(e)&&("form"===e.tagName||null!==u(e,"form"));"click"===n&&zt(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(r||l||s&&s.hide())}function le(t){const{target:e}=t,n=Ut(this);n&&(n.toggle(),e&&zt(e)&&t.preventDefault())}function re(t){[Rt,It].includes(t.code)&&t.preventDefault()}function ce(t){const{code:e}=t,n=ie(this),o=n&&Ut(n),s=n&&r(n).activeElement;if(!o||!s)return;const{menu:i,open:a}=o,l=function(t){return[...t.children].map(t=>{if(t&&Jt.includes(t.tagName))return t;const{firstElementChild:e}=t;return e&&Jt.includes(e.tagName)?e:null}).filter(t=>t)}(i);if(l&&l.length&&[Rt,It].includes(e)){let t=l.indexOf(s);s===n?t=0:e===It?t=t>1?t-1:0:e===Rt&&(t=t<l.length-1?t+1:t),l[t]&&Ft(l[t])}"Escape"===e&&a&&(o.toggle(),Ft(n))}function de(){const t=ie(this),e=t&&Ut(t);e&&e.open&&ne(e)}class he extends k{constructor(t,e){super(t,e);const{element:n}=this,{parentElement:o}=n;this.parentElement=o,this.menu=h(".dropdown-menu",o),this.open=!1,se(this,!0)}get name(){return"Dropdown"}get defaults(){return Kt}toggle(){this.open?this.hide():this.show()}show(){const t=this,{element:e,open:n,menu:o,parentElement:s}=t,i=ie(e),a=i&&Ut(i);a&&a.hide(),[Qt,_t].forEach(t=>{t.relatedTarget=e}),m(s,Qt),Qt.defaultPrevented||(S(o,"show"),S(s,"show"),D(e,"aria-expanded","true"),ne(t),t.open=!n,setTimeout(()=>{Ft(e),oe(t),m(s,_t)},1))}hide(){const t=this,{element:e,open:n,menu:o,parentElement:s}=t;[te,ee].forEach(t=>{t.relatedTarget=e}),m(s,te),te.defaultPrevented||(g(o,"show"),g(s,"show"),D(e,"aria-expanded","false"),t.open=!n,setTimeout(()=>oe(t),1),m(s,ee))}dispose(){const{parentElement:t}=this;p(t,"show")&&this.open&&this.hide(),se(this),super.dispose()}}f(he,{selector:qt,init:t=>new he(t),getInstance:Ut});const ue=(t,e)=>t.removeAttribute(e);function fe(t){return r(t).body}const pe=t=>t instanceof z(t).ShadowRoot||t instanceof ShadowRoot;const ge=t=>["TABLE","TD","TH"].includes(t.tagName),me=t=>t instanceof HTMLElement;function be(t,e){const n=["HTML","BODY"];if(e){let{offsetParent:e}=t;const o=z(t);for(;e&&(ge(e)||me(e)&&!["sticky","fixed"].includes(i(e,"position")));)e=e.offsetParent;return(!e||e&&(n.includes(e.tagName)||"static"===i(e,"position")))&&(e=o),e}const o=[];let{parentNode:s}=t;for(;s&&!n.includes(s.nodeName);)s="HTML"===(a=s).nodeName?a:a.assignedSlot||a.parentNode||(pe(a)?a.host:null)||j(a),pe(s)||s.shadowRoot||ge(s)||o.push(s);var a;return o.find((t,e)=>"relative"!==i(t,"position")&&o.slice(e+1).every(t=>"static"===i(t,"position"))?t:null)||fe(t)}const ve="sticky-top",we="position-sticky",Te=t=>[...U("fixed-top",t),...U("fixed-bottom",t),...U(ve,t),...U(we,t),...U("is-fixed",t)];function ye(t){const{clientWidth:e}=j(t),{innerWidth:n}=z(t);return Math.abs(n-e)}function Ee(t,e){const n=fe(t),o=parseInt(i(n,"paddingRight"),10),s="hidden"===i(n,"overflow")&&o?0:ye(t),a=Te(n);e&&(Wt(n,{overflow:"hidden",paddingRight:o+s+"px"}),a.length&&a.forEach(t=>{const e=i(t,"paddingRight");if(t.style.paddingRight=parseInt(e,10)+s+"px",[ve,we].some(e=>p(t,e))){const e=i(t,"marginRight");t.style.marginRight=parseInt(e,10)-s+"px"}}))}const xe="modal-backdrop",He="offcanvas-backdrop",ke=r().createElement("div");function Ae(t){return h(".modal.show,.offcanvas.show",r(t))}function Pe(t){const e=t?xe:He;[xe,He].forEach(t=>{g(ke,t)}),S(ke,e)}function Me(t,e,n){Pe(n),t.append(ke),e&&S(ke,"fade")}function Ne(){S(ke,"show"),Q(ke)}function $e(){g(ke,"show")}function Le(t){Ae(t)||(g(ke,"fade"),ke.remove(),function(t){const e=fe(t);Wt(e,{paddingRight:"",overflow:""});const n=Te(e);n.length&&n.forEach(t=>{Wt(t,{paddingRight:"",marginRight:""})})}(t))}function De(t){return t&&"hidden"!==i(t,"visibility")&&null!==t.offsetParent}const Se=`[${C}="modal"]`,Ce={backdrop:!0,keyboard:!0},Ie=t=>w(t,"Modal"),Re=T("show.bs.modal"),Oe=T("shown.bs.modal"),We=T("hide.bs.modal"),Fe=T("hidden.bs.modal");function Be(t){const{element:e}=t,n=ye(e),{clientHeight:o,scrollHeight:s}=j(e),{clientHeight:i,scrollHeight:a}=e,l=i!==a;if(!l&&n){const t=V(e)?"paddingLeft":"paddingRight";e.style[t]=n+"px"}Ee(e,l||o!==s)}function ze(t,e){const s=e?n:o,{element:i}=t;s(i,"click",Ze),s(z(i),Ct,t.update,_),s(r(i),"keydown",Ge)}function Xe(t,e){const s=e?n:o,{triggers:i}=t;i.length&&i.forEach(t=>s(t,"click",Ue))}function je(t){const{triggers:e,element:n}=t;if(Le(n),n.style.paddingRight="",e.length){const t=e.find(t=>De(t));t&&Ft(t)}}function Ye(t){const{element:e,relatedTarget:n}=t;Ft(e),ze(t,!0),Oe.relatedTarget=n,m(e,Oe)}function Ve(t){const{element:e,hasFade:n}=t;e.style.display="block",Be(t),Ae(e)||(fe(e).style.overflow="hidden"),S(e,"show"),ue(e,"aria-hidden"),D(e,"aria-modal","true"),n?l(e,()=>Ye(t)):Ye(t)}function qe(t,e){const{element:n,options:o,relatedTarget:s,hasFade:i}=t;n.style.display="",o.backdrop&&!e&&i&&p(ke,"show")&&!Ae(n)?($e(),l(ke,()=>je(t))):je(t),ze(t),Fe.relatedTarget=s,m(n,Fe)}function Ue(t){const{target:e}=t,n=e&&u(this,Se),o=n&&tt(n),s=o&&Ie(o);s&&(n&&"A"===n.tagName&&t.preventDefault(),s.relatedTarget=n,s.toggle())}function Ge({code:t}){const e=h(".modal.show"),n=e&&Ie(e);if(!n)return;const{options:o}=n;o.keyboard&&"Escape"===t&&p(e,"show")&&(n.relatedTarget=null,n.hide())}function Ze(t){const e=this,n=Ie(e);if(!n||J(e))return;const{options:o,isStatic:s,modalDialog:i}=n,{backdrop:c}=o,{target:d}=t,h=r(e).getSelection().toString().length,f=i.contains(d),p=d&&u(d,'[data-bs-dismiss="modal"]');s&&!f?Z(e,()=>{S(e,"modal-static"),l(i,()=>function(t){const{element:e,modalDialog:n}=t,o=a(n)+17;g(e,"modal-static"),Z(e,()=>K(e),o)}(n))},17):(p||!h&&!s&&!f&&c)&&(n.relatedTarget=p||null,n.hide(),t.preventDefault())}class Je extends k{constructor(t,e){super(t,e);const{element:n}=this;this.modalDialog=h(".modal-dialog",n),this.triggers=[...q(Se)].filter(t=>tt(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=p(n,"fade"),this.relatedTarget=null,this.container=be(n),Xe(this,!0),this.update=this.update.bind(this)}get name(){return"Modal"}get defaults(){return Ce}toggle(){p(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,options:n,hasFade:o,relatedTarget:s,container:i}=t,{backdrop:l}=n;let r=0;if(p(e,"show"))return;if(Re.relatedTarget=s||null,m(e,Re),Re.defaultPrevented)return;const c=Ae(e);if(c&&c!==e){(Ie(c)||w(c,"Offcanvas")).hide()}l?(c||p(ke,"show")?Pe(!0):Me(i,o,!0),r=a(ke),p(ke,"show")||Ne(),setTimeout(()=>Ve(t),r)):(Ve(t),c&&p(ke,"show")&&$e())}hide(t){const e=this,{element:n,hasFade:o,relatedTarget:s}=e;p(n,"show")&&(We.relatedTarget=s||null,m(n,We),We.defaultPrevented||(g(n,"show"),D(n,"aria-hidden","true"),ue(n,"aria-modal"),o&&!1!==t?l(n,()=>qe(e)):qe(e,t)))}update(){p(this.element,"show")&&Be(this)}dispose(){this.hide(!0),Xe(this),super.dispose()}}f(Je,{selector:".modal",init:t=>new Je(t),getInstance:Ie});const Ke=`[${C}="offcanvas"]`,Qe={backdrop:!0,keyboard:!0,scroll:!1},_e=t=>w(t,"Offcanvas"),tn=T("show.bs.offcanvas"),en=T("shown.bs.offcanvas"),nn=T("hide.bs.offcanvas"),on=T("hidden.bs.offcanvas");function sn(t,e){const s=e?n:o;t.triggers.forEach(t=>s(t,"click",cn))}function an(t,e){const s=e?n:o,i=r(t.element);s(i,"keydown",hn),s(i,"click",dn)}function ln(t){const{element:e,options:n}=t;n.scroll||(!function(t){const{element:e}=t,{clientHeight:n,scrollHeight:o}=j(e);Ee(e,n!==o)}(t),fe(e).style.overflow="hidden"),S(e,"offcanvas-toggling"),S(e,"show"),e.style.visibility="visible",l(e,()=>function(t){const{element:e,triggers:n}=t;g(e,"offcanvas-toggling"),ue(e,"aria-hidden"),D(e,"aria-modal","true"),D(e,"role","dialog"),n.length&&n.forEach(t=>D(t,"aria-expanded","true"));m(e,en),an(t,!0),Ft(e)}(t))}function rn(t){const{element:e,options:n}=t,o=Ae(e);e.blur(),!o&&n.backdrop&&p(ke,"show")?($e(),l(ke,()=>un(t))):un(t)}function cn(t){const e=u(this,Ke),n=e&&tt(e),o=n&&_e(n);o&&(o.relatedTarget=e,o.toggle(),e&&"A"===e.tagName&&t.preventDefault())}function dn(t){const e=h(".offcanvas.show",this);if(!e)return;const n=h('[data-bs-dismiss="offcanvas"]',e),o=_e(e);if(!o)return;const{options:s,triggers:i}=o,{target:a}=t,l=u(a,Ke),c=r(e).getSelection();c&&c.toString().length||!(!e.contains(a)&&s.backdrop&&(!l||l&&!i.includes(l))||n&&n.contains(a))||(o.relatedTarget=n&&n.contains(a)?n:null,o.hide()),l&&"A"===l.tagName&&t.preventDefault()}function hn({code:t}){const e=h(".offcanvas.show",this);if(!e)return;const n=_e(e);n&&n.options.keyboard&&"Escape"===t&&(n.relatedTarget=null,n.hide())}function un(t){const{element:e,triggers:n}=t;if(D(e,"aria-hidden","true"),ue(e,"aria-modal"),ue(e,"role"),e.style.visibility="",n.length){n.forEach(t=>D(t,"aria-expanded","false"));const t=n.find(t=>De(t));t&&Ft(t)}Le(e),m(e,on),g(e,"offcanvas-toggling"),Ae(e)||an(t)}class fn extends k{constructor(t,e){super(t,e);const{element:n}=this;this.triggers=[...q(Ke)].filter(t=>tt(t)===n),this.container=be(n),this.relatedTarget=null,sn(this,!0)}get name(){return"Offcanvas"}get defaults(){return Qe}toggle(){p(this.element,"show")?this.hide():this.show()}show(){const t=this,{element:e,options:n,container:o,relatedTarget:s}=t;let i=0;if(p(e,"show"))return;if(tn.relatedTarget=s,en.relatedTarget=s,m(e,tn),tn.defaultPrevented)return;const l=Ae(e);if(l&&l!==e){(_e(l)||w(l,"Modal")).hide()}n.backdrop?(l?Pe():Me(o,!0),i=a(ke),p(ke,"show")||Ne(),setTimeout(()=>ln(t),i)):(ln(t),l&&p(ke,"show")&&$e())}hide(t){const e=this,{element:n,relatedTarget:o}=e;p(n,"show")&&(nn.relatedTarget=o,on.relatedTarget=o,m(n,nn),nn.defaultPrevented||(S(n,"offcanvas-toggling"),g(n,"show"),t?rn(e):l(n,()=>rn(e))))}dispose(){this.hide(!0),sn(this),super.dispose()}}f(fn,{selector:".offcanvas",init:t=>new fn(t),getInstance:_e});function pn(t){const e="tooltip"===t;return`<div class="${t}" role="tooltip">${(e?"":`<h3 class="${t}-header"></h3>`)+`<div class="${t}-arrow"></div>`+`<div class="${e?t+"-inner":t+"-body"}"></div>`}</div>`}const gn=t=>t&&[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e);function mn(t,e,n){const o=e instanceof HTMLElement,s=X(t,o&&function(t){const{width:e,height:n}=X(t),{offsetWidth:o,offsetHeight:s}=t;return Math.round(e)!==o||Math.round(n)!==s}(e)),i={x:0,y:0};if(o){const t=X(e,!0);i.x=t.x+e.clientLeft,i.y=t.y+e.clientTop}return{x:s.left+n.x-i.x,y:s.top+n.y-i.y,width:s.width,height:s.height}}var bn={top:"top",bottom:"bottom",left:"start",right:"end"};function vn(t,e){const n=/\b(top|bottom|start|end)+/,{element:o,tooltip:s,options:a,arrow:l,offsetParent:r}=t,c={...bn};Wt(s,{top:"0px",left:"0px",right:""});const d="Popover"===t.name,h=s.offsetWidth,u=s.offsetHeight,f=V(o);f&&(c.left="end",c.right="start");const p=j(o),g=p.clientWidth,m=p.clientHeight,{container:b}=a;let{placement:v}=a;const{left:w,right:T,top:y}=X(b,!0),E=b.clientWidth,x=Math.abs(E-b.offsetWidth),H=i(b,"position"),k="fixed"===H,A="static"===H,P="sticky"===H&&y===parseFloat(i(b,"top")),M=f&&k?x:0,N=k?E+w+(f?x:0):E+w+(g-T)-1,{width:$,height:L,left:D,right:S,top:C}=X(o,!0),I=function(t){const e="scrollX"in t;return{x:e?t.scrollX:t.scrollLeft,y:e?t.scrollY:t.scrollTop}}(r),{x:R,y:O}=mn(o,r,I);let W,F,B,z,Y,q;Wt(l,{top:"",left:"",right:""});const U=l.offsetWidth||0,G=l.offsetHeight||0,Z=U/2;let J=C-u-G<0,K=C+u+L+G>=m,Q=D-h-U<M,_=D+h+$+U>=N;const tt=["left","right"],et=["top","bottom"];if(J=tt.includes(v)?C+L/2-u/2-G<0:J,K=tt.includes(v)?C+u/2+L/2+G>=m:K,Q=et.includes(v)?D+$/2-h/2<M:Q,_=et.includes(v)?D+h/2+$/2>=N:_,v=tt.includes(v)&&Q&&_?"top":v,v="top"===v&&J?"bottom":v,v="bottom"===v&&K?"top":v,v="left"===v&&Q?"right":v,v="right"===v&&_?"left":v,s.className.includes(v)||(s.className=s.className.replace(n,c[v])),tt.includes(v))F="left"===v?R-h-(d?U:0):R+$+(d?U:0),J?(W=O,W+=P?-y-I.y:0,z=L/2-U):K?(W=O-u+L,W+=P?-y-I.y:0,z=u-L/2-U):(W=O-u/2+L/2,W+=P?-y-I.y:0,z=u/2-G/2);else if(et.includes(v))if(e&&gn(o)){let t=0,n=0;A?(t=e.pageX,n=e.pageY):(t=e.clientX-w+(k?I.x:0),n=e.clientY-y+(k?I.y:0)),t-=f&&k&&x?x:0,W="top"===v?n-u-U:n+U,e.clientX-h/2<M?(F=0,Y=t-Z):e.clientX+h/2>N?(F="auto",B=0,q=N-t-Z,q-=k?w+(f?x:0):0):(F=t-h/2,Y=h/2-Z)}else W="top"===v?O-u-(d?G:0):O+L+(d?G:0),Q?(F=0,Y=R+$/2-Z):_?(F="auto",B=0,q=$/2+N-S-Z):(F=R-h/2+$/2,Y=h/2-Z);Wt(s,{top:W+"px",left:"auto"===F?F:F+"px",right:void 0!==B?B+"px":""}),l instanceof HTMLElement&&(void 0!==z&&(l.style.top=z+"px"),void 0!==Y?l.style.left=Y+"px":void 0!==q&&(l.style.right=q+"px"))}const wn={template:pn("tooltip"),title:null,customClass:null,trigger:"hover focus",placement:"top",sanitizeFn:null,animation:!0,delay:200,container:null},Tn="focusin",yn="focusout",{userAgentData:En}=navigator,xn=En,{userAgent:Hn}=navigator,kn=Hn,An=/(iPhone|iPod|iPad)/,Pn=xn?xn.brands.some(t=>An.test(t.brand)):An.test(kn);let Mn=1;const Nn=new Map;function $n(t,e,n){if("string"!=typeof e||e.length)if("string"==typeof e){let o=e.trim();"function"==typeof n&&(o=n(o));const s=(new DOMParser).parseFromString(o,"text/html"),{body:i}=s,a=i.children.length?"innerHTML":"innerText";t[a]=i[a]}else e instanceof HTMLElement&&t.append(e)}function Ln(t,e){return t instanceof HTMLElement&&e.contains(t)}const Dn=`[${C}="tooltip"],[data-tip="tooltip"]`;let Sn=t=>w(t,"Tooltip");function Cn(t){const{element:e}=t;Wn(t),e.hasAttribute("data-original-title")&&"tooltip"===t.name&&Bn(t)}function In(t,e){const s=e?n:o,{element:i}=t;s(r(i),"touchstart",t.handleTouch,_),gn(i)||[St,Ct].forEach(e=>{s(z(i),e,t.update,_)})}function Rn(t){const{element:e}=t,n=T("shown.bs."+H(t.name));In(t,!0),m(e,n),K(e,"in")}function On(t){const{element:e}=t,n=T("hidden.bs."+H(t.name));In(t),function(t){const{element:e,tooltip:n}=t;ue(e,"aria-describedby"),n.remove()}(t),m(e,n),K(e,"out")}function Wn(t,e){const s=e?n:o,{element:i,options:a,btn:l}=t,{trigger:c,dismissible:d}=a;if(c.includes("manual"))return;t.enabled=!!e;const h=c.split(" "),u=gn(i);u&&s(i,"mousemove",t.update,_),h.forEach(e=>{u||"hover"===e?(s(i,"mousedown",t.show),s(i,F,t.show),d&&l?s(l,"click",t.hide):(s(i,B,t.hide),s(r(i),"touchstart",t.handleTouch,_))):"click"===e?s(i,e,d?t.show:t.toggle):"focus"===e&&(s(i,Tn,t.show),d||s(i,yn,t.hide),Pn&&s(i,"click",()=>Ft(i)))})}function Fn(t,e){const s=e?n:o,{element:i,options:a,offsetParent:l}=t,{container:r}=a,{offsetHeight:c,scrollHeight:d}=r,h=u(i,".modal"),f=u(i,".offcanvas");if(!gn(i)){const e=z(i),n=c!==d||l!==e?r:e;s(e,Ct,t.update,_),s(n,St,t.update,_)}h&&s(h,"hide.bs.modal",t.hide),f&&s(f,"hide.bs.offcanvas",t.hide)}function Bn(t,e){const n=["data-original-title","title"],{element:o}=t;D(o,n[e?0:1],e||y(o,n[0])),ue(o,n[e?1:0])}class zn extends k{constructor(t,e){super(t,e);const n=this,{element:o}=n,s="Tooltip"===n.name,a=s?"tooltip":"popover",l=s?"Tooltip":"Popover";Sn=t=>w(t,l),n.tooltip={},s||(n.btn=null),n.arrow={},n.offsetParent={},n.enabled=!0,n.id=`${a}-${function(t,e){Mn+=1;let n=Nn.get(t),o=Mn;if(e&&e.length)if(n){const t=n.get(e);Number.isNaN(t)?n.set(e,o):o=t}else Nn.set(t,new Map),n=Nn.get(t),n.set(e,o);else Number.isNaN(n)?Nn.set(t,o):o=n;return o}(o,a)}`;const{options:c}=n;if(!c.title&&s||!s&&!c.content)return;const d=h(c.container),u=be(o);n.options.container=!d||d&&["static","relative"].includes(i(d,"position"))?u:d||fe(o),wn.title=null,n.handleTouch=n.handleTouch.bind(n),n.update=n.update.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n.toggle=n.toggle.bind(n),o.hasAttribute("title")&&s&&Bn(n,c.title),function(t){const{id:e,element:n,options:o}=t,{animation:s,customClass:i,sanitizeFn:a,placement:l,dismissible:c}=o;let{title:d,content:u}=o;const f="Tooltip"===t.name,g=f?"tooltip":"popover",{template:m,btnClose:b}=o,v={...bn};V(n)&&(v.left="end",v.right="start");const w=`bs-${g}-${v[l]}`;let T;if([Element,HTMLElement].some(t=>m instanceof t))T=m;else{const t=r(n).createElement("div");$n(t,m,a),T=t.firstElementChild}t.tooltip=T&&T.cloneNode(!0);const{tooltip:y}=t;D(y,"id",e),D(y,"role","tooltip");const E=f?"tooltip-inner":"popover-body",x=f?null:h(".popover-header",y),H=h("."+E,y);t.arrow=h(`.${g}-arrow`,y),c&&(d?d instanceof HTMLElement?$n(d,b,a):d+=b:(x&&x.remove(),u instanceof HTMLElement?$n(u,b,a):u+=b)),f?d&&H&&$n(H,d,a):(d&&x&&$n(x,d,a),u&&H&&$n(H,u,a),t.btn=h(".btn-close",y)),p(y,g)||S(y,g),s&&!p(y,"fade")&&S(y,"fade"),i&&!p(y,i)&&S(y,i),p(y,w)||S(y,w)}(n),Wn(n,!0)}get name(){return"Tooltip"}get defaults(){return wn}show(t){const e=this,{options:n,tooltip:o,element:s,id:i}=e,{container:a,animation:r}=n,c=J(s,"out");K(s,"out"),!o||c||Ln(o,a)||Z(s,()=>{const n=T("show.bs."+H(e.name));m(s,n),n.defaultPrevented||(a.append(o),D(s,"aria-describedby","#"+i),e.offsetParent=be(o,!0),e.update(t),Fn(e,!0),p(o,"show")||S(o,"show"),r?l(o,()=>Rn(e)):Rn(e))},17,"in")}hide(){const t=this,{options:e,tooltip:n,element:o}=t,{container:s,animation:i,delay:a}=e;K(o,"in"),n&&Ln(n,s)&&Z(o,()=>{const e=T("hide.bs."+H(t.name));m(o,e),e.defaultPrevented||(g(n,"show"),Fn(t),i?l(n,()=>On(t)):On(t))},a+17,"out")}update(t){vn(this,t)}toggle(t){const{tooltip:e,options:n}=this;Ln(e,n.container)?this.hide():this.show(t)}enable(){const t=this,{enabled:e}=t;e||(Wn(t,!0),t.enabled=!e)}disable(){const t=this,{element:e,tooltip:n,options:o,enabled:s}=t,{animation:i,container:l,delay:r}=o;s&&(Ln(n,l)&&i?(t.hide(),Z(e,()=>{Wn(t),K(e,"tooltip")},a(n)+r+17,"tooltip")):Wn(t),t.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||t&&n.contains(t)||this.hide()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&Ln(e,n.container)?(n.delay=0,t.hide(),l(e,()=>Cn(t))):Cn(t),super.dispose()}}f(zn,{selector:Dn,init:t=>new zn(t),getInstance:Sn,styleTip:vn});const Xn=`[${C}="popover"],[data-tip="popover"]`,jn={...wn,template:pn("popover"),btnClose:'<button class="btn-close" aria-label="Close"></button>',dismissible:!1,content:null};class Yn extends zn{constructor(t,e){super(t,e)}get name(){return"Popover"}get defaults(){return jn}show(){super.show();const{options:t,btn:e}=this;t.dismissible&&e&&setTimeout(()=>Ft(e),17)}}function Vn(t,e){return(e&&c.some(t=>e instanceof t)?e:r()).getElementsByTagName(t)}f(Yn,{selector:Xn,init:t=>new Yn(t),getInstance:t=>w(t,"Popover"),styleTip:vn});const qn={offset:10,target:null},Un=T("activate.bs.scrollspy");function Gn(t){const{target:e,scrollTarget:n,options:o,itemsLength:s,scrollHeight:i,element:a}=t,{offset:l}=o,c=n instanceof Window,d=e&&Vn("A",e),u=n&&function(t){return t instanceof HTMLElement?t.scrollHeight:j(t).scrollHeight}(n);if(t.scrollTop=c?n.scrollY:n.scrollTop,d&&(s!==d.length||u!==i)){let e,n,o;t.items=[],t.offsets=[],t.scrollHeight=u,t.maxScroll=t.scrollHeight-function({element:t,scrollTarget:e}){return e instanceof Window?e.innerHeight:X(t).height}(t),[...d].forEach(s=>{e=y(s,"href"),n=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&h(e,r(a)),n&&(t.items.push(s),o=X(n),t.offsets.push((c?o.top+t.scrollTop:n.offsetTop)-l))}),t.itemsLength=t.items.length}}function Zn(t){[...Vn("A",t)].forEach(t=>{p(t,"active")&&g(t,"active")})}function Jn(t,e){const{target:n,element:o}=t;Zn(n),t.activeItem=e,S(e,"active");const s=[];let i=e;for(;i!==fe(o);)i=i.parentElement,(p(i,"nav")||p(i,"dropdown-menu"))&&s.push(i);s.forEach(t=>{const e=t.previousElementSibling;e&&!p(e,"active")&&S(e,"active")}),Un.relatedTarget=e,m(o,Un)}function Kn(t,e){(e?n:o)(t.scrollTarget,St,t.refresh,_)}class Qn extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;if(this.target=h(o.target,r(n)),!this.target)return;const s=z(n);this.scrollTarget=n.clientHeight<n.scrollHeight?n:s,this.scrollTop=0,this.maxScroll=0,this.scrollHeight=0,this.activeItem=null,this.items=[],this.itemsLength=0,this.offsets=[],this.refresh=this.refresh.bind(this),Kn(this,!0),this.refresh()}get name(){return"ScrollSpy"}get defaults(){return qn}refresh(){const t=this,{target:e}=t;if(0===e.offsetHeight)return;Gn(t);const{scrollTop:n,maxScroll:o,itemsLength:s,items:i,activeItem:a}=t;if(n>=o){const e=i[s-1];return void(a!==e&&Jn(t,e))}const{offsets:l}=t;if(a&&n<l[0]&&l[0]>0)return t.activeItem=null,void Zn(e);i.forEach((e,o)=>{a!==e&&n>=l[o]&&(void 0===l[o+1]||n<l[o+1])&&Jn(t,e)})}dispose(){Kn(this),super.dispose()}}f(Qn,{selector:'[data-bs-spy="scroll"]',init:t=>new Qn(t),getInstance:t=>w(t,"ScrollSpy")});const _n=`[${C}="tab"]`,to=t=>w(t,"Tab"),eo=T("show.bs.tab"),no=T("shown.bs.tab"),oo=T("hide.bs.tab"),so=T("hidden.bs.tab"),io=new Map;function ao(t){const{tabContent:e,nav:n}=t;e&&(e.style.height="",g(e,"collapsing")),n&&K(n)}function lo(t){const{element:e,tabContent:n,nav:o}=t,{currentHeight:s,nextHeight:i}=io.get(e),{tab:a}=o&&io.get(o);n?s===i?ao(t):setTimeout(()=>{n.style.height=i+"px",Q(n),l(n,()=>ao(t))},50):o&&K(o),no.relatedTarget=a,m(e,no)}function ro(t){const{element:e,content:n,tabContent:o,nav:s}=t,{tab:i,content:a}=s&&io.get(s);let r=0;if(o&&([a,n].forEach(t=>S(t,"overflow-hidden")),r=a.scrollHeight),eo.relatedTarget=i,so.relatedTarget=e,m(e,eo),!eo.defaultPrevented){if(S(n,"active"),g(a,"active"),o){const t=n.scrollHeight;io.set(e,{currentHeight:r,nextHeight:t}),S(o,"collapsing"),o.style.height=r+"px",Q(o),[a,n].forEach(t=>g(t,"overflow-hidden"))}n&&p(n,"fade")?setTimeout(()=>{S(n,"show"),l(n,()=>{lo(t)})},17):lo(t),m(i,so)}}function co(t,e){(e?n:o)(t.element,"click",ho)}function ho(t){const e=to(this);e&&(t.preventDefault(),e.show())}class uo extends k{constructor(t){super(t);const{element:e}=this,n=tt(e);if(!n)return;const o=u(e,".nav"),s=u(n,".tab-content");this.nav=o,this.content=n,this.tabContent=s,this.dropdown=o&&h(`.${Bt[0]}-toggle`,o),co(this,!0)}get name(){return"Tab"}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(!(n&&J(n)||p(e,"active"))){const{tab:s,content:i}=function(t){const{nav:e}=t,n=U("active",e);let o;return 1!==n.length||Bt.some(t=>p(n[0].parentElement,t))?n.length>1&&(o=n[n.length-1]):[o]=n,{tab:o,content:o?tt(o):null}}(t);if(n&&io.set(n,{tab:s,content:i}),oo.relatedTarget=e,m(s,oo),oo.defaultPrevented)return;n&&Z(n,()=>{},17),g(s,"active"),D(s,"aria-selected","false"),S(e,"active"),D(e,"aria-selected","true"),o&&(p(e.parentNode,"dropdown-menu")?p(o,"active")||S(o,"active"):p(o,"active")&&g(o,"active")),p(i,"fade")?(g(i,"show"),l(i,()=>ro(t))):ro(t)}}dispose(){co(this),super.dispose()}}f(uo,{selector:_n,init:t=>new uo(t),getInstance:to});const fo={animation:!0,autohide:!0,delay:5e3},po=t=>w(t,"Toast"),go=T("show.bs.toast"),mo=T("shown.bs.toast"),bo=T("hide.bs.toast"),vo=T("hidden.bs.toast");function wo(t){const{element:e,options:n}=t;g(e,"showing"),K(e,"showing"),m(e,mo),n.autohide&&Z(e,()=>t.hide(),n.delay,"toast")}function To(t){const{element:e}=t;g(e,"showing"),g(e,"show"),S(e,"hide"),K(e,"toast"),m(e,vo)}function yo(t,e){const s=e?n:o,{element:i,dismiss:a,options:l}=t;a&&s(a,"click",t.hide),l.autohide&&[Tn,yn,F,B].forEach(t=>s(i,t,Eo))}function Eo(t){const e=this,n=po(e),{type:o,relatedTarget:s}=t;n&&e!==s&&!e.contains(s)&&([F,Tn].includes(o)?K(e,"toast"):Z(e,()=>n.hide(),n.options.delay,"toast"))}class xo extends k{constructor(t,e){super(t,e);const{element:n,options:o}=this;o.animation&&!p(n,"fade")?S(n,"fade"):!o.animation&&p(n,"fade")&&g(n,"fade"),this.dismiss=h('[data-bs-dismiss="toast"]',n),this.show=this.show.bind(this),this.hide=this.hide.bind(this),yo(this,!0)}get name(){return"Toast"}get defaults(){return fo}show(){const t=this,{element:e}=t;if(e&&!p(e,"show")){if(m(e,go),go.defaultPrevented)return;!function(t){const{element:e,options:n}=t;Z(e,()=>{g(e,"hide"),Q(e),S(e,"show"),S(e,"showing"),n.animation?l(e,()=>wo(t)):wo(t)},17,"showing")}(t)}}hide(){const t=this,{element:e}=t;if(e&&p(e,"show")){if(m(e,bo),bo.defaultPrevented)return;!function(t){const{element:e,options:n}=t;S(e,"showing"),n.animation?(Q(e),l(e,()=>To(t))):To(t)}(t)}}dispose(){const{element:t}=this;p(t,"show")&&g(t,"show"),function(t){K(t.element,"toast"),yo(t)}(this),super.dispose()}}f(xo,{selector:".toast",init:t=>new xo(t),getInstance:po});const Ho={Alert:L,Button:W,Carousel:yt,Collapse:Dt,Dropdown:he,Modal:Je,Offcanvas:fn,Popover:Yn,ScrollSpy:Qn,Tab:uo,Toast:xo,Tooltip:zn};function ko(t){const e=[...Vn("*",t&&c.some(e=>t instanceof e)?t:void 0)];x(Ho).forEach(t=>{const{init:n,selector:o}=Ho[t];var s,i;s=n,i=e.filter(t=>function(t,e){return t.matches(e)}(t,o)),[...i].forEach(t=>s(t))})}document.body?ko():n(document,"DOMContentLoaded",()=>ko(),{once:!0});return{Alert:L,Button:W,Carousel:yt,Collapse:Dt,Dropdown:he,Modal:Je,Offcanvas:fn,Popover:Yn,ScrollSpy:Qn,Tab:uo,Toast:xo,Tooltip:zn,initCallback:ko,removeDataAPI:function(t){const e=t&&c.some(e=>t instanceof e)?t:void 0;x(Ho).forEach(t=>{!function(t,e){const n=v.getAllFor(t);n&&[...n].forEach(t=>{const[n,o]=t;e&&e.contains(n)&&o.dispose()})}(t,e)})},Version:"4.1.0alpha6",EventListener:s}}));
/*!
* Native JavaScript for Bootstrap - Alert v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Alert v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -529,3 +529,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -532,0 +532,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Alert v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Alert v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -535,3 +535,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -538,0 +538,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Button v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Button v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -391,3 +391,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -394,0 +394,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Button v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Button v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -397,3 +397,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -400,0 +400,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Carousel v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Carousel v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -816,3 +816,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -819,0 +819,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Carousel v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Carousel v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -822,3 +822,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -825,0 +825,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Collapse v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Collapse v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -687,3 +687,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -690,0 +690,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Collapse v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Collapse v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -693,3 +693,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -696,0 +696,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Dropdown v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Dropdown v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -638,3 +638,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -641,0 +641,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Dropdown v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Dropdown v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -644,3 +644,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -647,0 +647,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Modal v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Modal v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -1094,3 +1094,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -1097,0 +1097,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Modal v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Modal v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -1100,3 +1100,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -1103,0 +1103,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Offcanvas v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Offcanvas v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -1006,3 +1006,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -1009,0 +1009,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Offcanvas v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Offcanvas v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -1012,3 +1012,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -1015,0 +1015,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Popover v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Popover v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -1425,3 +1425,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -1545,3 +1545,3 @@ const Version = version;

action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);

@@ -1618,3 +1618,3 @@ if (!isMedia(element)) {

action(element, mouseleaveEvent, self.hide);
action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);
}

@@ -1676,17 +1676,2 @@ } else if (tr === mouseclickEvent) {

// TOOLTIP EVENT HANDLERS
// ======================
/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
function tooltipTouchHandler({ target }) {
const { tooltip, element } = this;
// @ts-ignore
if (tooltip.contains(target) || target === element || element.contains(target)) ; else {
this.hide();
}
}
// TOOLTIP DEFINITION

@@ -1748,3 +1733,3 @@ // ==================

// all functions bind
tooltipTouchHandler.bind(self);
self.handleTouch = self.handleTouch.bind(self);
self.update = self.update.bind(self);

@@ -1913,2 +1898,17 @@ self.show = self.show.bind(self);

/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
handleTouch({ target }) {
const { tooltip, element } = this;
if (tooltip.contains(target) || target === element
// @ts-ignore
|| (target && element.contains(target))) ; else {
this.hide();
}
}
/** Removes the `Tooltip` from the target element. */

@@ -1915,0 +1915,0 @@ dispose() {

/*!
* Native JavaScript for Bootstrap - Popover v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Popover v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -1431,3 +1431,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -1551,3 +1551,3 @@ const Version = version;

action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);

@@ -1624,3 +1624,3 @@ if (!isMedia(element)) {

action(element, mouseleaveEvent, self.hide);
action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);
}

@@ -1682,17 +1682,2 @@ } else if (tr === mouseclickEvent) {

// TOOLTIP EVENT HANDLERS
// ======================
/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
function tooltipTouchHandler({ target }) {
const { tooltip, element } = this;
// @ts-ignore
if (tooltip.contains(target) || target === element || element.contains(target)) ; else {
this.hide();
}
}
// TOOLTIP DEFINITION

@@ -1754,3 +1739,3 @@ // ==================

// all functions bind
tooltipTouchHandler.bind(self);
self.handleTouch = self.handleTouch.bind(self);
self.update = self.update.bind(self);

@@ -1919,2 +1904,17 @@ self.show = self.show.bind(self);

/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
handleTouch({ target }) {
const { tooltip, element } = this;
if (tooltip.contains(target) || target === element
// @ts-ignore
|| (target && element.contains(target))) ; else {
this.hide();
}
}
/** Removes the `Tooltip` from the target element. */

@@ -1921,0 +1921,0 @@ dispose() {

/*!
* Native JavaScript for Bootstrap - ScrollSpy v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - ScrollSpy v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -492,3 +492,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -495,0 +495,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - ScrollSpy v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - ScrollSpy v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -498,3 +498,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -501,0 +501,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Tab v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Tab v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -707,3 +707,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -710,0 +710,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Tab v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Tab v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -713,3 +713,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -716,0 +716,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Toast v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Toast v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -630,3 +630,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -633,0 +633,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Toast v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Toast v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -636,3 +636,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -639,0 +639,0 @@ const Version = version;

/*!
* Native JavaScript for Bootstrap - Tooltip v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Tooltip v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -1425,3 +1425,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -1545,3 +1545,3 @@ const Version = version;

action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);

@@ -1618,3 +1618,3 @@ if (!isMedia(element)) {

action(element, mouseleaveEvent, self.hide);
action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);
}

@@ -1676,17 +1676,2 @@ } else if (tr === mouseclickEvent) {

// TOOLTIP EVENT HANDLERS
// ======================
/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
function tooltipTouchHandler({ target }) {
const { tooltip, element } = this;
// @ts-ignore
if (tooltip.contains(target) || target === element || element.contains(target)) ; else {
this.hide();
}
}
// TOOLTIP DEFINITION

@@ -1748,3 +1733,3 @@ // ==================

// all functions bind
tooltipTouchHandler.bind(self);
self.handleTouch = self.handleTouch.bind(self);
self.update = self.update.bind(self);

@@ -1913,2 +1898,17 @@ self.show = self.show.bind(self);

/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
handleTouch({ target }) {
const { tooltip, element } = this;
if (tooltip.contains(target) || target === element
// @ts-ignore
|| (target && element.contains(target))) ; else {
this.hide();
}
}
/** Removes the `Tooltip` from the target element. */

@@ -1915,0 +1915,0 @@ dispose() {

/*!
* Native JavaScript for Bootstrap - Tooltip v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap - Tooltip v4.1.0alpha6 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme

@@ -1431,3 +1431,3 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)

var version = "4.1.0alpha5";
var version = "4.1.0alpha6";

@@ -1551,3 +1551,3 @@ const Version = version;

action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);

@@ -1624,3 +1624,3 @@ if (!isMedia(element)) {

action(element, mouseleaveEvent, self.hide);
action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);
}

@@ -1682,17 +1682,2 @@ } else if (tr === mouseclickEvent) {

// TOOLTIP EVENT HANDLERS
// ======================
/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
function tooltipTouchHandler({ target }) {
const { tooltip, element } = this;
// @ts-ignore
if (tooltip.contains(target) || target === element || element.contains(target)) ; else {
this.hide();
}
}
// TOOLTIP DEFINITION

@@ -1754,3 +1739,3 @@ // ==================

// all functions bind
tooltipTouchHandler.bind(self);
self.handleTouch = self.handleTouch.bind(self);
self.update = self.update.bind(self);

@@ -1919,2 +1904,17 @@ self.show = self.show.bind(self);

/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
handleTouch({ target }) {
const { tooltip, element } = this;
if (tooltip.contains(target) || target === element
// @ts-ignore
|| (target && element.contains(target))) ; else {
this.hide();
}
}
/** Removes the `Tooltip` from the target element. */

@@ -1921,0 +1921,0 @@ dispose() {

{
"name": "bootstrap.native",
"version": "4.1.0alpha5",
"version": "4.1.0alpha6",
"description": "Native JavaScript for Bootstrap, the sweetest JavaScript library without jQuery.",

@@ -5,0 +5,0 @@ "main": "dist/bootstrap-native.min.js",

@@ -117,3 +117,3 @@ /* Native JavaScript for Bootstrap 5 | Tooltip

action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);

@@ -190,3 +190,3 @@ if (!isMedia(element)) {

action(element, mouseleaveEvent, self.hide);
action(getDocument(element), touchstartEvent, tooltipTouchHandler, passiveHandler);
action(getDocument(element), touchstartEvent, self.handleTouch, passiveHandler);
}

@@ -248,19 +248,2 @@ } else if (tr === mouseclickEvent) {

// TOOLTIP EVENT HANDLERS
// ======================
/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
function tooltipTouchHandler({ target }) {
const { tooltip, element } = this;
// @ts-ignore
if (tooltip.contains(target) || target === element || element.contains(target)) {
// smile for ESLint
} else {
this.hide();
}
}
// TOOLTIP DEFINITION

@@ -322,3 +305,3 @@ // ==================

// all functions bind
tooltipTouchHandler.bind(self);
self.handleTouch = self.handleTouch.bind(self);
self.update = self.update.bind(self);

@@ -487,2 +470,19 @@ self.show = self.show.bind(self);

/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
handleTouch({ target }) {
const { tooltip, element } = this;
if (tooltip.contains(target) || target === element
// @ts-ignore
|| (target && element.contains(target))) {
// smile for ESLint
} else {
this.hide();
}
}
/** Removes the `Tooltip` from the target element. */

@@ -489,0 +489,0 @@ dispose() {

@@ -597,2 +597,8 @@ declare module "bootstrap.native/src/strings/fadeClass" {

/**
* Handles the `touchstart` event listener for `Tooltip`
* @this {Tooltip}
* @param {TouchEvent} e the `Event` object
*/
handleTouch({ target }: TouchEvent): void;
/**
* Updates the tooltip position.

@@ -599,0 +605,0 @@ *

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

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

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

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