/*! * bootstrap v5.0.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(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalthis?globalthis:t||self).bootstrap=e(t.popper)}(this,(function(t){"use strict";function e(t){if(t&&t.__esmodule)return t;var e=object.create(null);return t&&object.keys(t).foreach((function(s){if("default"!==s){var i=object.getownpropertydescriptor(t,s);object.defineproperty(e,s,i.get?i:{enumerable:!0,get:function(){return t[s]}})}})),e.default=t,object.freeze(e)}var s=e(t);const i={find:(t,e=document.documentelement)=>[].concat(...element.prototype.queryselectorall.call(e,t)),findone:(t,e=document.documentelement)=>element.prototype.queryselector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const s=[];let i=t.parentnode;for(;i&&i.nodetype===node.element_node&&3!==i.nodetype;)i.matches(e)&&s.push(i),i=i.parentnode;return s},prev(t,e){let s=t.previouselementsibling;for(;s;){if(s.matches(e))return[s];s=s.previouselementsibling}return[]},next(t,e){let s=t.nextelementsibling;for(;s;){if(s.matches(e))return[s];s=s.nextelementsibling}return[]}},n=t=>{do{t+=math.floor(1e6*math.random())}while(document.getelementbyid(t));return t},o=t=>{let e=t.getattribute("data-bs-target");if(!e||"#"===e){let s=t.getattribute("href");if(!s||!s.includes("#")&&!s.startswith("."))return null;s.includes("#")&&!s.startswith("#")&&(s="#"+s.split("#")[1]),e=s&&"#"!==s?s.trim():null}return e},r=t=>{const e=o(t);return e&&document.queryselector(e)?e:null},a=t=>{const e=o(t);return e?document.queryselector(e):null},l=t=>{t.dispatchevent(new event("transitionend"))},c=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodetype),h=t=>c(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?i.findone(t):null,d=(t,e,s)=>{object.keys(s).foreach(i=>{const n=s[i],o=e[i],r=o&&c(o)?"element":null==(a=o)?""+a:{}.tostring.call(a).match(/\s([a-z]+)/i)[1].tolowercase();var a;if(!new regexp(n).test(r))throw new typeerror(`${t.touppercase()}: option "${i}" provided type "${r}" but expected type "${n}".`)})},u=t=>!(!c(t)||0===t.getclientrects().length)&&"visible"===getcomputedstyle(t).getpropertyvalue("visibility"),g=t=>!t||t.nodetype!==node.element_node||!!t.classlist.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasattribute("disabled")&&"false"!==t.getattribute("disabled")),p=t=>{if(!document.documentelement.attachshadow)return null;if("function"==typeof t.getrootnode){const e=t.getrootnode();return e instanceof shadowroot?e:null}return t instanceof shadowroot?t:t.parentnode?p(t.parentnode):null},f=()=>{},m=t=>t.offsetheight,_=()=>{const{jquery:t}=window;return t&&!document.body.hasattribute("data-bs-no-jquery")?t:null},b=[],v=()=>"rtl"===document.documentelement.dir,y=t=>{var e;e=()=>{const e=_();if(e){const s=t.name,i=e.fn[s];e.fn[s]=t.jqueryinterface,e.fn[s].constructor=t,e.fn[s].noconflict=()=>(e.fn[s]=i,t.jqueryinterface)}},"loading"===document.readystate?(b.length||document.addeventlistener("domcontentloaded",()=>{b.foreach(t=>t())}),b.push(e)):e()},w=t=>{"function"==typeof t&&t()},e=(t,e,s=!0)=>{if(!s)return void w(t);const i=(t=>{if(!t)return 0;let{transitionduration:e,transitiondelay:s}=window.getcomputedstyle(t);const i=number.parsefloat(e),n=number.parsefloat(s);return i||n?(e=e.split(",")[0],s=s.split(",")[0],1e3*(number.parsefloat(e)+number.parsefloat(s))):0})(e)+5;let n=!1;const o=({target:s})=>{s===e&&(n=!0,e.removeeventlistener("transitionend",o),w(t))};e.addeventlistener("transitionend",o),settimeout(()=>{n||l(e)},i)},a=(t,e,s,i)=>{let n=t.indexof(e);if(-1===n)return t[!s&&i?t.length-1:0];const o=t.length;return n+=s?1:-1,i&&(n=(n+o)%o),t[math.max(0,math.min(n,o-1))]},t=/[^.]*(?=\..*)\.|.*/,c=/\..*/,k=/::\d+$/,l={};let o=1;const d={mouseenter:"mouseover",mouseleave:"mouseout"},i=/^(mouseenter|mouseleave)/i,n=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 s(t,e){return e&&`${e}::${o++}`||t.uidevent||o++}function x(t){const e=s(t);return t.uidevent=e,l[e]=l[e]||{},l[e]}function m(t,e,s=null){const i=object.keys(t);for(let n=0,o=i.length;nfunction(e){if(!e.relatedtarget||e.relatedtarget!==e.delegatetarget&&!e.delegatetarget.contains(e.relatedtarget))return t.call(this,e)};i?i=t(i):s=t(s)}const[o,r,a]=p(e,s,i),l=x(t),c=l[a]||(l[a]={}),h=m(c,r,o?s:null);if(h)return void(h.oneoff=h.oneoff&&n);const d=s(r,e.replace(t,"")),u=o?function(t,e,s){return function i(n){const o=t.queryselectorall(e);for(let{target:r}=n;r&&r!==this;r=r.parentnode)for(let a=o.length;a--;)if(o[a]===r)return n.delegatetarget=r,i.oneoff&&b.off(t,n.type,e,s),s.apply(r,[n]);return null}}(t,s,i):function(t,e){return function s(i){return i.delegatetarget=t,s.oneoff&&b.off(t,i.type,e),e.apply(t,[i])}}(t,s);u.delegationselector=o?s:null,u.originalhandler=r,u.oneoff=n,u.uidevent=d,c[d]=u,t.addeventlistener(a,u,o)}function h(t,e,s,i,n){const o=m(e[s],i,n);o&&(t.removeeventlistener(s,o,boolean(n)),delete e[s][o.uidevent])}function r(t){return t=t.replace(c,""),d[t]||t}const b={on(t,e,s,i){j(t,e,s,i,!1)},one(t,e,s,i){j(t,e,s,i,!0)},off(t,e,s,i){if("string"!=typeof e||!t)return;const[n,o,r]=p(e,s,i),a=r!==e,l=x(t),c=e.startswith(".");if(void 0!==o){if(!l||!l[r])return;return void h(t,l,r,o,n?s:null)}c&&object.keys(l).foreach(s=>{!function(t,e,s,i){const n=e[s]||{};object.keys(n).foreach(o=>{if(o.includes(i)){const i=n[o];h(t,e,s,i.originalhandler,i.delegationselector)}})}(t,l,s,e.slice(1))});const h=l[r]||{};object.keys(h).foreach(s=>{const i=s.replace(k,"");if(!a||e.includes(i)){const e=h[s];h(t,l,r,e.originalhandler,e.delegationselector)}})},trigger(t,e,s){if("string"!=typeof e||!t)return null;const i=_(),n=r(e),o=e!==n,r=n.has(n);let a,l=!0,c=!0,h=!1,d=null;return o&&i&&(a=i.event(e,s),i(t).trigger(a),l=!a.ispropagationstopped(),c=!a.isimmediatepropagationstopped(),h=a.isdefaultprevented()),r?(d=document.createevent("htmlevents"),d.initevent(n,l,!0)):d=new customevent(e,{bubbles:l,cancelable:!0}),void 0!==s&&object.keys(s).foreach(t=>{object.defineproperty(d,t,{get:()=>s[t]})}),h&&d.preventdefault(),c&&t.dispatchevent(d),d.defaultprevented&&void 0!==a&&a.preventdefault(),d}},$=new map;var w={set(t,e,s){$.has(t)||$.set(t,new map);const i=$.get(t);i.has(e)||0===i.size?i.set(e,s):console.error(`bootstrap doesn't allow more than one instance per element. bound instance: ${array.from(i.keys())[0]}.`)},get:(t,e)=>$.has(t)&&$.get(t).get(e)||null,remove(t,e){if(!$.has(t))return;const s=$.get(t);s.delete(e),0===s.size&&$.delete(t)}};class q{constructor(t){(t=h(t))&&(this._element=t,w.set(this._element,this.constructor.data_key,this))}dispose(){w.remove(this._element,this.constructor.data_key),b.off(this._element,this.constructor.event_key),object.getownpropertynames(this).foreach(t=>{this[t]=null})}_queuecallback(t,e,s=!0){e(t,e,s)}static getinstance(t){return w.get(t,this.data_key)}static getorcreateinstance(t,e={}){return this.getinstance(t)||new this(t,"object"==typeof e?e:null)}static get version(){return"5.0.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}}class z extends q{static get name(){return"alert"}close(t){const e=t?this._getrootelement(t):this._element,s=this._triggercloseevent(e);null===s||s.defaultprevented||this._removeelement(e)}_getrootelement(t){return a(t)||t.closest(".alert")}_triggercloseevent(t){return b.trigger(t,"close.bs.alert")}_removeelement(t){t.classlist.remove("show");const e=t.classlist.contains("fade");this._queuecallback(()=>this._destroyelement(t),t,e)}_destroyelement(t){t.remove(),b.trigger(t,"closed.bs.alert")}static jqueryinterface(t){return this.each((function(){const e=z.getorcreateinstance(this);"close"===t&&e[t](this)}))}static handledismiss(t){return function(e){e&&e.preventdefault(),t.close(this)}}}b.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',z.handledismiss(new z)),y(z);class f extends q{static get name(){return"button"}toggle(){this._element.setattribute("aria-pressed",this._element.classlist.toggle("active"))}static jqueryinterface(t){return this.each((function(){const e=f.getorcreateinstance(this);"toggle"===t&&e[t]()}))}}function u(t){return"true"===t||"false"!==t&&(t===number(t).tostring()?number(t):""===t||"null"===t?null:t)}function k(t){return t.replace(/[a-z]/g,t=>"-"+t.tolowercase())}b.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',t=>{t.preventdefault();const e=t.target.closest('[data-bs-toggle="button"]');f.getorcreateinstance(e).toggle()}),y(f);const v={setdataattribute(t,e,s){t.setattribute("data-bs-"+k(e),s)},removedataattribute(t,e){t.removeattribute("data-bs-"+k(e))},getdataattributes(t){if(!t)return{};const e={};return object.keys(t.dataset).filter(t=>t.startswith("bs")).foreach(s=>{let i=s.replace(/^bs/,"");i=i.charat(0).tolowercase()+i.slice(1,i.length),e[i]=u(t.dataset[s])}),e},getdataattribute:(t,e)=>u(t.getattribute("data-bs-"+k(e))),offset(t){const e=t.getboundingclientrect();return{top:e.top+document.body.scrolltop,left:e.left+document.body.scrollleft}},position:t=>({top:t.offsettop,left:t.offsetleft})},q={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},x={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},y="next",g="prev",z="left",j="right",tt={arrowleft:j,arrowright:z};class et extends q{constructor(t,e){super(t),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(e),this._indicatorselement=i.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 q}static get name(){return"carousel"}next(){this._slide(y)}nextwhenvisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(g)}pause(t){t||(this._ispaused=!0),i.findone(".carousel-item-next, .carousel-item-prev",this._element)&&(l(this._element),this.cycle(!0)),clearinterval(this._interval),this._interval=null}cycle(t){t||(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(t){this._activeelement=i.findone(".active.carousel-item",this._element);const e=this._getitemindex(this._activeelement);if(t>this._items.length-1||t<0)return;if(this._issliding)return void b.one(this._element,"slid.bs.carousel",()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const s=t>e?y:g;this._slide(s,this._items[t])}_getconfig(t){return t={...q,...v.getdataattributes(this._element),..."object"==typeof t?t:{}},d("carousel",t,x),t}_handleswipe(){const t=math.abs(this.touchdeltax);if(t<=40)return;const e=t/this.touchdeltax;this.touchdeltax=0,e&&this._slide(e>0?j:z)}_addeventlisteners(){this._config.keyboard&&b.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(b.on(this._element,"mouseenter.bs.carousel",t=>this.pause(t)),b.on(this._element,"mouseleave.bs.carousel",t=>this.cycle(t))),this._config.touch&&this._touchsupported&&this._addtoucheventlisteners()}_addtoucheventlisteners(){const t=t=>{!this._pointerevent||"pen"!==t.pointertype&&"touch"!==t.pointertype?this._pointerevent||(this.touchstartx=t.touches[0].clientx):this.touchstartx=t.clientx},e=t=>{this.touchdeltax=t.touches&&t.touches.length>1?0:t.touches[0].clientx-this.touchstartx},s=t=>{!this._pointerevent||"pen"!==t.pointertype&&"touch"!==t.pointertype||(this.touchdeltax=t.clientx-this.touchstartx),this._handleswipe(),"hover"===this._config.pause&&(this.pause(),this.touchtimeout&&cleartimeout(this.touchtimeout),this.touchtimeout=settimeout(t=>this.cycle(t),500+this._config.interval))};i.find(".carousel-item img",this._element).foreach(t=>{b.on(t,"dragstart.bs.carousel",t=>t.preventdefault())}),this._pointerevent?(b.on(this._element,"pointerdown.bs.carousel",e=>t(e)),b.on(this._element,"pointerup.bs.carousel",t=>s(t)),this._element.classlist.add("pointer-event")):(b.on(this._element,"touchstart.bs.carousel",e=>t(e)),b.on(this._element,"touchmove.bs.carousel",t=>e(t)),b.on(this._element,"touchend.bs.carousel",t=>s(t)))}_keydown(t){if(/input|textarea/i.test(t.target.tagname))return;const e=tt[t.key];e&&(t.preventdefault(),this._slide(e))}_getitemindex(t){return this._items=t&&t.parentnode?i.find(".carousel-item",t.parentnode):[],this._items.indexof(t)}_getitembyorder(t,e){const s=t===y;return a(this._items,e,s,this._config.wrap)}_triggerslideevent(t,e){const s=this._getitemindex(t),n=this._getitemindex(i.findone(".active.carousel-item",this._element));return b.trigger(this._element,"slide.bs.carousel",{relatedtarget:t,direction:e,from:n,to:s})}_setactiveindicatorelement(t){if(this._indicatorselement){const e=i.findone(".active",this._indicatorselement);e.classlist.remove("active"),e.removeattribute("aria-current");const s=i.find("[data-bs-target]",this._indicatorselement);for(let e=0;e{b.trigger(this._element,"slid.bs.carousel",{relatedtarget:r,direction:u,from:o,to:a})};if(this._element.classlist.contains("slide")){r.classlist.add(d),m(r),n.classlist.add(h),r.classlist.add(h);const t=()=>{r.classlist.remove(h,d),r.classlist.add("active"),n.classlist.remove("active",d,h),this._issliding=!1,settimeout(g,0)};this._queuecallback(t,n,!0)}else n.classlist.remove("active"),r.classlist.add("active"),this._issliding=!1,g();l&&this.cycle()}_directiontoorder(t){return[j,z].includes(t)?v()?t===z?g:y:t===z?y:g:t}_ordertodirection(t){return[y,g].includes(t)?v()?t===g?z:j:t===g?j:z:t}static carouselinterface(t,e){const s=et.getorcreateinstance(t,e);let{_config:i}=s;"object"==typeof e&&(i={...i,...e});const n="string"==typeof e?e:i.slide;if("number"==typeof e)s.to(e);else if("string"==typeof n){if(void 0===s[n])throw new typeerror(`no method named "${n}"`);s[n]()}else i.interval&&i.ride&&(s.pause(),s.cycle())}static jqueryinterface(t){return this.each((function(){et.carouselinterface(this,t)}))}static dataapiclickhandler(t){const e=a(this);if(!e||!e.classlist.contains("carousel"))return;const s={...v.getdataattributes(e),...v.getdataattributes(this)},i=this.getattribute("data-bs-slide-to");i&&(s.interval=!1),et.carouselinterface(e,s),i&&et.getinstance(e).to(i),t.preventdefault()}}b.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",et.dataapiclickhandler),b.on(window,"load.bs.carousel.data-api",()=>{const t=i.find('[data-bs-ride="carousel"]');for(let e=0,s=t.length;et===this._element);null!==n&&o.length&&(this._selector=n,this._triggerarray.push(e))}this._parent=this._config.parent?this._getparent():null,this._config.parent||this._addariaandcollapsedclass(this._element,this._triggerarray),this._config.toggle&&this.toggle()}static get default(){return st}static get name(){return"collapse"}toggle(){this._element.classlist.contains("show")?this.hide():this.show()}show(){if(this._istransitioning||this._element.classlist.contains("show"))return;let t,e;this._parent&&(t=i.find(".show, .collapsing",this._parent).filter(t=>"string"==typeof this._config.parent?t.getattribute("data-bs-parent")===this._config.parent:t.classlist.contains("collapse")),0===t.length&&(t=null));const s=i.findone(this._selector);if(t){const i=t.find(t=>s!==t);if(e=i?nt.getinstance(i):null,e&&e._istransitioning)return}if(b.trigger(this._element,"show.bs.collapse").defaultprevented)return;t&&t.foreach(t=>{s!==t&&nt.collapseinterface(t,"hide"),e||w.set(t,"bs.collapse",null)});const n=this._getdimension();this._element.classlist.remove("collapse"),this._element.classlist.add("collapsing"),this._element.style[n]=0,this._triggerarray.length&&this._triggerarray.foreach(t=>{t.classlist.remove("collapsed"),t.setattribute("aria-expanded",!0)}),this.settransitioning(!0);const o="scroll"+(n[0].touppercase()+n.slice(1));this._queuecallback(()=>{this._element.classlist.remove("collapsing"),this._element.classlist.add("collapse","show"),this._element.style[n]="",this.settransitioning(!1),b.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[n]=this._element[o]+"px"}hide(){if(this._istransitioning||!this._element.classlist.contains("show"))return;if(b.trigger(this._element,"hide.bs.collapse").defaultprevented)return;const t=this._getdimension();this._element.style[t]=this._element.getboundingclientrect()[t]+"px",m(this._element),this._element.classlist.add("collapsing"),this._element.classlist.remove("collapse","show");const e=this._triggerarray.length;if(e>0)for(let t=0;t{this.settransitioning(!1),this._element.classlist.remove("collapsing"),this._element.classlist.add("collapse"),b.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}settransitioning(t){this._istransitioning=t}_getconfig(t){return(t={...st,...t}).toggle=boolean(t.toggle),d("collapse",t,it),t}_getdimension(){return this._element.classlist.contains("width")?"width":"height"}_getparent(){let{parent:t}=this._config;t=h(t);const e=`[data-bs-toggle="collapse"][data-bs-parent="${t}"]`;return i.find(e,t).foreach(t=>{const e=a(t);this._addariaandcollapsedclass(e,[t])}),t}_addariaandcollapsedclass(t,e){if(!t||!e.length)return;const s=t.classlist.contains("show");e.foreach(t=>{s?t.classlist.remove("collapsed"):t.classlist.add("collapsed"),t.setattribute("aria-expanded",s)})}static collapseinterface(t,e){let s=nt.getinstance(t);const i={...st,...v.getdataattributes(t),..."object"==typeof e&&e?e:{}};if(!s&&i.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),s||(s=new nt(t,i)),"string"==typeof e){if(void 0===s[e])throw new typeerror(`no method named "${e}"`);s[e]()}}static jqueryinterface(t){return this.each((function(){nt.collapseinterface(this,t)}))}}b.on(document,"click.bs.collapse.data-api",'[data-bs-toggle="collapse"]',(function(t){("a"===t.target.tagname||t.delegatetarget&&"a"===t.delegatetarget.tagname)&&t.preventdefault();const e=v.getdataattributes(this),s=r(this);i.find(s).foreach(t=>{const s=nt.getinstance(t);let i;s?(null===s._parent&&"string"==typeof e.parent&&(s._config.parent=e.parent,s._parent=s._getparent()),i="toggle"):i=e,nt.collapseinterface(t,i)})})),y(nt);const ot=new regexp("arrowup|arrowdown|escape"),rt=v()?"top-end":"top-start",at=v()?"top-start":"top-end",lt=v()?"bottom-end":"bottom-start",ct=v()?"bottom-start":"bottom-end",ht=v()?"left-start":"right-start",dt=v()?"right-start":"left-start",ut={offset:[0,2],boundary:"clippingparents",reference:"toggle",display:"dynamic",popperconfig:null,autoclose:!0},gt={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperconfig:"(null|object|function)",autoclose:"(boolean|string)"};class pt extends q{constructor(t,e){super(t),this._popper=null,this._config=this._getconfig(e),this._menu=this._getmenuelement(),this._innavbar=this._detectnavbar(),this._addeventlisteners()}static get default(){return ut}static get defaulttype(){return gt}static get name(){return"dropdown"}toggle(){g(this._element)||(this._element.classlist.contains("show")?this.hide():this.show())}show(){if(g(this._element)||this._menu.classlist.contains("show"))return;const t=pt.getparentfromelement(this._element),e={relatedtarget:this._element};if(!b.trigger(this._element,"show.bs.dropdown",e).defaultprevented){if(this._innavbar)v.setdataattribute(this._menu,"popper","none");else{if(void 0===s)throw new typeerror("bootstrap's dropdowns require popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:c(this._config.reference)?e=h(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getpopperconfig(),n=i.modifiers.find(t=>"applystyles"===t.name&&!1===t.enabled);this._popper=s.createpopper(e,this._menu,i),n&&v.setdataattribute(this._menu,"popper","static")}"ontouchstart"in document.documentelement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).foreach(t=>b.on(t,"mouseover",f)),this._element.focus(),this._element.setattribute("aria-expanded",!0),this._menu.classlist.toggle("show"),this._element.classlist.toggle("show"),b.trigger(this._element,"shown.bs.dropdown",e)}}hide(){if(g(this._element)||!this._menu.classlist.contains("show"))return;const t={relatedtarget:this._element};this._completehide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._innavbar=this._detectnavbar(),this._popper&&this._popper.update()}_addeventlisteners(){b.on(this._element,"click.bs.dropdown",t=>{t.preventdefault(),this.toggle()})}_completehide(t){b.trigger(this._element,"hide.bs.dropdown",t).defaultprevented||("ontouchstart"in document.documentelement&&[].concat(...document.body.children).foreach(t=>b.off(t,"mouseover",f)),this._popper&&this._popper.destroy(),this._menu.classlist.remove("show"),this._element.classlist.remove("show"),this._element.setattribute("aria-expanded","false"),v.removedataattribute(this._menu,"popper"),b.trigger(this._element,"hidden.bs.dropdown",t))}_getconfig(t){if(t={...this.constructor.default,...v.getdataattributes(this._element),...t},d("dropdown",t,this.constructor.defaulttype),"object"==typeof t.reference&&!c(t.reference)&&"function"!=typeof t.reference.getboundingclientrect)throw new typeerror("dropdown".touppercase()+': option "reference" provided type "object" without a required "getboundingclientrect" method.');return t}_getmenuelement(){return i.next(this._element,".dropdown-menu")[0]}_getplacement(){const t=this._element.parentnode;if(t.classlist.contains("dropend"))return ht;if(t.classlist.contains("dropstart"))return dt;const e="end"===getcomputedstyle(this._menu).getpropertyvalue("--bs-position").trim();return t.classlist.contains("dropup")?e?at:rt:e?ct:lt}_detectnavbar(){return null!==this._element.closest(".navbar")}_getoffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>number.parseint(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getpopperconfig(){const t={placement:this._getplacement(),modifiers:[{name:"preventoverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getoffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applystyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperconfig?this._config.popperconfig(t):this._config.popperconfig}}_selectmenuitem({key:t,target:e}){const s=i.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(u);s.length&&a(s,e,"arrowdown"===t,!s.includes(e)).focus()}static dropdowninterface(t,e){const s=pt.getorcreateinstance(t,e);if("string"==typeof e){if(void 0===s[e])throw new typeerror(`no method named "${e}"`);s[e]()}}static jqueryinterface(t){return this.each((function(){pt.dropdowninterface(this,t)}))}static clearmenus(t){if(t&&(2===t.button||"keyup"===t.type&&"tab"!==t.key))return;const e=i.find('[data-bs-toggle="dropdown"]');for(let s=0,i=e.length;sthis.matches('[data-bs-toggle="dropdown"]')?this:i.prev(this,'[data-bs-toggle="dropdown"]')[0];return"escape"===t.key?(s().focus(),void pt.clearmenus()):"arrowup"===t.key||"arrowdown"===t.key?(e||s().click(),void pt.getinstance(s())._selectmenuitem(t)):void(e&&"space"!==t.key||pt.clearmenus())}}b.on(document,"keydown.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',pt.dataapikeydownhandler),b.on(document,"keydown.bs.dropdown.data-api",".dropdown-menu",pt.dataapikeydownhandler),b.on(document,"click.bs.dropdown.data-api",pt.clearmenus),b.on(document,"keyup.bs.dropdown.data-api",pt.clearmenus),b.on(document,"click.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',(function(t){t.preventdefault(),pt.dropdowninterface(this)})),y(pt);class ft{constructor(){this._element=document.body}getwidth(){const t=document.documentelement.clientwidth;return math.abs(window.innerwidth-t)}hide(){const t=this.getwidth();this._disableoverflow(),this._setelementattributes(this._element,"paddingright",e=>e+t),this._setelementattributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingright",e=>e+t),this._setelementattributes(".sticky-top","marginright",e=>e-t)}_disableoverflow(){this._saveinitialattribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setelementattributes(t,e,s){const i=this.getwidth();this._applymanipulationcallback(t,t=>{if(t!==this._element&&window.innerwidth>t.clientwidth+i)return;this._saveinitialattribute(t,e);const n=window.getcomputedstyle(t)[e];t.style[e]=s(number.parsefloat(n))+"px"})}reset(){this._resetelementattributes(this._element,"overflow"),this._resetelementattributes(this._element,"paddingright"),this._resetelementattributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingright"),this._resetelementattributes(".sticky-top","marginright")}_saveinitialattribute(t,e){const s=t.style[e];s&&v.setdataattribute(t,e,s)}_resetelementattributes(t,e){this._applymanipulationcallback(t,t=>{const s=v.getdataattribute(t,e);void 0===s?t.style.removeproperty(e):(v.removedataattribute(t,e),t.style[e]=s)})}_applymanipulationcallback(t,e){c(t)?e(t):i.find(t,this._element).foreach(e)}isoverflowing(){return this.getwidth()>0}}const mt={isvisible:!0,isanimated:!1,rootelement:"body",clickcallback:null},_t={isvisible:"boolean",isanimated:"boolean",rootelement:"(element|string)",clickcallback:"(function|null)"};class bt{constructor(t){this._config=this._getconfig(t),this._isappended=!1,this._element=null}show(t){this._config.isvisible?(this._append(),this._config.isanimated&&m(this._getelement()),this._getelement().classlist.add("show"),this._emulateanimation(()=>{w(t)})):w(t)}hide(t){this._config.isvisible?(this._getelement().classlist.remove("show"),this._emulateanimation(()=>{this.dispose(),w(t)})):w(t)}_getelement(){if(!this._element){const t=document.createelement("div");t.classname="modal-backdrop",this._config.isanimated&&t.classlist.add("fade"),this._element=t}return this._element}_getconfig(t){return(t={...mt,..."object"==typeof t?t:{}}).rootelement=h(t.rootelement),d("backdrop",t,_t),t}_append(){this._isappended||(this._config.rootelement.appendchild(this._getelement()),b.on(this._getelement(),"mousedown.bs.backdrop",()=>{w(this._config.clickcallback)}),this._isappended=!0)}dispose(){this._isappended&&(b.off(this._element,"mousedown.bs.backdrop"),this._element.remove(),this._isappended=!1)}_emulateanimation(t){e(t,this._getelement(),this._config.isanimated)}}const vt={backdrop:!0,keyboard:!0,focus:!0},yt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"};class wt extends q{constructor(t,e){super(t),this._config=this._getconfig(e),this._dialog=i.findone(".modal-dialog",this._element),this._backdrop=this._initializebackdrop(),this._isshown=!1,this._ignorebackdropclick=!1,this._istransitioning=!1,this._scrollbar=new ft}static get default(){return vt}static get name(){return"modal"}toggle(t){return this._isshown?this.hide():this.show(t)}show(t){this._isshown||this._istransitioning||b.trigger(this._element,"show.bs.modal",{relatedtarget:t}).defaultprevented||(this._isshown=!0,this._isanimated()&&(this._istransitioning=!0),this._scrollbar.hide(),document.body.classlist.add("modal-open"),this._adjustdialog(),this._setescapeevent(),this._setresizeevent(),b.on(this._element,"click.dismiss.bs.modal",'[data-bs-dismiss="modal"]',t=>this.hide(t)),b.on(this._dialog,"mousedown.dismiss.bs.modal",()=>{b.one(this._element,"mouseup.dismiss.bs.modal",t=>{t.target===this._element&&(this._ignorebackdropclick=!0)})}),this._showbackdrop(()=>this._showelement(t)))}hide(t){if(t&&["a","area"].includes(t.target.tagname)&&t.preventdefault(),!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(),b.off(document,"focusin.bs.modal"),this._element.classlist.remove("show"),b.off(this._element,"click.dismiss.bs.modal"),b.off(this._dialog,"mousedown.dismiss.bs.modal"),this._queuecallback(()=>this._hidemodal(),this._element,e)}dispose(){[window,this._dialog].foreach(t=>b.off(t,".bs.modal")),this._backdrop.dispose(),super.dispose(),b.off(document,"focusin.bs.modal")}handleupdate(){this._adjustdialog()}_initializebackdrop(){return new bt({isvisible:boolean(this._config.backdrop),isanimated:this._isanimated()})}_getconfig(t){return t={...vt,...v.getdataattributes(this._element),..."object"==typeof t?t:{}},d("modal",t,yt),t}_showelement(t){const e=this._isanimated(),s=i.findone(".modal-body",this._dialog);this._element.parentnode&&this._element.parentnode.nodetype===node.element_node||document.body.appendchild(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,s&&(s.scrolltop=0),e&&m(this._element),this._element.classlist.add("show"),this._config.focus&&this._enforcefocus(),this._queuecallback(()=>{this._config.focus&&this._element.focus(),this._istransitioning=!1,b.trigger(this._element,"shown.bs.modal",{relatedtarget:t})},this._dialog,e)}_enforcefocus(){b.off(document,"focusin.bs.modal"),b.on(document,"focusin.bs.modal",t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()})}_setescapeevent(){this._isshown?b.on(this._element,"keydown.dismiss.bs.modal",t=>{this._config.keyboard&&"escape"===t.key?(t.preventdefault(),this.hide()):this._config.keyboard||"escape"!==t.key||this._triggerbackdroptransition()}):b.off(this._element,"keydown.dismiss.bs.modal")}_setresizeevent(){this._isshown?b.on(window,"resize.bs.modal",()=>this._adjustdialog()):b.off(window,"resize.bs.modal")}_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("modal-open"),this._resetadjustments(),this._scrollbar.reset(),b.trigger(this._element,"hidden.bs.modal")})}_showbackdrop(t){b.on(this._element,"click.dismiss.bs.modal",t=>{this._ignorebackdropclick?this._ignorebackdropclick=!1:t.target===t.currenttarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerbackdroptransition())}),this._backdrop.show(t)}_isanimated(){return this._element.classlist.contains("fade")}_triggerbackdroptransition(){if(b.trigger(this._element,"hideprevented.bs.modal").defaultprevented)return;const{classlist:t,scrollheight:e,style:s}=this._element,i=e>document.documentelement.clientheight;!i&&"hidden"===s.overflowy||t.contains("modal-static")||(i||(s.overflowy="hidden"),t.add("modal-static"),this._queuecallback(()=>{t.remove("modal-static"),i||this._queuecallback(()=>{s.overflowy=""},this._dialog)},this._dialog),this._element.focus())}_adjustdialog(){const t=this._element.scrollheight>document.documentelement.clientheight,e=this._scrollbar.getwidth(),s=e>0;(!s&&t&&!v()||s&&!t&&v())&&(this._element.style.paddingleft=e+"px"),(s&&!t&&!v()||!s&&t&&v())&&(this._element.style.paddingright=e+"px")}_resetadjustments(){this._element.style.paddingleft="",this._element.style.paddingright=""}static jqueryinterface(t,e){return this.each((function(){const s=wt.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===s[t])throw new typeerror(`no method named "${t}"`);s[t](e)}}))}}b.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=a(this);["a","area"].includes(this.tagname)&&t.preventdefault(),b.one(e,"show.bs.modal",t=>{t.defaultprevented||b.one(e,"hidden.bs.modal",()=>{u(this)&&this.focus()})}),wt.getorcreateinstance(e).toggle(this)})),y(wt);const et={backdrop:!0,keyboard:!0,scroll:!1},at={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"};class tt extends q{constructor(t,e){super(t),this._config=this._getconfig(e),this._isshown=!1,this._backdrop=this._initializebackdrop(),this._addeventlisteners()}static get name(){return"offcanvas"}static get default(){return et}toggle(t){return this._isshown?this.hide():this.show(t)}show(t){this._isshown||b.trigger(this._element,"show.bs.offcanvas",{relatedtarget:t}).defaultprevented||(this._isshown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||((new ft).hide(),this._enforcefocusonelement(this._element)),this._element.removeattribute("aria-hidden"),this._element.setattribute("aria-modal",!0),this._element.setattribute("role","dialog"),this._element.classlist.add("show"),this._queuecallback(()=>{b.trigger(this._element,"shown.bs.offcanvas",{relatedtarget:t})},this._element,!0))}hide(){this._isshown&&(b.trigger(this._element,"hide.bs.offcanvas").defaultprevented||(b.off(document,"focusin.bs.offcanvas"),this._element.blur(),this._isshown=!1,this._element.classlist.remove("show"),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 ft).reset(),b.trigger(this._element,"hidden.bs.offcanvas")},this._element,!0)))}dispose(){this._backdrop.dispose(),super.dispose(),b.off(document,"focusin.bs.offcanvas")}_getconfig(t){return t={...et,...v.getdataattributes(this._element),..."object"==typeof t?t:{}},d("offcanvas",t,at),t}_initializebackdrop(){return new bt({isvisible:this._config.backdrop,isanimated:!0,rootelement:this._element.parentnode,clickcallback:()=>this.hide()})}_enforcefocusonelement(t){b.off(document,"focusin.bs.offcanvas"),b.on(document,"focusin.bs.offcanvas",e=>{document===e.target||t===e.target||t.contains(e.target)||t.focus()}),t.focus()}_addeventlisteners(){b.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',()=>this.hide()),b.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{this._config.keyboard&&"escape"===t.key&&this.hide()})}static jqueryinterface(t){return this.each((function(){const e=tt.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}b.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=a(this);if(["a","area"].includes(this.tagname)&&t.preventdefault(),g(this))return;b.one(e,"hidden.bs.offcanvas",()=>{u(this)&&this.focus()});const s=i.findone(".offcanvas.show");s&&s!==e&&tt.getinstance(s).hide(),tt.getorcreateinstance(e).toggle(this)})),b.on(window,"load.bs.offcanvas.data-api",()=>i.find(".offcanvas.show").foreach(t=>tt.getorcreateinstance(t).show())),y(tt);const ct=new set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),kt=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,lt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,ot=(t,e)=>{const s=t.nodename.tolowercase();if(e.includes(s))return!ct.has(s)||boolean(kt.test(t.nodevalue)||lt.test(t.nodevalue));const i=e.filter(t=>t instanceof regexp);for(let t=0,e=i.length;t{ot(t,a)||s.removeattribute(t.nodename)})}return i.body.innerhtml}const it=new regexp("(^|\\s)bs-tooltip\\s+","g"),nt=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:v()?"left":"right",bottom:"bottom",left:v()?"right":"left"},mt={animation:!0,template:'',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:{"*":["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:[]},popperconfig:null},pt={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"};class jt extends q{constructor(t,e){if(void 0===s)throw new typeerror("bootstrap's tooltips require popper (https://popper.js.org)");super(t),this._isenabled=!0,this._timeout=0,this._hoverstate="",this._activetrigger={},this._popper=null,this._config=this._getconfig(e),this.tip=null,this._setlisteners()}static get default(){return mt}static get name(){return"tooltip"}static get event(){return pt}static get defaulttype(){return st}enable(){this._isenabled=!0}disable(){this._isenabled=!1}toggleenabled(){this._isenabled=!this._isenabled}toggle(t){if(this._isenabled)if(t){const e=this._initializeondelegatedtarget(t);e._activetrigger.click=!e._activetrigger.click,e._iswithactivetrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.gettipelement().classlist.contains("show"))return void this._leave(null,this);this._enter(null,this)}}dispose(){cleartimeout(this._timeout),b.off(this._element.closest(".modal"),"hide.bs.modal",this._hidemodalhandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),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 t=b.trigger(this._element,this.constructor.event.show),e=p(this._element),i=null===e?this._element.ownerdocument.documentelement.contains(this._element):e.contains(this._element);if(t.defaultprevented||!i)return;const o=this.gettipelement(),r=n(this.constructor.name);o.setattribute("id",r),this._element.setattribute("aria-describedby",r),this.setcontent(),this._config.animation&&o.classlist.add("fade");const a="function"==typeof this._config.placement?this._config.placement.call(this,o,this._element):this._config.placement,l=this._getattachment(a);this._addattachmentclass(l);const{container:c}=this._config;w.set(o,this.constructor.data_key,this),this._element.ownerdocument.documentelement.contains(this.tip)||(c.appendchild(o),b.trigger(this._element,this.constructor.event.inserted)),this._popper?this._popper.update():this._popper=s.createpopper(this._element,o,this._getpopperconfig(l)),o.classlist.add("show");const h="function"==typeof this._config.customclass?this._config.customclass():this._config.customclass;h&&o.classlist.add(...h.split(" ")),"ontouchstart"in document.documentelement&&[].concat(...document.body.children).foreach(t=>{b.on(t,"mouseover",f)});const d=this.tip.classlist.contains("fade");this._queuecallback(()=>{const t=this._hoverstate;this._hoverstate=null,b.trigger(this._element,this.constructor.event.shown),"out"===t&&this._leave(null,this)},this.tip,d)}hide(){if(!this._popper)return;const t=this.gettipelement();if(b.trigger(this._element,this.constructor.event.hide).defaultprevented)return;t.classlist.remove("show"),"ontouchstart"in document.documentelement&&[].concat(...document.body.children).foreach(t=>b.off(t,"mouseover",f)),this._activetrigger.click=!1,this._activetrigger.focus=!1,this._activetrigger.hover=!1;const e=this.tip.classlist.contains("fade");this._queuecallback(()=>{this._iswithactivetrigger()||("show"!==this._hoverstate&&t.remove(),this._cleantipclass(),this._element.removeattribute("aria-describedby"),b.trigger(this._element,this.constructor.event.hidden),this._popper&&(this._popper.destroy(),this._popper=null))},this.tip,e),this._hoverstate=""}update(){null!==this._popper&&this._popper.update()}iswithcontent(){return boolean(this.gettitle())}gettipelement(){if(this.tip)return this.tip;const t=document.createelement("div");return t.innerhtml=this._config.template,this.tip=t.children[0],this.tip}setcontent(){const t=this.gettipelement();this.setelementcontent(i.findone(".tooltip-inner",t),this.gettitle()),t.classlist.remove("fade","show")}setelementcontent(t,e){if(null!==t)return c(e)?(e=h(e),void(this._config.html?e.parentnode!==t&&(t.innerhtml="",t.appendchild(e)):t.textcontent=e.textcontent)):void(this._config.html?(this._config.sanitize&&(e=dt(e,this._config.allowlist,this._config.sanitizefn)),t.innerhtml=e):t.textcontent=e)}gettitle(){let t=this._element.getattribute("data-bs-original-title");return t||(t="function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),t}updateattachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeondelegatedtarget(t,e){const s=this.constructor.data_key;return(e=e||w.get(t.delegatetarget,s))||(e=new this.constructor(t.delegatetarget,this._getdelegateconfig()),w.set(t.delegatetarget,s,e)),e}_getoffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>number.parseint(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getpopperconfig(t){const e={placement:t,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:t=>this._handlepopperplacementchange(t)}],onfirstupdate:t=>{t.options.placement!==t.placement&&this._handlepopperplacementchange(t)}};return{...e,..."function"==typeof this._config.popperconfig?this._config.popperconfig(e):this._config.popperconfig}}_addattachmentclass(t){this.gettipelement().classlist.add("bs-tooltip-"+this.updateattachment(t))}_getattachment(t){return xt[t.touppercase()]}_setlisteners(){this._config.trigger.split(" ").foreach(t=>{if("click"===t)b.on(this._element,this.constructor.event.click,this._config.selector,t=>this.toggle(t));else if("manual"!==t){const e="hover"===t?this.constructor.event.mouseenter:this.constructor.event.focusin,s="hover"===t?this.constructor.event.mouseleave:this.constructor.event.focusout;b.on(this._element,e,this._config.selector,t=>this._enter(t)),b.on(this._element,s,this._config.selector,t=>this._leave(t))}}),this._hidemodalhandler=()=>{this._element&&this.hide()},b.on(this._element.closest(".modal"),"hide.bs.modal",this._hidemodalhandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixtitle()}_fixtitle(){const t=this._element.getattribute("title"),e=typeof this._element.getattribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setattribute("data-bs-original-title",t||""),!t||this._element.getattribute("aria-label")||this._element.textcontent||this._element.setattribute("aria-label",t),this._element.setattribute("title",""))}_enter(t,e){e=this._initializeondelegatedtarget(t,e),t&&(e._activetrigger["focusin"===t.type?"focus":"hover"]=!0),e.gettipelement().classlist.contains("show")||"show"===e._hoverstate?e._hoverstate="show":(cleartimeout(e._timeout),e._hoverstate="show",e._config.delay&&e._config.delay.show?e._timeout=settimeout(()=>{"show"===e._hoverstate&&e.show()},e._config.delay.show):e.show())}_leave(t,e){e=this._initializeondelegatedtarget(t,e),t&&(e._activetrigger["focusout"===t.type?"focus":"hover"]=e._element.contains(t.relatedtarget)),e._iswithactivetrigger()||(cleartimeout(e._timeout),e._hoverstate="out",e._config.delay&&e._config.delay.hide?e._timeout=settimeout(()=>{"out"===e._hoverstate&&e.hide()},e._config.delay.hide):e.hide())}_iswithactivetrigger(){for(const t in this._activetrigger)if(this._activetrigger[t])return!0;return!1}_getconfig(t){const e=v.getdataattributes(this._element);return object.keys(e).foreach(t=>{nt.has(t)&&delete e[t]}),(t={...this.constructor.default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:h(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.tostring()),"number"==typeof t.content&&(t.content=t.content.tostring()),d("tooltip",t,this.constructor.defaulttype),t.sanitize&&(t.template=dt(t.template,t.allowlist,t.sanitizefn)),t}_getdelegateconfig(){const t={};if(this._config)for(const e in this._config)this.constructor.default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleantipclass(){const t=this.gettipelement(),e=t.getattribute("class").match(it);null!==e&&e.length>0&&e.map(t=>t.trim()).foreach(e=>t.classlist.remove(e))}_handlepopperplacementchange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleantipclass(),this._addattachmentclass(this._getattachment(e.placement)))}static jqueryinterface(t){return this.each((function(){const e=jt.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}y(jt);const ht=new regexp("(^|\\s)bs-popover\\s+","g"),rt={...jt.default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},bt={...jt.defaulttype,content:"(string|element|function)"},$t={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 wt extends jt{static get default(){return rt}static get name(){return"popover"}static get event(){return $t}static get defaulttype(){return bt}iswithcontent(){return this.gettitle()||this._getcontent()}gettipelement(){return this.tip||(this.tip=super.gettipelement(),this.gettitle()||i.findone(".popover-header",this.tip).remove(),this._getcontent()||i.findone(".popover-body",this.tip).remove()),this.tip}setcontent(){const t=this.gettipelement();this.setelementcontent(i.findone(".popover-header",t),this.gettitle());let e=this._getcontent();"function"==typeof e&&(e=e.call(this._element)),this.setelementcontent(i.findone(".popover-body",t),e),t.classlist.remove("fade","show")}_addattachmentclass(t){this.gettipelement().classlist.add("bs-popover-"+this.updateattachment(t))}_getcontent(){return this._element.getattribute("data-bs-content")||this._config.content}_cleantipclass(){const t=this.gettipelement(),e=t.getattribute("class").match(ht);null!==e&&e.length>0&&e.map(t=>t.trim()).foreach(e=>t.classlist.remove(e))}static jqueryinterface(t){return this.each((function(){const e=wt.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}y(wt);const qt={offset:10,method:"auto",target:""},zt={offset:"number",method:"string",target:"(string|element)"};class ft extends q{constructor(t,e){super(t),this._scrollelement="body"===this._element.tagname?window:this._element,this._config=this._getconfig(e),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,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 qt}static get name(){return"scrollspy"}refresh(){const t=this._scrollelement===this._scrollelement.window?"offset":"position",e="auto"===this._config.method?t:this._config.method,s="position"===e?this._getscrolltop():0;this._offsets=[],this._targets=[],this._scrollheight=this._getscrollheight(),i.find(this._selector).map(t=>{const n=r(t),o=n?i.findone(n):null;if(o){const t=o.getboundingclientrect();if(t.width||t.height)return[v[e](o).top+s,n]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).foreach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){b.off(this._scrollelement,".bs.scrollspy"),super.dispose()}_getconfig(t){if("string"!=typeof(t={...qt,...v.getdataattributes(this._element),..."object"==typeof t&&t?t:{}}).target&&c(t.target)){let{id:e}=t.target;e||(e=n("scrollspy"),t.target.id=e),t.target="#"+e}return d("scrollspy",t,zt),t}_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 t=this._getscrolltop()+this._config.offset,e=this._getscrollheight(),s=this._config.offset+e-this._getoffsetheight();if(this._scrollheight!==e&&this.refresh(),t>=s){const t=this._targets[this._targets.length-1];this._activetarget!==t&&this._activate(t)}else{if(this._activetarget&&t0)return this._activetarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activetarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t`${e}[data-bs-target="${t}"],${e}[href="${t}"]`),s=i.findone(e.join(","));s.classlist.contains("dropdown-item")?(i.findone(".dropdown-toggle",s.closest(".dropdown")).classlist.add("active"),s.classlist.add("active")):(s.classlist.add("active"),i.parents(s,".nav, .list-group").foreach(t=>{i.prev(t,".nav-link, .list-group-item").foreach(t=>t.classlist.add("active")),i.prev(t,".nav-item").foreach(t=>{i.children(t,".nav-link").foreach(t=>t.classlist.add("active"))})})),b.trigger(this._scrollelement,"activate.bs.scrollspy",{relatedtarget:t})}_clear(){i.find(this._selector).filter(t=>t.classlist.contains("active")).foreach(t=>t.classlist.remove("active"))}static jqueryinterface(t){return this.each((function(){const e=ft.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}b.on(window,"load.bs.scrollspy.data-api",()=>{i.find('[data-bs-spy="scroll"]').foreach(t=>new ft(t))}),y(ft);class ut extends q{static get name(){return"tab"}show(){if(this._element.parentnode&&this._element.parentnode.nodetype===node.element_node&&this._element.classlist.contains("active"))return;let t;const e=a(this._element),s=this._element.closest(".nav, .list-group");if(s){const e="ul"===s.nodename||"ol"===s.nodename?":scope > li > .active":".active";t=i.find(e,s),t=t[t.length-1]}const n=t?b.trigger(t,"hide.bs.tab",{relatedtarget:this._element}):null;if(b.trigger(this._element,"show.bs.tab",{relatedtarget:t}).defaultprevented||null!==n&&n.defaultprevented)return;this._activate(this._element,s);const o=()=>{b.trigger(t,"hidden.bs.tab",{relatedtarget:this._element}),b.trigger(this._element,"shown.bs.tab",{relatedtarget:t})};e?this._activate(e,e.parentnode,o):o()}_activate(t,e,s){const n=(!e||"ul"!==e.nodename&&"ol"!==e.nodename?i.children(e,".active"):i.find(":scope > li > .active",e))[0],o=s&&n&&n.classlist.contains("fade"),r=()=>this._transitioncomplete(t,n,s);n&&o?(n.classlist.remove("show"),this._queuecallback(r,t,!0)):r()}_transitioncomplete(t,e,s){if(e){e.classlist.remove("active");const t=i.findone(":scope > .dropdown-menu .active",e.parentnode);t&&t.classlist.remove("active"),"tab"===e.getattribute("role")&&e.setattribute("aria-selected",!1)}t.classlist.add("active"),"tab"===t.getattribute("role")&&t.setattribute("aria-selected",!0),m(t),t.classlist.contains("fade")&&t.classlist.add("show");let n=t.parentnode;if(n&&"li"===n.nodename&&(n=n.parentnode),n&&n.classlist.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&i.find(".dropdown-toggle",e).foreach(t=>t.classlist.add("active")),t.setattribute("aria-expanded",!0)}s&&s()}static jqueryinterface(t){return this.each((function(){const e=ut.getorcreateinstance(this);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}b.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["a","area"].includes(this.tagname)&&t.preventdefault(),g(this)||ut.getorcreateinstance(this).show()})),y(ut);const kt={animation:"boolean",autohide:"boolean",delay:"number"},vt={animation:!0,autohide:!0,delay:5e3};class qt extends q{constructor(t,e){super(t),this._config=this._getconfig(e),this._timeout=null,this._hasmouseinteraction=!1,this._haskeyboardinteraction=!1,this._setlisteners()}static get defaulttype(){return kt}static get default(){return vt}static get name(){return"toast"}show(){b.trigger(this._element,"show.bs.toast").defaultprevented||(this._cleartimeout(),this._config.animation&&this._element.classlist.add("fade"),this._element.classlist.remove("hide"),m(this._element),this._element.classlist.add("showing"),this._queuecallback(()=>{this._element.classlist.remove("showing"),this._element.classlist.add("show"),b.trigger(this._element,"shown.bs.toast"),this._maybeschedulehide()},this._element,this._config.animation))}hide(){this._element.classlist.contains("show")&&(b.trigger(this._element,"hide.bs.toast").defaultprevented||(this._element.classlist.remove("show"),this._queuecallback(()=>{this._element.classlist.add("hide"),b.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._cleartimeout(),this._element.classlist.contains("show")&&this._element.classlist.remove("show"),super.dispose()}_getconfig(t){return t={...vt,...v.getdataattributes(this._element),..."object"==typeof t&&t?t:{}},d("toast",t,this.constructor.defaulttype),t}_maybeschedulehide(){this._config.autohide&&(this._hasmouseinteraction||this._haskeyboardinteraction||(this._timeout=settimeout(()=>{this.hide()},this._config.delay)))}_oninteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasmouseinteraction=e;break;case"focusin":case"focusout":this._haskeyboardinteraction=e}if(e)return void this._cleartimeout();const s=t.relatedtarget;this._element===s||this._element.contains(s)||this._maybeschedulehide()}_setlisteners(){b.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',()=>this.hide()),b.on(this._element,"mouseover.bs.toast",t=>this._oninteraction(t,!0)),b.on(this._element,"mouseout.bs.toast",t=>this._oninteraction(t,!1)),b.on(this._element,"focusin.bs.toast",t=>this._oninteraction(t,!0)),b.on(this._element,"focusout.bs.toast",t=>this._oninteraction(t,!1))}_cleartimeout(){cleartimeout(this._timeout),this._timeout=null}static jqueryinterface(t){return this.each((function(){const e=qt.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}return y(qt),{alert:z,button:f,carousel:et,collapse:nt,dropdown:pt,modal:wt,offcanvas:tt,popover:wt,scrollspy:ft,tab:ut,toast:qt,tooltip:jt}})); //# sourcemappingurl=bootstrap.min.js.map