text: function logger(e,t,...arguments){const i=document.createElement("div");switch(i.classList.add("alert"),t){case"log":i.classList.add("alert-primary");break;case"debug":i.classList.add("alert-secondary");break;case"info":i.classList.add("alert-info");break;case"warn":i.classList.add("alert-warning");break;case"error":i.classList.add("alert-danger")}const n=document.createElement("pre");n.innerHTML=arguments.join(" "),i.appendChild(n),e.appendChild(i)}document.addEventListener("DOMContentLoaded",(()=>{Array.from(document.getElementsByClassName("show-code")).forEach((e=>{e.addEventListener("click",(()=>{const t=e.closest("section").getElementsByClassName("code-blocks")[0];t.classList.toggle("d-block"),t.classList.toggle("d-none")}))}));const e=["change.td","update.td","error.td","show.td","hide.td","click.td"];document.querySelectorAll(".log-event").forEach((t=>{e.forEach((e=>{t.addEventListener(e,(i=>{logger(t.closest("section").getElementsByClassName("logger")[0],"log",`${t.getAttribute("id")} -> ${e}:`,JSON.stringify(i.detail,null,2))}))}))}));const t=document.getElementById("mainToc");if(t){const e=[...t.getElementsByTagName("a")].find((e=>e.href===window.location.href));e?.closest("div").parentElement.children[0].click(),e?.classList.add("active")}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e,t){var i=e.getBoundingClientRect();return{width:i.width/1,height:i.height/1,top:i.top/1,right:i.right/1,bottom:i.bottom/1,left:i.left/1,x:i.left/1,y:i.top/1}}function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function s(e){return e instanceof i(e).Element||e instanceof Element}function o(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function r(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}function a(e){return e?(e.nodeName||"").toLowerCase():null}function l(e){return((s(e)?e.ownerDocument:e.document)||window.document).documentElement}function c(e){return t(l(e)).left+n(e).scrollLeft}function h(e){return i(e).getComputedStyle(e)}function d(e){var t=h(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function u(e,s,r){void 0===r&&(r=!1);var h=o(s);o(s)&&function(e){var t=e.getBoundingClientRect(),i=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1}(s);var u,f,p=l(s),m=t(e),g={scrollLeft:0,scrollTop:0},_={x:0,y:0};return(h||!h&&!r)&&(("body"!==a(s)||d(p))&&(g=(u=s)!==i(u)&&o(u)?{scrollLeft:(f=u).scrollLeft,scrollTop:f.scrollTop}:n(u)),o(s)?((_=t(s)).x+=s.clientLeft,_.y+=s.clientTop):p&&(_.x=c(p))),{x:m.left+g.scrollLeft-_.x,y:m.top+g.scrollTop-_.y,width:m.width,height:m.height}}function f(e){var i=t(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(i.width-n)<=1&&(n=i.width),Math.abs(i.height-s)<=1&&(s=i.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function p(e){return"html"===a(e)?e:e.assignedSlot||e.parentNode||(r(e)?e.host:null)||l(e)}function m(e){return["html","body","#document"].indexOf(a(e))>=0?e.ownerDocument.body:o(e)&&d(e)?e:m(p(e))}function g(e,t){var n;void 0===t&&(t=[]);var s=m(e),o=s===(null==(n=e.ownerDocument)?void 0:n.body),r=i(s),a=o?[r].concat(r.visualViewport||[],d(s)?s:[]):s,l=t.concat(a);return o?l:l.concat(g(p(a)))}function _(e){return["table","td","th"].indexOf(a(e))>=0}function b(e){return o(e)&&"fixed"!==h(e).position?e.offsetParent:null}function v(e){for(var t=i(e),n=b(e);n&&_(n)&&"static"===h(n).position;)n=b(n);return n&&("html"===a(n)||"body"===a(n)&&"static"===h(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===h(e).position)return null;for(var i=p(e);o(i)&&["html","body"].indexOf(a(i))<0;){var n=h(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var y="top",w="bottom",E="right",A="left",T="auto",O=[y,w,E,A],C="start",k="end",L="viewport",S="popper",x=O.reduce((function(e,t){return e.concat([t+"-"+C,t+"-"+k])}),[]),D=[].concat(O,[T]).reduce((function(e,t){return e.concat([t,t+"-"+C,t+"-"+k])}),[]),N=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function I(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}function P(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return[].concat(i).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var j='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',M=["name","enabled","phase","fn","effect","requires","options"];function H(e){return e.split("-")[0]}var B=Math.max,q=Math.min,R=Math.round;function $(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&r(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function W(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function z(e,s){return s===L?W(function(e){var t=i(e),n=l(e),s=t.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,h=0;return s&&(o=s.width,r=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=s.offsetLeft,h=s.offsetTop)),{width:o,height:r,x:a+c(e),y:h}}(e)):o(s)?function(e){var i=t(e);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(s):W(function(e){var t,i=l(e),s=n(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=B(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=B(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-s.scrollLeft+c(e),u=-s.scrollTop;return"rtl"===h(o||i).direction&&(d+=B(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:a,x:d,y:u}}(l(e)))}function F(e,t,i){var n="clippingParents"===t?function(e){var t=g(p(e)),i=["absolute","fixed"].indexOf(h(e).position)>=0&&o(e)?v(e):e;return s(i)?t.filter((function(e){return s(e)&&$(e,i)&&"body"!==a(e)})):[]}(e):[].concat(t),r=[].concat(n,[i]),l=r[0],c=r.reduce((function(t,i){var n=z(e,i);return t.top=B(n.top,t.top),t.right=q(n.right,t.right),t.bottom=q(n.bottom,t.bottom),t.left=B(n.left,t.left),t}),z(e,l));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function U(e){return e.split("-")[1]}function V(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,i=e.reference,n=e.element,s=e.placement,o=s?H(s):null,r=s?U(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case y:t={x:a,y:i.y-n.height};break;case w:t={x:a,y:i.y+i.height};break;case E:t={x:i.x+i.width,y:l};break;case A:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=o?V(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case C:t[c]=t[c]-(i[h]/2-n[h]/2);break;case k:t[c]=t[c]+(i[h]/2-n[h]/2)}}return t}function X(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Y(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function Q(e,i){void 0===i&&(i={});var n=i,o=n.placement,r=void 0===o?e.placement:o,a=n.boundary,c=void 0===a?"clippingParents":a,h=n.rootBoundary,d=void 0===h?L:h,u=n.elementContext,f=void 0===u?S:u,p=n.altBoundary,m=void 0!==p&&p,g=n.padding,_=void 0===g?0:g,b=X("number"!=typeof _?_:Y(_,O)),v=f===S?"reference":S,A=e.rects.popper,T=e.elements[m?v:f],C=F(s(T)?T:T.contextElement||l(e.elements.popper),c,d),k=t(e.elements.reference),x=K({reference:k,element:A,strategy:"absolute",placement:r}),D=W(Object.assign({},A,x)),N=f===S?D:k,I={top:C.top-N.top+b.top,bottom:N.bottom-C.bottom+b.bottom,left:C.left-N.left+b.left,right:N.right-C.right+b.right},P=e.modifiersData.offset;if(f===S&&P){var j=P[r];Object.keys(I).forEach((function(e){var t=[E,w].indexOf(e)>=0?1:-1,i=[y,w].indexOf(e)>=0?"y":"x";I[e]+=j[i]*t}))}return I}var G="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",J={placement:"bottom",modifiers:[],strategy:"absolute"};function Z(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ee(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,o=t.defaultOptions,r=void 0===o?J:o;return function(e,t,i){void 0===i&&(i=r);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},J,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],d=!1,p={state:l,setOptions:function(i){var o="function"==typeof i?i(l.options):i;m(),l.options=Object.assign({},r,l.options,o),l.scrollParents={reference:s(e)?g(e):e.contextElement?g(e.contextElement):[],popper:g(t)};var a=function(e){var t=I(e);return N.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}(function(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,l.options.modifiers)));(l.orderedModifiers=a.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){[].concat(Object.keys(t),M).filter((function(e,t,i){return i.indexOf(e)===t})).forEach((function(i){switch(i){case"name":"string"!=typeof t.name&&console.error(P(j,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(P(j,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":N.indexOf(t.phase)<0&&console.error(P(j,t.name,'"phase"',"either "+N.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(P(j,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(P(j,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(P(j,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(P(j,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+M.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+i+'" was provided.')}t.requires&&t.requires.forEach((function(i){null==e.find((function(e){return e.name===i}))&&console.error(P('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),i,i))}))}))}))}((d=[].concat(a,l.options.modifiers),u=function(e){return e.name},f=new Set,d.filter((function(e){var t=u(e);if(!f.has(t))return f.add(t),!0})))),H(l.options.placement)===T)&&(l.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var d,u,f,_=h(t);return[_.marginTop,_.marginRight,_.marginBottom,_.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),l.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var o=s({state:l,name:t,instance:p,options:n}),r=function(){};c.push(o||r)}})),p.update()},forceUpdate:function(){if(!d){var e=l.elements,t=e.reference,i=e.popper;if(Z(t,i)){l.rects={reference:u(t,v(i),"fixed"===l.options.strategy),popper:f(i)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0,s=0;s<l.orderedModifiers.length;s++){if((n+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==l.reset){var o=l.orderedModifiers[s],r=o.fn,a=o.options,c=void 0===a?{}:a,h=o.name;"function"==typeof r&&(l=r({state:l,options:c,name:h,instance:p})||l)}else l.reset=!1,s=-1}}else console.error(G)}},update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){m(),d=!0}};if(!Z(e,t))return console.error(G),p;function m(){c.forEach((function(e){return e()})),c=[]}return p.setOptions(i).then((function(e){!d&&i.onFirstUpdate&&i.onFirstUpdate(e)})),p}}var te={passive:!0};var ie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,s=e.options,o=s.scroll,r=void 0===o||o,a=s.resize,l=void 0===a||a,c=i(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&h.forEach((function(e){e.addEventListener("scroll",n.update,te)})),l&&c.addEventListener("resize",n.update,te),function(){r&&h.forEach((function(e){e.removeEventListener("scroll",n.update,te)})),l&&c.removeEventListener("resize",n.update,te)}},data:{}};var ne={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(e){var t,n=e.popper,s=e.popperRect,o=e.placement,r=e.variation,a=e.offsets,c=e.position,d=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=!0===f?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:R(R(t*n)/n)||0,y:R(R(i*n)/n)||0}}(a):"function"==typeof f?f(a):a,m=p.x,g=void 0===m?0:m,_=p.y,b=void 0===_?0:_,T=a.hasOwnProperty("x"),O=a.hasOwnProperty("y"),C=A,L=y,S=window;if(u){var x=v(n),D="clientHeight",N="clientWidth";x===i(n)&&"static"!==h(x=l(n)).position&&"absolute"===c&&(D="scrollHeight",N="scrollWidth"),x=x,o!==y&&(o!==A&&o!==E||r!==k)||(L=w,b-=x[D]-s.height,b*=d?1:-1),o!==A&&(o!==y&&o!==w||r!==k)||(C=E,g-=x[N]-s.width,g*=d?1:-1)}var I,P=Object.assign({position:c},u&&se);return d?Object.assign({},P,((I={})[L]=O?"0":"",I[C]=T?"0":"",I.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",I)):Object.assign({},P,((t={})[L]=O?b+"px":"",t[C]=T?g+"px":"",t.transform="",t))}var re={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c=h(t.elements.popper).transitionProperty||"";r&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var d={placement:H(t.placement),variation:U(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,oe(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,oe(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ae={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];o(s)&&a(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});o(n)&&a(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};var le={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,o=void 0===s?[0,0]:s,r=D.reduce((function(e,i){return e[i]=function(e,t,i){var n=H(e),s=[A,y].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[A,E].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}},ce={left:"right",right:"left",bottom:"top",top:"bottom"};function he(e){return e.replace(/left|right|bottom|top/g,(function(e){return ce[e]}))}var de={start:"end",end:"start"};function ue(e){return e.replace(/start|end/g,(function(e){return de[e]}))}function fe(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?D:l,h=U(n),d=h?a?x:x.filter((function(e){return U(e)===h})):O,u=d.filter((function(e){return c.indexOf(e)>=0}));0===u.length&&(u=d,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var f=u.reduce((function(t,i){return t[i]=Q(e,{placement:i,boundary:s,rootBoundary:o,padding:r})[H(i)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var pe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=t.options.placement,_=H(g),b=l||(_===g||!p?[he(g)]:function(e){if(H(e)===T)return[];var t=he(e);return[ue(e),t,ue(t)]}(g)),v=[g].concat(b).reduce((function(e,i){return e.concat(H(i)===T?fe(t,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),O=t.rects.reference,k=t.rects.popper,L=new Map,S=!0,x=v[0],D=0;D<v.length;D++){var N=v[D],I=H(N),P=U(N)===C,j=[y,w].indexOf(I)>=0,M=j?"width":"height",B=Q(t,{placement:N,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),q=j?P?E:A:P?w:y;O[M]>k[M]&&(q=he(q));var R=he(q),$=[];if(o&&$.push(B[I]<=0),a&&$.push(B[q]<=0,B[R]<=0),$.every((function(e){return e}))){x=N,S=!1;break}L.set(N,$)}if(S)for(var W=function(e){var t=v.find((function(t){var i=L.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},z=p?3:1;z>0;z--){if("break"===W(z))break}t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function me(e,t,i){return B(e,q(t,i))}var ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,p=void 0===u||u,m=i.tetherOffset,g=void 0===m?0:m,_=Q(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),b=H(t.placement),T=U(t.placement),O=!T,k=V(b),L="x"===k?"y":"x",S=t.modifiersData.popperOffsets,x=t.rects.reference,D=t.rects.popper,N="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,I={x:0,y:0};if(S){if(o||a){var P="y"===k?y:A,j="y"===k?w:E,M="y"===k?"height":"width",R=S[k],$=S[k]+_[P],W=S[k]-_[j],z=p?-D[M]/2:0,F=T===C?x[M]:D[M],K=T===C?-D[M]:-x[M],X=t.elements.arrow,Y=p&&X?f(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=G[P],Z=G[j],ee=me(0,x[M],Y[M]),te=O?x[M]/2-z-ee-J-N:F-ee-J-N,ie=O?-x[M]/2+z+ee+Z+N:K+ee+Z+N,ne=t.elements.arrow&&v(t.elements.arrow),se=ne?"y"===k?ne.clientTop||0:ne.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][k]:0,re=S[k]+te-oe-se,ae=S[k]+ie-oe;if(o){var le=me(p?q($,re):$,R,p?B(W,ae):W);S[k]=le,I[k]=le-R}if(a){var ce="x"===k?y:A,he="x"===k?w:E,de=S[L],ue=de+_[ce],fe=de-_[he],pe=me(p?q(ue,re):ue,de,p?B(fe,ae):fe);S[L]=pe,I[L]=pe-de}}t.modifiersData[n]=I}},requiresIfExists:["offset"]};var _e={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=H(i.placement),l=V(a),c=[A,E].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(e,t){return X("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Y(e,O))}(s.padding,i),d=f(o),u="y"===l?y:A,p="y"===l?w:E,m=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],_=v(o),b=_?"y"===l?_.clientHeight||0:_.clientWidth||0:0,T=m/2-g/2,C=h[u],k=b-d[c]-h[p],L=b/2-d[c]/2+T,S=me(C,L,k),x=l;i.modifiersData[n]=((t={})[x]=S,t.centerOffset=S-L,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(o(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),$(t.elements.popper,n)?t.elements.arrow=n:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function be(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ve(e){return[y,E,w,A].some((function(t){return e[t]>=0}))}var ye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=Q(t,{elementContext:"reference"}),a=Q(t,{altBoundary:!0}),l=be(r,n),c=be(a,s,o),h=ve(l),d=ve(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},we=ee({defaultModifiers:[ie,ne,re,ae]}),Ee=[ie,ne,re,ae,le,pe,ge,_e,ye],Ae=ee({defaultModifiers:Ee});e.applyStyles=ae,e.arrow=_e,e.computeStyles=re,e.createPopper=Ae,e.createPopperLite=we,e.defaultModifiers=Ee,e.detectOverflow=Q,e.eventListeners=ie,e.flip=pe,e.hide=ye,e.offset=le,e.popperGenerator=ee,e.popperOffsets=ne,e.preventOverflow=ge,Object.defineProperty(e,"__esModule",{value:!0})})),
  /*!
    * Bootstrap v5.1.2 (https://getbootstrap.com/)
    * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
    * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
    */
  function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(e.Popper)}(this,(function(e){"use strict";function t(e){if(e&&e.__esModule)return e;const t=Object.create(null);if(e)for(const i in e)if("default"!==i){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}return t.default=e,Object.freeze(t)}const i=t(e),n="transitionend",s=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},o=e=>{const t=s(e);return t&&document.querySelector(t)?t:null},r=e=>{const t=s(e);return t?document.querySelector(t):null},a=e=>{e.dispatchEvent(new Event(n))},l=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),c=e=>l(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,h=(e,t,i)=>{Object.keys(i).forEach((n=>{const s=i[n],o=t[n],r=o&&l(o)?"element":null==(a=o)?`${a}`:{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase();var a;if(!new RegExp(s).test(r))throw new TypeError(`${e.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)}))},d=e=>!(!l(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),u=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),f=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?f(e.parentNode):null},p=()=>{},m=e=>{e.offsetHeight},g=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},_=[],b=()=>"rtl"===document.documentElement.dir,v=e=>{var t;t=()=>{const t=g();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(_.length||document.addEventListener("DOMContentLoaded",(()=>{_.forEach((e=>e()))})),_.push(t)):t()},y=e=>{"function"==typeof e&&e()},w=(e,t,i=!0)=>{if(!i)return void y(e);const s=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let o=!1;const r=({target:i})=>{i===t&&(o=!0,t.removeEventListener(n,r),y(e))};t.addEventListener(n,r),setTimeout((()=>{o||a(t)}),s)},E=(e,t,i,n)=>{let s=e.indexOf(t);if(-1===s)return e[!i&&n?e.length-1:0];const o=e.length;return s+=i?1:-1,n&&(s=(s+o)%o),e[Math.max(0,Math.min(s,o-1))]},A=/[^.]*(?=\..*)\.|.*/,T=/\..*/,O=/::\d+$/,C={};let k=1;const L={mouseenter:"mouseover",mouseleave:"mouseout"},S=/^(mouseenter|mouseleave)/i,x=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function D(e,t){return t&&`${t}::${k++}`||e.uidEvent||k++}function N(e){const t=D(e);return e.uidEvent=t,C[t]=C[t]||{},C[t]}function I(e,t,i=null){const n=Object.keys(e);for(let s=0,o=n.length;s<o;s++){const o=e[n[s]];if(o.originalHandler===t&&o.delegationSelector===i)return o}return null}function P(e,t,i){const n="string"==typeof t,s=n?i:t;let o=H(e);return x.has(o)||(o=e),[n,s,o]}function j(e,t,i,n,s){if("string"!=typeof t||!e)return;if(i||(i=n,n=null),S.test(t)){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};n?n=e(n):i=e(i)}const[o,r,a]=P(t,i,n),l=N(e),c=l[a]||(l[a]={}),h=I(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=D(r,t.replace(A,"")),u=o?function(e,t,i){return function n(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&B.off(e,s.type,t,i),i.apply(r,[s]);return null}}(e,i,n):function(e,t){return function i(n){return n.delegateTarget=e,i.oneOff&&B.off(e,n.type,t),t.apply(e,[n])}}(e,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=d,c[d]=u,e.addEventListener(a,u,o)}function M(e,t,i,n,s){const o=I(t[i],n,s);o&&(e.removeEventListener(i,o,Boolean(s)),delete t[i][o.uidEvent])}function H(e){return e=e.replace(T,""),L[e]||e}const B={on(e,t,i,n){j(e,t,i,n,!1)},one(e,t,i,n){j(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,o,r]=P(t,i,n),a=r!==t,l=N(e),c=t.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void M(e,l,r,o,s?i:null)}c&&Object.keys(l).forEach((i=>{!function(e,t,i,n){const s=t[i]||{};Object.keys(s).forEach((o=>{if(o.includes(n)){const n=s[o];M(e,t,i,n.originalHandler,n.delegationSelector)}}))}(e,l,i,t.slice(1))}));const h=l[r]||{};Object.keys(h).forEach((i=>{const n=i.replace(O,"");if(!a||t.includes(n)){const t=h[i];M(e,l,r,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=g(),s=H(t),o=t!==s,r=x.has(s);let a,l=!0,c=!0,h=!1,d=null;return o&&n&&(a=n.Event(t,i),n(e).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(s,l,!0)):d=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach((e=>{Object.defineProperty(d,e,{get:()=>i[e]})})),h&&d.preventDefault(),c&&e.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},q=new Map,R={set(e,t,i){q.has(e)||q.set(e,new Map);const n=q.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>q.has(e)&&q.get(e).get(t)||null,remove(e,t){if(!q.has(e))return;const i=q.get(e);i.delete(t),0===i.size&&q.delete(e)}};class ${constructor(e){(e=c(e))&&(this._element=e,R.set(this._element,this.constructor.DATA_KEY,this))}dispose(){R.remove(this._element,this.constructor.DATA_KEY),B.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,i=!0){w(e,t,i)}static getInstance(e){return R.get(c(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.1.2"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const W=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;B.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),u(this))return;const s=r(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()}))};class z extends ${static get NAME(){return"alert"}close(){if(B.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),B.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=z.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}W(z,"close"),v(z);const F='[data-bs-toggle="button"]';class U extends ${static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=U.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}function V(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function K(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}B.on(document,"click.bs.button.data-api",F,(e=>{e.preventDefault();const t=e.target.closest(F);U.getOrCreateInstance(t).toggle()})),v(U);const X={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${K(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${K(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=V(e.dataset[i])})),t},getDataAttribute:(e,t)=>V(e.getAttribute(`data-bs-${K(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},Y={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&i.push(n),n=n.parentNode;return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(", ");return this.find(t,e).filter((e=>!u(e)&&d(e)))}},Q="carousel",G={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},J={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Z="next",ee="prev",te="left",ie="right",ne={ArrowLeft:ie,ArrowRight:te},se="slid.bs.carousel",oe="active",re=".active.carousel-item";class ae extends ${constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=Y.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return G}static get NAME(){return Q}next(){this._slide(Z)}nextWhenVisible(){!document.hidden&&d(this._element)&&this.next()}prev(){this._slide(ee)}pause(e){e||(this._isPaused=!0),Y.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(a(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=Y.findOne(re,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void B.one(this._element,se,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const i=e>t?Z:ee;this._slide(i,this._items[e])}_getConfig(e){return e={...G,...X.getDataAttributes(this._element),..."object"==typeof e?e:{}},h(Q,e,J),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?ie:te)}_addEventListeners(){this._config.keyboard&&B.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(B.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),B.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),t=t=>{e(t)?this.touchStartX=t.clientX:this._pointerEvent||(this.touchStartX=t.touches[0].clientX)},i=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},n=t=>{e(t)&&(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};Y.find(".carousel-item img",this._element).forEach((e=>{B.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(B.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),B.on(this._element,"pointerup.bs.carousel",(e=>n(e))),this._element.classList.add("pointer-event")):(B.on(this._element,"touchstart.bs.carousel",(e=>t(e))),B.on(this._element,"touchmove.bs.carousel",(e=>i(e))),B.on(this._element,"touchend.bs.carousel",(e=>n(e))))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ne[e.key];t&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?Y.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const i=e===Z;return E(this._items,t,i,this._config.wrap)}_triggerSlideEvent(e,t){const i=this._getItemIndex(e),n=this._getItemIndex(Y.findOne(re,this._element));return B.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:n,to:i})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=Y.findOne(".active",this._indicatorsElement);t.classList.remove(oe),t.removeAttribute("aria-current");const i=Y.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t<i.length;t++)if(Number.parseInt(i[t].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){i[t].classList.add(oe),i[t].setAttribute("aria-current","true");break}}}_updateInterval(){const e=this._activeElement||Y.findOne(re,this._element);if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(e,t){const i=this._directionToOrder(e),n=Y.findOne(re,this._element),s=this._getItemIndex(n),o=t||this._getItemByOrder(i,n),r=this._getItemIndex(o),a=Boolean(this._interval),l=i===Z,c=l?"carousel-item-start":"carousel-item-end",h=l?"carousel-item-next":"carousel-item-prev",d=this._orderToDirection(i);if(o&&o.classList.contains(oe))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(o,d).defaultPrevented)return;if(!n||!o)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const u=()=>{B.trigger(this._element,se,{relatedTarget:o,direction:d,from:s,to:r})};if(this._element.classList.contains("slide")){o.classList.add(h),m(o),n.classList.add(c),o.classList.add(c);const e=()=>{o.classList.remove(c,h),o.classList.add(oe),n.classList.remove(oe,h,c),this._isSliding=!1,setTimeout(u,0)};this._queueCallback(e,n,!0)}else n.classList.remove(oe),o.classList.add(oe),this._isSliding=!1,u();a&&this.cycle()}_directionToOrder(e){return[ie,te].includes(e)?b()?e===te?ee:Z:e===te?Z:ee:e}_orderToDirection(e){return[Z,ee].includes(e)?b()?e===ee?te:ie:e===ee?ie:te:e}static carouselInterface(e,t){const i=ae.getOrCreateInstance(e,t);let{_config:n}=i;"object"==typeof t&&(n={...n,...t});const s="string"==typeof t?t:n.slide;if("number"==typeof t)i.to(t);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(e){return this.each((function(){ae.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=r(this);if(!t||!t.classList.contains("carousel"))return;const i={...X.getDataAttributes(t),...X.getDataAttributes(this)},n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),ae.carouselInterface(t,i),n&&ae.getInstance(t).to(n),e.preventDefault()}}B.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",ae.dataApiClickHandler),B.on(window,"load.bs.carousel.data-api",(()=>{const e=Y.find('[data-bs-ride="carousel"]');for(let t=0,i=e.length;t<i;t++)ae.carouselInterface(e[t],ae.getInstance(e[t]))})),v(ae);const le="collapse",ce="bs.collapse",he={toggle:!0,parent:null},de={toggle:"boolean",parent:"(null|element)"},ue="show",fe="collapse",pe="collapsing",me="collapsed",ge=":scope .collapse .collapse",_e='[data-bs-toggle="collapse"]';class be extends ${constructor(e,t){super(e),this._isTransitioning=!1,this._config=this._getConfig(t),this._triggerArray=[];const i=Y.find(_e);for(let e=0,t=i.length;e<t;e++){const t=i[e],n=o(t),s=Y.find(n).filter((e=>e===this._element));null!==n&&s.length&&(this._selector=n,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return he}static get NAME(){return le}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=Y.find(ge,this._config.parent);t=Y.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((t=>!e.includes(t)))}const i=Y.findOne(this._selector);if(t.length){const n=t.find((e=>i!==e));if(e=n?be.getInstance(n):null,e&&e._isTransitioning)return}if(B.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{i!==t&&be.getOrCreateInstance(t,{toggle:!1}).hide(),e||R.set(t,ce,null)}));const n=this._getDimension();this._element.classList.remove(fe),this._element.classList.add(pe),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(pe),this._element.classList.add(fe,ue),this._element.style[n]="",B.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(B.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,m(this._element),this._element.classList.add(pe),this._element.classList.remove(fe,ue);const t=this._triggerArray.length;for(let e=0;e<t;e++){const t=this._triggerArray[e],i=r(t);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(pe),this._element.classList.add(fe),B.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(ue)}_getConfig(e){return(e={...he,...X.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=c(e.parent),h(le,e,de),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=Y.find(ge,this._config.parent);Y.find(_e,this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=r(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove(me):e.classList.add(me),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const i=be.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}B.on(document,"click.bs.collapse.data-api",_e,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=o(this);Y.find(t).forEach((e=>{be.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),v(be);const ve="dropdown",ye="Escape",we="Space",Ee="ArrowUp",Ae="ArrowDown",Te=new RegExp("ArrowUp|ArrowDown|Escape"),Oe="click.bs.dropdown.data-api",Ce="keydown.bs.dropdown.data-api",ke="show",Le='[data-bs-toggle="dropdown"]',Se=".dropdown-menu",xe=b()?"top-end":"top-start",De=b()?"top-start":"top-end",Ne=b()?"bottom-end":"bottom-start",Ie=b()?"bottom-start":"bottom-end",Pe=b()?"left-start":"right-start",je=b()?"right-start":"left-start",Me={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},He={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class Be extends ${constructor(e,t){super(e),this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return Me}static get DefaultType(){return He}static get NAME(){return ve}toggle(){return this._isShown()?this.hide():this.show()}show(){if(u(this._element)||this._isShown(this._menu))return;const e={relatedTarget:this._element};if(B.trigger(this._element,"show.bs.dropdown",e).defaultPrevented)return;const t=Be.getParentFromElement(this._element);this._inNavbar?X.setDataAttribute(this._menu,"popper","none"):this._createPopper(t),"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((e=>B.on(e,"mouseover",p))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ke),this._element.classList.add(ke),B.trigger(this._element,"shown.bs.dropdown",e)}hide(){if(u(this._element)||!this._isShown(this._menu))return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){B.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>B.off(e,"mouseover",p))),this._popper&&this._popper.destroy(),this._menu.classList.remove(ke),this._element.classList.remove(ke),this._element.setAttribute("aria-expanded","false"),X.removeDataAttribute(this._menu,"popper"),B.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...X.getDataAttributes(this._element),...e},h(ve,e,this.constructor.DefaultType),"object"==typeof e.reference&&!l(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${ve.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(void 0===i)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:l(this._config.reference)?t=c(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig(),s=n.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=i.createPopper(t,this._menu,n),s&&X.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(ke)}_getMenuElement(){return Y.next(this._element,Se)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return Pe;if(e.classList.contains("dropstart"))return je;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?De:xe:t?Ie:Ne}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const i=Y.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(d);i.length&&E(i,t,e===Ae,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Be.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const t=Y.find(Le);for(let i=0,n=t.length;i<n;i++){const n=Be.getInstance(t[i]);if(!n||!1===n._config.autoClose)continue;if(!n._isShown())continue;const s={relatedTarget:n._element};if(e){const t=e.composedPath(),i=t.includes(n._menu);if(t.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if(n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(s.clickEvent=e)}n._completeHide(s)}}static getParentFromElement(e){return r(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===we||e.key!==ye&&(e.key!==Ae&&e.key!==Ee||e.target.closest(Se)):!Te.test(e.key))return;const t=this.classList.contains(ke);if(!t&&e.key===ye)return;if(e.preventDefault(),e.stopPropagation(),u(this))return;const i=this.matches(Le)?this:Y.prev(this,Le)[0],n=Be.getOrCreateInstance(i);if(e.key!==ye)return e.key===Ee||e.key===Ae?(t||n.show(),void n._selectMenuItem(e)):void(t&&e.key!==we||Be.clearMenus());n.hide()}}B.on(document,Ce,Le,Be.dataApiKeydownHandler),B.on(document,Ce,Se,Be.dataApiKeydownHandler),B.on(document,Oe,Be.clearMenus),B.on(document,"keyup.bs.dropdown.data-api",Be.clearMenus),B.on(document,Oe,Le,(function(e){e.preventDefault(),Be.getOrCreateInstance(this).toggle()})),v(Be);const qe=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Re=".sticky-top";class $e{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(t=>t+e)),this._setElementAttributes(qe,"paddingRight",(t=>t+e)),this._setElementAttributes(Re,"marginRight",(t=>t-e))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e)[t];e.style[t]=`${i(Number.parseFloat(s))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(qe,"paddingRight"),this._resetElementAttributes(Re,"marginRight")}_saveInitialAttribute(e,t){const i=e.style[t];i&&X.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=X.getDataAttribute(e,t);void 0===i?e.style.removeProperty(t):(X.removeDataAttribute(e,t),e.style[t]=i)}))}_applyManipulationCallback(e,t){l(e)?t(e):Y.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const We={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},ze={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Fe="backdrop",Ue="show",Ve="mousedown.bs.backdrop";class Ke{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&m(this._getElement()),this._getElement().classList.add(Ue),this._emulateAnimation((()=>{y(e)}))):y(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(Ue),this._emulateAnimation((()=>{this.dispose(),y(e)}))):y(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={...We,..."object"==typeof e?e:{}}).rootElement=c(e.rootElement),h(Fe,e,ze),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),B.on(this._getElement(),Ve,(()=>{y(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(B.off(this._element,Ve),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){w(e,this._getElement(),this._config.isAnimated)}}const Xe={trapElement:null,autofocus:!0},Ye={trapElement:"element",autofocus:"boolean"},Qe=".bs.focustrap",Ge="backward";class Je{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),B.off(document,Qe),B.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),B.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,B.off(document,Qe))}_handleFocusin(e){const{target:t}=e,{trapElement:i}=this._config;if(t===document||t===i||i.contains(t))return;const n=Y.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===Ge?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Ge:"forward")}_getConfig(e){return e={...Xe,..."object"==typeof e?e:{}},h("focustrap",e,Ye),e}}const Ze="modal",et=".bs.modal",tt="Escape",it={backdrop:!0,keyboard:!0,focus:!0},nt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},st="hidden.bs.modal",ot="show.bs.modal",rt="resize.bs.modal",at="click.dismiss.bs.modal",lt="keydown.dismiss.bs.modal",ct="mousedown.dismiss.bs.modal",ht="modal-open",dt="show",ut="modal-static";class ft extends ${constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=Y.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new $e}static get Default(){return it}static get NAME(){return Ze}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;B.trigger(this._element,ot,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(ht),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),B.on(this._dialog,ct,(()=>{B.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;if(B.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(dt),B.off(this._element,at),B.off(this._dialog,ct),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((e=>B.off(e,et))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ke({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Je({trapElement:this._element})}_getConfig(e){return e={...it,...X.getDataAttributes(this._element),..."object"==typeof e?e:{}},h(Ze,e,nt),e}_showElement(e){const t=this._isAnimated(),i=Y.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),t&&m(this._element),this._element.classList.add(dt);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,B.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,t)}_setEscapeEvent(){this._isShown?B.on(this._element,lt,(e=>{this._config.keyboard&&e.key===tt?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==tt||this._triggerBackdropTransition()})):B.off(this._element,lt)}_setResizeEvent(){this._isShown?B.on(window,rt,(()=>this._adjustDialog())):B.off(window,rt)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(ht),this._resetAdjustments(),this._scrollBar.reset(),B.trigger(this._element,st)}))}_showBackdrop(e){B.on(this._element,at,(e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(B.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:i}=this._element,n=t>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||e.contains(ut)||(n||(i.overflowY="hidden"),e.add(ut),this._queueCallback((()=>{e.remove(ut),n||this._queueCallback((()=>{i.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;(!i&&e&&!b()||i&&!e&&b())&&(this._element.style.paddingLeft=`${t}px`),(i&&!e&&!b()||!i&&e&&b())&&(this._element.style.paddingRight=`${t}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=ft.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}B.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=r(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),B.one(t,ot,(e=>{e.defaultPrevented||B.one(t,st,(()=>{d(this)&&this.focus()}))}));const i=Y.findOne(".modal.show");i&&ft.getInstance(i).hide();ft.getOrCreateInstance(t).toggle(this)})),W(ft),v(ft);const pt="offcanvas",mt={backdrop:!0,keyboard:!0,scroll:!1},gt={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},_t="show",bt=".offcanvas.show",vt="hidden.bs.offcanvas";class yt extends ${constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return pt}static get Default(){return mt}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(B.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new $e).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(_t);this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),B.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(B.trigger(this._element,"hide.bs.offcanvas").defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(_t),this._backdrop.hide();this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new $e).reset(),B.trigger(this._element,vt)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...mt,...X.getDataAttributes(this._element),..."object"==typeof e?e:{}},h(pt,e,gt),e}_initializeBackDrop(){return new Ke({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Je({trapElement:this._element})}_addEventListeners(){B.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=yt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}B.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=r(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),u(this))return;B.one(t,vt,(()=>{d(this)&&this.focus()}));const i=Y.findOne(bt);i&&i!==t&&yt.getInstance(i).hide();yt.getOrCreateInstance(t).toggle(this)})),B.on(window,"load.bs.offcanvas.data-api",(()=>Y.find(bt).forEach((e=>yt.getOrCreateInstance(e).show())))),W(yt),v(yt);const wt=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Et=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,At=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Tt=(e,t)=>{const i=e.nodeName.toLowerCase();if(t.includes(i))return!wt.has(i)||Boolean(Et.test(e.nodeValue)||At.test(e.nodeValue));const n=t.filter((e=>e instanceof RegExp));for(let e=0,t=n.length;e<t;e++)if(n[e].test(i))return!0;return!1},Ot={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Ct(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(let e=0,i=s.length;e<i;e++){const i=s[e],n=i.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){i.remove();continue}const o=[].concat(...i.attributes),r=[].concat(t["*"]||[],t[n]||[]);o.forEach((e=>{Tt(e,r)||i.removeAttribute(e.nodeName)}))}return n.body.innerHTML}const kt="tooltip",Lt=new Set(["sanitize","allowList","sanitizeFn"]),St={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},xt={AUTO:"auto",TOP:"top",RIGHT:b()?"left":"right",BOTTOM:"bottom",LEFT:b()?"right":"left"},Dt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:Ot,popperConfig:null},Nt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},It="fade",Pt="show",jt="show",Mt="out",Ht=".tooltip-inner",Bt=".modal",qt="hide.bs.modal",Rt="hover",$t="focus";class Wt extends ${constructor(e,t){if(void 0===i)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return Dt}static get NAME(){return kt}static get Event(){return Nt}static get DefaultType(){return St}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(Pt))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),B.off(this._element.closest(Bt),qt,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=B.trigger(this._element,this.constructor.Event.SHOW),t=f(this._element),n=null===t?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!n)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(Ht).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const s=this.getTipElement(),o=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME);s.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this._config.animation&&s.classList.add(It);const r="function"==typeof this._config.placement?this._config.placement.call(this,s,this._element):this._config.placement,a=this._getAttachment(r);this._addAttachmentClass(a);const{container:l}=this._config;R.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.append(s),B.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=i.createPopper(this._element,s,this._getPopperConfig(a)),s.classList.add(Pt);const c=this._resolvePossibleFunction(this._config.customClass);c&&s.classList.add(...c.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{B.on(e,"mouseover",p)}));const h=this.tip.classList.contains(It);this._queueCallback((()=>{const e=this._hoverState;this._hoverState=null,B.trigger(this._element,this.constructor.Event.SHOWN),e===Mt&&this._leave(null,this)}),this.tip,h)}hide(){if(!this._popper)return;const e=this.getTipElement();if(B.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(Pt),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>B.off(e,"mouseover",p))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const t=this.tip.classList.contains(It);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==jt&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),B.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,t),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const t=e.children[0];return this.setContent(t),t.classList.remove(It,Pt),this.tip=t,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),Ht)}_sanitizeAndSetContent(e,t,i){const n=Y.findOne(i,e);t||!n?this.setElementContent(n,t):n.remove()}setElementContent(e,t){if(null!==e)return l(t)?(t=c(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=Ct(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return xt[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((e=>{if("click"===e)B.on(this._element,this.constructor.Event.CLICK,this._config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===Rt?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=e===Rt?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;B.on(this._element,t,this._config.selector,(e=>this._enter(e))),B.on(this._element,i,this._config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},B.on(this._element.closest(Bt),qt,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?$t:Rt]=!0),t.getTipElement().classList.contains(Pt)||t._hoverState===jt?t._hoverState=jt:(clearTimeout(t._timeout),t._hoverState=jt,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===jt&&t.show()}),t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?$t:Rt]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Mt,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===Mt&&t.hide()}),t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=X.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{Lt.has(e)&&delete t[e]})),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:c(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),h(kt,e,this.constructor.DefaultType),e.sanitize&&(e.template=Ct(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=e.getAttribute("class").match(t);null!==i&&i.length>0&&i.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each((function(){const t=Wt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}v(Wt);const zt={...Wt.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Ft={...Wt.DefaultType,content:"(string|element|function)"},Ut={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Vt extends Wt{static get Default(){return zt}static get NAME(){return"popover"}static get Event(){return Ut}static get DefaultType(){return Ft}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(e){return this.each((function(){const t=Vt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}v(Vt);const Kt="scrollspy",Xt=".bs.scrollspy",Yt={offset:10,method:"auto",target:""},Qt={offset:"number",method:"string",target:"(string|element)"},Gt="dropdown-item",Jt="active",Zt=".nav-link",ei=".nav-link, .list-group-item, .dropdown-item",ti="position";class ii extends ${constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,B.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return Yt}static get NAME(){return Kt}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":ti,t="auto"===this._config.method?e:this._config.method,i=t===ti?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();Y.find(ei,this._config.target).map((e=>{const n=o(e),s=n?Y.findOne(n):null;if(s){const e=s.getBoundingClientRect();if(e.width||e.height)return[X[t](s).top+i,n]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){B.off(this._scrollElement,Xt),super.dispose()}_getConfig(e){return(e={...Yt,...X.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=c(e.target)||document.documentElement,h(Kt,e,Qt),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=i){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;){this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&(void 0===this._offsets[t+1]||e<this._offsets[t+1])&&this._activate(this._targets[t])}}}_activate(e){this._activeTarget=e,this._clear();const t=ei.split(",").map((t=>`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),i=Y.findOne(t.join(","),this._config.target);i.classList.add(Jt),i.classList.contains(Gt)?Y.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(Jt):Y.parents(i,".nav, .list-group").forEach((e=>{Y.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(Jt))),Y.prev(e,".nav-item").forEach((e=>{Y.children(e,Zt).forEach((e=>e.classList.add(Jt)))}))})),B.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){Y.find(ei,this._config.target).filter((e=>e.classList.contains(Jt))).forEach((e=>e.classList.remove(Jt)))}static jQueryInterface(e){return this.each((function(){const t=ii.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}B.on(window,"load.bs.scrollspy.data-api",(()=>{Y.find('[data-bs-spy="scroll"]').forEach((e=>new ii(e)))})),v(ii);const ni="active",si="fade",oi="show",ri=".active",ai=":scope > li > .active";class li extends ${static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(ni))return;let e;const t=r(this._element),i=this._element.closest(".nav, .list-group");if(i){const t="UL"===i.nodeName||"OL"===i.nodeName?ai:ri;e=Y.find(t,i),e=e[e.length-1]}const n=e?B.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(B.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,i);const s=()=>{B.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),B.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,s):s()}_activate(e,t,i){const n=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?Y.children(t,ri):Y.find(ai,t))[0],s=i&&n&&n.classList.contains(si),o=()=>this._transitionComplete(e,n,i);n&&s?(n.classList.remove(oi),this._queueCallback(o,e,!0)):o()}_transitionComplete(e,t,i){if(t){t.classList.remove(ni);const e=Y.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(ni),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(ni),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),m(e),e.classList.contains(si)&&e.classList.add(oi);let n=e.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const t=e.closest(".dropdown");t&&Y.find(".dropdown-toggle",t).forEach((e=>e.classList.add(ni))),e.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(e){return this.each((function(){const t=li.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}B.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),u(this))return;li.getOrCreateInstance(this).show()})),v(li);const ci="toast",hi="hide",di="show",ui="showing",fi={animation:"boolean",autohide:"boolean",delay:"number"},pi={animation:!0,autohide:!0,delay:5e3};class mi extends ${constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return fi}static get Default(){return pi}static get NAME(){return ci}show(){if(B.trigger(this._element,"show.bs.toast").defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(hi),m(this._element),this._element.classList.add(di),this._element.classList.add(ui),this._queueCallback((()=>{this._element.classList.remove(ui),B.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this._element.classList.contains(di))return;if(B.trigger(this._element,"hide.bs.toast").defaultPrevented)return;this._element.classList.add(ui),this._queueCallback((()=>{this._element.classList.add(hi),this._element.classList.remove(ui),this._element.classList.remove(di),B.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(di)&&this._element.classList.remove(di),super.dispose()}_getConfig(e){return e={...pi,...X.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},h(ci,e,this.constructor.DefaultType),e}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){B.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),B.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),B.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),B.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=mi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}W(mi),v(mi);return{Alert:z,Button:U,Carousel:ae,Collapse:be,Dropdown:Be,Modal:ft,Offcanvas:yt,Popover:Vt,ScrollSpy:ii,Tab:li,Toast:mi,Tooltip:Wt}}));