/*! * bootstrap v5.0.0-beta3 (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=t=>{do{t+=math.floor(1e6*math.random())}while(document.getelementbyid(t));return t},n=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},o=t=>{const e=n(t);return e&&document.queryselector(e)?e:null},r=t=>{const e=n(t);return e?document.queryselector(e):null},a=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},l=t=>{t.dispatchevent(new event("transitionend"))},c=t=>(t[0]||t).nodetype,h=(t,e)=>{let s=!1;const i=e+5;t.addeventlistener("transitionend",(function e(){s=!0,t.removeeventlistener("transitionend",e)})),settimeout(()=>{s||l(t)},i)},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=>{if(!t)return!1;if(t.style&&t.parentnode&&t.parentnode.style){const e=getcomputedstyle(t),s=getcomputedstyle(t.parentnode);return"none"!==e.display&&"none"!==s.display&&"hidden"!==e.visibility}return!1},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")),f=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?f(t.parentnode):null},p=()=>function(){},m=t=>t.offsetheight,_=()=>{const{jquery:t}=window;return t&&!document.body.hasattribute("data-bs-no-jquery")?t:null},b=()=>"rtl"===document.documentelement.dir,v=(t,e)=>{var s;s=()=>{const s=_();if(s){const i=s.fn[t];s.fn[t]=e.jqueryinterface,s.fn[t].constructor=e,s.fn[t].noconflict=()=>(s.fn[t]=i,e.jqueryinterface)}},"loading"===document.readystate?document.addeventlistener("domcontentloaded",s):s()},y=new map;var w={set(t,e,s){y.has(t)||y.set(t,new map);const i=y.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)=>y.has(t)&&y.get(t).get(e)||null,remove(t,e){if(!y.has(t))return;const s=y.get(t);s.delete(e),0===s.size&&y.delete(t)}};const e=/[^.]*(?=\..*)\.|.*/,t=/\..*/,a=/::\d+$/,l={};let k=1;const c={mouseenter:"mouseover",mouseleave:"mouseout"},d=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}::${k++}`||t.uidevent||k++}function n(t){const e=s(t);return t.uidevent=e,l[e]=l[e]||{},l[e]}function o(t,e,s=null){const i=object.keys(t);for(let n=0,o=i.length;n{!function(t,e,s,i){const n=e[s]||{};object.keys(n).foreach(o=>{if(o.includes(i)){const i=n[o];j(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(a,"");if(!a||e.includes(i)){const e=h[s];j(t,l,r,e.originalhandler,e.delegationselector)}})},trigger(t,e,s){if("string"!=typeof e||!t)return null;const i=_(),n=e.replace(t,""),o=e!==n,r=d.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}};class m{constructor(t){(t="string"==typeof t?document.queryselector(t):t)&&(this._element=t,w.set(this._element,this.constructor.data_key,this))}dispose(){w.remove(this._element,this.constructor.data_key),this._element=null}static getinstance(t){return w.get(t,this.data_key)}static get version(){return"5.0.0-beta3"}}class h extends m{static get data_key(){return"bs.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 r(t)||t.closest(".alert")}_triggercloseevent(t){return p.trigger(t,"close.bs.alert")}_removeelement(t){if(t.classlist.remove("show"),!t.classlist.contains("fade"))return void this._destroyelement(t);const e=a(t);p.one(t,"transitionend",()=>this._destroyelement(t)),h(t,e)}_destroyelement(t){t.parentnode&&t.parentnode.removechild(t),p.trigger(t,"closed.bs.alert")}static jqueryinterface(t){return this.each((function(){let e=w.get(this,"bs.alert");e||(e=new h(this)),"close"===t&&e[t](this)}))}static handledismiss(t){return function(e){e&&e.preventdefault(),t.close(this)}}}p.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',h.handledismiss(new h)),v("alert",h);class r extends m{static get data_key(){return"bs.button"}toggle(){this._element.setattribute("aria-pressed",this._element.classlist.toggle("active"))}static jqueryinterface(t){return this.each((function(){let e=w.get(this,"bs.button");e||(e=new r(this)),"toggle"===t&&e[t]()}))}}function b(t){return"true"===t||"false"!==t&&(t===number(t).tostring()?number(t):""===t||"null"===t?null:t)}function w(t){return t.replace(/[a-z]/g,t=>"-"+t.tolowercase())}p.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',t=>{t.preventdefault();const e=t.target.closest('[data-bs-toggle="button"]');let s=w.get(e,"bs.button");s||(s=new r(e)),s.toggle()}),v("button",r);const $={setdataattribute(t,e,s){t.setattribute("data-bs-"+w(e),s)},removedataattribute(t,e){t.removeattribute("data-bs-"+w(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]=b(t.dataset[s])}),e},getdataattribute:(t,e)=>b(t.getattribute("data-bs-"+w(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})},u={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[]}},f={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},k={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},z="next",y="prev",q="left",q="right";class x extends m{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=u.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 f}static get data_key(){return"bs.carousel"}next(){this._issliding||this._slide(z)}nextwhenvisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._issliding||this._slide(y)}pause(t){t||(this._ispaused=!0),u.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=u.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 p.one(this._element,"slid.bs.carousel",()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const s=t>e?z:y;this._slide(s,this._items[t])}dispose(){p.off(this._element,".bs.carousel"),this._items=null,this._config=null,this._interval=null,this._ispaused=null,this._issliding=null,this._activeelement=null,this._indicatorselement=null,super.dispose()}_getconfig(t){return t={...f,...t},d("carousel",t,k),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?q:q)}_addeventlisteners(){this._config.keyboard&&p.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(p.on(this._element,"mouseenter.bs.carousel",t=>this.pause(t)),p.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))};u.find(".carousel-item img",this._element).foreach(t=>{p.on(t,"dragstart.bs.carousel",t=>t.preventdefault())}),this._pointerevent?(p.on(this._element,"pointerdown.bs.carousel",e=>t(e)),p.on(this._element,"pointerup.bs.carousel",t=>s(t)),this._element.classlist.add("pointer-event")):(p.on(this._element,"touchstart.bs.carousel",e=>t(e)),p.on(this._element,"touchmove.bs.carousel",t=>e(t)),p.on(this._element,"touchend.bs.carousel",t=>s(t)))}_keydown(t){/input|textarea/i.test(t.target.tagname)||("arrowleft"===t.key?(t.preventdefault(),this._slide(q)):"arrowright"===t.key&&(t.preventdefault(),this._slide(q)))}_getitemindex(t){return this._items=t&&t.parentnode?u.find(".carousel-item",t.parentnode):[],this._items.indexof(t)}_getitembyorder(t,e){const s=t===z,i=t===y,n=this._getitemindex(e),o=this._items.length-1;if((i&&0===n||s&&n===o)&&!this._config.wrap)return e;const r=(n+(i?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerslideevent(t,e){const s=this._getitemindex(t),i=this._getitemindex(u.findone(".active.carousel-item",this._element));return p.trigger(this._element,"slide.bs.carousel",{relatedtarget:t,direction:e,from:i,to:s})}_setactiveindicatorelement(t){if(this._indicatorselement){const e=u.findone(".active",this._indicatorselement);e.classlist.remove("active"),e.removeattribute("aria-current");const s=u.find("[data-bs-target]",this._indicatorselement);for(let e=0;e{o.classlist.remove(d,u),o.classlist.add("active"),i.classlist.remove("active",u,d),this._issliding=!1,settimeout(()=>{p.trigger(this._element,"slid.bs.carousel",{relatedtarget:o,direction:g,from:n,to:r})},0)}),h(i,t)}else i.classlist.remove("active"),o.classlist.add("active"),this._issliding=!1,p.trigger(this._element,"slid.bs.carousel",{relatedtarget:o,direction:g,from:n,to:r});l&&this.cycle()}}_directiontoorder(t){return[q,q].includes(t)?b()?t===q?y:z:t===q?z:y:t}_ordertodirection(t){return[z,y].includes(t)?b()?t===z?q:q:t===z?q:q:t}static carouselinterface(t,e){let s=w.get(t,"bs.carousel"),i={...f,...$.getdataattributes(t)};"object"==typeof e&&(i={...i,...e});const n="string"==typeof e?e:i.slide;if(s||(s=new x(t,i)),"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(){x.carouselinterface(this,t)}))}static dataapiclickhandler(t){const e=r(this);if(!e||!e.classlist.contains("carousel"))return;const s={...$.getdataattributes(e),...$.getdataattributes(this)},i=this.getattribute("data-bs-slide-to");i&&(s.interval=!1),x.carouselinterface(e,s),i&&w.get(e,"bs.carousel").to(i),t.preventdefault()}}p.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",x.dataapiclickhandler),p.on(window,"load.bs.carousel.data-api",()=>{const t=u.find('[data-bs-ride="carousel"]');for(let e=0,s=t.length;et===this._element);null!==i&&n.length&&(this._selector=i,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 v}static get data_key(){return"bs.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=u.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=u.findone(this._selector);if(t){const i=t.find(t=>s!==t);if(e=i?w.get(i,"bs.collapse"):null,e&&e._istransitioning)return}if(p.trigger(this._element,"show.bs.collapse").defaultprevented)return;t&&t.foreach(t=>{s!==t&&z.collapseinterface(t,"hide"),e||w.set(t,"bs.collapse",null)});const i=this._getdimension();this._element.classlist.remove("collapse"),this._element.classlist.add("collapsing"),this._element.style[i]=0,this._triggerarray.length&&this._triggerarray.foreach(t=>{t.classlist.remove("collapsed"),t.setattribute("aria-expanded",!0)}),this.settransitioning(!0);const n="scroll"+(i[0].touppercase()+i.slice(1)),o=a(this._element);p.one(this._element,"transitionend",()=>{this._element.classlist.remove("collapsing"),this._element.classlist.add("collapse","show"),this._element.style[i]="",this.settransitioning(!1),p.trigger(this._element,"shown.bs.collapse")}),h(this._element,o),this._element.style[i]=this._element[n]+"px"}hide(){if(this._istransitioning||!this._element.classlist.contains("show"))return;if(p.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"),p.trigger(this._element,"hidden.bs.collapse")}),h(this._element,s)}settransitioning(t){this._istransitioning=t}dispose(){super.dispose(),this._config=null,this._parent=null,this._triggerarray=null,this._istransitioning=null}_getconfig(t){return(t={...v,...t}).toggle=boolean(t.toggle),d("collapse",t,g),t}_getdimension(){return this._element.classlist.contains("width")?"width":"height"}_getparent(){let{parent:t}=this._config;c(t)?void 0===t.jquery&&void 0===t[0]||(t=t[0]):t=u.findone(t);const e=`[data-bs-toggle="collapse"][data-bs-parent="${t}"]`;return u.find(e,t).foreach(t=>{const e=r(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=w.get(t,"bs.collapse");const i={...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 z(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(){z.collapseinterface(this,t)}))}}p.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=$.getdataattributes(this),s=o(this);u.find(s).foreach(t=>{const s=w.get(t,"bs.collapse");let i;s?(null===s._parent&&"string"==typeof e.parent&&(s._config.parent=e.parent,s._parent=s._getparent()),i="toggle"):i=e,z.collapseinterface(t,i)})})),v("collapse",z);const j=new regexp("arrowup|arrowdown|escape"),tt=b()?"top-end":"top-start",et=b()?"top-start":"top-end",st=b()?"bottom-end":"bottom-start",it=b()?"bottom-start":"bottom-end",nt=b()?"left-start":"right-start",ot=b()?"right-start":"left-start",rt={offset:[0,2],boundary:"clippingparents",reference:"toggle",display:"dynamic",popperconfig:null},at={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperconfig:"(null|object|function)"};class lt extends m{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 rt}static get defaulttype(){return at}static get data_key(){return"bs.dropdown"}toggle(){if(this._element.disabled||this._element.classlist.contains("disabled"))return;const t=this._element.classlist.contains("show");lt.clearmenus(),t||this.show()}show(){if(this._element.disabled||this._element.classlist.contains("disabled")||this._menu.classlist.contains("show"))return;const t=lt.getparentfromelement(this._element),e={relatedtarget:this._element};if(!p.trigger(this._element,"show.bs.dropdown",e).defaultprevented){if(this._innavbar)$.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=this._config.reference,void 0!==this._config.reference.jquery&&(e=this._config.reference[0])):"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&&$.setdataattribute(this._menu,"popper","static")}"ontouchstart"in document.documentelement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).foreach(t=>p.on(t,"mouseover",null,(function(){}))),this._element.focus(),this._element.setattribute("aria-expanded",!0),this._menu.classlist.toggle("show"),this._element.classlist.toggle("show"),p.trigger(this._element,"shown.bs.dropdown",e)}}hide(){if(this._element.disabled||this._element.classlist.contains("disabled")||!this._menu.classlist.contains("show"))return;const t={relatedtarget:this._element};p.trigger(this._element,"hide.bs.dropdown",t).defaultprevented||(this._popper&&this._popper.destroy(),this._menu.classlist.toggle("show"),this._element.classlist.toggle("show"),$.removedataattribute(this._menu,"popper"),p.trigger(this._element,"hidden.bs.dropdown",t))}dispose(){p.off(this._element,".bs.dropdown"),this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null),super.dispose()}update(){this._innavbar=this._detectnavbar(),this._popper&&this._popper.update()}_addeventlisteners(){p.on(this._element,"click.bs.dropdown",t=>{t.preventdefault(),this.toggle()})}_getconfig(t){if(t={...this.constructor.default,...$.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 u.next(this._element,".dropdown-menu")[0]}_getplacement(){const t=this._element.parentnode;if(t.classlist.contains("dropend"))return nt;if(t.classlist.contains("dropstart"))return ot;const e="end"===getcomputedstyle(this._menu).getpropertyvalue("--bs-position").trim();return t.classlist.contains("dropup")?e?et:tt:e?it:st}_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}}static dropdowninterface(t,e){let s=w.get(t,"bs.dropdown");if(s||(s=new lt(t,"object"==typeof e?e:null)),"string"==typeof e){if(void 0===s[e])throw new typeerror(`no method named "${e}"`);s[e]()}}static jqueryinterface(t){return this.each((function(){lt.dropdowninterface(this,t)}))}static clearmenus(t){if(t){if(2===t.button||"keyup"===t.type&&"tab"!==t.key)return;if(/input|select|textarea|form/i.test(t.target.tagname))return}const e=u.find('[data-bs-toggle="dropdown"]');for(let s=0,i=e.length;st.composedpath().includes(e)))continue;if("keyup"===t.type&&"tab"===t.key&&o.contains(t.target))continue}p.trigger(e[s],"hide.bs.dropdown",n).defaultprevented||("ontouchstart"in document.documentelement&&[].concat(...document.body.children).foreach(t=>p.off(t,"mouseover",null,(function(){}))),e[s].setattribute("aria-expanded","false"),i._popper&&i._popper.destroy(),o.classlist.remove("show"),e[s].classlist.remove("show"),$.removedataattribute(o,"popper"),p.trigger(e[s],"hidden.bs.dropdown",n))}}}static getparentfromelement(t){return r(t)||t.parentnode}static dataapikeydownhandler(t){if(/input|textarea/i.test(t.target.tagname)?"space"===t.key||"escape"!==t.key&&("arrowdown"!==t.key&&"arrowup"!==t.key||t.target.closest(".dropdown-menu")):!j.test(t.key))return;if(t.preventdefault(),t.stoppropagation(),this.disabled||this.classlist.contains("disabled"))return;const e=lt.getparentfromelement(this),s=this.classlist.contains("show");if("escape"===t.key)return(this.matches('[data-bs-toggle="dropdown"]')?this:u.prev(this,'[data-bs-toggle="dropdown"]')[0]).focus(),void lt.clearmenus();if(!s&&("arrowup"===t.key||"arrowdown"===t.key))return void(this.matches('[data-bs-toggle="dropdown"]')?this:u.prev(this,'[data-bs-toggle="dropdown"]')[0]).click();if(!s||"space"===t.key)return void lt.clearmenus();const i=u.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",e).filter(u);if(!i.length)return;let n=i.indexof(t.target);"arrowup"===t.key&&n>0&&n--,"arrowdown"===t.key&&nthis.hide(t)),p.on(this._dialog,"mousedown.dismiss.bs.modal",()=>{p.one(this._element,"mouseup.dismiss.bs.modal",t=>{t.target===this._element&&(this._ignorebackdropclick=!0)})}),this._showbackdrop(()=>this._showelement(t)))}hide(t){if(t&&t.preventdefault(),!this._isshown||this._istransitioning)return;if(p.trigger(this._element,"hide.bs.modal").defaultprevented)return;this._isshown=!1;const e=this._isanimated();if(e&&(this._istransitioning=!0),this._setescapeevent(),this._setresizeevent(),p.off(document,"focusin.bs.modal"),this._element.classlist.remove("show"),p.off(this._element,"click.dismiss.bs.modal"),p.off(this._dialog,"mousedown.dismiss.bs.modal"),e){const t=a(this._element);p.one(this._element,"transitionend",t=>this._hidemodal(t)),h(this._element,t)}else this._hidemodal()}dispose(){[window,this._element,this._dialog].foreach(t=>p.off(t,".bs.modal")),super.dispose(),p.off(document,"focusin.bs.modal"),this._config=null,this._dialog=null,this._backdrop=null,this._isshown=null,this._isbodyoverflowing=null,this._ignorebackdropclick=null,this._istransitioning=null,this._scrollbarwidth=null}handleupdate(){this._adjustdialog()}_getconfig(t){return t={...ct,...t},d("modal",t,ht),t}_showelement(t){const e=this._isanimated(),s=u.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();const i=()=>{this._config.focus&&this._element.focus(),this._istransitioning=!1,p.trigger(this._element,"shown.bs.modal",{relatedtarget:t})};if(e){const t=a(this._dialog);p.one(this._dialog,"transitionend",i),h(this._dialog,t)}else i()}_enforcefocus(){p.off(document,"focusin.bs.modal"),p.on(document,"focusin.bs.modal",t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()})}_setescapeevent(){this._isshown?p.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()}):p.off(this._element,"keydown.dismiss.bs.modal")}_setresizeevent(){this._isshown?p.on(window,"resize.bs.modal",()=>this._adjustdialog()):p.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._showbackdrop(()=>{document.body.classlist.remove("modal-open"),this._resetadjustments(),this._resetscrollbar(),p.trigger(this._element,"hidden.bs.modal")})}_removebackdrop(){this._backdrop.parentnode.removechild(this._backdrop),this._backdrop=null}_showbackdrop(t){const e=this._isanimated();if(this._isshown&&this._config.backdrop){if(this._backdrop=document.createelement("div"),this._backdrop.classname="modal-backdrop",e&&this._backdrop.classlist.add("fade"),document.body.appendchild(this._backdrop),p.on(this._element,"click.dismiss.bs.modal",t=>{this._ignorebackdropclick?this._ignorebackdropclick=!1:t.target===t.currenttarget&&("static"===this._config.backdrop?this._triggerbackdroptransition():this.hide())}),e&&m(this._backdrop),this._backdrop.classlist.add("show"),!e)return void t();const s=a(this._backdrop);p.one(this._backdrop,"transitionend",t),h(this._backdrop,s)}else if(!this._isshown&&this._backdrop){this._backdrop.classlist.remove("show");const s=()=>{this._removebackdrop(),t()};if(e){const t=a(this._backdrop);p.one(this._backdrop,"transitionend",s),h(this._backdrop,t)}else s()}else t()}_isanimated(){return this._element.classlist.contains("fade")}_triggerbackdroptransition(){if(p.trigger(this._element,"hideprevented.bs.modal").defaultprevented)return;const t=this._element.scrollheight>document.documentelement.clientheight;t||(this._element.style.overflowy="hidden"),this._element.classlist.add("modal-static");const e=a(this._dialog);p.off(this._element,"transitionend"),p.one(this._element,"transitionend",()=>{this._element.classlist.remove("modal-static"),t||(p.one(this._element,"transitionend",()=>{this._element.style.overflowy=""}),h(this._element,e))}),h(this._element,e),this._element.focus()}_adjustdialog(){const t=this._element.scrollheight>document.documentelement.clientheight;(!this._isbodyoverflowing&&t&&!b()||this._isbodyoverflowing&&!t&&b())&&(this._element.style.paddingleft=this._scrollbarwidth+"px"),(this._isbodyoverflowing&&!t&&!b()||!this._isbodyoverflowing&&t&&b())&&(this._element.style.paddingright=this._scrollbarwidth+"px")}_resetadjustments(){this._element.style.paddingleft="",this._element.style.paddingright=""}_checkscrollbar(){const t=document.body.getboundingclientrect();this._isbodyoverflowing=math.round(t.left+t.right)t+this._scrollbarwidth),this._setelementattributes(".sticky-top","marginright",t=>t-this._scrollbarwidth),this._setelementattributes("body","paddingright",t=>t+this._scrollbarwidth)),document.body.classlist.add("modal-open")}_setelementattributes(t,e,s){u.find(t).foreach(t=>{if(t!==document.body&&window.innerwidth>t.clientwidth+this._scrollbarwidth)return;const i=t.style[e],n=window.getcomputedstyle(t)[e];$.setdataattribute(t,e,i),t.style[e]=s(number.parsefloat(n))+"px"})}_resetscrollbar(){this._resetelementattributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingright"),this._resetelementattributes(".sticky-top","marginright"),this._resetelementattributes("body","paddingright")}_resetelementattributes(t,e){u.find(t).foreach(t=>{const s=$.getdataattribute(t,e);void 0===s&&t===document.body?t.style[e]="":($.removedataattribute(t,e),t.style[e]=s)})}_getscrollbarwidth(){const t=document.createelement("div");t.classname="modal-scrollbar-measure",document.body.appendchild(t);const e=t.getboundingclientrect().width-t.clientwidth;return document.body.removechild(t),e}static jqueryinterface(t,e){return this.each((function(){let s=w.get(this,"bs.modal");const i={...ct,...$.getdataattributes(this),..."object"==typeof t&&t?t:{}};if(s||(s=new dt(this,i)),"string"==typeof t){if(void 0===s[t])throw new typeerror(`no method named "${t}"`);s[t](e)}}))}}p.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=r(this);"a"!==this.tagname&&"area"!==this.tagname||t.preventdefault(),p.one(e,"show.bs.modal",t=>{t.defaultprevented||p.one(e,"hidden.bs.modal",()=>{u(this)&&this.focus()})});let s=w.get(e,"bs.modal");if(!s){const t={...$.getdataattributes(e),...$.getdataattributes(this)};s=new dt(e,t)}s.toggle(this)})),v("modal",dt);const ut=()=>{const t=document.documentelement.clientwidth;return math.abs(window.innerwidth-t)},gt=(t,e,s)=>{const i=ut();u.find(t).foreach(t=>{if(t!==document.body&&window.innerwidth>t.clientwidth+i)return;const n=t.style[e],o=window.getcomputedstyle(t)[e];$.setdataattribute(t,e,n),t.style[e]=s(number.parsefloat(o))+"px"})},ft=(t,e)=>{u.find(t).foreach(t=>{const s=$.getdataattribute(t,e);void 0===s&&t===document.body?t.style.removeproperty(e):($.removedataattribute(t,e),t.style[e]=s)})},pt={backdrop:!0,keyboard:!0,scroll:!1},mt={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"};class _t extends m{constructor(t,e){super(t),this._config=this._getconfig(e),this._isshown=!1,this._addeventlisteners()}static get default(){return pt}static get data_key(){return"bs.offcanvas"}toggle(t){return this._isshown?this.hide():this.show(t)}show(t){this._isshown||p.trigger(this._element,"show.bs.offcanvas",{relatedtarget:t}).defaultprevented||(this._isshown=!0,this._element.style.visibility="visible",this._config.backdrop&&document.body.classlist.add("offcanvas-backdrop"),this._config.scroll||((t=ut())=>{document.body.style.overflow="hidden",gt(".fixed-top, .fixed-bottom, .is-fixed","paddingright",e=>e+t),gt(".sticky-top","marginright",e=>e-t),gt("body","paddingright",e=>e+t)})(),this._element.classlist.add("offcanvas-toggling"),this._element.removeattribute("aria-hidden"),this._element.setattribute("aria-modal",!0),this._element.setattribute("role","dialog"),this._element.classlist.add("show"),settimeout(()=>{this._element.classlist.remove("offcanvas-toggling"),p.trigger(this._element,"shown.bs.offcanvas",{relatedtarget:t}),this._enforcefocusonelement(this._element)},a(this._element)))}hide(){this._isshown&&(p.trigger(this._element,"hide.bs.offcanvas").defaultprevented||(this._element.classlist.add("offcanvas-toggling"),p.off(document,"focusin.bs.offcanvas"),this._element.blur(),this._isshown=!1,this._element.classlist.remove("show"),settimeout(()=>{this._element.setattribute("aria-hidden",!0),this._element.removeattribute("aria-modal"),this._element.removeattribute("role"),this._element.style.visibility="hidden",this._config.backdrop&&document.body.classlist.remove("offcanvas-backdrop"),this._config.scroll||(document.body.style.overflow="auto",ft(".fixed-top, .fixed-bottom, .is-fixed","paddingright"),ft(".sticky-top","marginright"),ft("body","paddingright")),p.trigger(this._element,"hidden.bs.offcanvas"),this._element.classlist.remove("offcanvas-toggling")},a(this._element))))}_getconfig(t){return t={...pt,...$.getdataattributes(this._element),..."object"==typeof t?t:{}},d("offcanvas",t,mt),t}_enforcefocusonelement(t){p.off(document,"focusin.bs.offcanvas"),p.on(document,"focusin.bs.offcanvas",e=>{document===e.target||t===e.target||t.contains(e.target)||t.focus()}),t.focus()}_addeventlisteners(){p.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',()=>this.hide()),p.on(document,"keydown",t=>{this._config.keyboard&&"escape"===t.key&&this.hide()}),p.on(document,"click.bs.offcanvas.data-api",t=>{const e=u.findone(o(t.target));this._element.contains(t.target)||e===this._element||this.hide()})}static jqueryinterface(t){return this.each((function(){const e=w.get(this,"bs.offcanvas")||new _t(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}p.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=r(this);if(["a","area"].includes(this.tagname)&&t.preventdefault(),g(this))return;p.one(e,"hidden.bs.offcanvas",()=>{u(this)&&this.focus()});const s=u.findone(".offcanvas.show, .offcanvas-toggling");s&&s!==e||(w.get(e,"bs.offcanvas")||new _t(e)).toggle(this)})),p.on(window,"load.bs.offcanvas.data-api",()=>{u.find(".offcanvas.show").foreach(t=>(w.get(t,"bs.offcanvas")||new _t(t)).show())}),v("offcanvas",_t);const bt=new set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),vt=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,yt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,wt=(t,e)=>{const s=t.nodename.tolowercase();if(e.includes(s))return!bt.has(s)||boolean(vt.test(t.nodevalue)||yt.test(t.nodevalue));const i=e.filter(t=>t instanceof regexp);for(let t=0,e=i.length;t{wt(t,a)||s.removeattribute(t.nodename)})}return i.body.innerhtml}const tt=new regexp("(^|\\s)bs-tooltip\\s+","g"),at=new set(["sanitize","allowlist","sanitizefn"]),lt={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)"},kt={auto:"auto",top:"top",right:b()?"left":"right",bottom:"bottom",left:b()?"right":"left"},ct={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},dt={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 st extends m{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 ct}static get name(){return"tooltip"}static get data_key(){return"bs.tooltip"}static get event(){return dt}static get event_key(){return".bs.tooltip"}static get defaulttype(){return lt}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),p.off(this._element,this.constructor.event_key),p.off(this._element.closest(".modal"),"hide.bs.modal",this._hidemodalhandler),this.tip&&this.tip.parentnode&&this.tip.parentnode.removechild(this.tip),this._isenabled=null,this._timeout=null,this._hoverstate=null,this._activetrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,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=p.trigger(this._element,this.constructor.event.show),e=f(this._element),n=null===e?this._element.ownerdocument.documentelement.contains(this._element):e.contains(this._element);if(t.defaultprevented||!n)return;const o=this.gettipelement(),r=i(this.constructor.name);o.setattribute("id",r),this._element.setattribute("aria-describedby",r),this.setcontent(),this.config.animation&&o.classlist.add("fade");const l="function"==typeof this.config.placement?this.config.placement.call(this,o,this._element):this.config.placement,c=this._getattachment(l);this._addattachmentclass(c);const d=this._getcontainer();w.set(o,this.constructor.data_key,this),this._element.ownerdocument.documentelement.contains(this.tip)||(d.appendchild(o),p.trigger(this._element,this.constructor.event.inserted)),this._popper?this._popper.update():this._popper=s.createpopper(this._element,o,this._getpopperconfig(c)),o.classlist.add("show");const u="function"==typeof this.config.customclass?this.config.customclass():this.config.customclass;u&&o.classlist.add(...u.split(" ")),"ontouchstart"in document.documentelement&&[].concat(...document.body.children).foreach(t=>{p.on(t,"mouseover",(function(){}))});const g=()=>{const t=this._hoverstate;this._hoverstate=null,p.trigger(this._element,this.constructor.event.shown),"out"===t&&this._leave(null,this)};if(this.tip.classlist.contains("fade")){const t=a(this.tip);p.one(this.tip,"transitionend",g),h(this.tip,t)}else g()}hide(){if(!this._popper)return;const t=this.gettipelement(),e=()=>{this._iswithactivetrigger()||("show"!==this._hoverstate&&t.parentnode&&t.parentnode.removechild(t),this._cleantipclass(),this._element.removeattribute("aria-describedby"),p.trigger(this._element,this.constructor.event.hidden),this._popper&&(this._popper.destroy(),this._popper=null))};if(!p.trigger(this._element,this.constructor.event.hide).defaultprevented){if(t.classlist.remove("show"),"ontouchstart"in document.documentelement&&[].concat(...document.body.children).foreach(t=>p.off(t,"mouseover",p)),this._activetrigger.click=!1,this._activetrigger.focus=!1,this._activetrigger.hover=!1,this.tip.classlist.contains("fade")){const s=a(t);p.one(t,"transitionend",e),h(t,s)}else 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(u.findone(".tooltip-inner",t),this.gettitle()),t.classlist.remove("fade","show")}setelementcontent(t,e){if(null!==t)return"object"==typeof e&&c(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentnode!==t&&(t.innerhtml="",t.appendchild(e)):t.textcontent=e.textcontent)):void(this.config.html?(this.config.sanitize&&(e=et(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:{altboundary:!0,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))}_getcontainer(){return!1===this.config.container?document.body:c(this.config.container)?this.config.container:u.findone(this.config.container)}_getattachment(t){return kt[t.touppercase()]}_setlisteners(){this.config.trigger.split(" ").foreach(t=>{if("click"===t)p.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;p.on(this._element,e,this.config.selector,t=>this._enter(t)),p.on(this._element,s,this.config.selector,t=>this._leave(t))}}),this._hidemodalhandler=()=>{this._element&&this.hide()},p.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=$.getdataattributes(this._element);return object.keys(e).foreach(t=>{at.has(t)&&delete e[t]}),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t={...this.constructor.default,...e,..."object"==typeof t&&t?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=et(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(tt);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(){let e=w.get(this,"bs.tooltip");const s="object"==typeof t&&t;if((e||!/dispose|hide/.test(t))&&(e||(e=new st(this,s)),"string"==typeof t)){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}v("tooltip",st);const nt=new regexp("(^|\\s)bs-popover\\s+","g"),ot={...st.default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},xt={...st.defaulttype,content:"(string|element|function)"},it={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 jt extends st{static get default(){return ot}static get name(){return"popover"}static get data_key(){return"bs.popover"}static get event(){return it}static get event_key(){return".bs.popover"}static get defaulttype(){return xt}iswithcontent(){return this.gettitle()||this._getcontent()}setcontent(){const t=this.gettipelement();this.setelementcontent(u.findone(".popover-header",t),this.gettitle());let e=this._getcontent();"function"==typeof e&&(e=e.call(this._element)),this.setelementcontent(u.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(nt);null!==e&&e.length>0&&e.map(t=>t.trim()).foreach(e=>t.classlist.remove(e))}static jqueryinterface(t){return this.each((function(){let e=w.get(this,"bs.popover");const s="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new jt(this,s),w.set(this,"bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}v("popover",jt);const pt={offset:10,method:"auto",target:""},mt={offset:"number",method:"string",target:"(string|element)"};class ht extends m{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,p.on(this._scrollelement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process()}static get default(){return pt}static get data_key(){return"bs.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(),u.find(this._selector).map(t=>{const i=o(t),n=i?u.findone(i):null;if(n){const t=n.getboundingclientrect();if(t.width||t.height)return[$[e](n).top+s,i]}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(){super.dispose(),p.off(this._scrollelement,".bs.scrollspy"),this._scrollelement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activetarget=null,this._scrollheight=null}_getconfig(t){if("string"!=typeof(t={...pt,..."object"==typeof t&&t?t:{}}).target&&c(t.target)){let{id:e}=t.target;e||(e=i("scrollspy"),t.target.id=e),t.target="#"+e}return d("scrollspy",t,mt),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=u.findone(e.join(","));s.classlist.contains("dropdown-item")?(u.findone(".dropdown-toggle",s.closest(".dropdown")).classlist.add("active"),s.classlist.add("active")):(s.classlist.add("active"),u.parents(s,".nav, .list-group").foreach(t=>{u.prev(t,".nav-link, .list-group-item").foreach(t=>t.classlist.add("active")),u.prev(t,".nav-item").foreach(t=>{u.children(t,".nav-link").foreach(t=>t.classlist.add("active"))})})),p.trigger(this._scrollelement,"activate.bs.scrollspy",{relatedtarget:t})}_clear(){u.find(this._selector).filter(t=>t.classlist.contains("active")).foreach(t=>t.classlist.remove("active"))}static jqueryinterface(t){return this.each((function(){let e=w.get(this,"bs.scrollspy");if(e||(e=new ht(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}p.on(window,"load.bs.scrollspy.data-api",()=>{u.find('[data-bs-spy="scroll"]').foreach(t=>new ht(t,$.getdataattributes(t)))}),v("scrollspy",ht);class rt extends m{static get data_key(){return"bs.tab"}show(){if(this._element.parentnode&&this._element.parentnode.nodetype===node.element_node&&this._element.classlist.contains("active")||g(this._element))return;let t;const e=r(this._element),s=this._element.closest(".nav, .list-group");if(s){const e="ul"===s.nodename||"ol"===s.nodename?":scope > li > .active":".active";t=u.find(e,s),t=t[t.length-1]}const i=t?p.trigger(t,"hide.bs.tab",{relatedtarget:this._element}):null;if(p.trigger(this._element,"show.bs.tab",{relatedtarget:t}).defaultprevented||null!==i&&i.defaultprevented)return;this._activate(this._element,s);const n=()=>{p.trigger(t,"hidden.bs.tab",{relatedtarget:this._element}),p.trigger(this._element,"shown.bs.tab",{relatedtarget:t})};e?this._activate(e,e.parentnode,n):n()}_activate(t,e,s){const i=(!e||"ul"!==e.nodename&&"ol"!==e.nodename?u.children(e,".active"):u.find(":scope > li > .active",e))[0],n=s&&i&&i.classlist.contains("fade"),o=()=>this._transitioncomplete(t,i,s);if(i&&n){const t=a(i);i.classlist.remove("show"),p.one(i,"transitionend",o),h(i,t)}else o()}_transitioncomplete(t,e,s){if(e){e.classlist.remove("active");const t=u.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"),t.parentnode&&t.parentnode.classlist.contains("dropdown-menu")&&(t.closest(".dropdown")&&u.find(".dropdown-toggle").foreach(t=>t.classlist.add("active")),t.setattribute("aria-expanded",!0)),s&&s()}static jqueryinterface(t){return this.each((function(){const e=w.get(this,"bs.tab")||new rt(this);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}p.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){t.preventdefault(),(w.get(this,"bs.tab")||new rt(this)).show()})),v("tab",rt);const bt={animation:"boolean",autohide:"boolean",delay:"number"},wt={animation:!0,autohide:!0,delay:5e3};class $t extends m{constructor(t,e){super(t),this._config=this._getconfig(e),this._timeout=null,this._setlisteners()}static get defaulttype(){return bt}static get default(){return wt}static get data_key(){return"bs.toast"}show(){if(p.trigger(this._element,"show.bs.toast").defaultprevented)return;this._cleartimeout(),this._config.animation&&this._element.classlist.add("fade");const t=()=>{this._element.classlist.remove("showing"),this._element.classlist.add("show"),p.trigger(this._element,"shown.bs.toast"),this._config.autohide&&(this._timeout=settimeout(()=>{this.hide()},this._config.delay))};if(this._element.classlist.remove("hide"),m(this._element),this._element.classlist.add("showing"),this._config.animation){const e=a(this._element);p.one(this._element,"transitionend",t),h(this._element,e)}else t()}hide(){if(!this._element.classlist.contains("show"))return;if(p.trigger(this._element,"hide.bs.toast").defaultprevented)return;const t=()=>{this._element.classlist.add("hide"),p.trigger(this._element,"hidden.bs.toast")};if(this._element.classlist.remove("show"),this._config.animation){const e=a(this._element);p.one(this._element,"transitionend",t),h(this._element,e)}else t()}dispose(){this._cleartimeout(),this._element.classlist.contains("show")&&this._element.classlist.remove("show"),p.off(this._element,"click.dismiss.bs.toast"),super.dispose(),this._config=null}_getconfig(t){return t={...wt,...$.getdataattributes(this._element),..."object"==typeof t&&t?t:{}},d("toast",t,this.constructor.defaulttype),t}_setlisteners(){p.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',()=>this.hide())}_cleartimeout(){cleartimeout(this._timeout),this._timeout=null}static jqueryinterface(t){return this.each((function(){let e=w.get(this,"bs.toast");if(e||(e=new $t(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}return v("toast",$t),{alert:h,button:r,carousel:x,collapse:z,dropdown:lt,modal:dt,offcanvas:_t,popover:jt,scrollspy:ht,tab:rt,toast:$t,tooltip:st}})); //# sourcemappingurl=bootstrap.min.js.map