/*! * bootstrap v5.3.3 (https://getbootstrap.com/) * copyright 2011-2024 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){const e=object.create(null,{[symbol.tostringtag]:{value:"module"}});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=new map,n={set(t,e,i){s.has(t)||s.set(t,new map);const n=s.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`bootstrap doesn't allow more than one instance per element. bound instance: ${array.from(n.keys())[0]}.`)},get:(t,e)=>s.has(t)&&s.get(t).get(e)||null,remove(t,e){if(!s.has(t))return;const i=s.get(t);i.delete(e),0===i.size&&s.delete(t)}},o="transitionend",r=t=>(t&&window.css&&window.css.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${css.escape(e)}`))),t),a=t=>{t.dispatchevent(new event(o))},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(r(t)):null,h=t=>{if(!l(t)||0===t.getclientrects().length)return!1;const e="visible"===getcomputedstyle(t).getpropertyvalue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentnode!==i)return!1;if(null===e)return!1}return e},d=t=>!t||t.nodetype!==node.element_node||!!t.classlist.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasattribute("disabled")&&"false"!==t.getattribute("disabled")),u=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?u(t.parentnode):null},_=()=>{},g=t=>{t.offsetheight},f=()=>window.jquery&&!document.body.hasattribute("data-bs-no-jquery")?window.jquery:null,m=[],p=()=>"rtl"===document.documentelement.dir,b=t=>{var e;e=()=>{const e=f();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",(()=>{for(const t of m)t()})),m.push(e)):e()},v=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,y=(t,e,i=!0)=>{if(!i)return void v(t);const s=(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 n=!1;const r=({target:i})=>{i===e&&(n=!0,e.removeeventlistener(o,r),v(t))};e.addeventlistener(o,r),settimeout((()=>{n||a(e)}),s)},w=(t,e,i,s)=>{const n=t.length;let o=t.indexof(e);return-1===o?!i&&s?t[n-1]:t[0]:(o+=i?1:-1,s&&(o=(o+n)%n),t[math.max(0,math.min(o,n-1))])},a=/[^.]*(?=\..*)\.|.*/,e=/\..*/,c=/::\d+$/,t={};let k=1;const $={mouseenter:"mouseover",mouseleave:"mouseout"},s=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 l(t,e){return e&&`${e}::${k++}`||t.uidevent||k++}function o(t){const e=l(t);return t.uidevent=e,t[e]=t[e]||{},t[e]}function i(t,e,i=null){return object.values(t).find((t=>t.callable===e&&t.delegationselector===i))}function d(t,e,i){const s="string"==typeof e,n=s?i:e||i;let o=m(t);return s.has(o)||(o=t),[s,n,o]}function n(t,e,i,s,n){if("string"!=typeof e||!t)return;let[o,r,a]=d(e,i,s);if(e in $){const t=t=>function(e){if(!e.relatedtarget||e.relatedtarget!==e.delegatetarget&&!e.delegatetarget.contains(e.relatedtarget))return t.call(this,e)};r=t(r)}const l=o(t),c=l[a]||(l[a]={}),h=i(c,r,o?i:null);if(h)return void(h.oneoff=h.oneoff&&n);const d=l(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(const a of o)if(a===r)return f(n,{delegatetarget:r}),s.oneoff&&j.off(t,n.type,e,i),i.apply(r,[n])}}(t,i,r):function(t,e){return function i(s){return f(s,{delegatetarget:t}),i.oneoff&&j.off(t,s.type,e),e.apply(t,[s])}}(t,r);u.delegationselector=o?i:null,u.callable=r,u.oneoff=n,u.uidevent=d,c[d]=u,t.addeventlistener(a,u,o)}function p(t,e,i,s,n){const o=i(e[i],s,n);o&&(t.removeeventlistener(i,o,boolean(n)),delete e[i][o.uidevent])}function x(t,e,i,s){const n=e[i]||{};for(const[o,r]of object.entries(n))o.includes(s)&&p(t,e,i,r.callable,r.delegationselector)}function m(t){return t=t.replace(e,""),$[t]||t}const j={on(t,e,i,s){n(t,e,i,s,!1)},one(t,e,i,s){n(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,o,r]=d(e,i,s),a=r!==e,l=o(t),c=l[r]||{},h=e.startswith(".");if(void 0===o){if(h)for(const i of object.keys(l))x(t,l,i,e.slice(1));for(const[i,s]of object.entries(c)){const n=i.replace(c,"");a&&!e.includes(n)||p(t,l,r,s.callable,s.delegationselector)}}else{if(!object.keys(c).length)return;p(t,l,r,o,n?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const s=f();let n=null,o=!0,r=!0,a=!1;e!==m(e)&&s&&(n=s.event(e,i),s(t).trigger(n),o=!n.ispropagationstopped(),r=!n.isimmediatepropagationstopped(),a=n.isdefaultprevented());const l=f(new event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventdefault(),r&&t.dispatchevent(l),l.defaultprevented&&n&&n.preventdefault(),l}};function f(t,e={}){for(const[i,s]of object.entries(e))try{t[i]=s}catch(e){object.defineproperty(t,i,{configurable:!0,get:()=>s})}return t}function z(t){if("true"===t)return!0;if("false"===t)return!1;if(t===number(t).tostring())return number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return json.parse(decodeuricomponent(t))}catch(e){return t}}function h(t){return t.replace(/[a-z]/g,(t=>`-${t.tolowercase()}`))}const b={setdataattribute(t,e,i){t.setattribute(`data-bs-${h(e)}`,i)},removedataattribute(t,e){t.removeattribute(`data-bs-${h(e)}`)},getdataattributes(t){if(!t)return{};const e={},i=object.keys(t.dataset).filter((t=>t.startswith("bs")&&!t.startswith("bsconfig")));for(const s of i){let i=s.replace(/^bs/,"");i=i.charat(0).tolowercase()+i.slice(1,i.length),e[i]=z(t.dataset[s])}return e},getdataattribute:(t,e)=>z(t.getattribute(`data-bs-${h(e)}`))};class q{static get default(){return{}}static get defaulttype(){return{}}static get name(){throw new error('you have to implement the static method "name", for each component!')}_getconfig(t){return t=this._mergeconfigobj(t),t=this._configaftermerge(t),this._typecheckconfig(t),t}_configaftermerge(t){return t}_mergeconfigobj(t,e){const i=l(e)?b.getdataattribute(e,"config"):{};return{...this.constructor.default,..."object"==typeof i?i:{},...l(e)?b.getdataattributes(e):{},..."object"==typeof t?t:{}}}_typecheckconfig(t,e=this.constructor.defaulttype){for(const[s,n]of object.entries(e)){const e=t[s],o=l(e)?"element":null==(i=e)?`${i}`:object.prototype.tostring.call(i).match(/\s([a-z]+)/i)[1].tolowercase();if(!new regexp(n).test(o))throw new typeerror(`${this.constructor.name.touppercase()}: option "${s}" provided type "${o}" but expected type "${n}".`)}var i}}class w extends q{constructor(t,e){super(),(t=c(t))&&(this._element=t,this._config=this._getconfig(e),n.set(this._element,this.constructor.data_key,this))}dispose(){n.remove(this._element,this.constructor.data_key),j.off(this._element,this.constructor.event_key);for(const t of object.getownpropertynames(this))this[t]=null}_queuecallback(t,e,i=!0){y(t,e,i)}_getconfig(t){return t=this._mergeconfigobj(t,this._element),t=this._configaftermerge(t),this._typecheckconfig(t),t}static getinstance(t){return n.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.3.3"}static get data_key(){return`bs.${this.name}`}static get event_key(){return`.${this.data_key}`}static eventname(t){return`${t}${this.event_key}`}}const r=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?e.split(",").map((t=>r(t))).join(","):null},k={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.closest(e);for(;s;)i.push(s),s=s.parentnode.closest(e);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=>!d(t)&&h(t)))},getselectorfromelement(t){const e=r(t);return e&&k.findone(e)?e:null},getelementfromselector(t){const e=r(t);return e?k.findone(e):null},getmultipleelementsfromselector(t){const e=r(t);return e?k.find(e):[]}},v=(t,e="hide")=>{const i=`click.dismiss${t.event_key}`,s=t.name;j.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["a","area"].includes(this.tagname)&&i.preventdefault(),d(this))return;const n=k.getelementfromselector(this)||this.closest(`.${s}`);t.getorcreateinstance(n)[e]()}))},q=".bs.alert",x=`close${q}`,y=`closed${q}`;class u extends w{static get name(){return"alert"}close(){if(j.trigger(this._element,x).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(),j.trigger(this._element,y),this.dispose()}static jqueryinterface(t){return this.each((function(){const e=u.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)}}))}}v(u,"close"),b(u);const g='[data-bs-toggle="button"]';class j extends w{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=j.getorcreateinstance(this);"toggle"===t&&e[t]()}))}}j.on(document,"click.bs.button.data-api",g,(t=>{t.preventdefault();const e=t.target.closest(g);j.getorcreateinstance(e).toggle()})),b(j);const z=".bs.swipe",tt=`touchstart${z}`,et=`touchmove${z}`,it=`touchend${z}`,st=`pointerdown${z}`,nt=`pointerup${z}`,ot={endcallback:null,leftcallback:null,rightcallback:null},rt={endcallback:"(function|null)",leftcallback:"(function|null)",rightcallback:"(function|null)"};class at extends q{constructor(t,e){super(),this._element=t,t&&at.issupported()&&(this._config=this._getconfig(e),this._deltax=0,this._supportpointerevents=boolean(window.pointerevent),this._initevents())}static get default(){return ot}static get defaulttype(){return rt}static get name(){return"swipe"}dispose(){j.off(this._element,z)}_start(t){this._supportpointerevents?this._eventispointerpentouch(t)&&(this._deltax=t.clientx):this._deltax=t.touches[0].clientx}_end(t){this._eventispointerpentouch(t)&&(this._deltax=t.clientx-this._deltax),this._handleswipe(),v(this._config.endcallback)}_move(t){this._deltax=t.touches&&t.touches.length>1?0:t.touches[0].clientx-this._deltax}_handleswipe(){const t=math.abs(this._deltax);if(t<=40)return;const e=t/this._deltax;this._deltax=0,e&&v(e>0?this._config.rightcallback:this._config.leftcallback)}_initevents(){this._supportpointerevents?(j.on(this._element,st,(t=>this._start(t))),j.on(this._element,nt,(t=>this._end(t))),this._element.classlist.add("pointer-event")):(j.on(this._element,tt,(t=>this._start(t))),j.on(this._element,et,(t=>this._move(t))),j.on(this._element,it,(t=>this._end(t))))}_eventispointerpentouch(t){return this._supportpointerevents&&("pen"===t.pointertype||"touch"===t.pointertype)}static issupported(){return"ontouchstart"in document.documentelement||navigator.maxtouchpoints>0}}const lt=".bs.carousel",ct=".data-api",ht="next",dt="prev",ut="left",_t="right",gt=`slide${lt}`,ft=`slid${lt}`,mt=`keydown${lt}`,pt=`mouseenter${lt}`,bt=`mouseleave${lt}`,vt=`dragstart${lt}`,yt=`load${lt}${ct}`,wt=`click${lt}${ct}`,at="carousel",et="active",ct=".active",tt=".carousel-item",kt=ct+tt,$t={arrowleft:_t,arrowright:ut},st={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ot extends w{constructor(t,e){super(t,e),this._interval=null,this._activeelement=null,this._issliding=!1,this.touchtimeout=null,this._swipehelper=null,this._indicatorselement=k.findone(".carousel-indicators",this._element),this._addeventlisteners(),this._config.ride===at&&this.cycle()}static get default(){return st}static get defaulttype(){return lt}static get name(){return"carousel"}next(){this._slide(ht)}nextwhenvisible(){!document.hidden&&h(this._element)&&this.next()}prev(){this._slide(dt)}pause(){this._issliding&&a(this._element),this._clearinterval()}cycle(){this._clearinterval(),this._updateinterval(),this._interval=setinterval((()=>this.nextwhenvisible()),this._config.interval)}_maybeenablecycle(){this._config.ride&&(this._issliding?j.one(this._element,ft,(()=>this.cycle())):this.cycle())}to(t){const e=this._getitems();if(t>e.length-1||t<0)return;if(this._issliding)return void j.one(this._element,ft,(()=>this.to(t)));const i=this._getitemindex(this._getactive());if(i===t)return;const s=t>i?ht:dt;this._slide(s,e[t])}dispose(){this._swipehelper&&this._swipehelper.dispose(),super.dispose()}_configaftermerge(t){return t.defaultinterval=t.interval,t}_addeventlisteners(){this._config.keyboard&&j.on(this._element,mt,(t=>this._keydown(t))),"hover"===this._config.pause&&(j.on(this._element,pt,(()=>this.pause())),j.on(this._element,bt,(()=>this._maybeenablecycle()))),this._config.touch&&at.issupported()&&this._addtoucheventlisteners()}_addtoucheventlisteners(){for(const t of k.find(".carousel-item img",this._element))j.on(t,vt,(t=>t.preventdefault()));const t={leftcallback:()=>this._slide(this._directiontoorder(ut)),rightcallback:()=>this._slide(this._directiontoorder(_t)),endcallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchtimeout&&cleartimeout(this.touchtimeout),this.touchtimeout=settimeout((()=>this._maybeenablecycle()),500+this._config.interval))}};this._swipehelper=new at(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagname))return;const e=$t[t.key];e&&(t.preventdefault(),this._slide(this._directiontoorder(e)))}_getitemindex(t){return this._getitems().indexof(t)}_setactiveindicatorelement(t){if(!this._indicatorselement)return;const e=k.findone(ct,this._indicatorselement);e.classlist.remove(et),e.removeattribute("aria-current");const i=k.findone(`[data-bs-slide-to="${t}"]`,this._indicatorselement);i&&(i.classlist.add(et),i.setattribute("aria-current","true"))}_updateinterval(){const t=this._activeelement||this._getactive();if(!t)return;const e=number.parseint(t.getattribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultinterval}_slide(t,e=null){if(this._issliding)return;const i=this._getactive(),s=t===ht,n=e||w(this._getitems(),i,s,this._config.wrap);if(n===i)return;const o=this._getitemindex(n),r=e=>j.trigger(this._element,e,{relatedtarget:n,direction:this._ordertodirection(t),from:this._getitemindex(i),to:o});if(r(gt).defaultprevented)return;if(!i||!n)return;const a=boolean(this._interval);this.pause(),this._issliding=!0,this._setactiveindicatorelement(o),this._activeelement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classlist.add(c),g(n),i.classlist.add(l),n.classlist.add(l),this._queuecallback((()=>{n.classlist.remove(l,c),n.classlist.add(et),i.classlist.remove(et,c,l),this._issliding=!1,r(ft)}),i,this._isanimated()),a&&this.cycle()}_isanimated(){return this._element.classlist.contains("slide")}_getactive(){return k.findone(kt,this._element)}_getitems(){return k.find(tt,this._element)}_clearinterval(){this._interval&&(clearinterval(this._interval),this._interval=null)}_directiontoorder(t){return p()?t===ut?dt:ht:t===ut?ht:dt}_ordertodirection(t){return p()?t===dt?ut:_t:t===dt?_t:ut}static jqueryinterface(t){return this.each((function(){const e=ot.getorcreateinstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t]()}}else e.to(t)}))}}j.on(document,wt,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=k.getelementfromselector(this);if(!e||!e.classlist.contains(at))return;t.preventdefault();const i=ot.getorcreateinstance(e),s=this.getattribute("data-bs-slide-to");return s?(i.to(s),void i._maybeenablecycle()):"next"===b.getdataattribute(this,"slide")?(i.next(),void i._maybeenablecycle()):(i.prev(),void i._maybeenablecycle())})),j.on(window,yt,(()=>{const t=k.find('[data-bs-ride="carousel"]');for(const e of t)ot.getorcreateinstance(e)})),b(ot);const it=".bs.collapse",dt=`show${it}`,nt=`shown${it}`,pt=`hide${it}`,xt=`hidden${it}`,mt=`click${it}.data-api`,jt="show",ft="collapse",zt="collapsing",ht=`:scope .${ft} .${ft}`,bt='[data-bs-toggle="collapse"]',qt={parent:null,toggle:!0},wt={parent:"(null|element)",toggle:"boolean"};class rt extends w{constructor(t,e){super(t,e),this._istransitioning=!1,this._triggerarray=[];const i=k.find(bt);for(const t of i){const e=k.getselectorfromelement(t),i=k.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerarray.push(t)}this._initializechildren(),this._config.parent||this._addariaandcollapsedclass(this._triggerarray,this._isshown()),this._config.toggle&&this.toggle()}static get default(){return qt}static get defaulttype(){return wt}static get name(){return"collapse"}toggle(){this._isshown()?this.hide():this.show()}show(){if(this._istransitioning||this._isshown())return;let t=[];if(this._config.parent&&(t=this._getfirstlevelchildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>rt.getorcreateinstance(t,{toggle:!1})))),t.length&&t[0]._istransitioning)return;if(j.trigger(this._element,dt).defaultprevented)return;for(const e of t)e.hide();const e=this._getdimension();this._element.classlist.remove(ft),this._element.classlist.add(zt),this._element.style[e]=0,this._addariaandcollapsedclass(this._triggerarray,!0),this._istransitioning=!0;const i=`scroll${e[0].touppercase()+e.slice(1)}`;this._queuecallback((()=>{this._istransitioning=!1,this._element.classlist.remove(zt),this._element.classlist.add(ft,jt),this._element.style[e]="",j.trigger(this._element,nt)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._istransitioning||!this._isshown())return;if(j.trigger(this._element,pt).defaultprevented)return;const t=this._getdimension();this._element.style[t]=`${this._element.getboundingclientrect()[t]}px`,g(this._element),this._element.classlist.add(zt),this._element.classlist.remove(ft,jt);for(const t of this._triggerarray){const e=k.getelementfromselector(t);e&&!this._isshown(e)&&this._addariaandcollapsedclass([t],!1)}this._istransitioning=!0,this._element.style[t]="",this._queuecallback((()=>{this._istransitioning=!1,this._element.classlist.remove(zt),this._element.classlist.add(ft),j.trigger(this._element,xt)}),this._element,!0)}_isshown(t=this._element){return t.classlist.contains(jt)}_configaftermerge(t){return t.toggle=boolean(t.toggle),t.parent=c(t.parent),t}_getdimension(){return this._element.classlist.contains("collapse-horizontal")?"width":"height"}_initializechildren(){if(!this._config.parent)return;const t=this._getfirstlevelchildren(bt);for(const e of t){const t=k.getelementfromselector(e);t&&this._addariaandcollapsedclass([e],this._isshown(t))}}_getfirstlevelchildren(t){const e=k.find(ht,this._config.parent);return k.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addariaandcollapsedclass(t,e){if(t.length)for(const i of t)i.classlist.toggle("collapsed",!e),i.setattribute("aria-expanded",e)}static jqueryinterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=rt.getorcreateinstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new typeerror(`no method named "${t}"`);i[t]()}}))}}j.on(document,mt,bt,(function(t){("a"===t.target.tagname||t.delegatetarget&&"a"===t.delegatetarget.tagname)&&t.preventdefault();for(const t of k.getmultipleelementsfromselector(this))rt.getorcreateinstance(t,{toggle:!1}).toggle()})),b(rt);const kt="dropdown",vt=".bs.dropdown",qt=".data-api",xt="arrowup",yt="arrowdown",ut=`hide${vt}`,gt=`hidden${vt}`,jt=`show${vt}`,zt=`shown${vt}`,te=`click${vt}${qt}`,ee=`keydown${vt}${qt}`,ie=`keyup${vt}${qt}`,se="show",ne='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',oe=`${ne}.${se}`,re=".dropdown-menu",ae=p()?"top-end":"top-start",le=p()?"top-start":"top-end",ce=p()?"bottom-end":"bottom-start",he=p()?"bottom-start":"bottom-end",de=p()?"left-start":"right-start",ue=p()?"right-start":"left-start",_e={autoclose:!0,boundary:"clippingparents",display:"dynamic",offset:[0,2],popperconfig:null,reference:"toggle"},ge={autoclose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperconfig:"(null|object|function)",reference:"(string|element|object)"};class fe extends w{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentnode,this._menu=k.next(this._element,re)[0]||k.prev(this._element,re)[0]||k.findone(re,this._parent),this._innavbar=this._detectnavbar()}static get default(){return _e}static get defaulttype(){return ge}static get name(){return kt}toggle(){return this._isshown()?this.hide():this.show()}show(){if(d(this._element)||this._isshown())return;const t={relatedtarget:this._element};if(!j.trigger(this._element,jt,t).defaultprevented){if(this._createpopper(),"ontouchstart"in document.documentelement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))j.on(t,"mouseover",_);this._element.focus(),this._element.setattribute("aria-expanded",!0),this._menu.classlist.add(se),this._element.classlist.add(se),j.trigger(this._element,zt,t)}}hide(){if(d(this._element)||!this._isshown())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){if(!j.trigger(this._element,ut,t).defaultprevented){if("ontouchstart"in document.documentelement)for(const t of[].concat(...document.body.children))j.off(t,"mouseover",_);this._popper&&this._popper.destroy(),this._menu.classlist.remove(se),this._element.classlist.remove(se),this._element.setattribute("aria-expanded","false"),b.removedataattribute(this._menu,"popper"),j.trigger(this._element,gt,t)}}_getconfig(t){if("object"==typeof(t=super._getconfig(t)).reference&&!l(t.reference)&&"function"!=typeof t.reference.getboundingclientrect)throw new typeerror(`${kt.touppercase()}: option "reference" provided type "object" without a required "getboundingclientrect" method.`);return t}_createpopper(){if(void 0===i)throw new typeerror("bootstrap's dropdowns require popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:l(this._config.reference)?t=c(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getpopperconfig();this._popper=i.createpopper(t,this._menu,e)}_isshown(){return this._menu.classlist.contains(se)}_getplacement(){const t=this._parent;if(t.classlist.contains("dropend"))return de;if(t.classlist.contains("dropstart"))return ue;if(t.classlist.contains("dropup-center"))return"top";if(t.classlist.contains("dropdown-center"))return"bottom";const e="end"===getcomputedstyle(this._menu).getpropertyvalue("--bs-position").trim();return t.classlist.contains("dropup")?e?le:ae:e?he:ce}_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(this._innavbar||"static"===this._config.display)&&(b.setdataattribute(this._menu,"popper","static"),t.modifiers=[{name:"applystyles",enabled:!1}]),{...t,...v(this._config.popperconfig,[t])}}_selectmenuitem({key:t,target:e}){const i=k.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>h(t)));i.length&&w(i,e,t===yt,!i.includes(e)).focus()}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]()}}))}static clearmenus(t){if(2===t.button||"keyup"===t.type&&"tab"!==t.key)return;const e=k.find(oe);for(const i of e){const e=fe.getinstance(i);if(!e||!1===e._config.autoclose)continue;const s=t.composedpath(),n=s.includes(e._menu);if(s.includes(e._element)||"inside"===e._config.autoclose&&!n||"outside"===e._config.autoclose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagname)))continue;const o={relatedtarget:e._element};"click"===t.type&&(o.clickevent=t),e._completehide(o)}}static dataapikeydownhandler(t){const e=/input|textarea/i.test(t.target.tagname),i="escape"===t.key,s=[xt,yt].includes(t.key);if(!s&&!i)return;if(e&&!i)return;t.preventdefault();const n=this.matches(ne)?this:k.prev(this,ne)[0]||k.next(this,ne)[0]||k.findone(ne,t.delegatetarget.parentnode),o=fe.getorcreateinstance(n);if(s)return t.stoppropagation(),o.show(),void o._selectmenuitem(t);o._isshown()&&(t.stoppropagation(),o.hide(),n.focus())}}j.on(document,ee,ne,fe.dataapikeydownhandler),j.on(document,ee,re,fe.dataapikeydownhandler),j.on(document,te,fe.clearmenus),j.on(document,ie,fe.clearmenus),j.on(document,te,ne,(function(t){t.preventdefault(),fe.getorcreateinstance(this).toggle()})),b(fe);const me="backdrop",pe="show",be=`mousedown.bs.${me}`,ve={classname:"modal-backdrop",clickcallback:null,isanimated:!1,isvisible:!0,rootelement:"body"},ye={classname:"string",clickcallback:"(function|null)",isanimated:"boolean",isvisible:"boolean",rootelement:"(element|string)"};class we extends q{constructor(t){super(),this._config=this._getconfig(t),this._isappended=!1,this._element=null}static get default(){return ve}static get defaulttype(){return ye}static get name(){return me}show(t){if(!this._config.isvisible)return void v(t);this._append();const e=this._getelement();this._config.isanimated&&g(e),e.classlist.add(pe),this._emulateanimation((()=>{v(t)}))}hide(t){this._config.isvisible?(this._getelement().classlist.remove(pe),this._emulateanimation((()=>{this.dispose(),v(t)}))):v(t)}dispose(){this._isappended&&(j.off(this._element,be),this._element.remove(),this._isappended=!1)}_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}_configaftermerge(t){return t.rootelement=c(t.rootelement),t}_append(){if(this._isappended)return;const t=this._getelement();this._config.rootelement.append(t),j.on(t,be,(()=>{v(this._config.clickcallback)})),this._isappended=!0}_emulateanimation(t){y(t,this._getelement(),this._config.isanimated)}}const ae=".bs.focustrap",ee=`focusin${ae}`,ce=`keydown.tab${ae}`,te="backward",ke={autofocus:!0,trapelement:null},$e={autofocus:"boolean",trapelement:"element"};class se extends q{constructor(t){super(),this._config=this._getconfig(t),this._isactive=!1,this._lasttabnavdirection=null}static get default(){return ke}static get defaulttype(){return $e}static get name(){return"focustrap"}activate(){this._isactive||(this._config.autofocus&&this._config.trapelement.focus(),j.off(document,ae),j.on(document,ee,(t=>this._handlefocusin(t))),j.on(document,ce,(t=>this._handlekeydown(t))),this._isactive=!0)}deactivate(){this._isactive&&(this._isactive=!1,j.off(document,ae))}_handlefocusin(t){const{trapelement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=k.focusablechildren(e);0===i.length?e.focus():this._lasttabnavdirection===te?i[i.length-1].focus():i[0].focus()}_handlekeydown(t){"tab"===t.key&&(this._lasttabnavdirection=t.shiftkey?te:"forward")}}const le=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",oe=".sticky-top",ie="padding-right",de="margin-right";class ne{constructor(){this._element=document.body}getwidth(){const t=document.documentelement.clientwidth;return math.abs(window.innerwidth-t)}hide(){const t=this.getwidth();this._disableoverflow(),this._setelementattributes(this._element,ie,(e=>e+t)),this._setelementattributes(le,ie,(e=>e+t)),this._setelementattributes(oe,de,(e=>e-t))}reset(){this._resetelementattributes(this._element,"overflow"),this._resetelementattributes(this._element,ie),this._resetelementattributes(le,ie),this._resetelementattributes(oe,de)}isoverflowing(){return this.getwidth()>0}_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).getpropertyvalue(e);t.style.setproperty(e,`${i(number.parsefloat(n))}px`)}))}_saveinitialattribute(t,e){const i=t.style.getpropertyvalue(e);i&&b.setdataattribute(t,e,i)}_resetelementattributes(t,e){this._applymanipulationcallback(t,(t=>{const i=b.getdataattribute(t,e);null!==i?(b.removedataattribute(t,e),t.style.setproperty(e,i)):t.style.removeproperty(e)}))}_applymanipulationcallback(t,e){if(l(t))e(t);else for(const i of k.find(t,this._element))e(i)}}const pe=".bs.modal",xe=`hide${pe}`,me=`hideprevented${pe}`,je=`hidden${pe}`,fe=`show${pe}`,ze=`shown${pe}`,he=`resize${pe}`,be=`click.dismiss${pe}`,qe=`mousedown.dismiss${pe}`,we=`keydown.dismiss${pe}`,re=`click${pe}.data-api`,ke="modal-open",ve="show",qe="modal-static",xe={backdrop:!0,focus:!0,keyboard:!0},ye={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ue extends w{constructor(t,e){super(t,e),this._dialog=k.findone(".modal-dialog",this._element),this._backdrop=this._initializebackdrop(),this._focustrap=this._initializefocustrap(),this._isshown=!1,this._istransitioning=!1,this._scrollbar=new ne,this._addeventlisteners()}static get default(){return xe}static get defaulttype(){return ye}static get name(){return"modal"}toggle(t){return this._isshown?this.hide():this.show(t)}show(t){this._isshown||this._istransitioning||j.trigger(this._element,fe,{relatedtarget:t}).defaultprevented||(this._isshown=!0,this._istransitioning=!0,this._scrollbar.hide(),document.body.classlist.add(ke),this._adjustdialog(),this._backdrop.show((()=>this._showelement(t))))}hide(){this._isshown&&!this._istransitioning&&(j.trigger(this._element,xe).defaultprevented||(this._isshown=!1,this._istransitioning=!0,this._focustrap.deactivate(),this._element.classlist.remove(ve),this._queuecallback((()=>this._hidemodal()),this._element,this._isanimated())))}dispose(){j.off(window,pe),j.off(this._dialog,pe),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleupdate(){this._adjustdialog()}_initializebackdrop(){return new we({isvisible:boolean(this._config.backdrop),isanimated:this._isanimated()})}_initializefocustrap(){return new se({trapelement:this._element})}_showelement(t){document.body.contains(this._element)||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;const e=k.findone(".modal-body",this._dialog);e&&(e.scrolltop=0),g(this._element),this._element.classlist.add(ve),this._queuecallback((()=>{this._config.focus&&this._focustrap.activate(),this._istransitioning=!1,j.trigger(this._element,ze,{relatedtarget:t})}),this._dialog,this._isanimated())}_addeventlisteners(){j.on(this._element,we,(t=>{"escape"===t.key&&(this._config.keyboard?this.hide():this._triggerbackdroptransition())})),j.on(window,he,(()=>{this._isshown&&!this._istransitioning&&this._adjustdialog()})),j.on(this._element,qe,(t=>{j.one(this._element,be,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerbackdroptransition())}))}))}_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(ke),this._resetadjustments(),this._scrollbar.reset(),j.trigger(this._element,je)}))}_isanimated(){return this._element.classlist.contains("fade")}_triggerbackdroptransition(){if(j.trigger(this._element,me).defaultprevented)return;const t=this._element.scrollheight>document.documentelement.clientheight,e=this._element.style.overflowy;"hidden"===e||this._element.classlist.contains(qe)||(t||(this._element.style.overflowy="hidden"),this._element.classlist.add(qe),this._queuecallback((()=>{this._element.classlist.remove(qe),this._queuecallback((()=>{this._element.style.overflowy=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustdialog(){const t=this._element.scrollheight>document.documentelement.clientheight,e=this._scrollbar.getwidth(),i=e>0;if(i&&!t){const t=p()?"paddingleft":"paddingright";this._element.style[t]=`${e}px`}if(!i&&t){const t=p()?"paddingright":"paddingleft";this._element.style[t]=`${e}px`}}_resetadjustments(){this._element.style.paddingleft="",this._element.style.paddingright=""}static jqueryinterface(t,e){return this.each((function(){const i=ue.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new typeerror(`no method named "${t}"`);i[t](e)}}))}}j.on(document,re,'[data-bs-toggle="modal"]',(function(t){const e=k.getelementfromselector(this);["a","area"].includes(this.tagname)&&t.preventdefault(),j.one(e,fe,(t=>{t.defaultprevented||j.one(e,je,(()=>{h(this)&&this.focus()}))}));const i=k.findone(".modal.show");i&&ue.getinstance(i).hide(),ue.getorcreateinstance(e).toggle(this)})),v(ue),b(ue);const ge=".bs.offcanvas",je=".data-api",ze=`load${ge}${je}`,ti="show",ei="showing",ii="hiding",si=".offcanvas.show",ni=`show${ge}`,oi=`shown${ge}`,ri=`hide${ge}`,ai=`hideprevented${ge}`,li=`hidden${ge}`,ci=`resize${ge}`,hi=`click${ge}${je}`,di=`keydown.dismiss${ge}`,ui={backdrop:!0,keyboard:!0,scroll:!1},_i={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class gi extends w{constructor(t,e){super(t,e),this._isshown=!1,this._backdrop=this._initializebackdrop(),this._focustrap=this._initializefocustrap(),this._addeventlisteners()}static get default(){return ui}static get defaulttype(){return _i}static get name(){return"offcanvas"}toggle(t){return this._isshown?this.hide():this.show(t)}show(t){this._isshown||j.trigger(this._element,ni,{relatedtarget:t}).defaultprevented||(this._isshown=!0,this._backdrop.show(),this._config.scroll||(new ne).hide(),this._element.setattribute("aria-modal",!0),this._element.setattribute("role","dialog"),this._element.classlist.add(ei),this._queuecallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classlist.add(ti),this._element.classlist.remove(ei),j.trigger(this._element,oi,{relatedtarget:t})}),this._element,!0))}hide(){this._isshown&&(j.trigger(this._element,ri).defaultprevented||(this._focustrap.deactivate(),this._element.blur(),this._isshown=!1,this._element.classlist.add(ii),this._backdrop.hide(),this._queuecallback((()=>{this._element.classlist.remove(ti,ii),this._element.removeattribute("aria-modal"),this._element.removeattribute("role"),this._config.scroll||(new ne).reset(),j.trigger(this._element,li)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializebackdrop(){const t=boolean(this._config.backdrop);return new we({classname:"offcanvas-backdrop",isvisible:t,isanimated:!0,rootelement:this._element.parentnode,clickcallback:t?()=>{"static"!==this._config.backdrop?this.hide():j.trigger(this._element,ai)}:null})}_initializefocustrap(){return new se({trapelement:this._element})}_addeventlisteners(){j.on(this._element,di,(t=>{"escape"===t.key&&(this._config.keyboard?this.hide():j.trigger(this._element,ai))}))}static jqueryinterface(t){return this.each((function(){const e=gi.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)}}))}}j.on(document,hi,'[data-bs-toggle="offcanvas"]',(function(t){const e=k.getelementfromselector(this);if(["a","area"].includes(this.tagname)&&t.preventdefault(),d(this))return;j.one(e,li,(()=>{h(this)&&this.focus()}));const i=k.findone(si);i&&i!==e&&gi.getinstance(i).hide(),gi.getorcreateinstance(e).toggle(this)})),j.on(window,ze,(()=>{for(const t of k.find(si))gi.getorcreateinstance(t).show()})),j.on(window,ci,(()=>{for(const t of k.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getcomputedstyle(t).position&&gi.getorcreateinstance(t).hide()})),v(gi),b(gi);const fi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},mi=new set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),pi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,bi=(t,e)=>{const i=t.nodename.tolowercase();return e.includes(i)?!mi.has(i)||boolean(pi.test(t.nodevalue)):e.filter((t=>t instanceof regexp)).some((t=>t.test(i)))},vi={allowlist:fi,content:{},extraclass:"",html:!1,sanitize:!0,sanitizefn:null,template:"
"},yi={allowlist:"object",content:"object",extraclass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizefn:"(null|function)",template:"string"},wi={entry:"(string|element|function|null)",selector:"(string|element)"};class ai extends q{constructor(t){super(),this._config=this._getconfig(t)}static get default(){return vi}static get defaulttype(){return yi}static get name(){return"templatefactory"}getcontent(){return object.values(this._config.content).map((t=>this._resolvepossiblefunction(t))).filter(boolean)}hascontent(){return this.getcontent().length>0}changecontent(t){return this._checkcontent(t),this._config.content={...this._config.content,...t},this}tohtml(){const t=document.createelement("div");t.innerhtml=this._maybesanitize(this._config.template);for(const[e,i]of object.entries(this._config.content))this._setcontent(t,i,e);const e=t.children[0],i=this._resolvepossiblefunction(this._config.extraclass);return i&&e.classlist.add(...i.split(" ")),e}_typecheckconfig(t){super._typecheckconfig(t),this._checkcontent(t.content)}_checkcontent(t){for(const[e,i]of object.entries(t))super._typecheckconfig({selector:e,entry:i},wi)}_setcontent(t,e,i){const s=k.findone(i,t);s&&((e=this._resolvepossiblefunction(e))?l(e)?this._putelementintemplate(c(e),s):this._config.html?s.innerhtml=this._maybesanitize(e):s.textcontent=e:s.remove())}_maybesanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const s=(new window.domparser).parsefromstring(t,"text/html"),n=[].concat(...s.body.queryselectorall("*"));for(const t of n){const i=t.nodename.tolowercase();if(!object.keys(e).includes(i)){t.remove();continue}const s=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[i]||[]);for(const e of s)bi(e,n)||t.removeattribute(e.nodename)}return s.body.innerhtml}(t,this._config.allowlist,this._config.sanitizefn):t}_resolvepossiblefunction(t){return v(t,[this])}_putelementintemplate(t,e){if(this._config.html)return e.innerhtml="",void e.append(t);e.textcontent=t.textcontent}}const ei=new set(["sanitize","allowlist","sanitizefn"]),ci="fade",ti="show",ki=".modal",$i="hide.bs.modal",si="hover",li="focus",oi={auto:"auto",top:"top",right:p()?"left":"right",bottom:"bottom",left:p()?"right":"left"},ii={allowlist:fi,animation:!0,boundary:"clippingparents",container:!1,customclass:"",delay:0,fallbackplacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperconfig:null,sanitize:!0,sanitizefn:null,selector:!1,template:'',title:"",trigger:"hover focus"},di={allowlist:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customclass:"(string|function)",delay:"(number|object)",fallbackplacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperconfig:"(null|object|function)",sanitize:"boolean",sanitizefn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ni extends w{constructor(t,e){if(void 0===i)throw new typeerror("bootstrap's tooltips require popper (https://popper.js.org)");super(t,e),this._isenabled=!0,this._timeout=0,this._ishovered=null,this._activetrigger={},this._popper=null,this._templatefactory=null,this._newcontent=null,this.tip=null,this._setlisteners(),this._config.selector||this._fixtitle()}static get default(){return ii}static get defaulttype(){return di}static get name(){return"tooltip"}enable(){this._isenabled=!0}disable(){this._isenabled=!1}toggleenabled(){this._isenabled=!this._isenabled}toggle(){this._isenabled&&(this._activetrigger.click=!this._activetrigger.click,this._isshown()?this._leave():this._enter())}dispose(){cleartimeout(this._timeout),j.off(this._element.closest(ki),$i,this._hidemodalhandler),this._element.getattribute("data-bs-original-title")&&this._element.setattribute("title",this._element.getattribute("data-bs-original-title")),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=j.trigger(this._element,this.constructor.eventname("show")),e=(u(this._element)||this._element.ownerdocument.documentelement).contains(this._element);if(t.defaultprevented||!e)return;this._disposepopper();const i=this._gettipelement();this._element.setattribute("aria-describedby",i.getattribute("id"));const{container:s}=this._config;if(this._element.ownerdocument.documentelement.contains(this.tip)||(s.append(i),j.trigger(this._element,this.constructor.eventname("inserted"))),this._popper=this._createpopper(i),i.classlist.add(ti),"ontouchstart"in document.documentelement)for(const t of[].concat(...document.body.children))j.on(t,"mouseover",_);this._queuecallback((()=>{j.trigger(this._element,this.constructor.eventname("shown")),!1===this._ishovered&&this._leave(),this._ishovered=!1}),this.tip,this._isanimated())}hide(){if(this._isshown()&&!j.trigger(this._element,this.constructor.eventname("hide")).defaultprevented){if(this._gettipelement().classlist.remove(ti),"ontouchstart"in document.documentelement)for(const t of[].concat(...document.body.children))j.off(t,"mouseover",_);this._activetrigger.click=!1,this._activetrigger[li]=!1,this._activetrigger[si]=!1,this._ishovered=null,this._queuecallback((()=>{this._iswithactivetrigger()||(this._ishovered||this._disposepopper(),this._element.removeattribute("aria-describedby"),j.trigger(this._element,this.constructor.eventname("hidden")))}),this.tip,this._isanimated())}}update(){this._popper&&this._popper.update()}_iswithcontent(){return boolean(this._gettitle())}_gettipelement(){return this.tip||(this.tip=this._createtipelement(this._newcontent||this._getcontentfortemplate())),this.tip}_createtipelement(t){const e=this._gettemplatefactory(t).tohtml();if(!e)return null;e.classlist.remove(ci,ti),e.classlist.add(`bs-${this.constructor.name}-auto`);const i=(t=>{do{t+=math.floor(1e6*math.random())}while(document.getelementbyid(t));return t})(this.constructor.name).tostring();return e.setattribute("id",i),this._isanimated()&&e.classlist.add(ci),e}setcontent(t){this._newcontent=t,this._isshown()&&(this._disposepopper(),this.show())}_gettemplatefactory(t){return this._templatefactory?this._templatefactory.changecontent(t):this._templatefactory=new ai({...this._config,content:t,extraclass:this._resolvepossiblefunction(this._config.customclass)}),this._templatefactory}_getcontentfortemplate(){return{".tooltip-inner":this._gettitle()}}_gettitle(){return this._resolvepossiblefunction(this._config.title)||this._element.getattribute("data-bs-original-title")}_initializeondelegatedtarget(t){return this.constructor.getorcreateinstance(t.delegatetarget,this._getdelegateconfig())}_isanimated(){return this._config.animation||this.tip&&this.tip.classlist.contains(ci)}_isshown(){return this.tip&&this.tip.classlist.contains(ti)}_createpopper(t){const e=v(this._config.placement,[this,t,this._element]),s=oi[e.touppercase()];return i.createpopper(this._element,t,this._getpopperconfig(s))}_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 v(t,[this._element])}_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:"presetplacement",enabled:!0,phase:"beforemain",fn:t=>{this._gettipelement().setattribute("data-popper-placement",t.state.placement)}}]};return{...e,...v(this._config.popperconfig,[e])}}_setlisteners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)j.on(this._element,this.constructor.eventname("click"),this._config.selector,(t=>{this._initializeondelegatedtarget(t).toggle()}));else if("manual"!==e){const t=e===si?this.constructor.eventname("mouseenter"):this.constructor.eventname("focusin"),i=e===si?this.constructor.eventname("mouseleave"):this.constructor.eventname("focusout");j.on(this._element,t,this._config.selector,(t=>{const e=this._initializeondelegatedtarget(t);e._activetrigger["focusin"===t.type?li:si]=!0,e._enter()})),j.on(this._element,i,this._config.selector,(t=>{const e=this._initializeondelegatedtarget(t);e._activetrigger["focusout"===t.type?li:si]=e._element.contains(t.relatedtarget),e._leave()}))}this._hidemodalhandler=()=>{this._element&&this.hide()},j.on(this._element.closest(ki),$i,this._hidemodalhandler)}_fixtitle(){const t=this._element.getattribute("title");t&&(this._element.getattribute("aria-label")||this._element.textcontent.trim()||this._element.setattribute("aria-label",t),this._element.setattribute("data-bs-original-title",t),this._element.removeattribute("title"))}_enter(){this._isshown()||this._ishovered?this._ishovered=!0:(this._ishovered=!0,this._settimeout((()=>{this._ishovered&&this.show()}),this._config.delay.show))}_leave(){this._iswithactivetrigger()||(this._ishovered=!1,this._settimeout((()=>{this._ishovered||this.hide()}),this._config.delay.hide))}_settimeout(t,e){cleartimeout(this._timeout),this._timeout=settimeout(t,e)}_iswithactivetrigger(){return object.values(this._activetrigger).includes(!0)}_getconfig(t){const e=b.getdataattributes(this._element);for(const t of object.keys(e))ei.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeconfigobj(t),t=this._configaftermerge(t),this._typecheckconfig(t),t}_configaftermerge(t){return 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()),t}_getdelegateconfig(){const t={};for(const[e,i]of object.entries(this._config))this.constructor.default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposepopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jqueryinterface(t){return this.each((function(){const e=ni.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}b(ni);const pi={...ni.default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},xi={...ni.defaulttype,content:"(null|string|element|function)"};class mi extends ni{static get default(){return pi}static get defaulttype(){return xi}static get name(){return"popover"}_iswithcontent(){return this._gettitle()||this._getcontent()}_getcontentfortemplate(){return{".popover-header":this._gettitle(),".popover-body":this._getcontent()}}_getcontent(){return this._resolvepossiblefunction(this._config.content)}static jqueryinterface(t){return this.each((function(){const e=mi.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}b(mi);const ji=".bs.scrollspy",fi=`activate${ji}`,zi=`click${ji}`,hi=`load${ji}.data-api`,bi="active",qi="[href]",wi=".nav-link",ri=`${wi}, .nav-item > ${wi}, .list-group-item`,ki={offset:null,rootmargin:"0px 0px -25%",smoothscroll:!1,target:null,threshold:[.1,.5,1]},vi={offset:"(number|null)",rootmargin:"string",smoothscroll:"boolean",target:"element",threshold:"array"};class qi extends w{constructor(t,e){super(t,e),this._targetlinks=new map,this._observablesections=new map,this._rootelement="visible"===getcomputedstyle(this._element).overflowy?null:this._element,this._activetarget=null,this._observer=null,this._previousscrolldata={visibleentrytop:0,parentscrolltop:0},this.refresh()}static get default(){return ki}static get defaulttype(){return vi}static get name(){return"scrollspy"}refresh(){this._initializetargetsandobservables(),this._maybeenablesmoothscroll(),this._observer?this._observer.disconnect():this._observer=this._getnewobserver();for(const t of this._observablesections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configaftermerge(t){return t.target=c(t.target)||document.body,t.rootmargin=t.offset?`${t.offset}px 0px -30%`:t.rootmargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>number.parsefloat(t)))),t}_maybeenablesmoothscroll(){this._config.smoothscroll&&(j.off(this._config.target,zi),j.on(this._config.target,zi,qi,(t=>{const e=this._observablesections.get(t.target.hash);if(e){t.preventdefault();const i=this._rootelement||window,s=e.offsettop-this._element.offsettop;if(i.scrollto)return void i.scrollto({top:s,behavior:"smooth"});i.scrolltop=s}})))}_getnewobserver(){const t={root:this._rootelement,threshold:this._config.threshold,rootmargin:this._config.rootmargin};return new intersectionobserver((t=>this._observercallback(t)),t)}_observercallback(t){const e=t=>this._targetlinks.get(`#${t.target.id}`),i=t=>{this._previousscrolldata.visibleentrytop=t.target.offsettop,this._process(e(t))},s=(this._rootelement||document.documentelement).scrolltop,n=s>=this._previousscrolldata.parentscrolltop;this._previousscrolldata.parentscrolltop=s;for(const o of t){if(!o.isintersecting){this._activetarget=null,this._clearactiveclass(e(o));continue}const t=o.target.offsettop>=this._previousscrolldata.visibleentrytop;if(n&&t){if(i(o),!s)return}else n||t||i(o)}}_initializetargetsandobservables(){this._targetlinks=new map,this._observablesections=new map;const t=k.find(qi,this._config.target);for(const e of t){if(!e.hash||d(e))continue;const t=k.findone(decodeuri(e.hash),this._element);h(t)&&(this._targetlinks.set(decodeuri(e.hash),e),this._observablesections.set(e.hash,t))}}_process(t){this._activetarget!==t&&(this._clearactiveclass(this._config.target),this._activetarget=t,t.classlist.add(bi),this._activateparents(t),j.trigger(this._element,fi,{relatedtarget:t}))}_activateparents(t){if(t.classlist.contains("dropdown-item"))k.findone(".dropdown-toggle",t.closest(".dropdown")).classlist.add(bi);else for(const e of k.parents(t,".nav, .list-group"))for(const t of k.prev(e,ri))t.classlist.add(bi)}_clearactiveclass(t){t.classlist.remove(bi);const e=k.find(`${qi}.${bi}`,t);for(const t of e)t.classlist.remove(bi)}static jqueryinterface(t){return this.each((function(){const e=qi.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]()}}))}}j.on(window,hi,(()=>{for(const t of k.find('[data-bs-spy="scroll"]'))qi.getorcreateinstance(t)})),b(qi);const xi=".bs.tab",yi=`hide${xi}`,ui=`hidden${xi}`,gi=`show${xi}`,ji=`shown${xi}`,zi=`click${xi}`,ts=`keydown${xi}`,es=`load${xi}`,is="arrowleft",ss="arrowright",ns="arrowup",os="arrowdown",rs="home",as="end",ls="active",cs="fade",hs="show",ds=".dropdown-toggle",us=`:not(${ds})`,_s='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',gs=`.nav-link${us}, .list-group-item${us}, [role="tab"]${us}, ${_s}`,fs=`.${ls}[data-bs-toggle="tab"], .${ls}[data-bs-toggle="pill"], .${ls}[data-bs-toggle="list"]`;class ms extends w{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setinitialattributes(this._parent,this._getchildren()),j.on(this._element,ts,(t=>this._keydown(t))))}static get name(){return"tab"}show(){const t=this._element;if(this._elemisactive(t))return;const e=this._getactiveelem(),i=e?j.trigger(e,yi,{relatedtarget:t}):null;j.trigger(t,gi,{relatedtarget:e}).defaultprevented||i&&i.defaultprevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classlist.add(ls),this._activate(k.getelementfromselector(t)),this._queuecallback((()=>{"tab"===t.getattribute("role")?(t.removeattribute("tabindex"),t.setattribute("aria-selected",!0),this._toggledropdown(t,!0),j.trigger(t,ji,{relatedtarget:e})):t.classlist.add(hs)}),t,t.classlist.contains(cs)))}_deactivate(t,e){t&&(t.classlist.remove(ls),t.blur(),this._deactivate(k.getelementfromselector(t)),this._queuecallback((()=>{"tab"===t.getattribute("role")?(t.setattribute("aria-selected",!1),t.setattribute("tabindex","-1"),this._toggledropdown(t,!1),j.trigger(t,ui,{relatedtarget:e})):t.classlist.remove(hs)}),t,t.classlist.contains(cs)))}_keydown(t){if(![is,ss,ns,os,rs,as].includes(t.key))return;t.stoppropagation(),t.preventdefault();const e=this._getchildren().filter((t=>!d(t)));let i;if([rs,as].includes(t.key))i=e[t.key===rs?0:e.length-1];else{const s=[ss,os].includes(t.key);i=w(e,t.target,s,!0)}i&&(i.focus({preventscroll:!0}),ms.getorcreateinstance(i).show())}_getchildren(){return k.find(gs,this._parent)}_getactiveelem(){return this._getchildren().find((t=>this._elemisactive(t)))||null}_setinitialattributes(t,e){this._setattributeifnotexists(t,"role","tablist");for(const t of e)this._setinitialattributesonchild(t)}_setinitialattributesonchild(t){t=this._getinnerelement(t);const e=this._elemisactive(t),i=this._getouterelement(t);t.setattribute("aria-selected",e),i!==t&&this._setattributeifnotexists(i,"role","presentation"),e||t.setattribute("tabindex","-1"),this._setattributeifnotexists(t,"role","tab"),this._setinitialattributesontargetpanel(t)}_setinitialattributesontargetpanel(t){const e=k.getelementfromselector(t);e&&(this._setattributeifnotexists(e,"role","tabpanel"),t.id&&this._setattributeifnotexists(e,"aria-labelledby",`${t.id}`))}_toggledropdown(t,e){const i=this._getouterelement(t);if(!i.classlist.contains("dropdown"))return;const s=(t,s)=>{const n=k.findone(t,i);n&&n.classlist.toggle(s,e)};s(ds,ls),s(".dropdown-menu",hs),i.setattribute("aria-expanded",e)}_setattributeifnotexists(t,e,i){t.hasattribute(e)||t.setattribute(e,i)}_elemisactive(t){return t.classlist.contains(ls)}_getinnerelement(t){return t.matches(gs)?t:k.findone(gs,t)}_getouterelement(t){return t.closest(".nav-item, .list-group-item")||t}static jqueryinterface(t){return this.each((function(){const e=ms.getorcreateinstance(this);if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t]()}}))}}j.on(document,zi,_s,(function(t){["a","area"].includes(this.tagname)&&t.preventdefault(),d(this)||ms.getorcreateinstance(this).show()})),j.on(window,es,(()=>{for(const t of k.find(fs))ms.getorcreateinstance(t)})),b(ms);const ps=".bs.toast",bs=`mouseover${ps}`,vs=`mouseout${ps}`,ys=`focusin${ps}`,ws=`focusout${ps}`,as=`hide${ps}`,es=`hidden${ps}`,cs=`show${ps}`,ts=`shown${ps}`,ks="hide",$s="show",ss="showing",ls={animation:"boolean",autohide:"boolean",delay:"number"},os={animation:!0,autohide:!0,delay:5e3};class is extends w{constructor(t,e){super(t,e),this._timeout=null,this._hasmouseinteraction=!1,this._haskeyboardinteraction=!1,this._setlisteners()}static get default(){return os}static get defaulttype(){return ls}static get name(){return"toast"}show(){j.trigger(this._element,cs).defaultprevented||(this._cleartimeout(),this._config.animation&&this._element.classlist.add("fade"),this._element.classlist.remove(ks),g(this._element),this._element.classlist.add($s,ss),this._queuecallback((()=>{this._element.classlist.remove(ss),j.trigger(this._element,ts),this._maybeschedulehide()}),this._element,this._config.animation))}hide(){this.isshown()&&(j.trigger(this._element,as).defaultprevented||(this._element.classlist.add(ss),this._queuecallback((()=>{this._element.classlist.add(ks),this._element.classlist.remove(ss,$s),j.trigger(this._element,es)}),this._element,this._config.animation)))}dispose(){this._cleartimeout(),this.isshown()&&this._element.classlist.remove($s),super.dispose()}isshown(){return this._element.classlist.contains($s)}_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(){j.on(this._element,bs,(t=>this._oninteraction(t,!0))),j.on(this._element,vs,(t=>this._oninteraction(t,!1))),j.on(this._element,ys,(t=>this._oninteraction(t,!0))),j.on(this._element,ws,(t=>this._oninteraction(t,!1)))}_cleartimeout(){cleartimeout(this._timeout),this._timeout=null}static jqueryinterface(t){return this.each((function(){const e=is.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}return v(is),b(is),{alert:u,button:j,carousel:ot,collapse:rt,dropdown:fe,modal:ue,offcanvas:gi,popover:mi,scrollspy:qi,tab:ms,toast:is,tooltip:ni}})); //# sourcemappingurl=bootstrap.min.js.map