/*! * bootstrap v5.1.3 (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;const e=object.create(null);if(t)for(const i in t)if("default"!==i){const s=object.getownpropertydescriptor(t,i);object.defineproperty(e,i,s.get?s:{enumerable:!0,get:()=>t[i]})}return e.default=t,object.freeze(e)}const i=e(t),s="transitionend",n=t=>{let e=t.getattribute("data-bs-target");if(!e||"#"===e){let i=t.getattribute("href");if(!i||!i.includes("#")&&!i.startswith("."))return null;i.includes("#")&&!i.startswith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.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=>{t.dispatchevent(new event(s))},l=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodetype),c=t=>l(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.queryselector(t):null,h=(t,e,i)=>{object.keys(i).foreach((s=>{const n=i[s],o=e[s],r=o&&l(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 "${s}" provided type "${r}" but expected type "${n}".`)}))},d=t=>!(!l(t)||0===t.getclientrects().length)&&"visible"===getcomputedstyle(t).getpropertyvalue("visibility"),u=t=>!t||t.nodetype!==node.element_node||!!t.classlist.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasattribute("disabled")&&"false"!==t.getattribute("disabled")),g=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?g(t.parentnode):null},_=()=>{},f=t=>{t.offsetheight},p=()=>{const{jquery:t}=window;return t&&!document.body.hasattribute("data-bs-no-jquery")?t:null},m=[],b=()=>"rtl"===document.documentelement.dir,v=t=>{var e;e=()=>{const e=p();if(e){const i=t.name,s=e.fn[i];e.fn[i]=t.jqueryinterface,e.fn[i].constructor=t,e.fn[i].noconflict=()=>(e.fn[i]=s,t.jqueryinterface)}},"loading"===document.readystate?(m.length||document.addeventlistener("domcontentloaded",(()=>{m.foreach((t=>t()))})),m.push(e)):e()},y=t=>{"function"==typeof t&&t()},e=(t,e,i=!0)=>{if(!i)return void y(t);const n=(t=>{if(!t)return 0;let{transitionduration:e,transitiondelay:i}=window.getcomputedstyle(t);const s=number.parsefloat(e),n=number.parsefloat(i);return s||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(number.parsefloat(e)+number.parsefloat(i))):0})(e)+5;let o=!1;const r=({target:i})=>{i===e&&(o=!0,e.removeeventlistener(s,r),y(t))};e.addeventlistener(s,r),settimeout((()=>{o||a(e)}),n)},w=(t,e,i,s)=>{let n=t.indexof(e);if(-1===n)return t[!i&&s?t.length-1:0];const o=t.length;return n+=i?1:-1,s&&(n=(n+o)%o),t[math.max(0,math.min(n,o-1))]},a=/[^.]*(?=\..*)\.|.*/,t=/\..*/,c=/::\d+$/,k={};let l=1;const s={mouseenter:"mouseover",mouseleave:"mouseout"},o=/^(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 d(t,e){return e&&`${e}::${l++}`||t.uidevent||l++}function i(t){const e=d(t);return t.uidevent=e,k[e]=k[e]||{},k[e]}function p(t,e,i=null){const s=object.keys(t);for(let n=0,o=s.length;nfunction(e){if(!e.relatedtarget||e.relatedtarget!==e.delegatetarget&&!e.delegatetarget.contains(e.relatedtarget))return t.call(this,e)};s?s=t(s):i=t(i)}const[o,r,a]=x(e,i,s),l=i(t),c=l[a]||(l[a]={}),h=p(c,r,o?i:null);if(h)return void(h.oneoff=h.oneoff&&n);const d=d(r,e.replace(a,"")),u=o?function(t,e,i){return function s(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,s.oneoff&&$.off(t,n.type,e,i),i.apply(r,[n]);return null}}(t,i,s):function(t,e){return function i(s){return s.delegatetarget=t,i.oneoff&&$.off(t,s.type,e),e.apply(t,[s])}}(t,i);u.delegationselector=o?i:null,u.originalhandler=r,u.oneoff=n,u.uidevent=d,c[d]=u,t.addeventlistener(a,u,o)}function j(t,e,i,s,n){const o=p(e[i],s,n);o&&(t.removeeventlistener(i,o,boolean(n)),delete e[i][o.uidevent])}function h(t){return t=t.replace(t,""),s[t]||t}const $={on(t,e,i,s){m(t,e,i,s,!1)},one(t,e,i,s){m(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,o,r]=x(e,i,s),a=r!==e,l=i(t),c=e.startswith(".");if(void 0!==o){if(!l||!l[r])return;return void j(t,l,r,o,n?i:null)}c&&object.keys(l).foreach((i=>{!function(t,e,i,s){const n=e[i]||{};object.keys(n).foreach((o=>{if(o.includes(s)){const s=n[o];j(t,e,i,s.originalhandler,s.delegationselector)}}))}(t,l,i,e.slice(1))}));const h=l[r]||{};object.keys(h).foreach((i=>{const s=i.replace(c,"");if(!a||e.includes(s)){const e=h[i];j(t,l,r,e.originalhandler,e.delegationselector)}}))},trigger(t,e,i){if("string"!=typeof e||!t)return null;const s=p(),n=h(e),o=e!==n,r=n.has(n);let a,l=!0,c=!0,h=!1,d=null;return o&&s&&(a=s.event(e,i),s(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!==i&&object.keys(i).foreach((t=>{object.defineproperty(d,t,{get:()=>i[t]})})),h&&d.preventdefault(),c&&t.dispatchevent(d),d.defaultprevented&&void 0!==a&&a.preventdefault(),d}},b=new map,z={set(t,e,i){b.has(t)||b.set(t,new map);const s=b.get(t);s.has(e)||0===s.size?s.set(e,i):console.error(`bootstrap doesn't allow more than one instance per element. bound instance: ${array.from(s.keys())[0]}.`)},get:(t,e)=>b.has(t)&&b.get(t).get(e)||null,remove(t,e){if(!b.has(t))return;const i=b.get(t);i.delete(e),0===i.size&&b.delete(t)}};class r{constructor(t){(t=c(t))&&(this._element=t,z.set(this._element,this.constructor.data_key,this))}dispose(){z.remove(this._element,this.constructor.data_key),$.off(this._element,this.constructor.event_key),object.getownpropertynames(this).foreach((t=>{this[t]=null}))}_queuecallback(t,e,i=!0){e(t,e,i)}static getinstance(t){return z.get(c(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.1.3"}static get name(){throw new error('you have to implement the static method "name", for each component!')}static get data_key(){return`bs.${this.name}`}static get event_key(){return`.${this.data_key}`}}const f=(t,e="hide")=>{const i=`click.dismiss${t.event_key}`,s=t.name;$.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["a","area"].includes(this.tagname)&&i.preventdefault(),u(this))return;const n=r(this)||this.closest(`.${s}`);t.getorcreateinstance(n)[e]()}))};class q extends r{static get name(){return"alert"}close(){if($.trigger(this._element,"close.bs.alert").defaultprevented)return;this._element.classlist.remove("show");const t=this._element.classlist.contains("fade");this._queuecallback((()=>this._destroyelement()),this._element,t)}_destroyelement(){this._element.remove(),$.trigger(this._element,"closed.bs.alert"),this.dispose()}static jqueryinterface(t){return this.each((function(){const e=q.getorcreateinstance(this);if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}f(q,"close"),v(q);const w='[data-bs-toggle="button"]';class u extends r{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=u.getorcreateinstance(this);"toggle"===t&&e[t]()}))}}function k(t){return"true"===t||"false"!==t&&(t===number(t).tostring()?number(t):""===t||"null"===t?null:t)}function v(t){return t.replace(/[a-z]/g,(t=>`-${t.tolowercase()}`))}$.on(document,"click.bs.button.data-api",w,(t=>{t.preventdefault();const e=t.target.closest(w);u.getorcreateinstance(e).toggle()})),v(u);const x={setdataattribute(t,e,i){t.setattribute(`data-bs-${v(e)}`,i)},removedataattribute(t,e){t.removeattribute(`data-bs-${v(e)}`)},getdataattributes(t){if(!t)return{};const e={};return object.keys(t.dataset).filter((t=>t.startswith("bs"))).foreach((i=>{let s=i.replace(/^bs/,"");s=s.charat(0).tolowercase()+s.slice(1,s.length),e[s]=k(t.dataset[i])})),e},getdataattribute:(t,e)=>k(t.getattribute(`data-bs-${v(e)}`)),offset(t){const e=t.getboundingclientrect();return{top:e.top+window.pageyoffset,left:e.left+window.pagexoffset}},position:t=>({top:t.offsettop,left:t.offsetleft})},y={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 i=[];let s=t.parentnode;for(;s&&s.nodetype===node.element_node&&3!==s.nodetype;)s.matches(e)&&i.push(s),s=s.parentnode;return i},prev(t,e){let i=t.previouselementsibling;for(;i;){if(i.matches(e))return[i];i=i.previouselementsibling}return[]},next(t,e){let i=t.nextelementsibling;for(;i;){if(i.matches(e))return[i];i=i.nextelementsibling}return[]},focusablechildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(", ");return this.find(e,t).filter((t=>!u(t)&&d(t)))}},q="carousel",g={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},z={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},j="next",tt="prev",et="left",it="right",st={arrowleft:it,arrowright:et},nt="slid.bs.carousel",ot="active",rt=".active.carousel-item";class at extends r{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=y.findone(".carousel-indicators",this._element),this._touchsupported="ontouchstart"in document.documentelement||navigator.maxtouchpoints>0,this._pointerevent=boolean(window.pointerevent),this._addeventlisteners()}static get default(){return g}static get name(){return q}next(){this._slide(j)}nextwhenvisible(){!document.hidden&&d(this._element)&&this.next()}prev(){this._slide(tt)}pause(t){t||(this._ispaused=!0),y.findone(".carousel-item-next, .carousel-item-prev",this._element)&&(a(this._element),this.cycle(!0)),clearinterval(this._interval),this._interval=null}cycle(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=y.findone(rt,this._element);const e=this._getitemindex(this._activeelement);if(t>this._items.length-1||t<0)return;if(this._issliding)return void $.one(this._element,nt,(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const i=t>e?j:tt;this._slide(i,this._items[t])}_getconfig(t){return t={...g,...x.getdataattributes(this._element),..."object"==typeof t?t:{}},h(q,t,z),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?it:et)}_addeventlisteners(){this._config.keyboard&&$.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&($.on(this._element,"mouseenter.bs.carousel",(t=>this.pause(t))),$.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),e=e=>{t(e)?this.touchstartx=e.clientx:this._pointerevent||(this.touchstartx=e.touches[0].clientx)},i=t=>{this.touchdeltax=t.touches&&t.touches.length>1?0:t.touches[0].clientx-this.touchstartx},s=e=>{t(e)&&(this.touchdeltax=e.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))};y.find(".carousel-item img",this._element).foreach((t=>{$.on(t,"dragstart.bs.carousel",(t=>t.preventdefault()))})),this._pointerevent?($.on(this._element,"pointerdown.bs.carousel",(t=>e(t))),$.on(this._element,"pointerup.bs.carousel",(t=>s(t))),this._element.classlist.add("pointer-event")):($.on(this._element,"touchstart.bs.carousel",(t=>e(t))),$.on(this._element,"touchmove.bs.carousel",(t=>i(t))),$.on(this._element,"touchend.bs.carousel",(t=>s(t))))}_keydown(t){if(/input|textarea/i.test(t.target.tagname))return;const e=st[t.key];e&&(t.preventdefault(),this._slide(e))}_getitemindex(t){return this._items=t&&t.parentnode?y.find(".carousel-item",t.parentnode):[],this._items.indexof(t)}_getitembyorder(t,e){const i=t===j;return w(this._items,e,i,this._config.wrap)}_triggerslideevent(t,e){const i=this._getitemindex(t),s=this._getitemindex(y.findone(rt,this._element));return $.trigger(this._element,"slide.bs.carousel",{relatedtarget:t,direction:e,from:s,to:i})}_setactiveindicatorelement(t){if(this._indicatorselement){const e=y.findone(".active",this._indicatorselement);e.classlist.remove(ot),e.removeattribute("aria-current");const i=y.find("[data-bs-target]",this._indicatorselement);for(let e=0;e{$.trigger(this._element,nt,{relatedtarget:o,direction:d,from:n,to:r})};if(this._element.classlist.contains("slide")){o.classlist.add(h),f(o),s.classlist.add(c),o.classlist.add(c);const t=()=>{o.classlist.remove(c,h),o.classlist.add(ot),s.classlist.remove(ot,h,c),this._issliding=!1,settimeout(u,0)};this._queuecallback(t,s,!0)}else s.classlist.remove(ot),o.classlist.add(ot),this._issliding=!1,u();a&&this.cycle()}_directiontoorder(t){return[it,et].includes(t)?b()?t===et?tt:j:t===et?j:tt:t}_ordertodirection(t){return[j,tt].includes(t)?b()?t===tt?et:it:t===tt?it:et:t}static carouselinterface(t,e){const i=at.getorcreateinstance(t,e);let{_config:s}=i;"object"==typeof e&&(s={...s,...e});const n="string"==typeof e?e:s.slide;if("number"==typeof e)i.to(e);else if("string"==typeof n){if(void 0===i[n])throw new typeerror(`no method named "${n}"`);i[n]()}else s.interval&&s.ride&&(i.pause(),i.cycle())}static jqueryinterface(t){return this.each((function(){at.carouselinterface(this,t)}))}static dataapiclickhandler(t){const e=r(this);if(!e||!e.classlist.contains("carousel"))return;const i={...x.getdataattributes(e),...x.getdataattributes(this)},s=this.getattribute("data-bs-slide-to");s&&(i.interval=!1),at.carouselinterface(e,i),s&&at.getinstance(e).to(s),t.preventdefault()}}$.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",at.dataapiclickhandler),$.on(window,"load.bs.carousel.data-api",(()=>{const t=y.find('[data-bs-ride="carousel"]');for(let e=0,i=t.length;et===this._element));null!==s&&n.length&&(this._selector=s,this._triggerarray.push(e))}this._initializechildren(),this._config.parent||this._addariaandcollapsedclass(this._triggerarray,this._isshown()),this._config.toggle&&this.toggle()}static get default(){return ct}static get name(){return lt}toggle(){this._isshown()?this.hide():this.show()}show(){if(this._istransitioning||this._isshown())return;let t,e=[];if(this._config.parent){const t=y.find(ft,this._config.parent);e=y.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((e=>!t.includes(e)))}const i=y.findone(this._selector);if(e.length){const s=e.find((t=>i!==t));if(t=s?mt.getinstance(s):null,t&&t._istransitioning)return}if($.trigger(this._element,"show.bs.collapse").defaultprevented)return;e.foreach((e=>{i!==e&&mt.getorcreateinstance(e,{toggle:!1}).hide(),t||z.set(e,"bs.collapse",null)}));const s=this._getdimension();this._element.classlist.remove(ut),this._element.classlist.add(gt),this._element.style[s]=0,this._addariaandcollapsedclass(this._triggerarray,!0),this._istransitioning=!0;const n=`scroll${s[0].touppercase()+s.slice(1)}`;this._queuecallback((()=>{this._istransitioning=!1,this._element.classlist.remove(gt),this._element.classlist.add(ut,dt),this._element.style[s]="",$.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[s]=`${this._element[n]}px`}hide(){if(this._istransitioning||!this._isshown())return;if($.trigger(this._element,"hide.bs.collapse").defaultprevented)return;const t=this._getdimension();this._element.style[t]=`${this._element.getboundingclientrect()[t]}px`,f(this._element),this._element.classlist.add(gt),this._element.classlist.remove(ut,dt);const e=this._triggerarray.length;for(let t=0;t{this._istransitioning=!1,this._element.classlist.remove(gt),this._element.classlist.add(ut),$.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isshown(t=this._element){return t.classlist.contains(dt)}_getconfig(t){return(t={...ct,...x.getdataattributes(this._element),...t}).toggle=boolean(t.toggle),t.parent=c(t.parent),h(lt,t,ht),t}_getdimension(){return this._element.classlist.contains("collapse-horizontal")?"width":"height"}_initializechildren(){if(!this._config.parent)return;const t=y.find(ft,this._config.parent);y.find(pt,this._config.parent).filter((e=>!t.includes(e))).foreach((t=>{const e=r(t);e&&this._addariaandcollapsedclass([t],this._isshown(e))}))}_addariaandcollapsedclass(t,e){t.length&&t.foreach((t=>{e?t.classlist.remove(_t):t.classlist.add(_t),t.setattribute("aria-expanded",e)}))}static jqueryinterface(t){return this.each((function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const i=mt.getorcreateinstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new typeerror(`no method named "${t}"`);i[t]()}}))}}$.on(document,"click.bs.collapse.data-api",pt,(function(t){("a"===t.target.tagname||t.delegatetarget&&"a"===t.delegatetarget.tagname)&&t.preventdefault();const e=o(this);y.find(e).foreach((t=>{mt.getorcreateinstance(t,{toggle:!1}).toggle()}))})),v(mt);const bt="dropdown",vt="escape",yt="space",et="arrowup",wt="arrowdown",at=new regexp("arrowup|arrowdown|escape"),tt="click.bs.dropdown.data-api",ct="keydown.bs.dropdown.data-api",kt="show",lt='[data-bs-toggle="dropdown"]',st=".dropdown-menu",ot=b()?"top-end":"top-start",nt=b()?"top-start":"top-end",dt=b()?"bottom-end":"bottom-start",it=b()?"bottom-start":"bottom-end",pt=b()?"left-start":"right-start",xt=b()?"right-start":"left-start",mt={offset:[0,2],boundary:"clippingparents",reference:"toggle",display:"dynamic",popperconfig:null,autoclose:!0},jt={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperconfig:"(null|object|function)",autoclose:"(boolean|string)"};class ht extends r{constructor(t,e){super(t),this._popper=null,this._config=this._getconfig(e),this._menu=this._getmenuelement(),this._innavbar=this._detectnavbar()}static get default(){return mt}static get defaulttype(){return jt}static get name(){return bt}toggle(){return this._isshown()?this.hide():this.show()}show(){if(u(this._element)||this._isshown(this._menu))return;const t={relatedtarget:this._element};if($.trigger(this._element,"show.bs.dropdown",t).defaultprevented)return;const e=ht.getparentfromelement(this._element);this._innavbar?x.setdataattribute(this._menu,"popper","none"):this._createpopper(e),"ontouchstart"in document.documentelement&&!e.closest(".navbar-nav")&&[].concat(...document.body.children).foreach((t=>$.on(t,"mouseover",_))),this._element.focus(),this._element.setattribute("aria-expanded",!0),this._menu.classlist.add(kt),this._element.classlist.add(kt),$.trigger(this._element,"shown.bs.dropdown",t)}hide(){if(u(this._element)||!this._isshown(this._menu))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()}_completehide(t){$.trigger(this._element,"hide.bs.dropdown",t).defaultprevented||("ontouchstart"in document.documentelement&&[].concat(...document.body.children).foreach((t=>$.off(t,"mouseover",_))),this._popper&&this._popper.destroy(),this._menu.classlist.remove(kt),this._element.classlist.remove(kt),this._element.setattribute("aria-expanded","false"),x.removedataattribute(this._menu,"popper"),$.trigger(this._element,"hidden.bs.dropdown",t))}_getconfig(t){if(t={...this.constructor.default,...x.getdataattributes(this._element),...t},h(bt,t,this.constructor.defaulttype),"object"==typeof t.reference&&!l(t.reference)&&"function"!=typeof t.reference.getboundingclientrect)throw new typeerror(`${bt.touppercase()}: option "reference" provided type "object" without a required "getboundingclientrect" method.`);return t}_createpopper(t){if(void 0===i)throw new typeerror("bootstrap's dropdowns require popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:l(this._config.reference)?e=c(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const s=this._getpopperconfig(),n=s.modifiers.find((t=>"applystyles"===t.name&&!1===t.enabled));this._popper=i.createpopper(e,this._menu,s),n&&x.setdataattribute(this._menu,"popper","static")}_isshown(t=this._element){return t.classlist.contains(kt)}_getmenuelement(){return y.next(this._element,st)[0]}_getplacement(){const t=this._element.parentnode;if(t.classlist.contains("dropend"))return pt;if(t.classlist.contains("dropstart"))return xt;const e="end"===getcomputedstyle(this._menu).getpropertyvalue("--bs-position").trim();return t.classlist.contains("dropup")?e?nt:ot:e?it:dt}_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 i=y.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(d);i.length&&w(i,e,t===wt,!i.includes(e)).focus()}static jqueryinterface(t){return this.each((function(){const e=ht.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}static clearmenus(t){if(t&&(2===t.button||"keyup"===t.type&&"tab"!==t.key))return;const e=y.find(lt);for(let i=0,s=e.length;ie+t)),this._setelementattributes($t,"paddingright",(e=>e+t)),this._setelementattributes(bt,"marginright",(e=>e-t))}_disableoverflow(){this._saveinitialattribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setelementattributes(t,e,i){const s=this.getwidth();this._applymanipulationcallback(t,(t=>{if(t!==this._element&&window.innerwidth>t.clientwidth+s)return;this._saveinitialattribute(t,e);const n=window.getcomputedstyle(t)[e];t.style[e]=`${i(number.parsefloat(n))}px`}))}reset(){this._resetelementattributes(this._element,"overflow"),this._resetelementattributes(this._element,"paddingright"),this._resetelementattributes($t,"paddingright"),this._resetelementattributes(bt,"marginright")}_saveinitialattribute(t,e){const i=t.style[e];i&&x.setdataattribute(t,e,i)}_resetelementattributes(t,e){this._applymanipulationcallback(t,(t=>{const i=x.getdataattribute(t,e);void 0===i?t.style.removeproperty(e):(x.removedataattribute(t,e),t.style[e]=i)}))}_applymanipulationcallback(t,e){l(t)?e(t):y.find(t,this._element).foreach(e)}isoverflowing(){return this.getwidth()>0}}const rt={classname:"modal-backdrop",isvisible:!0,isanimated:!1,rootelement:"body",clickcallback:null},ft={classname:"string",isvisible:"boolean",isanimated:"boolean",rootelement:"(element|string)",clickcallback:"(function|null)"},qt="show",wt="mousedown.bs.backdrop";class ut{constructor(t){this._config=this._getconfig(t),this._isappended=!1,this._element=null}show(t){this._config.isvisible?(this._append(),this._config.isanimated&&f(this._getelement()),this._getelement().classlist.add(qt),this._emulateanimation((()=>{y(t)}))):y(t)}hide(t){this._config.isvisible?(this._getelement().classlist.remove(qt),this._emulateanimation((()=>{this.dispose(),y(t)}))):y(t)}_getelement(){if(!this._element){const t=document.createelement("div");t.classname=this._config.classname,this._config.isanimated&&t.classlist.add("fade"),this._element=t}return this._element}_getconfig(t){return(t={...rt,..."object"==typeof t?t:{}}).rootelement=c(t.rootelement),h("backdrop",t,ft),t}_append(){this._isappended||(this._config.rootelement.append(this._getelement()),$.on(this._getelement(),wt,(()=>{y(this._config.clickcallback)})),this._isappended=!0)}dispose(){this._isappended&&($.off(this._element,wt),this._element.remove(),this._isappended=!1)}_emulateanimation(t){e(t,this._getelement(),this._config.isanimated)}}const kt={trapelement:null,autofocus:!0},vt={trapelement:"element",autofocus:"boolean"},xt=".bs.focustrap",yt="backward";class qt{constructor(t){this._config=this._getconfig(t),this._isactive=!1,this._lasttabnavdirection=null}activate(){const{trapelement:t,autofocus:e}=this._config;this._isactive||(e&&t.focus(),$.off(document,xt),$.on(document,"focusin.bs.focustrap",(t=>this._handlefocusin(t))),$.on(document,"keydown.tab.bs.focustrap",(t=>this._handlekeydown(t))),this._isactive=!0)}deactivate(){this._isactive&&(this._isactive=!1,$.off(document,xt))}_handlefocusin(t){const{target:e}=t,{trapelement:i}=this._config;if(e===document||e===i||i.contains(e))return;const s=y.focusablechildren(i);0===s.length?i.focus():this._lasttabnavdirection===yt?s[s.length-1].focus():s[0].focus()}_handlekeydown(t){"tab"===t.key&&(this._lasttabnavdirection=t.shiftkey?yt:"forward")}_getconfig(t){return t={...kt,..."object"==typeof t?t:{}},h("focustrap",t,vt),t}}const gt="modal",zt="escape",jt={backdrop:!0,keyboard:!0,focus:!0},te={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},ee="hidden.bs.modal",ie="show.bs.modal",se="resize.bs.modal",ne="click.dismiss.bs.modal",oe="keydown.dismiss.bs.modal",re="mousedown.dismiss.bs.modal",ae="modal-open",le="show",ce="modal-static";class he extends r{constructor(t,e){super(t),this._config=this._getconfig(e),this._dialog=y.findone(".modal-dialog",this._element),this._backdrop=this._initializebackdrop(),this._focustrap=this._initializefocustrap(),this._isshown=!1,this._ignorebackdropclick=!1,this._istransitioning=!1,this._scrollbar=new zt}static get default(){return jt}static get name(){return gt}toggle(t){return this._isshown?this.hide():this.show(t)}show(t){this._isshown||this._istransitioning||$.trigger(this._element,ie,{relatedtarget:t}).defaultprevented||(this._isshown=!0,this._isanimated()&&(this._istransitioning=!0),this._scrollbar.hide(),document.body.classlist.add(ae),this._adjustdialog(),this._setescapeevent(),this._setresizeevent(),$.on(this._dialog,re,(()=>{$.one(this._element,"mouseup.dismiss.bs.modal",(t=>{t.target===this._element&&(this._ignorebackdropclick=!0)}))})),this._showbackdrop((()=>this._showelement(t))))}hide(){if(!this._isshown||this._istransitioning)return;if($.trigger(this._element,"hide.bs.modal").defaultprevented)return;this._isshown=!1;const t=this._isanimated();t&&(this._istransitioning=!0),this._setescapeevent(),this._setresizeevent(),this._focustrap.deactivate(),this._element.classlist.remove(le),$.off(this._element,ne),$.off(this._dialog,re),this._queuecallback((()=>this._hidemodal()),this._element,t)}dispose(){[window,this._dialog].foreach((t=>$.off(t,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleupdate(){this._adjustdialog()}_initializebackdrop(){return new ut({isvisible:boolean(this._config.backdrop),isanimated:this._isanimated()})}_initializefocustrap(){return new qt({trapelement:this._element})}_getconfig(t){return t={...jt,...x.getdataattributes(this._element),..."object"==typeof t?t:{}},h(gt,t,te),t}_showelement(t){const e=this._isanimated(),i=y.findone(".modal-body",this._dialog);this._element.parentnode&&this._element.parentnode.nodetype===node.element_node||document.body.append(this._element),this._element.style.display="block",this._element.removeattribute("aria-hidden"),this._element.setattribute("aria-modal",!0),this._element.setattribute("role","dialog"),this._element.scrolltop=0,i&&(i.scrolltop=0),e&&f(this._element),this._element.classlist.add(le),this._queuecallback((()=>{this._config.focus&&this._focustrap.activate(),this._istransitioning=!1,$.trigger(this._element,"shown.bs.modal",{relatedtarget:t})}),this._dialog,e)}_setescapeevent(){this._isshown?$.on(this._element,oe,(t=>{this._config.keyboard&&t.key===zt?(t.preventdefault(),this.hide()):this._config.keyboard||t.key!==zt||this._triggerbackdroptransition()})):$.off(this._element,oe)}_setresizeevent(){this._isshown?$.on(window,se,(()=>this._adjustdialog())):$.off(window,se)}_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(ae),this._resetadjustments(),this._scrollbar.reset(),$.trigger(this._element,ee)}))}_showbackdrop(t){$.on(this._element,ne,(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($.trigger(this._element,"hideprevented.bs.modal").defaultprevented)return;const{classlist:t,scrollheight:e,style:i}=this._element,s=e>document.documentelement.clientheight;!s&&"hidden"===i.overflowy||t.contains(ce)||(s||(i.overflowy="hidden"),t.add(ce),this._queuecallback((()=>{t.remove(ce),s||this._queuecallback((()=>{i.overflowy=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustdialog(){const t=this._element.scrollheight>document.documentelement.clientheight,e=this._scrollbar.getwidth(),i=e>0;(!i&&t&&!b()||i&&!t&&b())&&(this._element.style.paddingleft=`${e}px`),(i&&!t&&!b()||!i&&t&&b())&&(this._element.style.paddingright=`${e}px`)}_resetadjustments(){this._element.style.paddingleft="",this._element.style.paddingright=""}static jqueryinterface(t,e){return this.each((function(){const i=he.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new typeerror(`no method named "${t}"`);i[t](e)}}))}}$.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=r(this);["a","area"].includes(this.tagname)&&t.preventdefault(),$.one(e,ie,(t=>{t.defaultprevented||$.one(e,ee,(()=>{d(this)&&this.focus()}))}));const i=y.findone(".modal.show");i&&he.getinstance(i).hide(),he.getorcreateinstance(e).toggle(this)})),f(he),v(he);const de="offcanvas",ue={backdrop:!0,keyboard:!0,scroll:!1},ge={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},_e="show",fe=".offcanvas.show",pe="hidden.bs.offcanvas";class me extends r{constructor(t,e){super(t),this._config=this._getconfig(e),this._isshown=!1,this._backdrop=this._initializebackdrop(),this._focustrap=this._initializefocustrap(),this._addeventlisteners()}static get name(){return de}static get default(){return ue}toggle(t){return this._isshown?this.hide():this.show(t)}show(t){this._isshown||$.trigger(this._element,"show.bs.offcanvas",{relatedtarget:t}).defaultprevented||(this._isshown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new zt).hide(),this._element.removeattribute("aria-hidden"),this._element.setattribute("aria-modal",!0),this._element.setattribute("role","dialog"),this._element.classlist.add(_e),this._queuecallback((()=>{this._config.scroll||this._focustrap.activate(),$.trigger(this._element,"shown.bs.offcanvas",{relatedtarget:t})}),this._element,!0))}hide(){this._isshown&&($.trigger(this._element,"hide.bs.offcanvas").defaultprevented||(this._focustrap.deactivate(),this._element.blur(),this._isshown=!1,this._element.classlist.remove(_e),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 zt).reset(),$.trigger(this._element,pe)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getconfig(t){return t={...ue,...x.getdataattributes(this._element),..."object"==typeof t?t:{}},h(de,t,ge),t}_initializebackdrop(){return new ut({classname:"offcanvas-backdrop",isvisible:this._config.backdrop,isanimated:!0,rootelement:this._element.parentnode,clickcallback:()=>this.hide()})}_initializefocustrap(){return new qt({trapelement:this._element})}_addeventlisteners(){$.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=me.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)}}))}}$.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(),u(this))return;$.one(e,pe,(()=>{d(this)&&this.focus()}));const i=y.findone(fe);i&&i!==e&&me.getinstance(i).hide(),me.getorcreateinstance(e).toggle(this)})),$.on(window,"load.bs.offcanvas.data-api",(()=>y.find(fe).foreach((t=>me.getorcreateinstance(t).show())))),f(me),v(me);const be=new set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ve=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,ye=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,ee=(t,e)=>{const i=t.nodename.tolowercase();if(e.includes(i))return!be.has(i)||boolean(ve.test(t.nodevalue)||ye.test(t.nodevalue));const s=e.filter((t=>t instanceof regexp));for(let t=0,e=s.length;t{ee(t,r)||i.removeattribute(t.nodename)}))}return s.body.innerhtml}const ae="tooltip",te=new set(["sanitize","allowlist","sanitizefn"]),ce={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)"},ke={auto:"auto",top:"top",right:b()?"left":"right",bottom:"bottom",left:b()?"right":"left"},le={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},se={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"},oe="fade",ne="show",de="show",ie="out",pe=".tooltip-inner",xe=".modal",me="hide.bs.modal",je="hover",he="focus";class $e extends r{constructor(t,e){if(void 0===i)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 le}static get name(){return ae}static get event(){return se}static get defaulttype(){return ce}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(ne))return void this._leave(null,this);this._enter(null,this)}}dispose(){cleartimeout(this._timeout),$.off(this._element.closest(xe),me,this._hidemodalhandler),this.tip&&this.tip.remove(),this._disposepopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new error("please use show on visible elements");if(!this.iswithcontent()||!this._isenabled)return;const t=$.trigger(this._element,this.constructor.event.show),e=g(this._element),s=null===e?this._element.ownerdocument.documentelement.contains(this._element):e.contains(this._element);if(t.defaultprevented||!s)return;"tooltip"===this.constructor.name&&this.tip&&this.gettitle()!==this.tip.queryselector(pe).innerhtml&&(this._disposepopper(),this.tip.remove(),this.tip=null);const n=this.gettipelement(),o=(t=>{do{t+=math.floor(1e6*math.random())}while(document.getelementbyid(t));return t})(this.constructor.name);n.setattribute("id",o),this._element.setattribute("aria-describedby",o),this._config.animation&&n.classlist.add(oe);const r="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,a=this._getattachment(r);this._addattachmentclass(a);const{container:l}=this._config;z.set(n,this.constructor.data_key,this),this._element.ownerdocument.documentelement.contains(this.tip)||(l.append(n),$.trigger(this._element,this.constructor.event.inserted)),this._popper?this._popper.update():this._popper=i.createpopper(this._element,n,this._getpopperconfig(a)),n.classlist.add(ne);const c=this._resolvepossiblefunction(this._config.customclass);c&&n.classlist.add(...c.split(" ")),"ontouchstart"in document.documentelement&&[].concat(...document.body.children).foreach((t=>{$.on(t,"mouseover",_)}));const h=this.tip.classlist.contains(oe);this._queuecallback((()=>{const t=this._hoverstate;this._hoverstate=null,$.trigger(this._element,this.constructor.event.shown),t===ie&&this._leave(null,this)}),this.tip,h)}hide(){if(!this._popper)return;const t=this.gettipelement();if($.trigger(this._element,this.constructor.event.hide).defaultprevented)return;t.classlist.remove(ne),"ontouchstart"in document.documentelement&&[].concat(...document.body.children).foreach((t=>$.off(t,"mouseover",_))),this._activetrigger.click=!1,this._activetrigger.focus=!1,this._activetrigger.hover=!1;const e=this.tip.classlist.contains(oe);this._queuecallback((()=>{this._iswithactivetrigger()||(this._hoverstate!==de&&t.remove(),this._cleantipclass(),this._element.removeattribute("aria-describedby"),$.trigger(this._element,this.constructor.event.hidden),this._disposepopper())}),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");t.innerhtml=this._config.template;const e=t.children[0];return this.setcontent(e),e.classlist.remove(oe,ne),this.tip=e,this.tip}setcontent(t){this._sanitizeandsetcontent(t,this.gettitle(),pe)}_sanitizeandsetcontent(t,e,i){const s=y.findone(i,t);e||!s?this.setelementcontent(s,e):s.remove()}setelementcontent(t,e){if(null!==t)return l(e)?(e=c(e),void(this._config.html?e.parentnode!==t&&(t.innerhtml="",t.append(e)):t.textcontent=e.textcontent)):void(this._config.html?(this._config.sanitize&&(e=we(e,this._config.allowlist,this._config.sanitizefn)),t.innerhtml=e):t.textcontent=e)}gettitle(){const t=this._element.getattribute("data-bs-original-title")||this._config.title;return this._resolvepossiblefunction(t)}updateattachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeondelegatedtarget(t,e){return e||this.constructor.getorcreateinstance(t.delegatetarget,this._getdelegateconfig())}_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}_resolvepossiblefunction(t){return"function"==typeof t?t.call(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(`${this._getbasicclassprefix()}-${this.updateattachment(t)}`)}_getattachment(t){return ke[t.touppercase()]}_setlisteners(){this._config.trigger.split(" ").foreach((t=>{if("click"===t)$.on(this._element,this.constructor.event.click,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===je?this.constructor.event.mouseenter:this.constructor.event.focusin,i=t===je?this.constructor.event.mouseleave:this.constructor.event.focusout;$.on(this._element,e,this._config.selector,(t=>this._enter(t))),$.on(this._element,i,this._config.selector,(t=>this._leave(t)))}})),this._hidemodalhandler=()=>{this._element&&this.hide()},$.on(this._element.closest(xe),me,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?he:je]=!0),e.gettipelement().classlist.contains(ne)||e._hoverstate===de?e._hoverstate=de:(cleartimeout(e._timeout),e._hoverstate=de,e._config.delay&&e._config.delay.show?e._timeout=settimeout((()=>{e._hoverstate===de&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeondelegatedtarget(t,e),t&&(e._activetrigger["focusout"===t.type?he:je]=e._element.contains(t.relatedtarget)),e._iswithactivetrigger()||(cleartimeout(e._timeout),e._hoverstate=ie,e._config.delay&&e._config.delay.hide?e._timeout=settimeout((()=>{e._hoverstate===ie&&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=x.getdataattributes(this._element);return object.keys(e).foreach((t=>{te.has(t)&&delete e[t]})),(t={...this.constructor.default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:c(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()),h(ae,t,this.constructor.defaulttype),t.sanitize&&(t.template=we(t.template,t.allowlist,t.sanitizefn)),t}_getdelegateconfig(){const t={};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=new regexp(`(^|\\s)${this._getbasicclassprefix()}\\s+`,"g"),i=t.getattribute("class").match(e);null!==i&&i.length>0&&i.map((t=>t.trim())).foreach((e=>t.classlist.remove(e)))}_getbasicclassprefix(){return"bs-tooltip"}_handlepopperplacementchange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleantipclass(),this._addattachmentclass(this._getattachment(e.placement)))}_disposepopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jqueryinterface(t){return this.each((function(){const e=$e.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}v($e);const be={...$e.default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},ze={...$e.defaulttype,content:"(string|element|function)"},re={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 fe extends $e{static get default(){return be}static get name(){return"popover"}static get event(){return re}static get defaulttype(){return ze}iswithcontent(){return this.gettitle()||this._getcontent()}setcontent(t){this._sanitizeandsetcontent(t,this.gettitle(),".popover-header"),this._sanitizeandsetcontent(t,this._getcontent(),".popover-body")}_getcontent(){return this._resolvepossiblefunction(this._config.content)}_getbasicclassprefix(){return"bs-popover"}static jqueryinterface(t){return this.each((function(){const e=fe.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}v(fe);const qe="scrollspy",we={offset:10,method:"auto",target:""},ue={offset:"number",method:"string",target:"(string|element)"},ke="active",ve=".nav-link, .list-group-item, .dropdown-item",xe="position";class ye extends r{constructor(t,e){super(t),this._scrollelement="body"===this._element.tagname?window:this._element,this._config=this._getconfig(e),this._offsets=[],this._targets=[],this._activetarget=null,this._scrollheight=0,$.on(this._scrollelement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get default(){return we}static get name(){return qe}refresh(){const t=this._scrollelement===this._scrollelement.window?"offset":xe,e="auto"===this._config.method?t:this._config.method,i=e===xe?this._getscrolltop():0;this._offsets=[],this._targets=[],this._scrollheight=this._getscrollheight(),y.find(ve,this._config.target).map((t=>{const s=o(t),n=s?y.findone(s):null;if(n){const t=n.getboundingclientrect();if(t.width||t.height)return[x[e](n).top+i,s]}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(){$.off(this._scrollelement,".bs.scrollspy"),super.dispose()}_getconfig(t){return(t={...we,...x.getdataattributes(this._element),..."object"==typeof t&&t?t:{}}).target=c(t.target)||document.documentelement,h(qe,t,ue),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(),i=this._config.offset+e-this._getoffsetheight();if(this._scrollheight!==e&&this.refresh(),t>=i){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}"]`)),i=y.findone(e.join(","),this._config.target);i.classlist.add(ke),i.classlist.contains("dropdown-item")?y.findone(".dropdown-toggle",i.closest(".dropdown")).classlist.add(ke):y.parents(i,".nav, .list-group").foreach((t=>{y.prev(t,".nav-link, .list-group-item").foreach((t=>t.classlist.add(ke))),y.prev(t,".nav-item").foreach((t=>{y.children(t,".nav-link").foreach((t=>t.classlist.add(ke)))}))})),$.trigger(this._scrollelement,"activate.bs.scrollspy",{relatedtarget:t})}_clear(){y.find(ve,this._config.target).filter((t=>t.classlist.contains(ke))).foreach((t=>t.classlist.remove(ke)))}static jqueryinterface(t){return this.each((function(){const e=ye.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}$.on(window,"load.bs.scrollspy.data-api",(()=>{y.find('[data-bs-spy="scroll"]').foreach((t=>new ye(t)))})),v(ye);const qe="active",ge="fade",ze="show",je=".active",ti=":scope > li > .active";class ei extends r{static get name(){return"tab"}show(){if(this._element.parentnode&&this._element.parentnode.nodetype===node.element_node&&this._element.classlist.contains(qe))return;let t;const e=r(this._element),i=this._element.closest(".nav, .list-group");if(i){const e="ul"===i.nodename||"ol"===i.nodename?ti:je;t=y.find(e,i),t=t[t.length-1]}const s=t?$.trigger(t,"hide.bs.tab",{relatedtarget:this._element}):null;if($.trigger(this._element,"show.bs.tab",{relatedtarget:t}).defaultprevented||null!==s&&s.defaultprevented)return;this._activate(this._element,i);const n=()=>{$.trigger(t,"hidden.bs.tab",{relatedtarget:this._element}),$.trigger(this._element,"shown.bs.tab",{relatedtarget:t})};e?this._activate(e,e.parentnode,n):n()}_activate(t,e,i){const s=(!e||"ul"!==e.nodename&&"ol"!==e.nodename?y.children(e,je):y.find(ti,e))[0],n=i&&s&&s.classlist.contains(ge),o=()=>this._transitioncomplete(t,s,i);s&&n?(s.classlist.remove(ze),this._queuecallback(o,t,!0)):o()}_transitioncomplete(t,e,i){if(e){e.classlist.remove(qe);const t=y.findone(":scope > .dropdown-menu .active",e.parentnode);t&&t.classlist.remove(qe),"tab"===e.getattribute("role")&&e.setattribute("aria-selected",!1)}t.classlist.add(qe),"tab"===t.getattribute("role")&&t.setattribute("aria-selected",!0),f(t),t.classlist.contains(ge)&&t.classlist.add(ze);let s=t.parentnode;if(s&&"li"===s.nodename&&(s=s.parentnode),s&&s.classlist.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&y.find(".dropdown-toggle",e).foreach((t=>t.classlist.add(qe))),t.setattribute("aria-expanded",!0)}i&&i()}static jqueryinterface(t){return this.each((function(){const e=ei.getorcreateinstance(this);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}$.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(),u(this)||ei.getorcreateinstance(this).show()})),v(ei);const ii="toast",si="hide",ni="show",oi="showing",ri={animation:"boolean",autohide:"boolean",delay:"number"},ai={animation:!0,autohide:!0,delay:5e3};class li extends r{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 ri}static get default(){return ai}static get name(){return ii}show(){$.trigger(this._element,"show.bs.toast").defaultprevented||(this._cleartimeout(),this._config.animation&&this._element.classlist.add("fade"),this._element.classlist.remove(si),f(this._element),this._element.classlist.add(ni),this._element.classlist.add(oi),this._queuecallback((()=>{this._element.classlist.remove(oi),$.trigger(this._element,"shown.bs.toast"),this._maybeschedulehide()}),this._element,this._config.animation))}hide(){this._element.classlist.contains(ni)&&($.trigger(this._element,"hide.bs.toast").defaultprevented||(this._element.classlist.add(oi),this._queuecallback((()=>{this._element.classlist.add(si),this._element.classlist.remove(oi),this._element.classlist.remove(ni),$.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._cleartimeout(),this._element.classlist.contains(ni)&&this._element.classlist.remove(ni),super.dispose()}_getconfig(t){return t={...ai,...x.getdataattributes(this._element),..."object"==typeof t&&t?t:{}},h(ii,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 i=t.relatedtarget;this._element===i||this._element.contains(i)||this._maybeschedulehide()}_setlisteners(){$.on(this._element,"mouseover.bs.toast",(t=>this._oninteraction(t,!0))),$.on(this._element,"mouseout.bs.toast",(t=>this._oninteraction(t,!1))),$.on(this._element,"focusin.bs.toast",(t=>this._oninteraction(t,!0))),$.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=li.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}return f(li),v(li),{alert:q,button:u,carousel:at,collapse:mt,dropdown:ht,modal:he,offcanvas:me,popover:fe,scrollspy:ye,tab:ei,toast:li,tooltip:$e}}));