(function($,he){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=$.document?he($,!0):function(me){if(!me.document)throw new Error("jQuery requires a window with a document");return he(me)}:he($)})(typeof window<"u"?window:this,function($,he){"use strict";var me=[],st=Object.getPrototypeOf,Xe=me.slice,at=me.flat?function(e){return me.flat.call(e)}:function(e){return me.concat.apply([],e)},be=me.push,jt=me.indexOf,Ae={},Re=Ae.toString,ke=Ae.hasOwnProperty,Je=ke.toString,rn=Je.call(Object),te={},U=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},Se=function(e){return null!=e&&e===e.window},Q=$.document,Ne={type:!0,src:!0,nonce:!0,noModule:!0};function Me(e,n,i){var r,a,u=(i=i||Q).createElement("script");if(u.text=e,n)for(r in Ne)(a=n[r]||n.getAttribute&&n.getAttribute(r))&&u.setAttribute(r,a);i.head.appendChild(u).parentNode.removeChild(u)}function xe(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Ae[Re.call(e)]||"object":typeof e}var o=function(e,n){return new o.fn.init(e,n)};function on(e){var n=!!e&&"length"in e&&e.length,i=xe(e);return!U(e)&&!Se(e)&&("array"===i||0===n||"number"==typeof n&&0+~]|"+G+")"+G+"*"),Fi=new RegExp(G+"|>"),Ri=new RegExp(rt),Wi=new RegExp("^"+se+"$"),ci={ID:new RegExp("^#("+se+")"),CLASS:new RegExp("^\\.("+se+")"),TAG:new RegExp("^("+se+"|[*])"),ATTR:new RegExp("^"+Ee),PSEUDO:new RegExp("^"+rt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+Lt+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},Bi=/HTML$/i,$i=/^(?:input|select|textarea|button)$/i,zi=/^h\d$/i,Un=/^[^{]+\{\s*\[native \w/,Ui=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ci=/[+~]/,zt=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),Ut=function(h,v){var _="0x"+h.slice(1)-65536;return v||(_<0?String.fromCharCode(_+65536):String.fromCharCode(_>>10|55296,1023&_|56320))},Li=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Oi=function(h,v){return v?"\0"===h?"\ufffd":h.slice(0,-1)+"\\"+h.charCodeAt(h.length-1).toString(16)+" ":"\\"+h},ji=function(){p()},Vi=fi(function(h){return!0===h.disabled&&"fieldset"===h.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{pe.apply(Ge=nt.call(B.childNodes),B.childNodes)}catch{pe={apply:Ge.length?function(v,_){pt.apply(v,nt.call(_))}:function(v,_){for(var C=v.length,x=0;v[C++]=_[x++];);v.length=C-1}}}function ce(h,v,_,C){var x,N,D,I,M,Y,V,X=v&&v.ownerDocument,re=v?v.nodeType:9;if(_=_||[],"string"!=typeof h||!h||1!==re&&9!==re&&11!==re)return _;if(!C&&(p(v),v=v||y,L)){if(11!==re&&(M=Ui.exec(h)))if(x=M[1]){if(9===re){if(!(D=v.getElementById(x)))return _;if(D.id===x)return _.push(D),_}else if(X&&(D=X.getElementById(x))&&fe(v,D)&&D.id===x)return _.push(D),_}else{if(M[2])return pe.apply(_,v.getElementsByTagName(h)),_;if((x=M[3])&&i.getElementsByClassName&&v.getElementsByClassName)return pe.apply(_,v.getElementsByClassName(x)),_}if(i.qsa&&!ve[h+" "]&&(!O||!O.test(h))&&(1!==re||"object"!==v.nodeName.toLowerCase())){if(V=h,X=v,1===re&&(Fi.test(h)||li.test(h))){for((X=Ci.test(h)&&ki(v.parentNode)||v)===v&&i.scope||((I=v.getAttribute("id"))?I=I.replace(Li,Oi):v.setAttribute("id",I=ie)),N=(Y=d(h)).length;N--;)Y[N]=(I?"#"+I:":scope")+" "+di(Y[N]);V=Y.join(",")}try{return pe.apply(_,X.querySelectorAll(V)),_}catch{ve(h,!0)}finally{I===ie&&v.removeAttribute("id")}}}return l(h.replace(ot,"$1"),v,_,C)}function ui(){var h=[];return function v(_,C){return h.push(_+" ")>r.cacheLength&&delete v[h.shift()],v[_+" "]=C}}function yt(h){return h[ie]=!0,h}function bt(h){var v=y.createElement("fieldset");try{return!!h(v)}catch{return!1}finally{v.parentNode&&v.parentNode.removeChild(v),v=null}}function Ai(h,v){for(var _=h.split("|"),C=_.length;C--;)r.attrHandle[_[C]]=v}function Ii(h,v){var _=v&&h,C=_&&1===h.nodeType&&1===v.nodeType&&h.sourceIndex-v.sourceIndex;if(C)return C;if(_)for(;_=_.nextSibling;)if(_===v)return-1;return h?1:-1}function Xi(h){return function(v){return"input"===v.nodeName.toLowerCase()&&v.type===h}}function Yi(h){return function(v){var _=v.nodeName.toLowerCase();return("input"===_||"button"===_)&&v.type===h}}function Pi(h){return function(v){return"form"in v?v.parentNode&&!1===v.disabled?"label"in v?"label"in v.parentNode?v.parentNode.disabled===h:v.disabled===h:v.isDisabled===h||v.isDisabled!==!h&&Vi(v)===h:v.disabled===h:"label"in v&&v.disabled===h}}function pn(h){return yt(function(v){return v=+v,yt(function(_,C){for(var x,N=h([],_.length,v),D=N.length;D--;)_[x=N[D]]&&(_[x]=!(C[x]=_[x]))})})}function ki(h){return h&&typeof h.getElementsByTagName<"u"&&h}for(n in i=ce.support={},u=ce.isXML=function(h){var _=(h.ownerDocument||h).documentElement;return!Bi.test(h.namespaceURI||_&&_.nodeName||"HTML")},p=ce.setDocument=function(h){var v,_,C=h?h.ownerDocument||h:B;return C!=y&&9===C.nodeType&&C.documentElement&&(T=(y=C).documentElement,L=!u(y),B!=y&&(_=y.defaultView)&&_.top!==_&&(_.addEventListener?_.addEventListener("unload",ji,!1):_.attachEvent&&_.attachEvent("onunload",ji)),i.scope=bt(function(x){return T.appendChild(x).appendChild(y.createElement("div")),typeof x.querySelectorAll<"u"&&!x.querySelectorAll(":scope fieldset div").length}),i.attributes=bt(function(x){return x.className="i",!x.getAttribute("className")}),i.getElementsByTagName=bt(function(x){return x.appendChild(y.createComment("")),!x.getElementsByTagName("*").length}),i.getElementsByClassName=Un.test(y.getElementsByClassName),i.getById=bt(function(x){return T.appendChild(x).id=ie,!y.getElementsByName||!y.getElementsByName(ie).length}),i.getById?(r.filter.ID=function(x){var N=x.replace(zt,Ut);return function(D){return D.getAttribute("id")===N}},r.find.ID=function(x,N){if(typeof N.getElementById<"u"&&L){var D=N.getElementById(x);return D?[D]:[]}}):(r.filter.ID=function(x){var N=x.replace(zt,Ut);return function(D){var I=typeof D.getAttributeNode<"u"&&D.getAttributeNode("id");return I&&I.value===N}},r.find.ID=function(x,N){if(typeof N.getElementById<"u"&&L){var D,I,M,Y=N.getElementById(x);if(Y){if((D=Y.getAttributeNode("id"))&&D.value===x)return[Y];for(M=N.getElementsByName(x),I=0;Y=M[I++];)if((D=Y.getAttributeNode("id"))&&D.value===x)return[Y]}return[]}}),r.find.TAG=i.getElementsByTagName?function(x,N){return typeof N.getElementsByTagName<"u"?N.getElementsByTagName(x):i.qsa?N.querySelectorAll(x):void 0}:function(x,N){var D,I=[],M=0,Y=N.getElementsByTagName(x);if("*"===x){for(;D=Y[M++];)1===D.nodeType&&I.push(D);return I}return Y},r.find.CLASS=i.getElementsByClassName&&function(x,N){if(typeof N.getElementsByClassName<"u"&&L)return N.getElementsByClassName(x)},ee=[],O=[],(i.qsa=Un.test(y.querySelectorAll))&&(bt(function(x){var N;T.appendChild(x).innerHTML="",x.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+G+"*(?:''|\"\")"),x.querySelectorAll("[selected]").length||O.push("\\["+G+"*(?:value|"+Lt+")"),x.querySelectorAll("[id~="+ie+"-]").length||O.push("~="),(N=y.createElement("input")).setAttribute("name",""),x.appendChild(N),x.querySelectorAll("[name='']").length||O.push("\\["+G+"*name"+G+"*="+G+"*(?:''|\"\")"),x.querySelectorAll(":checked").length||O.push(":checked"),x.querySelectorAll("a#"+ie+"+*").length||O.push(".#.+[+~]"),x.querySelectorAll("\\\f"),O.push("[\\r\\n\\f]")}),bt(function(x){x.innerHTML="";var N=y.createElement("input");N.setAttribute("type","hidden"),x.appendChild(N).setAttribute("name","D"),x.querySelectorAll("[name=d]").length&&O.push("name"+G+"*[*^$|!~]?="),2!==x.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),T.appendChild(x).disabled=!0,2!==x.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),x.querySelectorAll("*,:x"),O.push(",.*:")})),(i.matchesSelector=Un.test(oe=T.matches||T.webkitMatchesSelector||T.mozMatchesSelector||T.oMatchesSelector||T.msMatchesSelector))&&bt(function(x){i.disconnectedMatch=oe.call(x,"*"),oe.call(x,"[s!='']:x"),ee.push("!=",rt)}),O=O.length&&new RegExp(O.join("|")),ee=ee.length&&new RegExp(ee.join("|")),v=Un.test(T.compareDocumentPosition),fe=v||Un.test(T.contains)?function(x,N){var D=9===x.nodeType?x.documentElement:x,I=N&&N.parentNode;return x===I||!(!I||1!==I.nodeType||!(D.contains?D.contains(I):x.compareDocumentPosition&&16&x.compareDocumentPosition(I)))}:function(x,N){if(N)for(;N=N.parentNode;)if(N===x)return!0;return!1},$t=v?function(x,N){if(x===N)return f=!0,0;var D=!x.compareDocumentPosition-!N.compareDocumentPosition;return D||(1&(D=(x.ownerDocument||x)==(N.ownerDocument||N)?x.compareDocumentPosition(N):1)||!i.sortDetached&&N.compareDocumentPosition(x)===D?x==y||x.ownerDocument==B&&fe(B,x)?-1:N==y||N.ownerDocument==B&&fe(B,N)?1:s?it(s,x)-it(s,N):0:4&D?-1:1)}:function(x,N){if(x===N)return f=!0,0;var D,I=0,M=x.parentNode,Y=N.parentNode,V=[x],X=[N];if(!M||!Y)return x==y?-1:N==y?1:M?-1:Y?1:s?it(s,x)-it(s,N):0;if(M===Y)return Ii(x,N);for(D=x;D=D.parentNode;)V.unshift(D);for(D=N;D=D.parentNode;)X.unshift(D);for(;V[I]===X[I];)I++;return I?Ii(V[I],X[I]):V[I]==B?-1:X[I]==B?1:0}),y},ce.matches=function(h,v){return ce(h,null,null,v)},ce.matchesSelector=function(h,v){if(p(h),i.matchesSelector&&L&&!ve[v+" "]&&(!ee||!ee.test(v))&&(!O||!O.test(v)))try{var _=oe.call(h,v);if(_||i.disconnectedMatch||h.document&&11!==h.document.nodeType)return _}catch{ve(v,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(h){return h[1]=h[1].replace(zt,Ut),h[3]=(h[3]||h[4]||h[5]||"").replace(zt,Ut),"~="===h[2]&&(h[3]=" "+h[3]+" "),h.slice(0,4)},CHILD:function(h){return h[1]=h[1].toLowerCase(),"nth"===h[1].slice(0,3)?(h[3]||ce.error(h[0]),h[4]=+(h[4]?h[5]+(h[6]||1):2*("even"===h[3]||"odd"===h[3])),h[5]=+(h[7]+h[8]||"odd"===h[3])):h[3]&&ce.error(h[0]),h},PSEUDO:function(h){var v,_=!h[6]&&h[2];return ci.CHILD.test(h[0])?null:(h[3]?h[2]=h[4]||h[5]||"":_&&Ri.test(_)&&(v=d(_,!0))&&(v=_.indexOf(")",_.length-v)-_.length)&&(h[0]=h[0].slice(0,v),h[2]=_.slice(0,v)),h.slice(0,3))}},filter:{TAG:function(h){var v=h.replace(zt,Ut).toLowerCase();return"*"===h?function(){return!0}:function(_){return _.nodeName&&_.nodeName.toLowerCase()===v}},CLASS:function(h){var v=ae[h+" "];return v||(v=new RegExp("(^|"+G+")"+h+"("+G+"|$)"))&&ae(h,function(_){return v.test("string"==typeof _.className&&_.className||typeof _.getAttribute<"u"&&_.getAttribute("class")||"")})},ATTR:function(h,v,_){return function(C){var x=ce.attr(C,h);return null==x?"!="===v:!v||(x+="","="===v?x===_:"!="===v?x!==_:"^="===v?_&&0===x.indexOf(_):"*="===v?_&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Xt(e,n,i){return U(n)?o.grep(e,function(r,a){return!!n.call(r,a,r)!==i}):n.nodeType?o.grep(e,function(r){return r===n!==i}):"string"!=typeof n?o.grep(e,function(r){return-1)[^>]*|#([\w-]+))$/;(o.fn.init=function(e,n,i){var r,a;if(!e)return this;if(i=i||Yt,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:gn.exec(e))||!r[1]&&n)return!n||n.jquery?(n||i).find(e):this.constructor(n).find(e);if(r[1]){if(o.merge(this,o.parseHTML(r[1],(n=n instanceof o?n[0]:n)&&n.nodeType?n.ownerDocument||n:Q,!0)),xt.test(r[1])&&o.isPlainObject(n))for(r in n)U(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return(a=Q.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):U(e)?void 0!==i.ready?i.ready(e):e(o):o.makeArray(e,this)}).prototype=o.fn,Yt=o(Q);var sn=/^(?:parents|prev(?:Until|All))/,Kt={children:!0,contents:!0,next:!0,prev:!0};function Qt(e,n){for(;(e=e[n])&&1!==e.nodeType;);return e}o.fn.extend({has:function(e){var n=o(e,this),i=n.length;return this.filter(function(){for(var r=0;r\x20\t\r\n\f]*)/i,At=/^$|^module$|\/(?:java|ecma)script/i;le=Q.createDocumentFragment().appendChild(Q.createElement("div")),(Ct=Q.createElement("input")).setAttribute("type","radio"),Ct.setAttribute("checked","checked"),Ct.setAttribute("name","t"),le.appendChild(Ct),te.checkClone=le.cloneNode(!0).cloneNode(!0).lastChild.checked,le.innerHTML="",te.noCloneChecked=!!le.cloneNode(!0).lastChild.defaultValue,le.innerHTML="",te.option=!!le.lastChild;var Te={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function c(e,n){var i;return i=typeof e.getElementsByTagName<"u"?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll<"u"?e.querySelectorAll(n||"*"):[],void 0===n||n&&De(e,n)?o.merge([e],i):i}function g(e,n){for(var i=0,r=e.length;i",""]);var b=/<|&#?\w+;/;function w(e,n,i,r,a){for(var u,d,m,l,t,s,f=n.createDocumentFragment(),p=[],y=0,T=e.length;y\s*$/g;function Ie(e,n){return De(e,"table")&&De(11!==n.nodeType?n:n.firstChild,"tr")&&o(e).children("tbody")[0]||e}function ht(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function kt(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,n){var i,r,a,u,d,m;if(1===n.nodeType){if(q.hasData(e)&&(m=q.get(e).events))for(a in q.remove(n,"handle events"),m)for(i=0,r=m[a].length;i"u"?o.prop(e,n,i):(1===u&&o.isXMLDoc(e)||(a=o.attrHooks[n.toLowerCase()]||(o.expr.match.bool.test(n)?Jn:void 0)),void 0!==i?null===i?void o.removeAttr(e,n):a&&"set"in a&&void 0!==(r=a.set(e,i,n))?r:(e.setAttribute(n,i+""),i):a&&"get"in a&&null!==(r=a.get(e,n))?r:null==(r=o.find.attr(e,n))?void 0:r)},attrHooks:{type:{set:function(e,n){if(!te.radioValue&&"radio"===n&&De(e,"input")){var i=e.value;return e.setAttribute("type",n),i&&(e.value=i),n}}}},removeAttr:function(e,n){var i,r=0,a=n&&n.match($e);if(a&&1===e.nodeType)for(;i=a[r++];)e.removeAttribute(i)}}),Jn={set:function(e,n,i){return!1===n?o.removeAttr(e,i):e.setAttribute(i,i),i}},o.each(o.expr.match.bool.source.match(/\w+/g),function(e,n){var i=Ue[n]||o.find.attr;Ue[n]=function(r,a,u){var d,m,l=a.toLowerCase();return u||(m=Ue[l],Ue[l]=d,d=null!=i(r,a,u)?l:null,Ue[l]=m),d}});var mi=/^(?:input|select|textarea|button)$/i,vi=/^(?:a|area)$/i;function Ft(e){return(e.match($e)||[]).join(" ")}function Rt(e){return e.getAttribute&&e.getAttribute("class")||""}function Tn(e){return Array.isArray(e)?e:"string"==typeof e&&e.match($e)||[]}o.fn.extend({prop:function(e,n){return He(this,o.prop,e,n,1").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(u){n.remove(),i=null,u&&a("error"===u.type?404:200,u.type)}),Q.head.appendChild(n[0])},abort:function(){i&&i()}}});var oi,$n=[],nn=/(=)\?(?=&|$)|\?\?/;o.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$n.pop()||o.expando+"_"+ti.guid++;return this[e]=!0,e}}),o.ajaxPrefilter("json jsonp",function(e,n,i){var r,a,u,d=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(d||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=U(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,d?e[d]=e[d].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(fn.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return u||o.error(r+" was not called"),u[0]},e.dataTypes[0]="json",a=$[r],$[r]=function(){u=arguments},i.always(function(){void 0===a?o($).removeProp(r):$[r]=a,e[r]&&(e.jsonpCallback=n.jsonpCallback,$n.push(r)),u&&U(a)&&a(u[0]),u=a=void 0}),"script"}),te.createHTMLDocument=((oi=Q.implementation.createHTMLDocument("").body).innerHTML="
",2===oi.childNodes.length),o.parseHTML=function(e,n,i){return"string"!=typeof e?[]:("boolean"==typeof n&&(i=n,n=!1),n||(te.createHTMLDocument?((r=(n=Q.implementation.createHTMLDocument("")).createElement("base")).href=Q.location.href,n.head.appendChild(r)):n=Q),u=!i&&[],(a=xt.exec(e))?[n.createElement(a[1])]:(a=w([e],n,u),u&&u.length&&o(u).remove(),o.merge([],a.childNodes)));var r,a,u},o.fn.load=function(e,n,i){var r,a,u,d=this,m=e.indexOf(" ");return-1").append(o.parseHTML(l)).find(r):l)}).always(i&&function(l,t){d.each(function(){i.apply(this,u||[l.responseText,t,l])})}),this},o.expr.pseudos.animated=function(e){return o.grep(o.timers,function(n){return e===n.elem}).length},o.offset={setOffset:function(e,n,i){var r,a,u,d,m,l,t=o.css(e,"position"),s=o(e),f={};"static"===t&&(e.style.position="relative"),m=s.offset(),u=o.css(e,"top"),l=o.css(e,"left"),("absolute"===t||"fixed"===t)&&-1<(u+l).indexOf("auto")?(d=(r=s.position()).top,a=r.left):(d=parseFloat(u)||0,a=parseFloat(l)||0),U(n)&&(n=n.call(e,i,o.extend({},m))),null!=n.top&&(f.top=n.top-m.top+d),null!=n.left&&(f.left=n.left-m.left+a),"using"in n?n.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),s.css(f))}},o.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(a){o.offset.setOffset(this,e,a)});var n,i,r=this[0];return r?r.getClientRects().length?{top:(n=r.getBoundingClientRect()).top+(i=r.ownerDocument.defaultView).pageYOffset,left:n.left+i.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,n,i,r=this[0],a={top:0,left:0};if("fixed"===o.css(r,"position"))n=r.getBoundingClientRect();else{for(n=this.offset(),i=r.ownerDocument,e=r.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===o.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=o(e).offset()).top+=o.css(e,"borderTopWidth",!0),a.left+=o.css(e,"borderLeftWidth",!0))}return{top:n.top-a.top-o.css(r,"marginTop",!0),left:n.left-a.left-o.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===o.css(e,"position");)e=e.offsetParent;return e||Ke})}}),o.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var i="pageYOffset"===n;o.fn[e]=function(r){return He(this,function(a,u,d){var m;if(Se(a)?m=a:9===a.nodeType&&(m=a.defaultView),void 0===d)return m?m[n]:a[u];m?m.scrollTo(i?m.pageXOffset:d,i?d:m.pageYOffset):a[u]=d},e,r,arguments.length)}}),o.each(["top","left"],function(e,n){o.cssHooks[n]=Pn(te.pixelPosition,function(i,r){if(r)return r=Jt(i,n),Ht.test(r)?o(i).position()[n]+"px":r})}),o.each({Height:"height",Width:"width"},function(e,n){o.each({padding:"inner"+e,content:n,"":"outer"+e},function(i,r){o.fn[r]=function(a,u){var d=arguments.length&&(i||"boolean"!=typeof a),m=i||(!0===a||!0===u?"margin":"border");return He(this,function(l,t,s){var f;return Se(l)?0===r.indexOf("outer")?l["inner"+e]:l.document.documentElement["client"+e]:9===l.nodeType?(f=l.documentElement,Math.max(l.body["scroll"+e],f["scroll"+e],l.body["offset"+e],f["offset"+e],f["client"+e])):void 0===s?o.css(l,t,m):o.style(l,t,s,m)},n,d?a:void 0,d)}})}),o.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,n){o.fn[n]=function(i){return this.on(n,i)}}),o.fn.extend({bind:function(e,n,i){return this.on(e,null,n,i)},unbind:function(e,n){return this.off(e,null,n)},delegate:function(e,n,i,r){return this.on(n,e,i,r)},undelegate:function(e,n,i){return 1===arguments.length?this.off(e,"**"):this.off(n,e||"**",i)},hover:function(e,n){return this.mouseenter(e).mouseleave(n||e)}}),o.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){o.fn[n]=function(i,r){return 0"u"&&($.jQuery=$.$=o),o}),function($,he){"object"==typeof exports&&typeof module<"u"?module.exports=he():"function"==typeof define&&define.amd?define(he):$.Popper=he()}(this,function(){"use strict";function $(c){return c&&"[object Function]"==={}.toString.call(c)}function he(c,g){if(1!==c.nodeType)return[];var w=c.ownerDocument.defaultView.getComputedStyle(c,null);return g?w[g]:w}function me(c){return"HTML"===c.nodeName?c:c.parentNode||c.host}function st(c){if(!c)return document.body;switch(c.nodeName){case"HTML":case"BODY":return c.ownerDocument.body;case"#document":return c.body}var g=he(c);return/(auto|scroll|overlay)/.test(g.overflow+g.overflowY+g.overflowX)?c:st(me(c))}function Xe(c){return c&&c.referenceNode?c.referenceNode:c}function at(c){return 11===c?ln:10===c?ft:ln||ft}function be(c){if(!c)return document.documentElement;for(var g=at(10)?document.body:null,b=c.offsetParent||null;b===g&&c.nextElementSibling;)b=(c=c.nextElementSibling).offsetParent;var w=b&&b.nodeName;return w&&"BODY"!==w&&"HTML"!==w?-1!==["TH","TD","TABLE"].indexOf(b.nodeName)&&"static"===he(b,"position")?be(b):b:c?c.ownerDocument.documentElement:document.documentElement}function Ae(c){return null===c.parentNode?c:Ae(c.parentNode)}function Re(c,g){if(!(c&&c.nodeType&&g&&g.nodeType))return document.documentElement;var b=c.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_FOLLOWING,w=b?c:g,k=b?g:c,A=document.createRange();A.setStart(w,0),A.setEnd(k,0);var E=A.commonAncestorContainer;if(c!==E&&g!==E||w.contains(k))return function jt(c){var g=c.nodeName;return"BODY"!==g&&("HTML"===g||be(c.firstElementChild)===c)}(E)?E:be(E);var j=Ae(c);return j.host?Re(j.host,g):Re(c,Ae(g).host)}function ke(c){var g=1=b.clientWidth&&W.height>=b.clientHeight}),R=0"u"?global:window).PopperUtils,Te.placements=et,Te.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(c){var g=c.placement,b=g.split("-")[0],w=g.split("-")[1];if(w){var k=c.offsets,A=k.reference,E=k.popper,j=-1!==["bottom","top"].indexOf(b),P=j?"left":"top",z=j?"width":"height",R={start:ze({},P,A[P]),end:ze({},P,A[P]+A[z]-E[z])};c.offsets.popper=le({},E,R[w])}return c}},offset:{order:200,enabled:!0,fn:function F(c,g){var b,w=g.offset,A=c.offsets,E=A.popper,j=A.reference,P=c.placement.split("-")[0];return b=mt(+w)?[+w,0]:function q(c,g,b,w){var k=[0,0],A=-1!==["right","left"].indexOf(w),E=c.split(/(\+|\-)/).map(function(R){return R.trim()}),j=E.indexOf(xt(E,function(R){return-1!==R.search(/,|\s/)}));E[j]&&-1===E[j].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var P=/\s*,\s*|\s+/,z=-1===j?[E]:[E.slice(0,j).concat([E[j].split(P)[0]]),[E[j].split(P)[1]].concat(E.slice(j+1))];return z=z.map(function(R,H){var W=(1===H?!A:A)?"height":"width",J=!1;return R.reduce(function(ne,Ie){return""===ne[ne.length-1]&&-1!==["+","-"].indexOf(Ie)?(ne[ne.length-1]=Ie,J=!0,ne):J?(ne[ne.length-1]+=Ie,J=!1,ne):ne.concat(Ie)},[]).map(function(ne){return function Tt(c,g,b,w){var k=c.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),A=+k[1],E=k[2];return A?0===E.indexOf("%")?Se("%p"===E?b:w)[g]/100*A:"vh"===E||"vw"===E?("vh"===E?Le(document.documentElement.clientHeight,window.innerHeight||0):Le(document.documentElement.clientWidth,window.innerWidth||0))/100*A:A:c}(ne,W,g,b)})}),z.forEach(function(R,H){R.forEach(function(W,J){mt(W)&&(k[H]+=W*("-"===R[J-1]?-1:1))})}),k}(w,E,j,P),"left"===P?(E.top+=b[0],E.left-=b[1]):"right"===P?(E.top+=b[0],E.left+=b[1]):"top"===P?(E.left+=b[0],E.top-=b[1]):"bottom"===P&&(E.left+=b[0],E.top+=b[1]),c.popper=E,c},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(c,g){var b=g.boundariesElement||be(c.instance.popper);c.instance.reference===b&&(b=be(b));var w=Kt("transform"),k=c.instance.popper.style,A=k.top,E=k.left,j=k[w];k.top="",k.left="",k[w]="";var P=o(c.instance.popper,c.instance.reference,g.padding,b,c.positionFixed);k.top=A,k.left=E,k[w]=j,g.boundaries=P;var R=c.offsets.popper,H={primary:function(W){var J=R[W];return R[W]P[W]&&!g.escapeWithReference&&(ne=mn(R[J],P[W]-("right"===W?R.width:R.height))),ze({},J,ne)}};return g.priority.forEach(function(W){var J=-1===["left","top"].indexOf(W)?"secondary":"primary";R=le({},R,H[J](W))}),c.offsets.popper=R,c},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(c){var g=c.offsets,b=g.popper,w=g.reference,k=c.placement.split("-")[0],A=an,E=-1!==["top","bottom"].indexOf(k),j=E?"right":"bottom",P=E?"left":"top",z=E?"width":"height";return b[j]A(w[j])&&(c.offsets.popper[P]=A(w[j])),c}},arrow:{order:500,enabled:!0,fn:function(c,g){var b;if(!We(c.instance.modifiers,"arrow","keepTogether"))return c;var w=g.element;if("string"==typeof w){if(!(w=c.instance.popper.querySelector(w)))return c}else if(!c.instance.popper.contains(w))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),c;var k=c.placement.split("-")[0],A=c.offsets,E=A.popper,j=A.reference,P=-1!==["left","right"].indexOf(k),z=P?"height":"width",R=P?"Top":"Left",H=R.toLowerCase(),W=P?"left":"top",J=P?"bottom":"right",ne=It(w)[z];j[J]-neE[J]&&(c.offsets.popper[H]+=j[H]+ne-E[J]),c.offsets.popper=Se(c.offsets.popper);var Ie=j[H]+j[z]/2-ne/2,ht=he(c.instance.popper),kt=parseFloat(ht["margin"+R]),Fe=parseFloat(ht["border"+R+"Width"]),de=Ie-c.offsets.popper[H]-kt-Fe;return de=Le(mn(E[z]-ne,de),0),c.arrowElement=w,c.offsets.arrow=(ze(b={},H,Et(de)),ze(b,W,""),b),c},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(c,g){if(sn(c.instance.modifiers,"inner")||c.flipped&&c.placement===c.originalPlacement)return c;var b=o(c.instance.popper,c.instance.reference,g.padding,g.boundariesElement,c.positionFixed),w=c.placement.split("-")[0],k=wt(w),A=c.placement.split("-")[1]||"",E=[];switch(g.behavior){case"flip":E=[w,k];break;case"clockwise":E=Ye(w);break;case"counterclockwise":E=Ye(w,!0);break;default:E=g.behavior}return E.forEach(function(j,P){if(w!==j||E.length===P+1)return c;w=c.placement.split("-")[0],k=wt(w);var z=c.offsets.popper,R=c.offsets.reference,H=an,W="left"===w&&H(z.right)>H(R.left)||"right"===w&&H(z.left)H(R.top)||"bottom"===w&&H(z.top)H(b.right),Ie=H(z.top)H(b.bottom),kt="left"===w&&J||"right"===w&&ne||"top"===w&&Ie||"bottom"===w&&ht,Fe=-1!==["top","bottom"].indexOf(w),Ht=!!g.flipVariations&&(Fe&&"start"===A&&J||Fe&&"end"===A&&ne||!Fe&&"start"===A&&Ie||!Fe&&"end"===A&&ht)||!!g.flipVariationsByContent&&(Fe&&"start"===A&&ne||Fe&&"end"===A&&J||!Fe&&"start"===A&&ht||!Fe&&"end"===A&&Ie);(W||kt||Ht)&&(c.flipped=!0,(W||kt)&&(w=E[P+1]),Ht&&(A=function qe(c){return"end"===c?"start":"start"===c?"end":c}(A)),c.placement=w+(A?"-"+A:""),c.offsets.popper=le({},c.offsets.popper,De(c.instance.popper,c.offsets.reference,c.placement)),c=Yt(c.instance.modifiers,c,"flip"))}),c},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(c){var g=c.placement,b=g.split("-")[0],w=c.offsets,k=w.popper,A=w.reference,E=-1!==["left","right"].indexOf(b),j=-1===["top","left"].indexOf(b);return k[E?"left":"top"]=A[b]-(j?k[E?"width":"height"]:0),c.placement=wt(g),c.offsets.popper=Se(k),c}},hide:{order:800,enabled:!0,fn:function(c){if(!We(c.instance.modifiers,"hide","preventOverflow"))return c;var g=c.offsets.reference,b=xt(c.instance.modifiers,function(w){return"preventOverflow"===w.name}).boundaries;if(g.bottomb.right||g.top>b.bottom||g.rightwindow.devicePixelRatio||!Ct),J="bottom"===b?"top":"bottom",ne="right"===w?"left":"right",Ie=Kt("transform");if(j="bottom"==J?"HTML"===z.nodeName?-z.clientHeight+W.bottom:-R.height+W.bottom:W.top,E="right"==ne?"HTML"===z.nodeName?-z.clientWidth+W.right:-R.width+W.right:W.left,P&&Ie)H[Ie]="translate3d("+E+"px, "+j+"px, 0)",H[J]=0,H[ne]=0,H.willChange="transform";else{var kt="right"==ne?-1:1;H[J]=j*("bottom"==J?-1:1),H[ne]=E*kt,H.willChange=J+", "+ne}return c.attributes=le({},{"x-placement":c.placement},c.attributes),c.styles=le({},H,c.styles),c.arrowStyles=le({},c.offsets.arrow,c.arrowStyles),c},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(c){return He(c.instance.popper,c.styles),function Ze(c,g){Object.keys(g).forEach(function(b){!1===g[b]?c.removeAttribute(b):c.setAttribute(b,g[b])})}(c.instance.popper,c.attributes),c.arrowElement&&Object.keys(c.arrowStyles).length&&He(c.arrowElement,c.arrowStyles),c},onLoad:function(c,g,b,w,k){var A=gt(k,g,c,b.positionFixed),E=lt(b.placement,A,g,c,b.modifiers.flip.boundariesElement,b.modifiers.flip.padding);return g.setAttribute("x-placement",E),He(g,{position:b.positionFixed?"fixed":"absolute"}),b},gpuAcceleration:void 0}}},Te}),function($,he){"object"==typeof exports&&typeof module<"u"?module.exports=he(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],he):($=typeof globalThis<"u"?globalThis:$||self).bootstrap=he($.Popper)}(this,function($){"use strict";const me=function he(l){if(l&&l.__esModule)return l;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l)for(const s in l)if("default"!==s){const f=Object.getOwnPropertyDescriptor(l,s);Object.defineProperty(t,s,f.get?f:{enumerable:!0,get:()=>l[s]})}return t.default=l,Object.freeze(t)}($),st="transitionend",Xe=l=>{let t=l.getAttribute("data-bs-target");if(!t||"#"===t){let s=l.getAttribute("href");if(!s||!s.includes("#")&&!s.startsWith("."))return null;s.includes("#")&&!s.startsWith("#")&&(s=`#${s.split("#")[1]}`),t=s&&"#"!==s?s.trim():null}return t},at=l=>{const t=Xe(l);return t&&document.querySelector(t)?t:null},be=l=>{const t=Xe(l);return t?document.querySelector(t):null},jt=l=>{l.dispatchEvent(new Event(st))},Ae=l=>!(!l||"object"!=typeof l)&&(void 0!==l.jquery&&(l=l[0]),void 0!==l.nodeType),Re=l=>Ae(l)?l.jquery?l[0]:l:"string"==typeof l&&l.length>0?document.querySelector(l):null,ke=l=>{if(!Ae(l)||0===l.getClientRects().length)return!1;const t="visible"===getComputedStyle(l).getPropertyValue("visibility"),s=l.closest("details:not([open])");if(!s)return t;if(s!==l){const f=l.closest("summary");if(f&&f.parentNode!==s||null===f)return!1}return t},Je=l=>!l||l.nodeType!==Node.ELEMENT_NODE||!!l.classList.contains("disabled")||(void 0!==l.disabled?l.disabled:l.hasAttribute("disabled")&&"false"!==l.getAttribute("disabled")),rn=l=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof l.getRootNode){const t=l.getRootNode();return t instanceof ShadowRoot?t:null}return l instanceof ShadowRoot?l:l.parentNode?rn(l.parentNode):null},te=()=>{},Se=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Q=[],Ne=()=>"rtl"===document.documentElement.dir,Me=l=>{var t;t=()=>{const s=Se();if(s){const f=l.NAME,p=s.fn[f];s.fn[f]=l.jQueryInterface,s.fn[f].Constructor=l,s.fn[f].noConflict=()=>(s.fn[f]=p,l.jQueryInterface)}},"loading"===document.readyState?(Q.length||document.addEventListener("DOMContentLoaded",()=>{for(const s of Q)s()}),Q.push(t)):t()},xe=l=>{"function"==typeof l&&l()},Vt=(l,t,s=!0)=>{if(!s)return void xe(l);const f=(T=>{if(!T)return 0;let{transitionDuration:L,transitionDelay:O}=window.getComputedStyle(T);const ee=Number.parseFloat(L),oe=Number.parseFloat(O);return ee||oe?(L=L.split(",")[0],O=O.split(",")[0],1e3*(Number.parseFloat(L)+Number.parseFloat(O))):0})(t)+5;let p=!1;const y=({target:T})=>{T===t&&(p=!0,t.removeEventListener(st,y),xe(l))};t.addEventListener(st,y),setTimeout(()=>{p||jt(t)},f)},o=(l,t,s,f)=>{const p=l.length;let y=l.indexOf(t);return-1===y?!s&&f?l[p-1]:l[0]:(y+=s?1:-1,f&&(y=(y+p)%p),l[Math.max(0,Math.min(y,p-1))])},on=/[^.]*(?=\..*)\.|.*/,lt=/\..*/,gt=/::\d+$/,It={};let wt=1;const De={mouseenter:"mouseover",mouseleave:"mouseout"},xt=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 Xt(l,t){return t&&`${t}::${wt++}`||l.uidEvent||wt++}function Yt(l){const t=Xt(l);return l.uidEvent=t,It[t]=It[t]||{},It[t]}function gn(l,t,s=null){return Object.values(l).find(f=>f.callable===t&&f.delegationSelector===s)}function sn(l,t,s){const f="string"==typeof t,p=f?s:t||s;let y=ct(l);return xt.has(y)||(y=l),[f,p,y]}function Kt(l,t,s,f,p){if("string"!=typeof t||!l)return;let[y,T,L]=sn(t,s,f);var ge;t in De&&(ge=T,T=function(K){if(!K.relatedTarget||K.relatedTarget!==K.delegateTarget&&!K.delegateTarget.contains(K.relatedTarget))return ge.call(this,K)});const O=Yt(l),ee=O[L]||(O[L]={}),oe=gn(ee,T,y?s:null);if(oe)return void(oe.oneOff=oe.oneOff&&p);const fe=Xt(T,t.replace(on,"")),ie=y?function(B,ge,K){return function ae(Dt){const Nn=B.querySelectorAll(ge);for(let{target:ve}=Dt;ve&&ve!==this;ve=ve.parentNode)for(const $t of Nn)if($t===ve)return Gt(Dt,{delegateTarget:ve}),ae.oneOff&&S.off(B,Dt.type,ge,K),K.apply(ve,[Dt])}}(l,s,T):function(B,ge){return function K(ae){return Gt(ae,{delegateTarget:B}),K.oneOff&&S.off(B,ae.type,ge),ge.apply(B,[ae])}}(l,T);ie.delegationSelector=y?s:null,ie.callable=T,ie.oneOff=p,ie.uidEvent=fe,ee[fe]=ie,l.addEventListener(L,ie,y)}function Qt(l,t,s,f,p){const y=gn(t[s],f,p);y&&(l.removeEventListener(s,y,Boolean(p)),delete t[s][y.uidEvent])}function $e(l,t,s,f){const p=t[s]||{};for(const y of Object.keys(p))if(y.includes(f)){const T=p[y];Qt(l,t,s,T.callable,T.delegationSelector)}}function ct(l){return l=l.replace(lt,""),De[l]||l}const S={on(l,t,s,f){Kt(l,t,s,f,!1)},one(l,t,s,f){Kt(l,t,s,f,!0)},off(l,t,s,f){if("string"!=typeof t||!l)return;const[p,y,T]=sn(t,s,f),L=T!==t,O=Yt(l),ee=O[T]||{},oe=t.startsWith(".");if(void 0===y){if(oe)for(const fe of Object.keys(O))$e(l,O,fe,t.slice(1));for(const fe of Object.keys(ee)){const ie=fe.replace(gt,"");if(!L||t.includes(ie)){const B=ee[fe];Qt(l,O,T,B.callable,B.delegationSelector)}}}else{if(!Object.keys(ee).length)return;Qt(l,O,T,y,p?s:null)}},trigger(l,t,s){if("string"!=typeof t||!l)return null;const f=Se();let p=null,y=!0,T=!0,L=!1;t!==ct(t)&&f&&(p=f.Event(t,s),f(l).trigger(p),y=!p.isPropagationStopped(),T=!p.isImmediatePropagationStopped(),L=p.isDefaultPrevented());let O=new Event(t,{bubbles:y,cancelable:!0});return O=Gt(O,s),L&&O.preventDefault(),T&&l.dispatchEvent(O),O.defaultPrevented&&p&&p.preventDefault(),O}};function Gt(l,t){for(const[s,f]of Object.entries(t||{}))try{l[s]=f}catch{Object.defineProperty(l,s,{configurable:!0,get:()=>f})}return l}const ut=new Map,Pt={set(l,t,s){ut.has(l)||ut.set(l,new Map);const f=ut.get(l);f.has(t)||0===f.size?f.set(t,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(f.keys())[0]}.`)},get:(l,t)=>ut.has(l)&&ut.get(l).get(t)||null,remove(l,t){if(!ut.has(l))return;const s=ut.get(l);s.delete(t),0===s.size&&ut.delete(l)}};function mt(l){if("true"===l)return!0;if("false"===l)return!1;if(l===Number(l).toString())return Number(l);if(""===l||"null"===l)return null;if("string"!=typeof l)return l;try{return JSON.parse(decodeURIComponent(l))}catch{return l}}function He(l){return l.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Ze={setDataAttribute(l,t,s){l.setAttribute(`data-bs-${He(t)}`,s)},removeDataAttribute(l,t){l.removeAttribute(`data-bs-${He(t)}`)},getDataAttributes(l){if(!l)return{};const t={},s=Object.keys(l.dataset).filter(f=>f.startsWith("bs")&&!f.startsWith("bsConfig"));for(const f of s){let p=f.replace(/^bs/,"");p=p.charAt(0).toLowerCase()+p.slice(1,p.length),t[p]=mt(l.dataset[f])}return t},getDataAttribute:(l,t)=>mt(l.getAttribute(`data-bs-${He(t)}`))};class Mt{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,s){const f=Ae(s)?Ze.getDataAttribute(s,"config"):{};return{...this.constructor.Default,..."object"==typeof f?f:{},...Ae(s)?Ze.getDataAttributes(s):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,s=this.constructor.DefaultType){for(const p of Object.keys(s)){const y=s[p],T=t[p],L=Ae(T)?"element":null==(f=T)?`${f}`:Object.prototype.toString.call(f).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(y).test(L))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${p}" provided type "${L}" but expected type "${y}".`)}var f}}class We extends Mt{constructor(t,s){super(),(t=Re(t))&&(this._element=t,this._config=this._getConfig(s),Pt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Pt.remove(this._element,this.constructor.DATA_KEY),S.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,s,f=!0){Vt(t,s,f)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Pt.get(Re(t),this.DATA_KEY)}static getOrCreateInstance(t,s={}){return this.getInstance(t)||new this(t,"object"==typeof s?s:null)}static get VERSION(){return"5.2.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 qe=(l,t="hide")=>{const f=l.NAME;S.on(document,`click.dismiss${l.EVENT_KEY}`,`[data-bs-dismiss="${f}"]`,function(p){if(["A","AREA"].includes(this.tagName)&&p.preventDefault(),Je(this))return;const y=be(this)||this.closest(`.${f}`);l.getOrCreateInstance(y)[t]()})};class Ye extends We{static get NAME(){return"alert"}close(){if(S.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(),S.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){const s=Ye.getOrCreateInstance(this);if("string"==typeof t){if(void 0===s[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);s[t](this)}})}}qe(Ye,"close"),Me(Ye);const Tt='[data-bs-toggle="button"]';class q extends We{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const s=q.getOrCreateInstance(this);"toggle"===t&&s[t]()})}}S.on(document,"click.bs.button.data-api",Tt,l=>{l.preventDefault();const t=l.target.closest(Tt);q.getOrCreateInstance(t).toggle()}),Me(q);const F={find:(l,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,l)),findOne:(l,t=document.documentElement)=>Element.prototype.querySelector.call(t,l),children:(l,t)=>[].concat(...l.children).filter(s=>s.matches(t)),parents(l,t){const s=[];let f=l.parentNode.closest(t);for(;f;)s.push(f),f=f.parentNode.closest(t);return s},prev(l,t){let s=l.previousElementSibling;for(;s;){if(s.matches(t))return[s];s=s.previousElementSibling}return[]},next(l,t){let s=l.nextElementSibling;for(;s;){if(s.matches(t))return[s];s=s.nextElementSibling}return[]},focusableChildren(l){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(s=>`${s}:not([tabindex^="-"])`).join(",");return this.find(t,l).filter(s=>!Je(s)&&ke(s))}},mn={endCallback:null,leftCallback:null,rightCallback:null},an={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Et extends Mt{constructor(t,s){super(),this._element=t,t&&Et.isSupported()&&(this._config=this._getConfig(s),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return mn}static get DefaultType(){return an}static get NAME(){return"swipe"}dispose(){S.off(this._element,".bs.swipe")}_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(),xe(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 s=t/this._deltaX;this._deltaX=0,s&&xe(s>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(S.on(this._element,"pointerdown.bs.swipe",t=>this._start(t)),S.on(this._element,"pointerup.bs.swipe",t=>this._end(t)),this._element.classList.add("pointer-event")):(S.on(this._element,"touchstart.bs.swipe",t=>this._start(t)),S.on(this._element,"touchmove.bs.swipe",t=>this._move(t)),S.on(this._element,"touchend.bs.swipe",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 Le="next",Oe="prev",je="left",Ke="right",dt="slid.bs.carousel",ln="carousel",ft="active",vn={ArrowLeft:Ke,ArrowRight:je},yn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ze={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class le extends We{constructor(t,s){super(t,s),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=F.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ln&&this.cycle()}static get Default(){return yn}static get DefaultType(){return ze}static get NAME(){return"carousel"}next(){this._slide(Le)}nextWhenVisible(){!document.hidden&&ke(this._element)&&this.next()}prev(){this._slide(Oe)}pause(){this._isSliding&&jt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?S.one(this._element,dt,()=>this.cycle()):this.cycle())}to(t){const s=this._getItems();if(t>s.length-1||t<0)return;if(this._isSliding)return void S.one(this._element,dt,()=>this.to(t));const f=this._getItemIndex(this._getActive());f!==t&&this._slide(t>f?Le:Oe,s[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&S.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(S.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),S.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&Et.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const s of F.find(".carousel-item img",this._element))S.on(s,"dragstart.bs.carousel",f=>f.preventDefault());this._swipeHelper=new Et(this._element,{leftCallback:()=>this._slide(this._directionToOrder(je)),rightCallback:()=>this._slide(this._directionToOrder(Ke)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}})}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const s=vn[t.key];s&&(t.preventDefault(),this._slide(this._directionToOrder(s)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const s=F.findOne(".active",this._indicatorsElement);s.classList.remove(ft),s.removeAttribute("aria-current");const f=F.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);f&&(f.classList.add(ft),f.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const s=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=s||this._config.defaultInterval}_slide(t,s=null){if(this._isSliding)return;const f=this._getActive(),p=t===Le,y=s||o(this._getItems(),f,p,this._config.wrap);if(y===f)return;const T=this._getItemIndex(y),L=fe=>S.trigger(this._element,fe,{relatedTarget:y,direction:this._orderToDirection(t),from:this._getItemIndex(f),to:T});if(L("slide.bs.carousel").defaultPrevented||!f||!y)return;const O=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(T),this._activeElement=y;const ee=p?"carousel-item-start":"carousel-item-end",oe=p?"carousel-item-next":"carousel-item-prev";y.classList.add(oe),f.classList.add(ee),y.classList.add(ee),this._queueCallback(()=>{y.classList.remove(ee,oe),y.classList.add(ft),f.classList.remove(ft,oe,ee),this._isSliding=!1,L(dt)},f,this._isAnimated()),O&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return F.findOne(".active.carousel-item",this._element)}_getItems(){return F.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Ne()?t===je?Oe:Le:t===je?Le:Oe}_orderToDirection(t){return Ne()?t===Oe?je:Ke:t===Oe?Ke:je}static jQueryInterface(t){return this.each(function(){const s=le.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===s[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);s[t]()}}else s.to(t)})}}S.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(l){const t=be(this);if(!t||!t.classList.contains(ln))return;l.preventDefault();const s=le.getOrCreateInstance(t),f=this.getAttribute("data-bs-slide-to");return f?(s.to(f),void s._maybeEnableCycle()):"next"===Ze.getDataAttribute(this,"slide")?(s.next(),void s._maybeEnableCycle()):(s.prev(),void s._maybeEnableCycle())}),S.on(window,"load.bs.carousel.data-api",()=>{const l=F.find('[data-bs-ride="carousel"]');for(const t of l)le.getOrCreateInstance(t)}),Me(le);const Ct="show",et="collapse",vt="collapsing",At='[data-bs-toggle="collapse"]',Te={parent:null,toggle:!0},c={parent:"(null|element)",toggle:"boolean"};class g extends We{constructor(t,s){super(t,s),this._isTransitioning=!1,this._triggerArray=[];const f=F.find(At);for(const p of f){const y=at(p),T=F.find(y).filter(L=>L===this._element);null!==y&&T.length&&this._triggerArray.push(p)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Te}static get DefaultType(){return c}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(p=>p!==this._element).map(p=>g.getOrCreateInstance(p,{toggle:!1}))),t.length&&t[0]._isTransitioning||S.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const p of t)p.hide();const s=this._getDimension();this._element.classList.remove(et),this._element.classList.add(vt),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const f=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(vt),this._element.classList.add(et,Ct),this._element.style[s]="",S.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[s]=`${this._element[f]}px`}hide(){if(this._isTransitioning||!this._isShown()||S.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,this._element.classList.add(vt),this._element.classList.remove(et,Ct);for(const s of this._triggerArray){const f=be(s);f&&!this._isShown(f)&&this._addAriaAndCollapsedClass([s],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(vt),this._element.classList.add(et),S.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ct)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Re(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(At);for(const s of t){const f=be(s);f&&this._addAriaAndCollapsedClass([s],this._isShown(f))}}_getFirstLevelChildren(t){const s=F.find(":scope .collapse .collapse",this._config.parent);return F.find(t,this._config.parent).filter(f=>!s.includes(f))}_addAriaAndCollapsedClass(t,s){if(t.length)for(const f of t)f.classList.toggle("collapsed",!s),f.setAttribute("aria-expanded",s)}static jQueryInterface(t){const s={};return"string"==typeof t&&/show|hide/.test(t)&&(s.toggle=!1),this.each(function(){const f=g.getOrCreateInstance(this,s);if("string"==typeof t){if(void 0===f[t])throw new TypeError(`No method named "${t}"`);f[t]()}})}}S.on(document,"click.bs.collapse.data-api",At,function(l){("A"===l.target.tagName||l.delegateTarget&&"A"===l.delegateTarget.tagName)&&l.preventDefault();const t=at(this),s=F.find(t);for(const f of s)g.getOrCreateInstance(f,{toggle:!1}).toggle()}),Me(g);const b="dropdown",w="ArrowUp",k="ArrowDown",A="click.bs.dropdown.data-api",E="keydown.bs.dropdown.data-api",j="show",P='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',z=`${P}.show`,R=".dropdown-menu",H=Ne()?"top-end":"top-start",W=Ne()?"top-start":"top-end",J=Ne()?"bottom-end":"bottom-start",ne=Ne()?"bottom-start":"bottom-end",Ie=Ne()?"left-start":"right-start",ht=Ne()?"right-start":"left-start",kt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Fe={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class de extends We{constructor(t,s){super(t,s),this._popper=null,this._parent=this._element.parentNode,this._menu=F.next(this._element,R)[0]||F.prev(this._element,R)[0]||F.findOne(R,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return kt}static get DefaultType(){return Fe}static get NAME(){return b}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Je(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!S.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const s of[].concat(...document.body.children))S.on(s,"mouseover",te);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(j),this._element.classList.add(j),S.trigger(this._element,"shown.bs.dropdown",t)}}hide(){!Je(this._element)&&this._isShown()&&this._completeHide({relatedTarget:this._element})}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!S.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))S.off(s,"mouseover",te);this._popper&&this._popper.destroy(),this._menu.classList.remove(j),this._element.classList.remove(j),this._element.setAttribute("aria-expanded","false"),Ze.removeDataAttribute(this._menu,"popper"),S.trigger(this._element,"hidden.bs.dropdown",t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Ae(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${b.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===me)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Ae(this._config.reference)?t=Re(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const s=this._getPopperConfig();this._popper=me.createPopper(t,this._menu,s)}_isShown(){return this._menu.classList.contains(j)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ie;if(t.classList.contains("dropstart"))return ht;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const s="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?s?W:H:s?ne:J}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(s=>Number.parseInt(s,10)):"function"==typeof t?s=>t(s,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)&&(Ze.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:s}){const f=F.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(p=>ke(p));f.length&&o(f,s,t===k,!f.includes(s)).focus()}static jQueryInterface(t){return this.each(function(){const s=de.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===s[t])throw new TypeError(`No method named "${t}"`);s[t]()}})}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const s=F.find(z);for(const f of s){const p=de.getInstance(f);if(!p||!1===p._config.autoClose)continue;const y=t.composedPath(),T=y.includes(p._menu);if(y.includes(p._element)||"inside"===p._config.autoClose&&!T||"outside"===p._config.autoClose&&T||p._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const L={relatedTarget:p._element};"click"===t.type&&(L.clickEvent=t),p._completeHide(L)}}static dataApiKeydownHandler(t){const s=/input|textarea/i.test(t.target.tagName),f="Escape"===t.key,p=[w,k].includes(t.key);if(!p&&!f||s&&!f)return;t.preventDefault();const y=this.matches(P)?this:F.prev(this,P)[0]||F.next(this,P)[0]||F.findOne(P,t.delegateTarget.parentNode),T=de.getOrCreateInstance(y);if(p)return t.stopPropagation(),T.show(),void T._selectMenuItem(t);T._isShown()&&(t.stopPropagation(),T.hide(),y.focus())}}S.on(document,E,P,de.dataApiKeydownHandler),S.on(document,E,R,de.dataApiKeydownHandler),S.on(document,A,de.clearMenus),S.on(document,"keyup.bs.dropdown.data-api",de.clearMenus),S.on(document,A,P,function(l){l.preventDefault(),de.getOrCreateInstance(this).toggle()}),Me(de);const cn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ht=".sticky-top",qt="padding-right",jn="margin-right";class In{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,qt,s=>s+t),this._setElementAttributes(cn,qt,s=>s+t),this._setElementAttributes(Ht,jn,s=>s-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,qt),this._resetElementAttributes(cn,qt),this._resetElementAttributes(Ht,jn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,s,f){const p=this.getWidth();this._applyManipulationCallback(t,y=>{if(y!==this._element&&window.innerWidth>y.clientWidth+p)return;this._saveInitialAttribute(y,s);const T=window.getComputedStyle(y).getPropertyValue(s);y.style.setProperty(s,`${f(Number.parseFloat(T))}px`)})}_saveInitialAttribute(t,s){const f=t.style.getPropertyValue(s);f&&Ze.setDataAttribute(t,s,f)}_resetElementAttributes(t,s){this._applyManipulationCallback(t,f=>{const p=Ze.getDataAttribute(f,s);null!==p?(Ze.removeDataAttribute(f,s),f.style.setProperty(s,p)):f.style.removeProperty(s)})}_applyManipulationCallback(t,s){if(Ae(t))s(t);else for(const f of F.find(t,this._element))s(f)}}const Pn="mousedown.bs.backdrop",Vn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Xn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Mn extends Mt{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Vn}static get DefaultType(){return Xn}static get NAME(){return"backdrop"}show(t){if(!this._config.isVisible)return void xe(t);this._append();this._getElement().classList.add("show"),this._emulateAnimation(()=>{xe(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),xe(t)})):xe(t)}dispose(){this._isAppended&&(S.off(this._element,Pn),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=Re(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),S.on(t,Pn,()=>{xe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Vt(t,this._getElement(),this._config.isAnimated)}}const bn=".bs.focustrap",Yn="backward",Kn={autofocus:!0,trapElement:null},gi={autofocus:"boolean",trapElement:"element"};class Hn extends Mt{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Kn}static get DefaultType(){return gi}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),S.off(document,bn),S.on(document,"focusin.bs.focustrap",t=>this._handleFocusin(t)),S.on(document,"keydown.tab.bs.focustrap",t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,S.off(document,bn))}_handleFocusin(t){const{trapElement:s}=this._config;if(t.target===document||t.target===s||s.contains(t.target))return;const f=F.focusableChildren(s);0===f.length?s.focus():this._lastTabNavDirection===Yn?f[f.length-1].focus():f[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Yn:"forward")}}const qn="hidden.bs.modal",_n="show.bs.modal",Fn="modal-open",St="modal-static",wn={backdrop:!0,focus:!0,keyboard:!0},Zt={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Nt extends We{constructor(t,s){super(t,s),this._dialog=F.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new In,this._addEventListeners()}static get Default(){return wn}static get DefaultType(){return Zt}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||S.trigger(this._element,_n,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Fn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(S.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){for(const t of[window,this._dialog])S.off(t,".bs.modal");this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Mn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Hn({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 s=F.findOne(".modal-body",this._dialog);s&&(s.scrollTop=0),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,S.trigger(this._element,"shown.bs.modal",{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){S.on(this._element,"keydown.dismiss.bs.modal",t=>{if("Escape"===t.key)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()}),S.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),S.on(this._element,"mousedown.dismiss.bs.modal",t=>{S.one(this._element,"click.dismiss.bs.modal",s=>{this._element===t.target&&this._element===s.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(Fn),this._resetAdjustments(),this._scrollBar.reset(),S.trigger(this._element,qn)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(S.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,s=this._element.style.overflowY;"hidden"===s||this._element.classList.contains(St)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(St),this._queueCallback(()=>{this._element.classList.remove(St),this._queueCallback(()=>{this._element.style.overflowY=s},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,s=this._scrollBar.getWidth(),f=s>0;if(f&&!t){const p=Ne()?"paddingLeft":"paddingRight";this._element.style[p]=`${s}px`}if(!f&&t){const p=Ne()?"paddingRight":"paddingLeft";this._element.style[p]=`${s}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,s){return this.each(function(){const f=Nt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===f[t])throw new TypeError(`No method named "${t}"`);f[t](s)}})}}S.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(l){const t=be(this);["A","AREA"].includes(this.tagName)&&l.preventDefault(),S.one(t,_n,f=>{f.defaultPrevented||S.one(t,qn,()=>{ke(this)&&this.focus()})});const s=F.findOne(".modal.show");s&&Nt.getInstance(s).hide(),Nt.getOrCreateInstance(t).toggle(this)}),qe(Nt),Me(Nt);const Gn="showing",Rn=".offcanvas.show",un="hidePrevented.bs.offcanvas",Wn="hidden.bs.offcanvas",tt={backdrop:!0,keyboard:!0,scroll:!1},Jn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ue extends We{constructor(t,s){super(t,s),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return tt}static get DefaultType(){return Jn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||S.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new In).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Gn),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(Gn),S.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(S.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new In).reset(),S.trigger(this._element,Wn)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Mn({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():S.trigger(this._element,un)}:null})}_initializeFocusTrap(){return new Hn({trapElement:this._element})}_addEventListeners(){S.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():S.trigger(this._element,un))})}static jQueryInterface(t){return this.each(function(){const s=Ue.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===s[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);s[t](this)}})}}S.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(l){const t=be(this);if(["A","AREA"].includes(this.tagName)&&l.preventDefault(),Je(this))return;S.one(t,Wn,()=>{ke(this)&&this.focus()});const s=F.findOne(Rn);s&&s!==t&&Ue.getInstance(s).hide(),Ue.getOrCreateInstance(t).toggle(this)}),S.on(window,"load.bs.offcanvas.data-api",()=>{for(const l of F.find(Rn))Ue.getOrCreateInstance(l).show()}),S.on(window,"resize.bs.offcanvas",()=>{for(const l of F.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(l).position&&Ue.getOrCreateInstance(l).hide()}),qe(Ue),Me(Ue);const mi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),vi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ft=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Rt=(l,t)=>{const s=l.nodeName.toLowerCase();return t.includes(s)?!mi.has(s)||Boolean(vi.test(l.nodeValue)||Ft.test(l.nodeValue)):t.filter(f=>f instanceof RegExp).some(f=>f.test(s))},Tn={"*":["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:[]},yi={allowList:Tn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Zn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ei={entry:"(string|element|function|null)",selector:"(string|element)"};class dn extends Mt{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return yi}static get DefaultType(){return Zn}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[p,y]of Object.entries(this._config.content))this._setContent(t,y,p);const s=t.children[0],f=this._resolvePossibleFunction(this._config.extraClass);return f&&s.classList.add(...f.split(" ")),s}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[s,f]of Object.entries(t))super._typeCheckConfig({selector:s,entry:f},ei)}_setContent(t,s,f){const p=F.findOne(f,t);p&&((s=this._resolvePossibleFunction(s))?Ae(s)?this._putElementInTemplate(Re(s),p):this._config.html?p.innerHTML=this._maybeSanitize(s):p.textContent=s:p.remove())}_maybeSanitize(t){return this._config.sanitize?function(s,f,p){if(!s.length)return s;if(p&&"function"==typeof p)return p(s);const y=(new window.DOMParser).parseFromString(s,"text/html"),T=[].concat(...y.body.querySelectorAll("*"));for(const L of T){const O=L.nodeName.toLowerCase();if(!Object.keys(f).includes(O)){L.remove();continue}const ee=[].concat(...L.attributes),oe=[].concat(f["*"]||[],f[O]||[]);for(const fe of ee)Rt(fe,oe)||L.removeAttribute(fe.nodeName)}return y.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,s){if(this._config.html)return s.innerHTML="",void s.append(t);s.textContent=t.textContent}}const ti=new Set(["sanitize","allowList","sanitizeFn"]),fn="fade",En="show",ni="hide.bs.modal",Cn="hover",bi={AUTO:"auto",TOP:"top",RIGHT:Ne()?"left":"right",BOTTOM:"bottom",LEFT:Ne()?"right":"left"},_i={allowList:Tn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},wi={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 Wt extends We{constructor(t,s){if(void 0===me)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,s),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 _i}static get DefaultType(){return wi}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),S.off(this._element.closest(".modal"),ni,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=S.trigger(this._element,this.constructor.eventName("show")),s=(rn(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!s)return;this._disposePopper();const f=this._getTipElement();this._element.setAttribute("aria-describedby",f.getAttribute("id"));const{container:p}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(p.append(f),S.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(f),f.classList.add(En),"ontouchstart"in document.documentElement)for(const y of[].concat(...document.body.children))S.on(y,"mouseover",te);this._queueCallback(()=>{S.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!S.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(En),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))S.off(t,"mouseover",te);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),S.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 s=this._getTemplateFactory(t).toHtml();if(!s)return null;s.classList.remove(fn,En),s.classList.add(`bs-${this.constructor.NAME}-auto`);const f=(p=>{do{p+=Math.floor(1e6*Math.random())}while(document.getElementById(p));return p})(this.constructor.NAME).toString();return s.setAttribute("id",f),this._isAnimated()&&s.classList.add(fn),s}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new dn({...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(fn)}_isShown(){return this.tip&&this.tip.classList.contains(En)}_createPopper(t){const s="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,f=bi[s.toUpperCase()];return me.createPopper(this._element,t,this._getPopperConfig(f))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(s=>Number.parseInt(s,10)):"function"==typeof t?s=>t(s,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const s={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:f=>{this._getTipElement().setAttribute("data-popper-placement",f.state.placement)}}]};return{...s,..."function"==typeof this._config.popperConfig?this._config.popperConfig(s):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const s of t)if("click"===s)S.on(this._element,this.constructor.eventName("click"),this._config.selector,f=>{this._initializeOnDelegatedTarget(f).toggle()});else if("manual"!==s){const f=this.constructor.eventName(s===Cn?"mouseenter":"focusin"),p=this.constructor.eventName(s===Cn?"mouseleave":"focusout");S.on(this._element,f,this._config.selector,y=>{const T=this._initializeOnDelegatedTarget(y);T._activeTrigger["focusin"===y.type?"focus":Cn]=!0,T._enter()}),S.on(this._element,p,this._config.selector,y=>{const T=this._initializeOnDelegatedTarget(y);T._activeTrigger["focusout"===y.type?"focus":Cn]=T._element.contains(y.relatedTarget),T._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},S.on(this._element.closest(".modal"),ni,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,s){clearTimeout(this._timeout),this._timeout=setTimeout(t,s)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const s=Ze.getDataAttributes(this._element);for(const f of Object.keys(s))ti.has(f)&&delete s[f];return t={...s,..."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:Re(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 s in this._config)this.constructor.Default[s]!==this._config[s]&&(t[s]=this._config[s]);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 s=Wt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===s[t])throw new TypeError(`No method named "${t}"`);s[t]()}})}}Me(Wt);const xi={...Wt.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Ti={...Wt.DefaultType,content:"(null|string|element|function)"};class hn extends Wt{static get Default(){return xi}static get DefaultType(){return Ti}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 s=hn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===s[t])throw new TypeError(`No method named "${t}"`);s[t]()}})}}Me(hn);const kn="click.bs.scrollspy",en="active",ii={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ri={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Bt extends We{constructor(t,s){super(t,s),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 ii}static get DefaultType(){return ri}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=Re(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(s=>Number.parseFloat(s))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(S.off(this._config.target,kn),S.on(this._config.target,kn,"[href]",t=>{const s=this._observableSections.get(t.target.hash);if(s){t.preventDefault();const f=this._rootElement||window,p=s.offsetTop-this._element.offsetTop;if(f.scrollTo)return void f.scrollTo({top:p,behavior:"smooth"});f.scrollTop=p}}))}_getNewObserver(){return new IntersectionObserver(s=>this._observerCallback(s),{root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin})}_observerCallback(t){const s=T=>this._targetLinks.get(`#${T.target.id}`),f=T=>{this._previousScrollData.visibleEntryTop=T.target.offsetTop,this._process(s(T))},p=(this._rootElement||document.documentElement).scrollTop,y=p>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=p;for(const T of t){if(!T.isIntersecting){this._activeTarget=null,this._clearActiveClass(s(T));continue}const L=T.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(y&&L){if(f(T),!p)return}else y||L||f(T)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=F.find("[href]",this._config.target);for(const s of t){if(!s.hash||Je(s))continue;const f=F.findOne(s.hash,this._element);ke(f)&&(this._targetLinks.set(s.hash,s),this._observableSections.set(s.hash,f))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(en),this._activateParents(t),S.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))F.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(en);else for(const s of F.parents(t,".nav, .list-group"))for(const f of F.prev(s,".nav-link, .nav-item > .nav-link, .list-group-item"))f.classList.add(en)}_clearActiveClass(t){t.classList.remove(en);const s=F.find("[href].active",t);for(const f of s)f.classList.remove(en)}static jQueryInterface(t){return this.each(function(){const s=Bt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===s[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);s[t]()}})}}S.on(window,"load.bs.scrollspy.data-api",()=>{for(const l of F.find('[data-bs-spy="scroll"]'))Bt.getOrCreateInstance(l)}),Me(Bt);const Ei="ArrowLeft",tn="ArrowRight",oi="ArrowUp",$n="ArrowDown",nn="active",zn="show",ai='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',e=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${ai}`;class n extends We{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),S.on(this._element,"keydown.bs.tab",s=>this._keydown(s)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const s=this._getActiveElem(),f=s?S.trigger(s,"hide.bs.tab",{relatedTarget:t}):null;S.trigger(t,"show.bs.tab",{relatedTarget:s}).defaultPrevented||f&&f.defaultPrevented||(this._deactivate(s,t),this._activate(t,s))}_activate(t,s){t&&(t.classList.add(nn),this._activate(be(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),S.trigger(t,"shown.bs.tab",{relatedTarget:s})):t.classList.add(zn)},t,t.classList.contains("fade")))}_deactivate(t,s){t&&(t.classList.remove(nn),t.blur(),this._deactivate(be(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),S.trigger(t,"hidden.bs.tab",{relatedTarget:s})):t.classList.remove(zn)},t,t.classList.contains("fade")))}_keydown(t){if(![Ei,tn,oi,$n].includes(t.key))return;t.stopPropagation(),t.preventDefault();const s=[tn,$n].includes(t.key),f=o(this._getChildren().filter(p=>!Je(p)),t.target,s,!0);f&&(f.focus({preventScroll:!0}),n.getOrCreateInstance(f).show())}_getChildren(){return F.find(e,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,s){this._setAttributeIfNotExists(t,"role","tablist");for(const f of s)this._setInitialAttributesOnChild(f)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const s=this._elemIsActive(t),f=this._getOuterElement(t);t.setAttribute("aria-selected",s),f!==t&&this._setAttributeIfNotExists(f,"role","presentation"),s||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const s=be(t);s&&(this._setAttributeIfNotExists(s,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(s,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,s){const f=this._getOuterElement(t);if(!f.classList.contains("dropdown"))return;const p=(y,T)=>{const L=F.findOne(y,f);L&&L.classList.toggle(T,s)};p(".dropdown-toggle",nn),p(".dropdown-menu",zn),f.setAttribute("aria-expanded",s)}_setAttributeIfNotExists(t,s,f){t.hasAttribute(s)||t.setAttribute(s,f)}_elemIsActive(t){return t.classList.contains(nn)}_getInnerElement(t){return t.matches(e)?t:F.findOne(e,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const s=n.getOrCreateInstance(this);if("string"==typeof t){if(void 0===s[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);s[t]()}})}}S.on(document,"click.bs.tab",ai,function(l){["A","AREA"].includes(this.tagName)&&l.preventDefault(),Je(this)||n.getOrCreateInstance(this).show()}),S.on(window,"load.bs.tab",()=>{for(const l of F.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))n.getOrCreateInstance(l)}),Me(n);const i="hide",r="show",a="showing",u={animation:"boolean",autohide:"boolean",delay:"number"},d={animation:!0,autohide:!0,delay:5e3};class m extends We{constructor(t,s){super(t,s),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return d}static get DefaultType(){return u}static get NAME(){return"toast"}show(){S.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(i),this._element.classList.add(r,a),this._queueCallback(()=>{this._element.classList.remove(a),S.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(S.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(a),this._queueCallback(()=>{this._element.classList.add(i),this._element.classList.remove(a,r),S.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(r),super.dispose()}isShown(){return this._element.classList.contains(r)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,s){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=s;break;case"focusin":case"focusout":this._hasKeyboardInteraction=s}if(s)return void this._clearTimeout();const f=t.relatedTarget;this._element===f||this._element.contains(f)||this._maybeScheduleHide()}_setListeners(){S.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),S.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),S.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),S.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 s=m.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===s[t])throw new TypeError(`No method named "${t}"`);s[t](this)}})}}return qe(m),Me(m),{Alert:Ye,Button:q,Carousel:le,Collapse:g,Dropdown:de,Modal:Nt,Offcanvas:Ue,Popover:hn,ScrollSpy:Bt,Tab:n,Toast:m,Tooltip:Wt}});