@cagovweb/state-template 1.0.0 → 1.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/cagov.core.css +4 -16
- package/dist/css/cagov.core.min.css +1 -1
- package/dist/js/cagov.core.js +496 -516
- package/dist/js/cagov.core.min.js +1 -1
- package/dist/readme.md +1 -1
- package/index.mjs +7 -0
- package/package.json +11 -6
- package/readme.md +64 -0
- package/README.md +0 -17
- package/dist/fonts/CaGov.svg +0 -528
- package/dist/fonts/CaGov.ttf +0 -0
- package/dist/fonts/CaGov.woff +0 -0
- package/dist/fonts/publicsans-bold-webfont.woff +0 -0
- package/dist/fonts/publicsans-extrabold-webfont.woff +0 -0
- package/dist/fonts/publicsans-extralight-webfont.woff +0 -0
- package/dist/fonts/publicsans-light-webfont.woff +0 -0
- package/dist/fonts/publicsans-medium-webfont.woff +0 -0
- package/dist/fonts/publicsans-regular-webfont.woff +0 -0
- package/dist/fonts/publicsans-semibold-webfont..woff +0 -0
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
4
4
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
6
|
-
var e,t;e=void 0,t=function(){const e="transitionend",t=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t},n=e=>{const n=t(e);return n&&document.querySelector(n)?n:null},i=e=>{const n=t(e);return n?document.querySelector(n):null},s=t=>{t.dispatchEvent(new Event(e))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),r=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,a=(e,t,n)=>{Object.keys(n).forEach((i=>{const s=n[i],r=t[i],a=r&&o(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${s}".`)}))},l=e=>!(!o(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),c=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),d=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?d(e.parentNode):null},u=()=>{},h=e=>{e.offsetHeight},f=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},p=[],g=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=f();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{p.forEach((e=>e()))})),p.push(t)):t()},_=e=>{"function"==typeof e&&e()},b=(t,n,i=!0)=>{if(!i)return void _(t);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),s=Number.parseFloat(n);return i||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(n)+5;let r=!1;const a=({target:i})=>{i===n&&(r=!0,n.removeEventListener(e,a),_(t))};n.addEventListener(e,a),setTimeout((()=>{r||s(n)}),o)},v=(e,t,n,i)=>{let s=e.indexOf(t);if(-1===s)return e[!n&&i?e.length-1:0];const o=e.length;return s+=n?1:-1,i&&(s=(s+o)%o),e[Math.max(0,Math.min(s,o-1))]},y=/[^.]*(?=\..*)\.|.*/,E=/\..*/,A=/::\d+$/,w={};let T=1;const L={mouseenter:"mouseover",mouseleave:"mouseout"},S=/^(mouseenter|mouseleave)/i,C=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 O(e,t){return t&&`${t}::${T++}`||e.uidEvent||T++}function x(e){const t=O(e);return e.uidEvent=t,w[t]=w[t]||{},w[t]}function D(e,t,n=null){const i=Object.keys(e);for(let s=0,o=i.length;s<o;s++){const o=e[i[s]];if(o.originalHandler===t&&o.delegationSelector===n)return o}return null}function k(e,t,n){const i="string"==typeof t,s=i?n:t;let o=P(e);return C.has(o)||(o=e),[i,s,o]}function N(e,t,n,i,s){if("string"!=typeof t||!e)return;if(n||(n=i,i=null),S.test(t)){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};i?i=e(i):n=e(n)}const[o,r,a]=k(t,n,i),l=x(e),c=l[a]||(l[a]={}),d=D(c,r,o?n:null);if(d)return void(d.oneOff=d.oneOff&&s);const u=O(r,t.replace(y,"")),h=o?function(e,t,n){return function i(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,i.oneOff&&q.off(e,s.type,t,n),n.apply(r,[s]);return null}}(e,n,i):function(e,t){return function n(i){return i.delegateTarget=e,n.oneOff&&q.off(e,i.type,t),t.apply(e,[i])}}(e,n);h.delegationSelector=o?n:null,h.originalHandler=r,h.oneOff=s,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,o)}function I(e,t,n,i,s){const o=D(t[n],i,s);o&&(e.removeEventListener(n,o,Boolean(s)),delete t[n][o.uidEvent])}function P(e){return e=e.replace(E,""),L[e]||e}const q={on(e,t,n,i){N(e,t,n,i,!1)},one(e,t,n,i){N(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[s,o,r]=k(t,n,i),a=r!==t,l=x(e),c=t.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void I(e,l,r,o,s?n:null)}c&&Object.keys(l).forEach((n=>{!function(e,t,n,i){const s=t[n]||{};Object.keys(s).forEach((o=>{if(o.includes(i)){const i=s[o];I(e,t,n,i.originalHandler,i.delegationSelector)}}))}(e,l,n,t.slice(1))}));const d=l[r]||{};Object.keys(d).forEach((n=>{const i=n.replace(A,"");if(!a||t.includes(i)){const t=d[n];I(e,l,r,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=f(),s=P(t),o=t!==s,r=C.has(s);let a,l=!0,c=!0,d=!1,u=null;return o&&i&&(a=i.Event(t,n),i(e).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented()),r?(u=document.createEvent("HTMLEvents"),u.initEvent(s,l,!0)):u=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(u,e,{get:()=>n[e]})})),d&&u.preventDefault(),c&&e.dispatchEvent(u),u.defaultPrevented&&void 0!==a&&a.preventDefault(),u}},R=new Map,H={set(e,t,n){R.has(e)||R.set(e,new Map);const i=R.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>R.has(e)&&R.get(e).get(t)||null,remove(e,t){if(!R.has(e))return;const n=R.get(e);n.delete(t),0===n.size&&R.delete(e)}};class M{constructor(e){(e=r(e))&&(this._element=e,H.set(this._element,this.constructor.DATA_KEY,this))}dispose(){H.remove(this._element,this.constructor.DATA_KEY),q.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,n=!0){b(e,t,n)}static getInstance(e){return H.get(r(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const $=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;q.on(document,n,`[data-bs-dismiss="${s}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),c(this))return;const o=i(this)||this.closest(`.${s}`);e.getOrCreateInstance(o)[t]()}))};class j extends M{static get NAME(){return"alert"}close(){if(q.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),q.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=j.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}$(j,"close"),m(j);const B='[data-bs-toggle="button"]';class W extends M{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=W.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}function z(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function F(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}q.on(document,"click.bs.button.data-api",B,(e=>{e.preventDefault();const t=e.target.closest(B);W.getOrCreateInstance(t).toggle()})),m(W);const U={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${F(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${F(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=z(e.dataset[n])})),t},getDataAttribute:(e,t)=>z(e.getAttribute(`data-bs-${F(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},Y={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let i=e.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(t)&&n.push(i),i=i.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(", ");return this.find(t,e).filter((e=>!c(e)&&l(e)))}},X="carousel",V={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},K={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Q="next",J="prev",G="left",Z="right",ee={ArrowLeft:Z,ArrowRight:G},te="slid.bs.carousel",ne="active",ie=".active.carousel-item";class se extends M{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=Y.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return V}static get NAME(){return X}next(){this._slide(Q)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(J)}pause(e){e||(this._isPaused=!0),Y.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(s(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=Y.findOne(ie,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void q.one(this._element,te,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const n=e>t?Q:J;this._slide(n,this._items[e])}_getConfig(e){return e={...V,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(X,e,K),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?Z:G)}_addEventListeners(){this._config.keyboard&&q.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(q.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),q.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),t=t=>{e(t)?this.touchStartX=t.clientX:this._pointerEvent||(this.touchStartX=t.touches[0].clientX)},n=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},i=t=>{e(t)&&(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};Y.find(".carousel-item img",this._element).forEach((e=>{q.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(q.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),q.on(this._element,"pointerup.bs.carousel",(e=>i(e))),this._element.classList.add("pointer-event")):(q.on(this._element,"touchstart.bs.carousel",(e=>t(e))),q.on(this._element,"touchmove.bs.carousel",(e=>n(e))),q.on(this._element,"touchend.bs.carousel",(e=>i(e))))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ee[e.key];t&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?Y.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const n=e===Q;return v(this._items,t,n,this._config.wrap)}_triggerSlideEvent(e,t){const n=this._getItemIndex(e),i=this._getItemIndex(Y.findOne(ie,this._element));return q.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:i,to:n})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=Y.findOne(".active",this._indicatorsElement);t.classList.remove(ne),t.removeAttribute("aria-current");const n=Y.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t<n.length;t++)if(Number.parseInt(n[t].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){n[t].classList.add(ne),n[t].setAttribute("aria-current","true");break}}}_updateInterval(){const e=this._activeElement||Y.findOne(ie,this._element);if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(e,t){const n=this._directionToOrder(e),i=Y.findOne(ie,this._element),s=this._getItemIndex(i),o=t||this._getItemByOrder(n,i),r=this._getItemIndex(o),a=Boolean(this._interval),l=n===Q,c=l?"carousel-item-start":"carousel-item-end",d=l?"carousel-item-next":"carousel-item-prev",u=this._orderToDirection(n);if(o&&o.classList.contains(ne))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(o,u).defaultPrevented)return;if(!i||!o)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const f=()=>{q.trigger(this._element,te,{relatedTarget:o,direction:u,from:s,to:r})};if(this._element.classList.contains("slide")){o.classList.add(d),h(o),i.classList.add(c),o.classList.add(c);const e=()=>{o.classList.remove(c,d),o.classList.add(ne),i.classList.remove(ne,d,c),this._isSliding=!1,setTimeout(f,0)};this._queueCallback(e,i,!0)}else i.classList.remove(ne),o.classList.add(ne),this._isSliding=!1,f();a&&this.cycle()}_directionToOrder(e){return[Z,G].includes(e)?g()?e===G?J:Q:e===G?Q:J:e}_orderToDirection(e){return[Q,J].includes(e)?g()?e===J?G:Z:e===J?Z:G:e}static carouselInterface(e,t){const n=se.getOrCreateInstance(e,t);let{_config:i}=n;"object"==typeof t&&(i={...i,...t});const s="string"==typeof t?t:i.slide;if("number"==typeof t)n.to(t);else if("string"==typeof s){if(void 0===n[s])throw new TypeError(`No method named "${s}"`);n[s]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}static jQueryInterface(e){return this.each((function(){se.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=i(this);if(!t||!t.classList.contains("carousel"))return;const n={...U.getDataAttributes(t),...U.getDataAttributes(this)},s=this.getAttribute("data-bs-slide-to");s&&(n.interval=!1),se.carouselInterface(t,n),s&&se.getInstance(t).to(s),e.preventDefault()}}q.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",se.dataApiClickHandler),q.on(window,"load.bs.carousel.data-api",(()=>{const e=Y.find('[data-bs-ride="carousel"]');for(let t=0,n=e.length;t<n;t++)se.carouselInterface(e[t],se.getInstance(e[t]))})),m(se);const oe="collapse",re={toggle:!0,parent:null},ae={toggle:"boolean",parent:"(null|element)"},le="show",ce="collapse",de="collapsing",ue="collapsed",he=":scope .collapse .collapse",fe='[data-bs-toggle="collapse"]';class pe extends M{constructor(e,t){super(e),this._isTransitioning=!1,this._config=this._getConfig(t),this._triggerArray=[];const i=Y.find(fe);for(let e=0,t=i.length;e<t;e++){const t=i[e],s=n(t),o=Y.find(s).filter((e=>e===this._element));null!==s&&o.length&&(this._selector=s,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return re}static get NAME(){return oe}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=Y.find(he,this._config.parent);t=Y.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((t=>!e.includes(t)))}const n=Y.findOne(this._selector);if(t.length){const i=t.find((e=>n!==e));if(e=i?pe.getInstance(i):null,e&&e._isTransitioning)return}if(q.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{n!==t&&pe.getOrCreateInstance(t,{toggle:!1}).hide(),e||H.set(t,"bs.collapse",null)}));const i=this._getDimension();this._element.classList.remove(ce),this._element.classList.add(de),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(de),this._element.classList.add(ce,le),this._element.style[i]="",q.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[i]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(q.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,h(this._element),this._element.classList.add(de),this._element.classList.remove(ce,le);const t=this._triggerArray.length;for(let e=0;e<t;e++){const t=this._triggerArray[e],n=i(t);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(de),this._element.classList.add(ce),q.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(le)}_getConfig(e){return(e={...re,...U.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=r(e.parent),a(oe,e,ae),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=Y.find(he,this._config.parent);Y.find(fe,this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=i(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove(ue):e.classList.add(ue),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const n=pe.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}q.on(document,"click.bs.collapse.data-api",fe,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=n(this);Y.find(t).forEach((e=>{pe.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),m(pe);var ge="top",me="bottom",_e="right",be="left",ve="auto",ye=[ge,me,_e,be],Ee="start",Ae="end",we="clippingParents",Te="viewport",Le="popper",Se="reference",Ce=ye.reduce((function(e,t){return e.concat([t+"-"+Ee,t+"-"+Ae])}),[]),Oe=[].concat(ye,[ve]).reduce((function(e,t){return e.concat([t,t+"-"+Ee,t+"-"+Ae])}),[]),xe="beforeRead",De="read",ke="afterRead",Ne="beforeMain",Ie="main",Pe="afterMain",qe="beforeWrite",Re="write",He="afterWrite",Me=[xe,De,ke,Ne,Ie,Pe,qe,Re,He];function $e(e){return e?(e.nodeName||"").toLowerCase():null}function je(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Be(e){return e instanceof je(e).Element||e instanceof Element}function We(e){return e instanceof je(e).HTMLElement||e instanceof HTMLElement}function ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof je(e).ShadowRoot||e instanceof ShadowRoot)}const Fe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];We(s)&&$e(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});We(i)&&$e(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ue(e){return e.split("-")[0]}function Ye(e,t){var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}function Xe(e){var t=Ye(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ve(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ze(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ke(e){return je(e).getComputedStyle(e)}function Qe(e){return["table","td","th"].indexOf($e(e))>=0}function Je(e){return((Be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ge(e){return"html"===$e(e)?e:e.assignedSlot||e.parentNode||(ze(e)?e.host:null)||Je(e)}function Ze(e){return We(e)&&"fixed"!==Ke(e).position?e.offsetParent:null}function et(e){for(var t=je(e),n=Ze(e);n&&Qe(n)&&"static"===Ke(n).position;)n=Ze(n);return n&&("html"===$e(n)||"body"===$e(n)&&"static"===Ke(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&We(e)&&"fixed"===Ke(e).position)return null;for(var n=Ge(e);We(n)&&["html","body"].indexOf($e(n))<0;){var i=Ke(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function tt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var nt=Math.max,it=Math.min,st=Math.round;function ot(e,t,n){return nt(e,it(t,n))}function rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function at(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const lt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Ue(n.placement),l=tt(a),c=[be,_e].indexOf(a)>=0?"height":"width";if(o&&r){var d=function(e,t){return rt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:at(e,ye))}(s.padding,n),u=Xe(o),h="y"===l?ge:be,f="y"===l?me:_e,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],g=r[l]-n.rects.reference[l],m=et(o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,v=d[h],y=_-u[c]-d[f],E=_/2-u[c]/2+b,A=ot(v,E,y),w=l;n.modifiersData[i]=((t={})[w]=A,t.centerOffset=A-E,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Ve(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ct(e){return e.split("-")[1]}var dt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ut(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=!0===d?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:st(st(t*i)/i)||0,y:st(st(n*i)/i)||0}}(r):"function"==typeof d?d(r):r,h=u.x,f=void 0===h?0:h,p=u.y,g=void 0===p?0:p,m=r.hasOwnProperty("x"),_=r.hasOwnProperty("y"),b=be,v=ge,y=window;if(c){var E=et(n),A="clientHeight",w="clientWidth";E===je(n)&&"static"!==Ke(E=Je(n)).position&&"absolute"===a&&(A="scrollHeight",w="scrollWidth"),s!==ge&&(s!==be&&s!==_e||o!==Ae)||(v=me,g-=E[A]-i.height,g*=l?1:-1),s!==be&&(s!==ge&&s!==me||o!==Ae)||(b=_e,f-=E[w]-i.width,f*=l?1:-1)}var T,L=Object.assign({position:a},c&&dt);return l?Object.assign({},L,((T={})[v]=_?"0":"",T[b]=m?"0":"",T.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",T)):Object.assign({},L,((t={})[v]=_?g+"px":"",t[b]=m?f+"px":"",t.transform="",t))}const ht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:Ue(t.placement),variation:ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ut(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ut(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ft={passive:!0};const pt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=je(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,ft)})),a&&l.addEventListener("resize",n.update,ft),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ft)})),a&&l.removeEventListener("resize",n.update,ft)}},data:{}};var gt={left:"right",right:"left",bottom:"top",top:"bottom"};function mt(e){return e.replace(/left|right|bottom|top/g,(function(e){return gt[e]}))}var _t={start:"end",end:"start"};function bt(e){return e.replace(/start|end/g,(function(e){return _t[e]}))}function vt(e){var t=je(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yt(e){return Ye(Je(e)).left+vt(e).scrollLeft}function Et(e){var t=Ke(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function At(e){return["html","body","#document"].indexOf($e(e))>=0?e.ownerDocument.body:We(e)&&Et(e)?e:At(Ge(e))}function wt(e,t){var n;void 0===t&&(t=[]);var i=At(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=je(i),r=s?[o].concat(o.visualViewport||[],Et(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(wt(Ge(r)))}function Tt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lt(e,t){return t===Te?Tt(function(e){var t=je(e),n=Je(e),i=t.visualViewport,s=n.clientWidth,o=n.clientHeight,r=0,a=0;return i&&(s=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=i.offsetLeft,a=i.offsetTop)),{width:s,height:o,x:r+yt(e),y:a}}(e)):We(t)?function(e){var t=Ye(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Tt(function(e){var t,n=Je(e),i=vt(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=nt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=nt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+yt(e),l=-i.scrollTop;return"rtl"===Ke(s||n).direction&&(a+=nt(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(Je(e)))}function St(e){var t,n=e.reference,i=e.element,s=e.placement,o=s?Ue(s):null,r=s?ct(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case ge:t={x:a,y:n.y-i.height};break;case me:t={x:a,y:n.y+n.height};break;case _e:t={x:n.x+n.width,y:l};break;case be:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?tt(o):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case Ee:t[c]=t[c]-(n[d]/2-i[d]/2);break;case Ae:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function Ct(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,o=n.boundary,r=void 0===o?we:o,a=n.rootBoundary,l=void 0===a?Te:a,c=n.elementContext,d=void 0===c?Le:c,u=n.altBoundary,h=void 0!==u&&u,f=n.padding,p=void 0===f?0:f,g=rt("number"!=typeof p?p:at(p,ye)),m=d===Le?Se:Le,_=e.rects.popper,b=e.elements[h?m:d],v=function(e,t,n){var i="clippingParents"===t?function(e){var t=wt(Ge(e)),n=["absolute","fixed"].indexOf(Ke(e).position)>=0&&We(e)?et(e):e;return Be(n)?t.filter((function(e){return Be(e)&&Ve(e,n)&&"body"!==$e(e)})):[]}(e):[].concat(t),s=[].concat(i,[n]),o=s[0],r=s.reduce((function(t,n){var i=Lt(e,n);return t.top=nt(i.top,t.top),t.right=it(i.right,t.right),t.bottom=it(i.bottom,t.bottom),t.left=nt(i.left,t.left),t}),Lt(e,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(Be(b)?b:b.contextElement||Je(e.elements.popper),r,l),y=Ye(e.elements.reference),E=St({reference:y,element:_,strategy:"absolute",placement:s}),A=Tt(Object.assign({},_,E)),w=d===Le?A:y,T={top:v.top-w.top+g.top,bottom:w.bottom-v.bottom+g.bottom,left:v.left-w.left+g.left,right:w.right-v.right+g.right},L=e.modifiersData.offset;if(d===Le&&L){var S=L[s];Object.keys(T).forEach((function(e){var t=[_e,me].indexOf(e)>=0?1:-1,n=[ge,me].indexOf(e)>=0?"y":"x";T[e]+=S[n]*t}))}return T}const Ot={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,_=Ue(m),b=l||(_!==m&&p?function(e){if(Ue(e)===ve)return[];var t=mt(e);return[bt(e),t,bt(t)]}(m):[mt(m)]),v=[m].concat(b).reduce((function(e,n){return e.concat(Ue(n)===ve?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Oe:l,d=ct(i),u=d?a?Ce:Ce.filter((function(e){return ct(e)===d})):ye,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var f=h.reduce((function(t,n){return t[n]=Ct(e,{placement:n,boundary:s,rootBoundary:o,padding:r})[Ue(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,E=t.rects.popper,A=new Map,w=!0,T=v[0],L=0;L<v.length;L++){var S=v[L],C=Ue(S),O=ct(S)===Ee,x=[ge,me].indexOf(C)>=0,D=x?"width":"height",k=Ct(t,{placement:S,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),N=x?O?_e:be:O?me:ge;y[D]>E[D]&&(N=mt(N));var I=mt(N),P=[];if(o&&P.push(k[C]<=0),a&&P.push(k[N]<=0,k[I]<=0),P.every((function(e){return e}))){T=S,w=!1;break}A.set(S,P)}if(w)for(var q=function(e){var t=v.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},R=p?3:1;R>0&&"break"!==q(R);R--);t.placement!==T&&(t.modifiersData[i]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Dt(e){return[ge,_e,me,be].some((function(t){return e[t]>=0}))}const kt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=Ct(t,{elementContext:"reference"}),a=Ct(t,{altBoundary:!0}),l=xt(r,i),c=xt(a,s,o),d=Dt(l),u=Dt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},Nt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=void 0===s?[0,0]:s,r=Oe.reduce((function(e,n){return e[n]=function(e,t,n){var i=Ue(e),s=[be,ge].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[be,_e].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}},It={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=St({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,g=void 0===p?0:p,m=Ct(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),_=Ue(t.placement),b=ct(t.placement),v=!b,y=tt(_),E="x"===y?"y":"x",A=t.modifiersData.popperOffsets,w=t.rects.reference,T=t.rects.popper,L="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,S={x:0,y:0};if(A){if(o||a){var C="y"===y?ge:be,O="y"===y?me:_e,x="y"===y?"height":"width",D=A[y],k=A[y]+m[C],N=A[y]-m[O],I=f?-T[x]/2:0,P=b===Ee?w[x]:T[x],q=b===Ee?-T[x]:-w[x],R=t.elements.arrow,H=f&&R?Xe(R):{width:0,height:0},M=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=M[C],j=M[O],B=ot(0,w[x],H[x]),W=v?w[x]/2-I-B-$-L:P-B-$-L,z=v?-w[x]/2+I+B+j+L:q+B+j+L,F=t.elements.arrow&&et(t.elements.arrow),U=F?"y"===y?F.clientTop||0:F.clientLeft||0:0,Y=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0,X=A[y]+W-Y-U,V=A[y]+z-Y;if(o){var K=ot(f?it(k,X):k,D,f?nt(N,V):N);A[y]=K,S[y]=K-D}if(a){var Q="x"===y?ge:be,J="x"===y?me:_e,G=A[E],Z=G+m[Q],ee=G-m[J],te=ot(f?it(Z,X):Z,G,f?nt(ee,V):ee);A[E]=te,S[E]=te-G}}t.modifiersData[i]=S}},requiresIfExists:["offset"]};function qt(e,t,n){void 0===n&&(n=!1);var i=We(t);We(t)&&function(e){var t=e.getBoundingClientRect();t.width,e.offsetWidth,t.height,e.offsetHeight}(t);var s,o,r=Je(t),a=Ye(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==$e(t)||Et(r))&&(l=(s=t)!==je(s)&&We(s)?{scrollLeft:(o=s).scrollLeft,scrollTop:o.scrollTop}:vt(s)),We(t)?((c=Ye(t)).x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=yt(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Rt(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||s(e)})),i}var Ht={placement:"bottom",modifiers:[],strategy:"absolute"};function Mt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function $t(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?Ht:s;return function(e,t,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ht,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:Be(e)?wt(e):e.contextElement?wt(e.contextElement):[],popper:wt(t)};var r,c,h=function(e){var t=Rt(e);return Me.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(i,a.options.modifiers),c=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:i});l.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Mt(t,n)){a.rects={reference:qt(t,et(n),"fixed"===a.options.strategy),popper:Xe(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,u=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){u(),c=!0}};if(!Mt(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var jt=$t(),Bt=$t({defaultModifiers:[pt,It,ht,Fe]}),Wt=$t({defaultModifiers:[pt,It,ht,Fe,Nt,Ot,Pt,lt,kt]});const zt=Object.freeze({__proto__:null,popperGenerator:$t,detectOverflow:Ct,createPopperBase:jt,createPopper:Wt,createPopperLite:Bt,top:ge,bottom:me,right:_e,left:be,auto:ve,basePlacements:ye,start:Ee,end:Ae,clippingParents:we,viewport:Te,popper:Le,reference:Se,variationPlacements:Ce,placements:Oe,beforeRead:xe,read:De,afterRead:ke,beforeMain:Ne,main:Ie,afterMain:Pe,beforeWrite:qe,write:Re,afterWrite:He,modifierPhases:Me,applyStyles:Fe,arrow:lt,computeStyles:ht,eventListeners:pt,flip:Ot,hide:kt,offset:Nt,popperOffsets:It,preventOverflow:Pt}),Ft="dropdown",Ut="Escape",Yt="Space",Xt="ArrowUp",Vt="ArrowDown",Kt=new RegExp("ArrowUp|ArrowDown|Escape"),Qt="click.bs.dropdown.data-api",Jt="keydown.bs.dropdown.data-api",Gt="show",Zt='[data-bs-toggle="dropdown"]',en=".dropdown-menu",tn=g()?"top-end":"top-start",nn=g()?"top-start":"top-end",sn=g()?"bottom-end":"bottom-start",on=g()?"bottom-start":"bottom-end",rn=g()?"left-start":"right-start",an=g()?"right-start":"left-start",ln={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},cn={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class dn extends M{constructor(e,t){super(e),this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return ln}static get DefaultType(){return cn}static get NAME(){return Ft}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown(this._menu))return;const e={relatedTarget:this._element};if(q.trigger(this._element,"show.bs.dropdown",e).defaultPrevented)return;const t=dn.getParentFromElement(this._element);this._inNavbar?U.setDataAttribute(this._menu,"popper","none"):this._createPopper(t),"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((e=>q.on(e,"mouseover",u))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Gt),this._element.classList.add(Gt),q.trigger(this._element,"shown.bs.dropdown",e)}hide(){if(c(this._element)||!this._isShown(this._menu))return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){q.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>q.off(e,"mouseover",u))),this._popper&&this._popper.destroy(),this._menu.classList.remove(Gt),this._element.classList.remove(Gt),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),q.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...U.getDataAttributes(this._element),...e},a(Ft,e,this.constructor.DefaultType),"object"==typeof e.reference&&!o(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ft.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(void 0===zt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig(),i=n.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=Wt(t,this._menu,n),i&&U.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(Gt)}_getMenuElement(){return Y.next(this._element,en)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return rn;if(e.classList.contains("dropstart"))return an;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?nn:tn:t?on:sn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const n=Y.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(l);n.length&&v(n,t,e===Vt,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=dn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const t=Y.find(Zt);for(let n=0,i=t.length;n<i;n++){const i=dn.getInstance(t[n]);if(!i||!1===i._config.autoClose)continue;if(!i._isShown())continue;const s={relatedTarget:i._element};if(e){const t=e.composedPath(),n=t.includes(i._menu);if(t.includes(i._element)||"inside"===i._config.autoClose&&!n||"outside"===i._config.autoClose&&n)continue;if(i._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(s.clickEvent=e)}i._completeHide(s)}}static getParentFromElement(e){return i(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===Yt||e.key!==Ut&&(e.key!==Vt&&e.key!==Xt||e.target.closest(en)):!Kt.test(e.key))return;const t=this.classList.contains(Gt);if(!t&&e.key===Ut)return;if(e.preventDefault(),e.stopPropagation(),c(this))return;const n=this.matches(Zt)?this:Y.prev(this,Zt)[0],i=dn.getOrCreateInstance(n);if(e.key!==Ut)return e.key===Xt||e.key===Vt?(t||i.show(),void i._selectMenuItem(e)):void(t&&e.key!==Yt||dn.clearMenus());i.hide()}}q.on(document,Jt,Zt,dn.dataApiKeydownHandler),q.on(document,Jt,en,dn.dataApiKeydownHandler),q.on(document,Qt,dn.clearMenus),q.on(document,"keyup.bs.dropdown.data-api",dn.clearMenus),q.on(document,Qt,Zt,(function(e){e.preventDefault(),dn.getOrCreateInstance(this).toggle()})),m(dn);const un=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hn=".sticky-top";class fn{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(t=>t+e)),this._setElementAttributes(un,"paddingRight",(t=>t+e)),this._setElementAttributes(hn,"marginRight",(t=>t-e))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e)[t];e.style[t]=`${n(Number.parseFloat(s))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(un,"paddingRight"),this._resetElementAttributes(hn,"marginRight")}_saveInitialAttribute(e,t){const n=e.style[t];n&&U.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=U.getDataAttribute(e,t);void 0===n?e.style.removeProperty(t):(U.removeDataAttribute(e,t),e.style[t]=n)}))}_applyManipulationCallback(e,t){o(e)?t(e):Y.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const pn={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},gn={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},mn="show",_n="mousedown.bs.backdrop";class bn{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&h(this._getElement()),this._getElement().classList.add(mn),this._emulateAnimation((()=>{_(e)}))):_(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(mn),this._emulateAnimation((()=>{this.dispose(),_(e)}))):_(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={...pn,..."object"==typeof e?e:{}}).rootElement=r(e.rootElement),a("backdrop",e,gn),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),q.on(this._getElement(),_n,(()=>{_(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(q.off(this._element,_n),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){b(e,this._getElement(),this._config.isAnimated)}}const vn={trapElement:null,autofocus:!0},yn={trapElement:"element",autofocus:"boolean"},En=".bs.focustrap",An="backward";class wn{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),q.off(document,En),q.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),q.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,q.off(document,En))}_handleFocusin(e){const{target:t}=e,{trapElement:n}=this._config;if(t===document||t===n||n.contains(t))return;const i=Y.focusableChildren(n);0===i.length?n.focus():this._lastTabNavDirection===An?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?An:"forward")}_getConfig(e){return e={...vn,..."object"==typeof e?e:{}},a("focustrap",e,yn),e}}const Tn="modal",Ln="Escape",Sn={backdrop:!0,keyboard:!0,focus:!0},Cn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},On="hidden.bs.modal",xn="show.bs.modal",Dn="resize.bs.modal",kn="click.dismiss.bs.modal",Nn="keydown.dismiss.bs.modal",In="mousedown.dismiss.bs.modal",Pn="modal-open",qn="show",Rn="modal-static";class Hn extends M{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=Y.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new fn}static get Default(){return Sn}static get NAME(){return Tn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||q.trigger(this._element,xn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Pn),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),q.on(this._dialog,In,(()=>{q.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;if(q.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(qn),q.off(this._element,kn),q.off(this._dialog,In),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((e=>q.off(e,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new wn({trapElement:this._element})}_getConfig(e){return e={...Sn,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(Tn,e,Cn),e}_showElement(e){const t=this._isAnimated(),n=Y.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),t&&h(this._element),this._element.classList.add(qn),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,q.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,t)}_setEscapeEvent(){this._isShown?q.on(this._element,Nn,(e=>{this._config.keyboard&&e.key===Ln?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==Ln||this._triggerBackdropTransition()})):q.off(this._element,Nn)}_setResizeEvent(){this._isShown?q.on(window,Dn,(()=>this._adjustDialog())):q.off(window,Dn)}_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(Pn),this._resetAdjustments(),this._scrollBar.reset(),q.trigger(this._element,On)}))}_showBackdrop(e){q.on(this._element,kn,(e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(q.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:n}=this._element,i=t>document.documentElement.clientHeight;!i&&"hidden"===n.overflowY||e.contains(Rn)||(i||(n.overflowY="hidden"),e.add(Rn),this._queueCallback((()=>{e.remove(Rn),i||this._queueCallback((()=>{n.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;(!n&&e&&!g()||n&&!e&&g())&&(this._element.style.paddingLeft=`${t}px`),(n&&!e&&!g()||!n&&e&&g())&&(this._element.style.paddingRight=`${t}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Hn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}q.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=i(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),q.one(t,xn,(e=>{e.defaultPrevented||q.one(t,On,(()=>{l(this)&&this.focus()}))}));const n=Y.findOne(".modal.show");n&&Hn.getInstance(n).hide(),Hn.getOrCreateInstance(t).toggle(this)})),$(Hn),m(Hn);const Mn="offcanvas",$n={backdrop:!0,keyboard:!0,scroll:!1},jn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Bn="show",Wn=".offcanvas.show",zn="hidden.bs.offcanvas";class Fn extends M{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Mn}static get Default(){return $n}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||q.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new fn).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Bn),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),q.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(q.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(Bn),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new fn).reset(),q.trigger(this._element,zn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...$n,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(Mn,e,jn),e}_initializeBackDrop(){return new bn({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new wn({trapElement:this._element})}_addEventListeners(){q.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=Fn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}q.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=i(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this))return;q.one(t,zn,(()=>{l(this)&&this.focus()}));const n=Y.findOne(Wn);n&&n!==t&&Fn.getInstance(n).hide(),Fn.getOrCreateInstance(t).toggle(this)})),q.on(window,"load.bs.offcanvas.data-api",(()=>Y.find(Wn).forEach((e=>Fn.getOrCreateInstance(e).show())))),$(Fn),m(Fn);const Un=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Yn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Xn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Vn=(e,t)=>{const n=e.nodeName.toLowerCase();if(t.includes(n))return!Un.has(n)||Boolean(Yn.test(e.nodeValue)||Xn.test(e.nodeValue));const i=t.filter((e=>e instanceof RegExp));for(let e=0,t=i.length;e<t;e++)if(i[e].test(n))return!0;return!1};function Kn(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(let e=0,n=s.length;e<n;e++){const n=s[e],i=n.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){n.remove();continue}const o=[].concat(...n.attributes),r=[].concat(t["*"]||[],t[i]||[]);o.forEach((e=>{Vn(e,r)||n.removeAttribute(e.nodeName)}))}return i.body.innerHTML}const Qn="tooltip",Jn=new Set(["sanitize","allowList","sanitizeFn"]),Gn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Zn={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},ei={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},ti={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},ni="fade",ii="show",si="show",oi="out",ri=".tooltip-inner",ai=".modal",li="hide.bs.modal",ci="hover",di="focus";class ui extends M{constructor(e,t){if(void 0===zt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return ei}static get NAME(){return Qn}static get Event(){return ti}static get DefaultType(){return Gn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(ii))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),q.off(this._element.closest(ai),li,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=q.trigger(this._element,this.constructor.Event.SHOW),t=d(this._element),n=null===t?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!n)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(ri).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const i=this.getTipElement(),s=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME);i.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&i.classList.add(ni);const o="function"==typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:a}=this._config;H.set(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(i),q.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Wt(this._element,i,this._getPopperConfig(r)),i.classList.add(ii);const l=this._resolvePossibleFunction(this._config.customClass);l&&i.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{q.on(e,"mouseover",u)}));const c=this.tip.classList.contains(ni);this._queueCallback((()=>{const e=this._hoverState;this._hoverState=null,q.trigger(this._element,this.constructor.Event.SHOWN),e===oi&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const e=this.getTipElement();if(q.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(ii),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>q.off(e,"mouseover",u))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const t=this.tip.classList.contains(ni);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==si&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),q.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,t),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const t=e.children[0];return this.setContent(t),t.classList.remove(ni,ii),this.tip=t,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),ri)}_sanitizeAndSetContent(e,t,n){const i=Y.findOne(n,e);t||!i?this.setElementContent(i,t):i.remove()}setElementContent(e,t){if(null!==e)return o(t)?(t=r(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=Kn(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return Zn[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((e=>{if("click"===e)q.on(this._element,this.constructor.Event.CLICK,this._config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===ci?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=e===ci?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;q.on(this._element,t,this._config.selector,(e=>this._enter(e))),q.on(this._element,n,this._config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},q.on(this._element.closest(ai),li,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?di:ci]=!0),t.getTipElement().classList.contains(ii)||t._hoverState===si?t._hoverState=si:(clearTimeout(t._timeout),t._hoverState=si,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===si&&t.show()}),t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?di:ci]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=oi,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===oi&&t.hide()}),t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=U.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{Jn.has(e)&&delete t[e]})),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:r(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),a(Qn,e,this.constructor.DefaultType),e.sanitize&&(e.template=Kn(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),n=e.getAttribute("class").match(t);null!==n&&n.length>0&&n.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each((function(){const t=ui.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(ui);const hi={...ui.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},fi={...ui.DefaultType,content:"(string|element|function)"},pi={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class gi extends ui{static get Default(){return hi}static get NAME(){return"popover"}static get Event(){return pi}static get DefaultType(){return fi}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(e){return this.each((function(){const t=gi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(gi);const mi="scrollspy",_i={offset:10,method:"auto",target:""},bi={offset:"number",method:"string",target:"(string|element)"},vi="active",yi=".nav-link, .list-group-item, .dropdown-item",Ei="position";class Ai extends M{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,q.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return _i}static get NAME(){return mi}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":Ei,t="auto"===this._config.method?e:this._config.method,i=t===Ei?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Y.find(yi,this._config.target).map((e=>{const s=n(e),o=s?Y.findOne(s):null;if(o){const e=o.getBoundingClientRect();if(e.width||e.height)return[U[t](o).top+i,s]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){q.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(e){return(e={..._i,...U.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=r(e.target)||document.documentElement,a(mi,e,bi),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;)this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&(void 0===this._offsets[t+1]||e<this._offsets[t+1])&&this._activate(this._targets[t])}}_activate(e){this._activeTarget=e,this._clear();const t=yi.split(",").map((t=>`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),n=Y.findOne(t.join(","),this._config.target);n.classList.add(vi),n.classList.contains("dropdown-item")?Y.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add(vi):Y.parents(n,".nav, .list-group").forEach((e=>{Y.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(vi))),Y.prev(e,".nav-item").forEach((e=>{Y.children(e,".nav-link").forEach((e=>e.classList.add(vi)))}))})),q.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){Y.find(yi,this._config.target).filter((e=>e.classList.contains(vi))).forEach((e=>e.classList.remove(vi)))}static jQueryInterface(e){return this.each((function(){const t=Ai.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}q.on(window,"load.bs.scrollspy.data-api",(()=>{Y.find('[data-bs-spy="scroll"]').forEach((e=>new Ai(e)))})),m(Ai);const wi="active",Ti="fade",Li="show",Si=".active",Ci=":scope > li > .active";class Oi extends M{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(wi))return;let e;const t=i(this._element),n=this._element.closest(".nav, .list-group");if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?Ci:Si;e=Y.find(t,n),e=e[e.length-1]}const s=e?q.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(q.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==s&&s.defaultPrevented)return;this._activate(this._element,n);const o=()=>{q.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),q.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,o):o()}_activate(e,t,n){const i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?Y.children(t,Si):Y.find(Ci,t))[0],s=n&&i&&i.classList.contains(Ti),o=()=>this._transitionComplete(e,i,n);i&&s?(i.classList.remove(Li),this._queueCallback(o,e,!0)):o()}_transitionComplete(e,t,n){if(t){t.classList.remove(wi);const e=Y.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(wi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(wi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),h(e),e.classList.contains(Ti)&&e.classList.add(Li);let i=e.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){const t=e.closest(".dropdown");t&&Y.find(".dropdown-toggle",t).forEach((e=>e.classList.add(wi))),e.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(e){return this.each((function(){const t=Oi.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}q.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this)||Oi.getOrCreateInstance(this).show()})),m(Oi);const xi="toast",Di="hide",ki="show",Ni="showing",Ii={animation:"boolean",autohide:"boolean",delay:"number"},Pi={animation:!0,autohide:!0,delay:5e3};class qi extends M{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Ii}static get Default(){return Pi}static get NAME(){return xi}show(){q.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Di),h(this._element),this._element.classList.add(ki),this._element.classList.add(Ni),this._queueCallback((()=>{this._element.classList.remove(Ni),q.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(ki)&&(q.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Ni),this._queueCallback((()=>{this._element.classList.add(Di),this._element.classList.remove(Ni),this._element.classList.remove(ki),q.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(ki)&&this._element.classList.remove(ki),super.dispose()}_getConfig(e){return e={...Pi,...U.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},a(xi,e,this.constructor.DefaultType),e}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){q.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),q.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),q.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),q.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=qi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return $(qi),m(qi),{Alert:j,Button:W,Carousel:se,Collapse:pe,Dropdown:dn,Modal:Hn,Offcanvas:Fn,Popover:gi,ScrollSpy:Ai,Tab:Oi,Toast:qi,Tooltip:ui}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(),(()=>{const e=document.documentElement;let t,n=window.scrollY||e.scrollTop,i=0,s=0;const o=document.querySelector("header .alert"),r=document.querySelector(".utility-header"),a=document.querySelector("header");window.addEventListener("scroll",(()=>{if(t=window.scrollY||e.scrollTop,t>n?i=2:t<n&&(i=1),i!==s)if(2===i&&t>40){const e=r.clientHeight+(o?o.clientHeight:0);a.style.top=`-${e}px`,s=i}else 1===i&&t<40&&(a.style.removeProperty("top"),s=i);n=t}))})();class n extends HTMLElement{connectedCallback(){this.summaryEl=this.querySelector("summary"),this.setHeight(),this.summaryEl.addEventListener("click",this.listen.bind(this)),this.summaryEl.insertAdjacentHTML("beforeend",'<div class="cagov-open-indicator" aria-hidden="true" />'),this.detailsEl=this.querySelector("details"),this.bodyEl=this.querySelector(".accordion-body"),window.addEventListener("resize",this.debounce(this.setHeight).bind(this))}setHeight(){window.requestAnimationFrame((()=>{this.closedHeightInt=this.summaryEl.scrollHeight+2,this.closedHeight=`${this.closedHeightInt}px`,this.detailsEl.hasAttribute("open")?this.detailsEl.style.height=`${this.bodyEl.scrollHeight+this.closedHeightInt}px`:this.detailsEl.style.height=this.closedHeight}))}listen(){this.detailsEl.hasAttribute("open")?this.detailsEl.style.height=this.closedHeight:window.requestAnimationFrame((()=>{this.detailsEl.style.height=`${this.bodyEl.scrollHeight+this.closedHeightInt}px`}))}debounce(e,t=300){let n;return(...i)=>{window.clearTimeout(n),n=window.setTimeout((()=>{e.apply(this,i)}),t)}}}window.customElements.define("cagov-accordion",n),((e,t)=>{const n={};e.ARIAaccordion=n,n.NS="ARIAaccordion",n.AUTHOR="Scott O'Hara",n.VERSION="3.2.1",n.LICENSE="https://github.com/scottaohara/accessible_accordions/blob/master/LICENSE";const i="accordion",s=`${i}__trigger`,o=`${i}__heading`,r=`${i}__panel`,a="[data-aria-accordion-heading]",l="[data-aria-accordion-panel]";let c=0;const d=e=>t.querySelectorAll(`#${e}> li`).length?`#${e} li > `:`#${e} > `;n.create=()=>{let e="none";const o=t.querySelectorAll("[data-aria-accordion]");c+=1;for(let u=0;u<o.length;u++){const h=o[u];h.hasAttribute("id")||(h.id=`acc_${c}-${u}`),h.classList.add(i);const f=d(h.id),p=t.querySelectorAll(`${f}${l}`),g=t.querySelectorAll(`${f}${a}`);h.hasAttribute("data-default")&&(e=h.getAttribute("data-default"));const m=h.hasAttribute("data-constant");if(h.hasAttribute("data-transition")){const e=h.querySelectorAll(l);for(let t=0;t<e.length;t++)e[t].classList.add(`${r}--transition`)}n.setupPanels(h.id,p,e,m),n.setupHeadingButton(g,m);const _=t.querySelectorAll(`${f}${a} .${s}`);for(let e=0;e<_.length;e++)_[e].addEventListener("click",n.actions),_[e].addEventListener("keydown",n.keytrolls)}},n.setupPanels=function(e,t,n,i){for(let s=0;s<t.length;s++){const o=t[s],a=`${e}_panel_${s+1}`,l=n,c=i;if(o.setAttribute("id",a),u(t[0],!0),o.classList.add(r),"none"!==l&&!Number.isNaN(parseInt(l))){const e=parseInt(l);e<=1?u(t[0],!1):e-1>=t.length?u(t[t.length-1],!1):u(t[e-1],!1)}c&&("none"===l||Number.isNaN(parseInt(l)))&&u(t[0],!1)}},n.setupHeadingButton=function(e,n){for(let i=0;i<e.length;i++){const r=e[i],a=r.nextElementSibling.id,l=t.getElementById(a).getAttribute("aria-hidden"),c=t.createElement("button"),d=r.textContent;r.innerHTML="",r.classList.add(o),c.setAttribute("type","button"),c.setAttribute("aria-controls",a),c.setAttribute("id",`${a}_trigger`),c.classList.add(s),"false"===l?(h(c,!0),p(c,!0),n&&c.setAttribute("aria-disabled","true")):(h(c,!1),p(c,!1)),r.appendChild(c),c.appendChild(t.createTextNode(d))}},n.actions=function(e){const i=this.id.replace(/_panel.*$/g,""),o=t.getElementById(this.getAttribute("aria-controls")),r=d(i),l=t.querySelectorAll(`${r}${a} .${s}`);e.preventDefault(),n.togglePanel(e,i,o,l)},n.togglePanel=function(e,n,i,s){const o=e.target;if("true"!==o.getAttribute("aria-disabled")&&(p(o,!0),"true"===o.getAttribute("aria-expanded")?(h(o,!1),u(i,!0)):(h(o,!0),u(i,!1),t.getElementById(n).hasAttribute("data-constant")&&f(o,!0)),t.getElementById(n).hasAttribute("data-constant")||!t.getElementById(n).hasAttribute("data-multi")))for(let e of s)if(o!==e){p(e,!1);const n=e.getAttribute("aria-controls");f(e,!1),h(e,!1),u(t.getElementById(n),!0)}},n.keytrolls=function(e){if(e.target.classList.contains(s)){const n=e.keyCode||e.which,i=36,o=35,r=this.id.replace(/_panel.*$/g,""),l=d(r),c=t.querySelectorAll(`${l}${a} .${s}`);switch(n){case o:e.preventDefault(),c[c.length-1].focus();break;case i:e.preventDefault(),c[0].focus()}}},n.init=function(){n.create()};const u=function(e,t){e.setAttribute("aria-hidden",t.toString())},h=function(e,t){e.setAttribute("aria-expanded",t.toString())},f=function(e,t){e.setAttribute("aria-disabled",t.toString())},p=function(e,t){e.setAttribute("data-current",t.toString())};n.init()})(window,document),(()=>{const e=(e,t,n)=>(t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e),t="data-nav-id",n=(()=>{const e={};return{set:(t,n)=>{e[t]=n},get:t=>e[t],remove:t=>e[t]}})(),i=(e,n)=>document.querySelector(`#${e}[${t}="${n}"]`),s=(e,t)=>{Object.keys(t).forEach((n=>{e.setAttribute(n,t[n])}))},o=()=>{const e=document.querySelector(".global-header .mobile-controls");return!!e&&"none"!==getComputedStyle(e).display},r=(...i)=>{const r=i.length<=0||void 0===i[0]?{}:i[0],a="first-level-btn";document.querySelectorAll(".main-navigation .sub-nav").forEach((e=>{e.parentElement.querySelector("a").className=a}));let l={ACCORDION_JS:"main-navigation",ACCORDION_JS_HEADER:a,ACCORDION_JS_PANEL:"nav-panel",ACCORDION_DATA_PREFIX_CLASS:"data-nav-prefix-classes",ACCORDION_DATA_OPENED:"data-nav-opened",ACCORDION_DATA_MULTISELECTABLE:"data-nav-multiselectable",ACCORDION_DATA_COOL_SELECTORS:!0,ACCORDION_PREFIX_IDS:"nav",ACCORDION_BUTTON_ID:"_tab",ACCORDION_PANEL_ID:"_panel",ACCORDION_STYLE:"nav",ACCORDION_TITLE_STYLE:"has-sub-btn",ACCORDION_HEADER_STYLE:"nav-header",ACCORDION_PANEL_STYLE:"sub-nav",ACCORDION_ROLE_TABLIST:"tablist",ACCORDION_ROLE_TAB:"tab",ACCORDION_ROLE_TABPANEL:"tabpanel",ATTR_ROLE:"role",ATTR_MULTISELECTABLE:"data-multiselectable",ATTR_EXPANDED:"aria-expanded",ATTR_LABELLEDBY:"aria-labelledby",ATTR_HIDDEN:"aria-hidden",ATTR_CONTROLS:"aria-controls",ATTR_SELECTED:"aria-selected"};l=Object.assign(l,r);const c=Math.random().toString(32).slice(2,12);n.set(c,l);return{attach:(...n)=>{(e=>{const t=e.length<=0?document.documentElement:e[0];return[].slice.call(t.querySelectorAll(`.${l.ACCORDION_JS}`))})(n).forEach((n=>{const i=`z${Math.random().toString(32).slice(2,12)}`,r=n.hasAttribute(l.ACCORDION_DATA_PREFIX_CLASS)?`${n.getAttribute(l.ACCORDION_DATA_PREFIX_CLASS)}-`:"",a=l.ACCORDION_DATA_COOL_SELECTORS,d="first-level-btn";n.setAttribute(l.ATTR_MULTISELECTABLE,o()?"true":"false"),n.setAttribute(t,c),n.classList.add(r+l.ACCORDION_STYLE);[].slice.call(n.querySelectorAll(`.${d}`)).forEach(((o,u)=>{let h,f;if(o.parentNode!==n&&!a)return;const p=u+1,g=o.nextElementSibling,m=o.innerHTML,_=document.createElement("BUTTON"),b=o.hasAttribute(l.ACCORDION_DATA_OPENED)?o.getAttribute(l.ACCORDION_DATA_OPENED):"";_.innerHTML=m,_.classList.add(d,r+l.ACCORDION_HEADER_STYLE),s(_,(h={},e(h,"id",l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_BUTTON_ID+p),e(h,l.ATTR_CONTROLS,l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_PANEL_ID+p),e(h,t,c),h)),o.innerHTML="",o.appendChild(_),o.classList.add(r+l.ACCORDION_TITLE_STYLE),o.classList.remove(d),g.classList.add(r+l.ACCORDION_PANEL_STYLE),s(g,(f={},e(f,l.ATTR_ROLE,l.ACCORDION_ROLE_TABPANEL),e(f,l.ATTR_LABELLEDBY,l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_BUTTON_ID+p),e(f,"id",l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_PANEL_ID+p),e(f,t,c),f)),"true"===b?(_.setAttribute(l.ATTR_EXPANDED,"true"),o.removeAttribute(l.ACCORDION_DATA_OPENED),g.setAttribute(l.ATTR_HIDDEN,"false"),g.querySelectorAll(".second-level-link").forEach((e=>{e.removeAttribute("tabindex")}))):(_.setAttribute(l.ATTR_EXPANDED,"false"),g.setAttribute(l.ATTR_HIDDEN,"true"),g.querySelectorAll(".second-level-link").forEach((e=>{e.setAttribute("tabindex","-1")})))}))}))}}};window.van11yAccessibleAccordionAria=(["click","keydown","focus"].forEach((e=>{document.body.addEventListener(e,(s=>{const r=((e,t)=>{let n=e;for(;n;){if(n.hasAttribute(t))return n.getAttribute(t);n=n.parentElement}return""})(s.target,t);""!==r&&(()=>{const a=n.get(r);s.target.classList.contains("first-level-btn")&&"click"===e&&(()=>{const e=s.target,n=i(((e,n,i)=>{let s=e;for(;s;){if(s.classList.contains(n)&&s.getAttribute(t)===i)return s.getAttribute("id");s=s.parentElement}return""})(e,a.ACCORDION_JS,r),r),l=!0===a.ACCORDION_DATA_COOL_SELECTORS;let c=[].slice.call(n.querySelectorAll(".first-level-btn"));const d=i(e.getAttribute(a.ATTR_CONTROLS),r),u=e.getAttribute(a.ATTR_EXPANDED);l||(c=c.filter((e=>e.parentNode.parentNode===n))),"false"===u?(e.setAttribute(a.ATTR_EXPANDED,"true"),d.removeAttribute(a.ATTR_HIDDEN),d.classList.add("open"),d.querySelectorAll(".second-level-link").forEach((e=>e.removeAttribute("tabindex")))):(e.setAttribute(a.ATTR_EXPANDED,"false"),d.setAttribute(a.ATTR_HIDDEN,"true"),d.classList.remove("open"),d.querySelectorAll(".second-level-link").forEach((e=>e.setAttribute("tabindex","-1")))),o()||c.forEach((t=>{const n=i(t.getAttribute(a.ATTR_CONTROLS),r);t!==e&&(t.setAttribute(a.ATTR_EXPANDED,"false"),n.classList.remove("open"),n.querySelectorAll(".second-level-link").forEach((e=>e.setAttribute("tabindex","-1"))))})),setTimeout((()=>{e.focus()}),0),s.stopPropagation(),s.preventDefault()})()})()}),!0)})),r);function a(){if(document.querySelectorAll(".first-level-btn").forEach((e=>e.setAttribute("aria-expanded","false"))),document.querySelectorAll(".sub-nav").forEach((e=>{e.setAttribute("aria-hidden","true"),e.classList.remove("open")})),document.querySelectorAll(".second-level-link").forEach((e=>e.setAttribute("tabindex","-1"))),window.innerWidth<=991)document.querySelectorAll(".rotate").forEach((e=>e.style.display="block"));else{document.querySelectorAll(".rotate").forEach((e=>e.style.display="none"));document.querySelector("#navigation").removeAttribute("aria-hidden")}}document.addEventListener("DOMContentLoaded",(function e(){window.van11yAccessibleAccordionAria().attach(),document.removeEventListener("DOMContentLoaded",e)}));var l;l=()=>{const e=document.querySelector(".main-navigation");document.querySelectorAll(".main-navigation .nav-item a.has-sub-btn").forEach((e=>{const t=document.createElement("div");t.innerHTML=e.innerHTML,t.classList.add("has-sub-btn"),e.replaceWith(t)}));const t=e.classList.contains("singleLevel"),n=e.classList.contains("auto-highlight"),i=document.querySelectorAll(".main-navigation .nav-item"),s=[].slice.call(i).filter((e=>e.querySelector(".sub-nav")));i.forEach((e=>{const t=e.querySelector(".first-level-btn, .first-level-link");if(n&&t.getAttribute("href")){const n=t.getAttribute("href").split("/"),i=location.href.split("/");n.length>4&&i[3]===n[3]&&e.classList.add("active")}})),document.addEventListener("mouseup",(e=>{const t=document.querySelector(".main-navigation");t===e.target||t.contains(e.target)||a()})),s.forEach((e=>{e.querySelectorAll(".second-level-nav > li").length<=2&&e.querySelector(".sub-nav").classList.add("with-few-items")})),t||document.querySelectorAll(".first-level-btn").forEach((e=>{e.classList.add("has-sub");const t=document.createElement("span");t.classList.add("ca-gov-icon-caret-down","carrot"),t.setAttribute("aria-hidden","true");const n=document.createElement("div");n.classList.add("ca-gov-icon-caret-right","rotate"),n.setAttribute("aria-hidden","true"),n.style.display=o()?"block":"none",e.appendChild(n),e.appendChild(t)}))},"loading"!=document.readyState?l():document.addEventListener("DOMContentLoaded",l),window.addEventListener("resize",(()=>{document.querySelector(".toggle-menu").setAttribute("aria-expanded","false");const e=document.querySelector("#navigation");e.classList.remove("show"),e.setAttribute("aria-hidden","true"),a()})),document.addEventListener("keyup",(e=>{"Escape"===e.key&&a()}));(()=>{const e=document.querySelectorAll(".second-level-link"),t=e.length,n=location.href.split("#")[0];for(let i=0;i<t;i++)e[i].href.split("#")[0]==n&&(e[i].className+=" bold")})()})(),(()=>{const e=document.querySelector(".search-textfield"),t=document.querySelector("#head-search #Search .search-textfield"),n=document.querySelector("#head-search #Search .gsc-search-button"),i=document.querySelector("#head-search #Search .close-search"),s=document.querySelector("#head-search"),o=s?.classList.contains("featured-search"),r=s?.classList.contains("active"),a=document.querySelector("#SearchInput"),l=document.querySelector(".search-container:not(.featured-search)"),c=document.querySelector(".global-header").offsetHeight,d=document.querySelector(".utility-header"),u=d?.offsetHeight||0,h=document.querySelectorAll(".alert-banner");let f=0;h.forEach((e=>{f+=e.offsetHeight}));const p=document.querySelector(".navigation-search").classList.contains("full-width-nav")?82:0,g=document.querySelector("body");function m(){const e=c-u-f-p;!b()&&l&&(l.style.top=`${Math.max(e,55)}px`)}function _(){s&&(o?(s.removeAttribute("aria-hidden"),document.querySelector("[name='q']").removeAttribute("tabindex"),document.querySelector(".gsc-search-button").removeAttribute("tabindex")):s.setAttribute("aria-hidden","true"))}window.addEventListener("load",(()=>{if(e){const t=()=>{s.classList.remove("focus"),document.querySelector(".search-container").classList.add("focus")};e.addEventListener("blur",t,!1),e.addEventListener("focus",t,!1);const n=function(){this.value&&g.classList.add("active-search")};e.addEventListener("change",n,!1),e.addEventListener("keyup",n,!1),e.addEventListener("paste",n,!1)}if(!o){const e=document.querySelector("button.first-level-link");e&&e.setAttribute("aria-expanded","false")}if(!b()){const e=c-u-f-p;!b()&&l&&(l.style.top=`${Math.max(e,82)}px`)}const d=document.querySelector(".search-results-container .close");d&&d.addEventListener("click",y,!1);const h=document.querySelector("#head-search .close");h&&h.addEventListener("click",y,!1);const v=document.querySelector("#nav-item-search");function y(){g.classList.remove("active-search"),e.value="",s.classList.remove("active"),s.setAttribute("aria-hidden","true");const t=document.querySelector(".search-results-container");t&&t.classList.remove("visible"),document.querySelectorAll(".ask-group").forEach((e=>e.classList.remove("fade-out"))),o||(document.querySelector("button.first-level-link").setAttribute("aria-expanded","false"),A()),window.dispatchEvent(new CustomEvent("scroll")),b()&&_()}function E(){t&&(t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden")),n&&(n.removeAttribute("tabindex"),n.removeAttribute("aria-hidden")),i&&(i.removeAttribute("tabindex"),i.removeAttribute("aria-hidden")),a&&a.removeAttribute("aria-hidden"),s&&s.removeAttribute("aria-hidden")}function A(){t&&(t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")),n&&(n.setAttribute("tabindex","-1"),n.setAttribute("aria-hidden","true")),i&&(i.setAttribute("tabindex","-1"),i.setAttribute("aria-hidden","true")),a&&a.setAttribute("aria-hidden","true"),s&&s.setAttribute("aria-hidden","true")}v&&v.addEventListener("click",(function(t){t.preventDefault(),e.focus(),!o&&document.querySelector(".search-container:not(.featured-search)")&&document.querySelector(".search-container:not(.featured-search)").classList.toggle("active"),r?(this.querySelector("button").setAttribute("aria-expanded","true"),E()):(this.querySelector("button").setAttribute("aria-expanded","false"),A()),o&&E(),s.classList.add("play-animation"),s.addEventListener("animationend",(()=>{this.classList.remove("play-animation")}))}),!1),i&&i.addEventListener("click",y),s&&(s.classList.contains("featured-search")?E():A()),document.querySelectorAll(".alert-banner .close").forEach((e=>{e.addEventListener("click",m)})),_()})),window.addEventListener("scroll",(()=>{if(!b()){setTimeout(m,400);const e=document.querySelector("nav ~ #head-search");document.body.scrollTop>=100||document.documentElement.scrollTop>=100?e&&e.classList.add("hidden-up"):e&&e.classList.remove("hidden-up")}})),window.addEventListener("resize",(()=>{m(),_()}));const b=()=>{const e=document.querySelector(".global-header .mobile-controls");return!!e&&"none"!==getComputedStyle(e).display}})();const i={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function s(e){const t=e.previousElementSibling;if(t){"pre"==t.tagName.toLowerCase()?navigator.clipboard.writeText(t.querySelector("code").innerText):navigator.clipboard.writeText(t.value);const n=document.createRange();n.selectNode(t),window.getSelection().removeAllRanges(),window.getSelection().addRange(n),e.innerHTML='<span class="ca-gov-icon-check-mark"></span> Code copied'}}window.addEventListener("load",(()=>{const e=document.querySelectorAll("pre code, textarea.sourcecode");for(let t=0,n=e.length;t<n;t++){const n=e[t];if("code"==n.tagName.toLowerCase()){let e=n.innerHTML;e=e.replace(/[&<>"'/]/g,(e=>i[e])),n.innerHTML=e}const o=document.createElement("button");o.onclick=function(){s(this)},o.classList.add("btn","btn-outline-primary"),o.innerHTML="<span class='ca-gov-icon-copy'></span> Copy code","code"==n.tagName.toLowerCase()?n.parentElement.after(o):n.after(o)}})),document.querySelectorAll(".tabs").forEach((e=>{const t=e.querySelector("ul"),n=t.querySelectorAll("a"),i=e.querySelectorAll('[id^="section"]'),s=(e,t)=>{t.focus(),t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true"),e.removeAttribute("aria-selected"),e.setAttribute("tabindex","-1");const s=Array.prototype.indexOf.call(n,t),o=Array.prototype.indexOf.call(n,e);i[o].hidden=!0,i[s].hidden=!1};t.setAttribute("role","tablist"),n.forEach(((e,o)=>{e.setAttribute("role","tab"),e.setAttribute("tabindex","-1"),e.parentNode.setAttribute("role","presentation"),e.addEventListener("click",(e=>{e.preventDefault();const n=t.querySelector("[aria-selected]");e.currentTarget!==n&&s(n,e.currentTarget)})),e.addEventListener("keydown",(e=>{const t=Array.prototype.indexOf.call(n,e.currentTarget),r=["ArrowLeft","Left"].includes(e.key)?t-1:["ArrowRight","Right"].includes(e.key)?t+1:["ArrowDown","Down"].includes(e.key)?"down":null;null!==r&&(e.preventDefault(),"down"===r?i[o].focus():n[r]&&s(e.currentTarget,n[r]))}))})),i.forEach(((e,t)=>{e.setAttribute("role","tabpanel"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-label",n[t].innerText),e.hidden=!0})),n[0].removeAttribute("tabindex"),n[0].setAttribute("aria-selected","true"),i[0].hidden=!1})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".scroll-counter");e.forEach((e=>{e.counterAlreadyFired=!1,e.counterSpeed=Number(e.getAttribute("data-counter-time"))/45,e.counterTarget=+e.innerText,e.counterCount=0,e.counterStep=e.counterTarget/e.counterSpeed,e.updateCounter=()=>{e.counterCount+=e.counterStep,e.innerText=Math.ceil(e.counterCount).toString(),e.counterCount<e.counterTarget?window.setTimeout(e.updateCounter,e.counterSpeed):e.innerText=e.counterTarget.toString()}}));const t=()=>{e.forEach((e=>{e.counterAlreadyFired||(e=>{const t=window.scrollY||window.pageYOffset,n=e.getBoundingClientRect().top+t,i=t,s=t+window.innerHeight,o=n,r=n+e.clientHeight;return r>=i&&r<=s||o<=s&&o>=i})(e)&&(e.updateCounter(),e.counterAlreadyFired=!0)}))};window.addEventListener("load",t),window.addEventListener("scroll",t)}));document.querySelector(".return-top").addEventListener("click",(function(){document.body.scrollTop=0,document.documentElement.scrollTop=0}));let o=0,r=0;window.addEventListener("scroll",(()=>{const e=document.querySelector(".return-top"),t=window.pageYOffset||document.documentElement.scrollTop;t>r?e.classList.remove("is-visible"):document.body.scrollTop>=400||document.documentElement.scrollTop>=400?(o&&window.clearTimeout(o),e.classList.add("is-visible"),o=window.setTimeout((()=>{e.classList.remove("is-visible")}),2e3)):e.classList.remove("is-visible"),r=t<=0?0:t}),!1),window.onscroll=()=>{const e=document.querySelector(".return-top");window.innerHeight+window.scrollY>=document.body.offsetHeight&&e.classList.add("is-visible")};const a=document.querySelector("a[href='#skip-to-content']");function l(e,t){return`<li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__button"\n aria-label="${e} ${t}"\n data-page-num="${t}"\n >\n ${t}\n </a>\n </li>`}a&&a.addEventListener("click",(function(e){e.preventDefault(),document.body.scrollTop=0,document.documentElement.scrollTop=0})),(()=>{const e=document.querySelector("header"),t=document.querySelector(".side-navigation");let n=t?.querySelectorAll(".side-navigation a");const i=t?.closest("div");t?.setAttribute("id","side-navigation");const s=localStorage.getItem("sidebar-scroll"),o=document.querySelector(".global-header .mobile-controls");let r=getComputedStyle(o).display;const a=e?e.clientHeight:0,l=()=>"none"!==getComputedStyle(document.querySelector(".global-header .mobile-controls")).display;let c=0;let d,u,h;function f(){u?.append(t),t.setAttribute("aria-hidden","true"),n?.forEach((e=>{e.setAttribute("tabindex","-1")}))}function p(){d.classList.toggle("visible"),d.classList.contains("visible")?(t.removeAttribute("aria-hidden"),h.setAttribute("aria-expanded","true"),n?.forEach((e=>{e.removeAttribute("tabindex")}))):(h.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true"),n?.forEach((e=>{e.setAttribute("tabindex","-1")})))}function g(){if(l())t.classList.remove("overflow-auto"),t.removeAttribute("style");else{const e=document.documentElement.clientHeight-a-100;e<=document.querySelector(".side-navigation").clientHeight?t.classList.add("overflow-auto"):(t.classList.remove("overflow-auto"),t.removeAttribute("style")),[...t.classList].includes("overflow-auto")&&t.setAttribute("style",`max-height:${e}px`)}null!==s&&(t.scrollTop=parseInt(s,10)),window.addEventListener("beforeunload",(()=>{localStorage.setItem("sidebar-scroll",t.scrollTop.toString())}))}t&&(!function(){const e=document.querySelectorAll("a.nav-heading"),t=e.length,n=location.href.split("#")[0];for(let i=0;i<t;i++)e[i].href.split("#")[0]==n&&(e[i].className+=" active")}(),d=document.createElement("aside"),d.setAttribute("class","mobile-sidenav"),u=document.createElement("div"),u.setAttribute("class","container"),d.append(u),e.after(d),function(){const t=document.querySelector(".side-navigation a, .sidenav");if(t){let n=t.innerText;const i=t.querySelector("span")?.innerText;n=n.replace(i,"").trim();const s=document.createElement("aside");s.setAttribute("class","sidenav-mobile-btn");const o=document.createElement("div");o.setAttribute("class","container"),s.append(o),h=document.createElement("button"),h.setAttribute("class","sidenav-toggle"),h.setAttribute("aria-expanded","false"),h.setAttribute("aria-controls","side-navigation"),h.innerText=n;const r=document.createElement("span");r.setAttribute("aria-hidden","true"),r.setAttribute("class","ca-gov-icon-caret-down"),h.append(r),o.append(h),e.after(s),h.addEventListener("click",p)}}(),"block"==r&&f(),window.addEventListener("resize",(()=>{r=getComputedStyle(o).display,window.clearTimeout(c),c=window.setTimeout(g,250),"block"==r?f():(i?.append(t),t.removeAttribute("aria-hidden"),n?.forEach((e=>{e.removeAttribute("tabindex")})))})),g())})(),function(){const e=":not(code *):not(.cagov-logo)";document.querySelectorAll(`main a${e}, .agency-footer a${e}, .site-footer a${e}, footer a${e}`).forEach((e=>{const t=0===e.href.indexOf("#"),n=e.href.indexOf("localhost")>-1,i=e.href.indexOf("@")>-1,s=e;!1!==function(e){return window.location.host.indexOf(e.host)>-1}(s)||t||i||n||(s.innerHTML+='<span class="external-link-icon" aria-hidden="true"></span>')}))}(),(()=>{const e=document.querySelectorAll("h2"),t=document.querySelector("h2"),n=document.querySelector(".page-navigation");if(n&&0===n.childNodes.length&&t){const t=document.createElement("ul");e.forEach((n=>{const i=n.innerHTML,s=n.innerHTML.replace(/\s+/g,"-");n.setAttribute("id",s);const o=`<a href="#${s}">${i}</a>`,r=document.createElement("li");r.innerHTML=o,t.appendChild(r);const a=e.length;a>8?t.classList.add("columns-3"):a>5&&t.classList.add("columns-2")}));const i='<div id="on-this-page-navigation-label" class="label">On this page</div>';n.innerHTML=i,n.appendChild(t),n.setAttribute("aria-labelledby","on-this-page-navigation-label")}})();class c extends HTMLElement{constructor(){if(super(),!document.querySelector("#cagov-pagination-styles")){const e=document.createElement("style");e.id="cagov-pagination-styles",e.textContent="\ncagov-pagination {\n white-space: nowrap;\n font-size: .9rem;\n}\ncagov-pagination a {\n text-decoration: none !important;\n}\ncagov-pagination .cagov-pagination__list {\n list-style: none;\n margin: 0;\n padding: 0 !important;\n display: flex;\n overflow-x: scroll;\n}\ncagov-pagination .cagov-pagination__item {\n margin: var(--s-sm, 0.25rem);\n}\ncagov-pagination .cagov-pagination__item a {\n padding: 6px 14px;\n display: inline-block;\n color: #4a4958;\n}\ncagov-pagination .cagov-pagination__item a:hover, cagov-pagination .cagov-pagination__item a:focus {\n box-shadow: inset 0 0 0 3px #d4d4d7;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination-current {\n font-weight:700;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination-current a {\n box-shadow: inset 0 0 0 1px #d4d4d7;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination__overflow {\n border: none;\n padding: 0.875rem 0;\n}\ncagov-pagination .cagov-pagination__item:has(.cagov-pagination__link-inactive) {\n display:none;\n}\n.ca-gov-icon-arrow-prev, .ca-gov-icon-arrow-next {\n font-size: 0.86em;\n}\n",document.querySelector("head").appendChild(e)}}connectedCallback(){this.currentPage=parseInt(this.dataset.currentPage?this.dataset.currentPage:"1",10),this.render()}render(){const e=this.dataset.previous?this.dataset.previous:'<span class="ca-gov-icon-arrow-prev" aria-hidden="true"></span> Previous',t=this.dataset.next?this.dataset.next:'Next <span class="ca-gov-icon-arrow-next" aria-hidden="true"></span>',n=this.dataset.page?this.dataset.page:"Page";if(this.totalPages=this.dataset.totalPages?Number(this.dataset.totalPages):1,this.totalPages<0||this.totalPages>1){const i=function(e,t,n,i,s){const o=-1==s;return`<nav aria-label="Pagination" class="cagov-pagination">\n <ul class="cagov-pagination__list">\n <li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__link cagov-pagination__previous-page"\n aria-label="previous page"\n >\n <span class="cagov-pagination__link-text ${i>1?"":"cagov-pagination__link-inactive"}"> ${t} </span>\n </a>\n </li>\n ${i>2?l(n,1):""}\n\n ${4==i?l(n,2):""}\n ${i>4?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n\n ${i>1?l(n,i-1):""}\n\n <li class="cagov-pagination__item cagov-pagination-current">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__button"\n aria-label="Page ${i}"\n aria-current="page"\n data-page-num="${i}"\n >\n ${i}\n </a>\n </li>\n\n ${o||i<s?l(n,i+1):""}\n\n ${!o&&i<s-2?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n ${o?l(n,i+2):""}\n\n ${i<s-1?l(n,s):""}\n ${o?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n\n <li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__link cagov-pagination__next-page"\n aria-label="next page"\n >\n <span class="cagov-pagination__link-text ${!o&&i>s-1?"cagov-pagination__link-inactive":""}"> ${e} </span>\n </a>\n </li>\n </ul>\n </nav>`}(t,e,n,this.currentPage,this.totalPages);this.innerHTML=i,this.applyListeners()}else this.innerHTML=""}static get observedAttributes(){return["data-current-page","data-total-pages"]}attributeChangedCallback(e,t,n){"data-current-page"===e&&(this.currentPage=parseInt(n,10),this.render()),"data-total-pages"===e&&(this.totalPages=parseInt(n,10),this.render())}applyListeners(){this.querySelectorAll(".cagov-pagination__button").forEach((e=>{e.addEventListener("click",(e=>{this.currentPage=parseInt(e.target.dataset.pageNum,10),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString()}))})),this.querySelector(".cagov-pagination__previous-page").addEventListener("click",(e=>{e.target.classList.contains("cagov-pagination__link-inactive")||(this.currentPage-=1,this.currentPage<1&&(this.currentPage=1),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString())})),this.querySelector(".cagov-pagination__next-page").addEventListener("click",(e=>{e.target.classList.contains("cagov-pagination__link-inactive")||(this.currentPage+=1,-1!=this.totalPages&&this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString())}))}}window.customElements.define("cagov-pagination",c),(()=>{const e=document.querySelector("body"),t=document.querySelector(".main-navigation"),n=document.querySelector(".toggle-menu"),i=document.querySelector(".navigation-search"),s=document.querySelector(".global-header .mobile-controls"),o=document.querySelector(".main-content"),r=document.querySelector("footer"),a=document.querySelector(".site-footer"),l=document.querySelector(".utility-header"),c=document.querySelector("header"),d=document.querySelector(".utility-header .container .flex-row"),u=document.querySelector(".mobile-controls .main-nav-icons"),h=document.querySelector(".branding"),f=document.querySelector(".settings-links");let p,g,m=getComputedStyle(s).display;setTimeout((()=>{p=document.querySelectorAll('.navigation-search a.first-level-link, .navigation-search button.first-level-btn, .navigation-search input, .navigation-search button, .navigation-search [tabindex]:not([tabindex="-1"])'),g=document.querySelectorAll('.settings-links a, .settings-links button, .settings-links input, .settings-links select, .settings-links [tabindex]:not([tabindex="-1"])')}),100);const _=document.querySelectorAll('.utility-header .social-media-links a, .utility-header .social-media-links input, .utility-header .social-media-links button, .utility-header .social-media-links [tabindex]:not([tabindex="-1"]), .branding a, .branding button, .branding input, .branding select, .main-content a[href], .main-content button, .main-content input, .main-content textarea, .main-content select, .main-content details, .main-content [tabindex]:not([tabindex="-1"]), .site-footer a[href], .site-footer button, .site-footer input, .site-footer textarea, .site-footer select, .site-footer details, .site-footer [tabindex]:not([tabindex="-1"]), footer a[href], footer button, footer input, footer textarea, footer select, footer details, footer [tabindex]:not([tabindex="-1"])'),b=document.createElement("div");function v(){setTimeout((()=>{n.setAttribute("aria-expanded","false"),u?.append(n)}),300)}function y(){v(),t?.before(f),e?.classList.remove("overflow-hidden"),i?.classList.add("not-visible"),i?.classList.remove("visible"),i?.setAttribute("aria-hidden","true"),p?.forEach((e=>{e.setAttribute("tabindex","-1")})),g?.forEach((e=>{e.setAttribute("tabindex","-1")})),_?.forEach((e=>{e.removeAttribute("tabindex")})),o?.removeAttribute("aria-hidden"),r?.removeAttribute("aria-hidden"),a?.removeAttribute("aria-hidden"),l?.removeAttribute("aria-hidden"),h?.removeAttribute("aria-hidden"),c?.classList.remove("nav-overlay")}function E(){v(),d?.append(f),e?.classList.remove("overflow-hidden"),i?.classList.remove("visible"),i?.classList.remove("not-visible"),i?.setAttribute("aria-hidden","false"),p?.forEach((e=>{e.removeAttribute("tabindex")})),g?.forEach((e=>{e.removeAttribute("tabindex")})),_?.forEach((e=>{e.removeAttribute("tabindex")})),o?.removeAttribute("aria-hidden"),r?.removeAttribute("aria-hidden"),a?.removeAttribute("aria-hidden"),l?.removeAttribute("aria-hidden"),h?.removeAttribute("aria-hidden"),c?.classList.remove("nav-overlay")}b.setAttribute("class","nav-drawer"),window.onload=function(){i?.prepend(b),"block"==m?y():E()},n.addEventListener("click",(function(){b.append(n),i?.classList.toggle("visible"),i?.classList.toggle("not-visible"),i?.classList.contains("visible")?(n.setAttribute("aria-expanded","true"),e?.classList.add("overflow-hidden"),i?.setAttribute("aria-hidden","false"),p?.forEach((e=>{e.removeAttribute("tabindex")})),g?.forEach((e=>{e.removeAttribute("tabindex")})),_?.forEach((e=>{e.setAttribute("tabindex","-1")})),o?.setAttribute("aria-hidden","true"),r?.setAttribute("aria-hidden","true"),a?.setAttribute("aria-hidden","true"),l?.setAttribute("aria-hidden","true"),h?.setAttribute("aria-hidden","true"),c?.classList.add("nav-overlay")):(n.setAttribute("aria-expanded","false"),e?.classList.remove("overflow-hidden"),i?.setAttribute("aria-hidden","true"),p?.forEach((e=>{e.setAttribute("tabindex","-1")})),g?.forEach((e=>{e.setAttribute("tabindex","-1")})),_?.forEach((e=>{e.removeAttribute("tabindex")})),o?.removeAttribute("aria-hidden"),r?.removeAttribute("aria-hidden"),a?.removeAttribute("aria-hidden"),l?.removeAttribute("aria-hidden"),h?.removeAttribute("aria-hidden"),c?.classList.remove("nav-overlay"),v())})),window.addEventListener("resize",(()=>{m=getComputedStyle(s).display,"block"==m?y():E()}))})();
|
|
6
|
+
var e,t;e=void 0,t=function(){const e="transitionend",t=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t},n=e=>{const n=t(e);return n&&document.querySelector(n)?n:null},i=e=>{const n=t(e);return n?document.querySelector(n):null},s=t=>{t.dispatchEvent(new Event(e))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),r=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,a=(e,t,n)=>{Object.keys(n).forEach((i=>{const s=n[i],r=t[i],a=r&&o(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${s}".`)}))},l=e=>!(!o(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),c=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),d=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?d(e.parentNode):null},u=()=>{},h=e=>{e.offsetHeight},f=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},p=[],g=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=f();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{p.forEach((e=>e()))})),p.push(t)):t()},_=e=>{"function"==typeof e&&e()},b=(t,n,i=!0)=>{if(!i)return void _(t);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),s=Number.parseFloat(n);return i||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(n)+5;let r=!1;const a=({target:i})=>{i===n&&(r=!0,n.removeEventListener(e,a),_(t))};n.addEventListener(e,a),setTimeout((()=>{r||s(n)}),o)},v=(e,t,n,i)=>{let s=e.indexOf(t);if(-1===s)return e[!n&&i?e.length-1:0];const o=e.length;return s+=n?1:-1,i&&(s=(s+o)%o),e[Math.max(0,Math.min(s,o-1))]},y=/[^.]*(?=\..*)\.|.*/,E=/\..*/,A=/::\d+$/,w={};let L=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},S=/^(mouseenter|mouseleave)/i,C=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 O(e,t){return t&&`${t}::${L++}`||e.uidEvent||L++}function x(e){const t=O(e);return e.uidEvent=t,w[t]=w[t]||{},w[t]}function D(e,t,n=null){const i=Object.keys(e);for(let s=0,o=i.length;s<o;s++){const o=e[i[s]];if(o.originalHandler===t&&o.delegationSelector===n)return o}return null}function k(e,t,n){const i="string"==typeof t,s=i?n:t;let o=P(e);return C.has(o)||(o=e),[i,s,o]}function N(e,t,n,i,s){if("string"!=typeof t||!e)return;if(n||(n=i,i=null),S.test(t)){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};i?i=e(i):n=e(n)}const[o,r,a]=k(t,n,i),l=x(e),c=l[a]||(l[a]={}),d=D(c,r,o?n:null);if(d)return void(d.oneOff=d.oneOff&&s);const u=O(r,t.replace(y,"")),h=o?function(e,t,n){return function i(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,i.oneOff&&q.off(e,s.type,t,n),n.apply(r,[s]);return null}}(e,n,i):function(e,t){return function n(i){return i.delegateTarget=e,n.oneOff&&q.off(e,i.type,t),t.apply(e,[i])}}(e,n);h.delegationSelector=o?n:null,h.originalHandler=r,h.oneOff=s,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,o)}function I(e,t,n,i,s){const o=D(t[n],i,s);o&&(e.removeEventListener(n,o,Boolean(s)),delete t[n][o.uidEvent])}function P(e){return e=e.replace(E,""),T[e]||e}const q={on(e,t,n,i){N(e,t,n,i,!1)},one(e,t,n,i){N(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[s,o,r]=k(t,n,i),a=r!==t,l=x(e),c=t.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void I(e,l,r,o,s?n:null)}c&&Object.keys(l).forEach((n=>{!function(e,t,n,i){const s=t[n]||{};Object.keys(s).forEach((o=>{if(o.includes(i)){const i=s[o];I(e,t,n,i.originalHandler,i.delegationSelector)}}))}(e,l,n,t.slice(1))}));const d=l[r]||{};Object.keys(d).forEach((n=>{const i=n.replace(A,"");if(!a||t.includes(i)){const t=d[n];I(e,l,r,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=f(),s=P(t),o=t!==s,r=C.has(s);let a,l=!0,c=!0,d=!1,u=null;return o&&i&&(a=i.Event(t,n),i(e).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented()),r?(u=document.createEvent("HTMLEvents"),u.initEvent(s,l,!0)):u=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(u,e,{get:()=>n[e]})})),d&&u.preventDefault(),c&&e.dispatchEvent(u),u.defaultPrevented&&void 0!==a&&a.preventDefault(),u}},R=new Map,H={set(e,t,n){R.has(e)||R.set(e,new Map);const i=R.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>R.has(e)&&R.get(e).get(t)||null,remove(e,t){if(!R.has(e))return;const n=R.get(e);n.delete(t),0===n.size&&R.delete(e)}};class M{constructor(e){(e=r(e))&&(this._element=e,H.set(this._element,this.constructor.DATA_KEY,this))}dispose(){H.remove(this._element,this.constructor.DATA_KEY),q.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,n=!0){b(e,t,n)}static getInstance(e){return H.get(r(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const $=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;q.on(document,n,`[data-bs-dismiss="${s}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),c(this))return;const o=i(this)||this.closest(`.${s}`);e.getOrCreateInstance(o)[t]()}))};class j extends M{static get NAME(){return"alert"}close(){if(q.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),q.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=j.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}$(j,"close"),m(j);const B='[data-bs-toggle="button"]';class W extends M{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=W.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}function z(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function F(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}q.on(document,"click.bs.button.data-api",B,(e=>{e.preventDefault();const t=e.target.closest(B);W.getOrCreateInstance(t).toggle()})),m(W);const U={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${F(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${F(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=z(e.dataset[n])})),t},getDataAttribute:(e,t)=>z(e.getAttribute(`data-bs-${F(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},Y={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let i=e.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(t)&&n.push(i),i=i.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(", ");return this.find(t,e).filter((e=>!c(e)&&l(e)))}},X="carousel",V={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},K={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Q="next",J="prev",G="left",Z="right",ee={ArrowLeft:Z,ArrowRight:G},te="slid.bs.carousel",ne="active",ie=".active.carousel-item";class se extends M{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=Y.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return V}static get NAME(){return X}next(){this._slide(Q)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(J)}pause(e){e||(this._isPaused=!0),Y.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(s(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=Y.findOne(ie,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void q.one(this._element,te,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const n=e>t?Q:J;this._slide(n,this._items[e])}_getConfig(e){return e={...V,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(X,e,K),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?Z:G)}_addEventListeners(){this._config.keyboard&&q.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(q.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),q.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),t=t=>{e(t)?this.touchStartX=t.clientX:this._pointerEvent||(this.touchStartX=t.touches[0].clientX)},n=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},i=t=>{e(t)&&(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};Y.find(".carousel-item img",this._element).forEach((e=>{q.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(q.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),q.on(this._element,"pointerup.bs.carousel",(e=>i(e))),this._element.classList.add("pointer-event")):(q.on(this._element,"touchstart.bs.carousel",(e=>t(e))),q.on(this._element,"touchmove.bs.carousel",(e=>n(e))),q.on(this._element,"touchend.bs.carousel",(e=>i(e))))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ee[e.key];t&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?Y.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const n=e===Q;return v(this._items,t,n,this._config.wrap)}_triggerSlideEvent(e,t){const n=this._getItemIndex(e),i=this._getItemIndex(Y.findOne(ie,this._element));return q.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:i,to:n})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=Y.findOne(".active",this._indicatorsElement);t.classList.remove(ne),t.removeAttribute("aria-current");const n=Y.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t<n.length;t++)if(Number.parseInt(n[t].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){n[t].classList.add(ne),n[t].setAttribute("aria-current","true");break}}}_updateInterval(){const e=this._activeElement||Y.findOne(ie,this._element);if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(e,t){const n=this._directionToOrder(e),i=Y.findOne(ie,this._element),s=this._getItemIndex(i),o=t||this._getItemByOrder(n,i),r=this._getItemIndex(o),a=Boolean(this._interval),l=n===Q,c=l?"carousel-item-start":"carousel-item-end",d=l?"carousel-item-next":"carousel-item-prev",u=this._orderToDirection(n);if(o&&o.classList.contains(ne))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(o,u).defaultPrevented)return;if(!i||!o)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const f=()=>{q.trigger(this._element,te,{relatedTarget:o,direction:u,from:s,to:r})};if(this._element.classList.contains("slide")){o.classList.add(d),h(o),i.classList.add(c),o.classList.add(c);const e=()=>{o.classList.remove(c,d),o.classList.add(ne),i.classList.remove(ne,d,c),this._isSliding=!1,setTimeout(f,0)};this._queueCallback(e,i,!0)}else i.classList.remove(ne),o.classList.add(ne),this._isSliding=!1,f();a&&this.cycle()}_directionToOrder(e){return[Z,G].includes(e)?g()?e===G?J:Q:e===G?Q:J:e}_orderToDirection(e){return[Q,J].includes(e)?g()?e===J?G:Z:e===J?Z:G:e}static carouselInterface(e,t){const n=se.getOrCreateInstance(e,t);let{_config:i}=n;"object"==typeof t&&(i={...i,...t});const s="string"==typeof t?t:i.slide;if("number"==typeof t)n.to(t);else if("string"==typeof s){if(void 0===n[s])throw new TypeError(`No method named "${s}"`);n[s]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}static jQueryInterface(e){return this.each((function(){se.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=i(this);if(!t||!t.classList.contains("carousel"))return;const n={...U.getDataAttributes(t),...U.getDataAttributes(this)},s=this.getAttribute("data-bs-slide-to");s&&(n.interval=!1),se.carouselInterface(t,n),s&&se.getInstance(t).to(s),e.preventDefault()}}q.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",se.dataApiClickHandler),q.on(window,"load.bs.carousel.data-api",(()=>{const e=Y.find('[data-bs-ride="carousel"]');for(let t=0,n=e.length;t<n;t++)se.carouselInterface(e[t],se.getInstance(e[t]))})),m(se);const oe="collapse",re={toggle:!0,parent:null},ae={toggle:"boolean",parent:"(null|element)"},le="show",ce="collapse",de="collapsing",ue="collapsed",he=":scope .collapse .collapse",fe='[data-bs-toggle="collapse"]';class pe extends M{constructor(e,t){super(e),this._isTransitioning=!1,this._config=this._getConfig(t),this._triggerArray=[];const i=Y.find(fe);for(let e=0,t=i.length;e<t;e++){const t=i[e],s=n(t),o=Y.find(s).filter((e=>e===this._element));null!==s&&o.length&&(this._selector=s,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return re}static get NAME(){return oe}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=Y.find(he,this._config.parent);t=Y.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((t=>!e.includes(t)))}const n=Y.findOne(this._selector);if(t.length){const i=t.find((e=>n!==e));if(e=i?pe.getInstance(i):null,e&&e._isTransitioning)return}if(q.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{n!==t&&pe.getOrCreateInstance(t,{toggle:!1}).hide(),e||H.set(t,"bs.collapse",null)}));const i=this._getDimension();this._element.classList.remove(ce),this._element.classList.add(de),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(de),this._element.classList.add(ce,le),this._element.style[i]="",q.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[i]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(q.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,h(this._element),this._element.classList.add(de),this._element.classList.remove(ce,le);const t=this._triggerArray.length;for(let e=0;e<t;e++){const t=this._triggerArray[e],n=i(t);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(de),this._element.classList.add(ce),q.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(le)}_getConfig(e){return(e={...re,...U.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=r(e.parent),a(oe,e,ae),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=Y.find(he,this._config.parent);Y.find(fe,this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=i(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove(ue):e.classList.add(ue),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const n=pe.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}q.on(document,"click.bs.collapse.data-api",fe,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=n(this);Y.find(t).forEach((e=>{pe.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),m(pe);var ge="top",me="bottom",_e="right",be="left",ve="auto",ye=[ge,me,_e,be],Ee="start",Ae="end",we="clippingParents",Le="viewport",Te="popper",Se="reference",Ce=ye.reduce((function(e,t){return e.concat([t+"-"+Ee,t+"-"+Ae])}),[]),Oe=[].concat(ye,[ve]).reduce((function(e,t){return e.concat([t,t+"-"+Ee,t+"-"+Ae])}),[]),xe="beforeRead",De="read",ke="afterRead",Ne="beforeMain",Ie="main",Pe="afterMain",qe="beforeWrite",Re="write",He="afterWrite",Me=[xe,De,ke,Ne,Ie,Pe,qe,Re,He];function $e(e){return e?(e.nodeName||"").toLowerCase():null}function je(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Be(e){return e instanceof je(e).Element||e instanceof Element}function We(e){return e instanceof je(e).HTMLElement||e instanceof HTMLElement}function ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof je(e).ShadowRoot||e instanceof ShadowRoot)}const Fe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];We(s)&&$e(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});We(i)&&$e(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ue(e){return e.split("-")[0]}function Ye(e,t){var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}function Xe(e){var t=Ye(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ve(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ze(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ke(e){return je(e).getComputedStyle(e)}function Qe(e){return["table","td","th"].indexOf($e(e))>=0}function Je(e){return((Be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ge(e){return"html"===$e(e)?e:e.assignedSlot||e.parentNode||(ze(e)?e.host:null)||Je(e)}function Ze(e){return We(e)&&"fixed"!==Ke(e).position?e.offsetParent:null}function et(e){for(var t=je(e),n=Ze(e);n&&Qe(n)&&"static"===Ke(n).position;)n=Ze(n);return n&&("html"===$e(n)||"body"===$e(n)&&"static"===Ke(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&We(e)&&"fixed"===Ke(e).position)return null;for(var n=Ge(e);We(n)&&["html","body"].indexOf($e(n))<0;){var i=Ke(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function tt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var nt=Math.max,it=Math.min,st=Math.round;function ot(e,t,n){return nt(e,it(t,n))}function rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function at(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const lt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Ue(n.placement),l=tt(a),c=[be,_e].indexOf(a)>=0?"height":"width";if(o&&r){var d=function(e,t){return rt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:at(e,ye))}(s.padding,n),u=Xe(o),h="y"===l?ge:be,f="y"===l?me:_e,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],g=r[l]-n.rects.reference[l],m=et(o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,v=d[h],y=_-u[c]-d[f],E=_/2-u[c]/2+b,A=ot(v,E,y),w=l;n.modifiersData[i]=((t={})[w]=A,t.centerOffset=A-E,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Ve(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ct(e){return e.split("-")[1]}var dt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ut(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=!0===d?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:st(st(t*i)/i)||0,y:st(st(n*i)/i)||0}}(r):"function"==typeof d?d(r):r,h=u.x,f=void 0===h?0:h,p=u.y,g=void 0===p?0:p,m=r.hasOwnProperty("x"),_=r.hasOwnProperty("y"),b=be,v=ge,y=window;if(c){var E=et(n),A="clientHeight",w="clientWidth";E===je(n)&&"static"!==Ke(E=Je(n)).position&&"absolute"===a&&(A="scrollHeight",w="scrollWidth"),s!==ge&&(s!==be&&s!==_e||o!==Ae)||(v=me,g-=E[A]-i.height,g*=l?1:-1),s!==be&&(s!==ge&&s!==me||o!==Ae)||(b=_e,f-=E[w]-i.width,f*=l?1:-1)}var L,T=Object.assign({position:a},c&&dt);return l?Object.assign({},T,((L={})[v]=_?"0":"",L[b]=m?"0":"",L.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",L)):Object.assign({},T,((t={})[v]=_?g+"px":"",t[b]=m?f+"px":"",t.transform="",t))}const ht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:Ue(t.placement),variation:ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ut(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ut(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ft={passive:!0};const pt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=je(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,ft)})),a&&l.addEventListener("resize",n.update,ft),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ft)})),a&&l.removeEventListener("resize",n.update,ft)}},data:{}};var gt={left:"right",right:"left",bottom:"top",top:"bottom"};function mt(e){return e.replace(/left|right|bottom|top/g,(function(e){return gt[e]}))}var _t={start:"end",end:"start"};function bt(e){return e.replace(/start|end/g,(function(e){return _t[e]}))}function vt(e){var t=je(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yt(e){return Ye(Je(e)).left+vt(e).scrollLeft}function Et(e){var t=Ke(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function At(e){return["html","body","#document"].indexOf($e(e))>=0?e.ownerDocument.body:We(e)&&Et(e)?e:At(Ge(e))}function wt(e,t){var n;void 0===t&&(t=[]);var i=At(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=je(i),r=s?[o].concat(o.visualViewport||[],Et(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(wt(Ge(r)))}function Lt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tt(e,t){return t===Le?Lt(function(e){var t=je(e),n=Je(e),i=t.visualViewport,s=n.clientWidth,o=n.clientHeight,r=0,a=0;return i&&(s=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=i.offsetLeft,a=i.offsetTop)),{width:s,height:o,x:r+yt(e),y:a}}(e)):We(t)?function(e){var t=Ye(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Lt(function(e){var t,n=Je(e),i=vt(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=nt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=nt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+yt(e),l=-i.scrollTop;return"rtl"===Ke(s||n).direction&&(a+=nt(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(Je(e)))}function St(e){var t,n=e.reference,i=e.element,s=e.placement,o=s?Ue(s):null,r=s?ct(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case ge:t={x:a,y:n.y-i.height};break;case me:t={x:a,y:n.y+n.height};break;case _e:t={x:n.x+n.width,y:l};break;case be:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?tt(o):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case Ee:t[c]=t[c]-(n[d]/2-i[d]/2);break;case Ae:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function Ct(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,o=n.boundary,r=void 0===o?we:o,a=n.rootBoundary,l=void 0===a?Le:a,c=n.elementContext,d=void 0===c?Te:c,u=n.altBoundary,h=void 0!==u&&u,f=n.padding,p=void 0===f?0:f,g=rt("number"!=typeof p?p:at(p,ye)),m=d===Te?Se:Te,_=e.rects.popper,b=e.elements[h?m:d],v=function(e,t,n){var i="clippingParents"===t?function(e){var t=wt(Ge(e)),n=["absolute","fixed"].indexOf(Ke(e).position)>=0&&We(e)?et(e):e;return Be(n)?t.filter((function(e){return Be(e)&&Ve(e,n)&&"body"!==$e(e)})):[]}(e):[].concat(t),s=[].concat(i,[n]),o=s[0],r=s.reduce((function(t,n){var i=Tt(e,n);return t.top=nt(i.top,t.top),t.right=it(i.right,t.right),t.bottom=it(i.bottom,t.bottom),t.left=nt(i.left,t.left),t}),Tt(e,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(Be(b)?b:b.contextElement||Je(e.elements.popper),r,l),y=Ye(e.elements.reference),E=St({reference:y,element:_,strategy:"absolute",placement:s}),A=Lt(Object.assign({},_,E)),w=d===Te?A:y,L={top:v.top-w.top+g.top,bottom:w.bottom-v.bottom+g.bottom,left:v.left-w.left+g.left,right:w.right-v.right+g.right},T=e.modifiersData.offset;if(d===Te&&T){var S=T[s];Object.keys(L).forEach((function(e){var t=[_e,me].indexOf(e)>=0?1:-1,n=[ge,me].indexOf(e)>=0?"y":"x";L[e]+=S[n]*t}))}return L}const Ot={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,_=Ue(m),b=l||(_!==m&&p?function(e){if(Ue(e)===ve)return[];var t=mt(e);return[bt(e),t,bt(t)]}(m):[mt(m)]),v=[m].concat(b).reduce((function(e,n){return e.concat(Ue(n)===ve?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Oe:l,d=ct(i),u=d?a?Ce:Ce.filter((function(e){return ct(e)===d})):ye,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var f=h.reduce((function(t,n){return t[n]=Ct(e,{placement:n,boundary:s,rootBoundary:o,padding:r})[Ue(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,E=t.rects.popper,A=new Map,w=!0,L=v[0],T=0;T<v.length;T++){var S=v[T],C=Ue(S),O=ct(S)===Ee,x=[ge,me].indexOf(C)>=0,D=x?"width":"height",k=Ct(t,{placement:S,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),N=x?O?_e:be:O?me:ge;y[D]>E[D]&&(N=mt(N));var I=mt(N),P=[];if(o&&P.push(k[C]<=0),a&&P.push(k[N]<=0,k[I]<=0),P.every((function(e){return e}))){L=S,w=!1;break}A.set(S,P)}if(w)for(var q=function(e){var t=v.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},R=p?3:1;R>0&&"break"!==q(R);R--);t.placement!==L&&(t.modifiersData[i]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Dt(e){return[ge,_e,me,be].some((function(t){return e[t]>=0}))}const kt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=Ct(t,{elementContext:"reference"}),a=Ct(t,{altBoundary:!0}),l=xt(r,i),c=xt(a,s,o),d=Dt(l),u=Dt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},Nt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=void 0===s?[0,0]:s,r=Oe.reduce((function(e,n){return e[n]=function(e,t,n){var i=Ue(e),s=[be,ge].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[be,_e].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}},It={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=St({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,g=void 0===p?0:p,m=Ct(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),_=Ue(t.placement),b=ct(t.placement),v=!b,y=tt(_),E="x"===y?"y":"x",A=t.modifiersData.popperOffsets,w=t.rects.reference,L=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,S={x:0,y:0};if(A){if(o||a){var C="y"===y?ge:be,O="y"===y?me:_e,x="y"===y?"height":"width",D=A[y],k=A[y]+m[C],N=A[y]-m[O],I=f?-L[x]/2:0,P=b===Ee?w[x]:L[x],q=b===Ee?-L[x]:-w[x],R=t.elements.arrow,H=f&&R?Xe(R):{width:0,height:0},M=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=M[C],j=M[O],B=ot(0,w[x],H[x]),W=v?w[x]/2-I-B-$-T:P-B-$-T,z=v?-w[x]/2+I+B+j+T:q+B+j+T,F=t.elements.arrow&&et(t.elements.arrow),U=F?"y"===y?F.clientTop||0:F.clientLeft||0:0,Y=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0,X=A[y]+W-Y-U,V=A[y]+z-Y;if(o){var K=ot(f?it(k,X):k,D,f?nt(N,V):N);A[y]=K,S[y]=K-D}if(a){var Q="x"===y?ge:be,J="x"===y?me:_e,G=A[E],Z=G+m[Q],ee=G-m[J],te=ot(f?it(Z,X):Z,G,f?nt(ee,V):ee);A[E]=te,S[E]=te-G}}t.modifiersData[i]=S}},requiresIfExists:["offset"]};function qt(e,t,n){void 0===n&&(n=!1);var i=We(t);We(t)&&function(e){var t=e.getBoundingClientRect();t.width,e.offsetWidth,t.height,e.offsetHeight}(t);var s,o,r=Je(t),a=Ye(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==$e(t)||Et(r))&&(l=(s=t)!==je(s)&&We(s)?{scrollLeft:(o=s).scrollLeft,scrollTop:o.scrollTop}:vt(s)),We(t)?((c=Ye(t)).x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=yt(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Rt(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||s(e)})),i}var Ht={placement:"bottom",modifiers:[],strategy:"absolute"};function Mt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function $t(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?Ht:s;return function(e,t,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ht,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:Be(e)?wt(e):e.contextElement?wt(e.contextElement):[],popper:wt(t)};var r,c,h=function(e){var t=Rt(e);return Me.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(i,a.options.modifiers),c=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:i});l.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Mt(t,n)){a.rects={reference:qt(t,et(n),"fixed"===a.options.strategy),popper:Xe(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,u=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){u(),c=!0}};if(!Mt(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var jt=$t(),Bt=$t({defaultModifiers:[pt,It,ht,Fe]}),Wt=$t({defaultModifiers:[pt,It,ht,Fe,Nt,Ot,Pt,lt,kt]});const zt=Object.freeze({__proto__:null,popperGenerator:$t,detectOverflow:Ct,createPopperBase:jt,createPopper:Wt,createPopperLite:Bt,top:ge,bottom:me,right:_e,left:be,auto:ve,basePlacements:ye,start:Ee,end:Ae,clippingParents:we,viewport:Le,popper:Te,reference:Se,variationPlacements:Ce,placements:Oe,beforeRead:xe,read:De,afterRead:ke,beforeMain:Ne,main:Ie,afterMain:Pe,beforeWrite:qe,write:Re,afterWrite:He,modifierPhases:Me,applyStyles:Fe,arrow:lt,computeStyles:ht,eventListeners:pt,flip:Ot,hide:kt,offset:Nt,popperOffsets:It,preventOverflow:Pt}),Ft="dropdown",Ut="Escape",Yt="Space",Xt="ArrowUp",Vt="ArrowDown",Kt=new RegExp("ArrowUp|ArrowDown|Escape"),Qt="click.bs.dropdown.data-api",Jt="keydown.bs.dropdown.data-api",Gt="show",Zt='[data-bs-toggle="dropdown"]',en=".dropdown-menu",tn=g()?"top-end":"top-start",nn=g()?"top-start":"top-end",sn=g()?"bottom-end":"bottom-start",on=g()?"bottom-start":"bottom-end",rn=g()?"left-start":"right-start",an=g()?"right-start":"left-start",ln={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},cn={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class dn extends M{constructor(e,t){super(e),this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return ln}static get DefaultType(){return cn}static get NAME(){return Ft}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown(this._menu))return;const e={relatedTarget:this._element};if(q.trigger(this._element,"show.bs.dropdown",e).defaultPrevented)return;const t=dn.getParentFromElement(this._element);this._inNavbar?U.setDataAttribute(this._menu,"popper","none"):this._createPopper(t),"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((e=>q.on(e,"mouseover",u))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Gt),this._element.classList.add(Gt),q.trigger(this._element,"shown.bs.dropdown",e)}hide(){if(c(this._element)||!this._isShown(this._menu))return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){q.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>q.off(e,"mouseover",u))),this._popper&&this._popper.destroy(),this._menu.classList.remove(Gt),this._element.classList.remove(Gt),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),q.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...U.getDataAttributes(this._element),...e},a(Ft,e,this.constructor.DefaultType),"object"==typeof e.reference&&!o(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ft.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(void 0===zt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig(),i=n.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=Wt(t,this._menu,n),i&&U.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(Gt)}_getMenuElement(){return Y.next(this._element,en)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return rn;if(e.classList.contains("dropstart"))return an;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?nn:tn:t?on:sn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const n=Y.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(l);n.length&&v(n,t,e===Vt,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=dn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const t=Y.find(Zt);for(let n=0,i=t.length;n<i;n++){const i=dn.getInstance(t[n]);if(!i||!1===i._config.autoClose)continue;if(!i._isShown())continue;const s={relatedTarget:i._element};if(e){const t=e.composedPath(),n=t.includes(i._menu);if(t.includes(i._element)||"inside"===i._config.autoClose&&!n||"outside"===i._config.autoClose&&n)continue;if(i._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(s.clickEvent=e)}i._completeHide(s)}}static getParentFromElement(e){return i(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===Yt||e.key!==Ut&&(e.key!==Vt&&e.key!==Xt||e.target.closest(en)):!Kt.test(e.key))return;const t=this.classList.contains(Gt);if(!t&&e.key===Ut)return;if(e.preventDefault(),e.stopPropagation(),c(this))return;const n=this.matches(Zt)?this:Y.prev(this,Zt)[0],i=dn.getOrCreateInstance(n);if(e.key!==Ut)return e.key===Xt||e.key===Vt?(t||i.show(),void i._selectMenuItem(e)):void(t&&e.key!==Yt||dn.clearMenus());i.hide()}}q.on(document,Jt,Zt,dn.dataApiKeydownHandler),q.on(document,Jt,en,dn.dataApiKeydownHandler),q.on(document,Qt,dn.clearMenus),q.on(document,"keyup.bs.dropdown.data-api",dn.clearMenus),q.on(document,Qt,Zt,(function(e){e.preventDefault(),dn.getOrCreateInstance(this).toggle()})),m(dn);const un=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hn=".sticky-top";class fn{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(t=>t+e)),this._setElementAttributes(un,"paddingRight",(t=>t+e)),this._setElementAttributes(hn,"marginRight",(t=>t-e))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e)[t];e.style[t]=`${n(Number.parseFloat(s))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(un,"paddingRight"),this._resetElementAttributes(hn,"marginRight")}_saveInitialAttribute(e,t){const n=e.style[t];n&&U.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=U.getDataAttribute(e,t);void 0===n?e.style.removeProperty(t):(U.removeDataAttribute(e,t),e.style[t]=n)}))}_applyManipulationCallback(e,t){o(e)?t(e):Y.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const pn={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},gn={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},mn="show",_n="mousedown.bs.backdrop";class bn{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&h(this._getElement()),this._getElement().classList.add(mn),this._emulateAnimation((()=>{_(e)}))):_(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(mn),this._emulateAnimation((()=>{this.dispose(),_(e)}))):_(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={...pn,..."object"==typeof e?e:{}}).rootElement=r(e.rootElement),a("backdrop",e,gn),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),q.on(this._getElement(),_n,(()=>{_(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(q.off(this._element,_n),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){b(e,this._getElement(),this._config.isAnimated)}}const vn={trapElement:null,autofocus:!0},yn={trapElement:"element",autofocus:"boolean"},En=".bs.focustrap",An="backward";class wn{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),q.off(document,En),q.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),q.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,q.off(document,En))}_handleFocusin(e){const{target:t}=e,{trapElement:n}=this._config;if(t===document||t===n||n.contains(t))return;const i=Y.focusableChildren(n);0===i.length?n.focus():this._lastTabNavDirection===An?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?An:"forward")}_getConfig(e){return e={...vn,..."object"==typeof e?e:{}},a("focustrap",e,yn),e}}const Ln="modal",Tn="Escape",Sn={backdrop:!0,keyboard:!0,focus:!0},Cn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},On="hidden.bs.modal",xn="show.bs.modal",Dn="resize.bs.modal",kn="click.dismiss.bs.modal",Nn="keydown.dismiss.bs.modal",In="mousedown.dismiss.bs.modal",Pn="modal-open",qn="show",Rn="modal-static";class Hn extends M{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=Y.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new fn}static get Default(){return Sn}static get NAME(){return Ln}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||q.trigger(this._element,xn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Pn),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),q.on(this._dialog,In,(()=>{q.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;if(q.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(qn),q.off(this._element,kn),q.off(this._dialog,In),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((e=>q.off(e,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new wn({trapElement:this._element})}_getConfig(e){return e={...Sn,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(Ln,e,Cn),e}_showElement(e){const t=this._isAnimated(),n=Y.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),t&&h(this._element),this._element.classList.add(qn),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,q.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,t)}_setEscapeEvent(){this._isShown?q.on(this._element,Nn,(e=>{this._config.keyboard&&e.key===Tn?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==Tn||this._triggerBackdropTransition()})):q.off(this._element,Nn)}_setResizeEvent(){this._isShown?q.on(window,Dn,(()=>this._adjustDialog())):q.off(window,Dn)}_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(Pn),this._resetAdjustments(),this._scrollBar.reset(),q.trigger(this._element,On)}))}_showBackdrop(e){q.on(this._element,kn,(e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(q.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:n}=this._element,i=t>document.documentElement.clientHeight;!i&&"hidden"===n.overflowY||e.contains(Rn)||(i||(n.overflowY="hidden"),e.add(Rn),this._queueCallback((()=>{e.remove(Rn),i||this._queueCallback((()=>{n.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;(!n&&e&&!g()||n&&!e&&g())&&(this._element.style.paddingLeft=`${t}px`),(n&&!e&&!g()||!n&&e&&g())&&(this._element.style.paddingRight=`${t}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Hn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}q.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=i(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),q.one(t,xn,(e=>{e.defaultPrevented||q.one(t,On,(()=>{l(this)&&this.focus()}))}));const n=Y.findOne(".modal.show");n&&Hn.getInstance(n).hide(),Hn.getOrCreateInstance(t).toggle(this)})),$(Hn),m(Hn);const Mn="offcanvas",$n={backdrop:!0,keyboard:!0,scroll:!1},jn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Bn="show",Wn=".offcanvas.show",zn="hidden.bs.offcanvas";class Fn extends M{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Mn}static get Default(){return $n}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||q.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new fn).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Bn),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),q.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(q.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(Bn),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new fn).reset(),q.trigger(this._element,zn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...$n,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(Mn,e,jn),e}_initializeBackDrop(){return new bn({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new wn({trapElement:this._element})}_addEventListeners(){q.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=Fn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}q.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=i(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this))return;q.one(t,zn,(()=>{l(this)&&this.focus()}));const n=Y.findOne(Wn);n&&n!==t&&Fn.getInstance(n).hide(),Fn.getOrCreateInstance(t).toggle(this)})),q.on(window,"load.bs.offcanvas.data-api",(()=>Y.find(Wn).forEach((e=>Fn.getOrCreateInstance(e).show())))),$(Fn),m(Fn);const Un=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Yn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Xn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Vn=(e,t)=>{const n=e.nodeName.toLowerCase();if(t.includes(n))return!Un.has(n)||Boolean(Yn.test(e.nodeValue)||Xn.test(e.nodeValue));const i=t.filter((e=>e instanceof RegExp));for(let e=0,t=i.length;e<t;e++)if(i[e].test(n))return!0;return!1};function Kn(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(let e=0,n=s.length;e<n;e++){const n=s[e],i=n.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){n.remove();continue}const o=[].concat(...n.attributes),r=[].concat(t["*"]||[],t[i]||[]);o.forEach((e=>{Vn(e,r)||n.removeAttribute(e.nodeName)}))}return i.body.innerHTML}const Qn="tooltip",Jn=new Set(["sanitize","allowList","sanitizeFn"]),Gn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Zn={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},ei={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},ti={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},ni="fade",ii="show",si="show",oi="out",ri=".tooltip-inner",ai=".modal",li="hide.bs.modal",ci="hover",di="focus";class ui extends M{constructor(e,t){if(void 0===zt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return ei}static get NAME(){return Qn}static get Event(){return ti}static get DefaultType(){return Gn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(ii))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),q.off(this._element.closest(ai),li,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=q.trigger(this._element,this.constructor.Event.SHOW),t=d(this._element),n=null===t?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!n)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(ri).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const i=this.getTipElement(),s=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME);i.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&i.classList.add(ni);const o="function"==typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:a}=this._config;H.set(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(i),q.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Wt(this._element,i,this._getPopperConfig(r)),i.classList.add(ii);const l=this._resolvePossibleFunction(this._config.customClass);l&&i.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{q.on(e,"mouseover",u)}));const c=this.tip.classList.contains(ni);this._queueCallback((()=>{const e=this._hoverState;this._hoverState=null,q.trigger(this._element,this.constructor.Event.SHOWN),e===oi&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const e=this.getTipElement();if(q.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(ii),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>q.off(e,"mouseover",u))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const t=this.tip.classList.contains(ni);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==si&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),q.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,t),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const t=e.children[0];return this.setContent(t),t.classList.remove(ni,ii),this.tip=t,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),ri)}_sanitizeAndSetContent(e,t,n){const i=Y.findOne(n,e);t||!i?this.setElementContent(i,t):i.remove()}setElementContent(e,t){if(null!==e)return o(t)?(t=r(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=Kn(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return Zn[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((e=>{if("click"===e)q.on(this._element,this.constructor.Event.CLICK,this._config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===ci?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=e===ci?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;q.on(this._element,t,this._config.selector,(e=>this._enter(e))),q.on(this._element,n,this._config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},q.on(this._element.closest(ai),li,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?di:ci]=!0),t.getTipElement().classList.contains(ii)||t._hoverState===si?t._hoverState=si:(clearTimeout(t._timeout),t._hoverState=si,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===si&&t.show()}),t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?di:ci]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=oi,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===oi&&t.hide()}),t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=U.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{Jn.has(e)&&delete t[e]})),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:r(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),a(Qn,e,this.constructor.DefaultType),e.sanitize&&(e.template=Kn(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),n=e.getAttribute("class").match(t);null!==n&&n.length>0&&n.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each((function(){const t=ui.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(ui);const hi={...ui.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},fi={...ui.DefaultType,content:"(string|element|function)"},pi={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class gi extends ui{static get Default(){return hi}static get NAME(){return"popover"}static get Event(){return pi}static get DefaultType(){return fi}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(e){return this.each((function(){const t=gi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(gi);const mi="scrollspy",_i={offset:10,method:"auto",target:""},bi={offset:"number",method:"string",target:"(string|element)"},vi="active",yi=".nav-link, .list-group-item, .dropdown-item",Ei="position";class Ai extends M{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,q.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return _i}static get NAME(){return mi}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":Ei,t="auto"===this._config.method?e:this._config.method,i=t===Ei?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Y.find(yi,this._config.target).map((e=>{const s=n(e),o=s?Y.findOne(s):null;if(o){const e=o.getBoundingClientRect();if(e.width||e.height)return[U[t](o).top+i,s]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){q.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(e){return(e={..._i,...U.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=r(e.target)||document.documentElement,a(mi,e,bi),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;)this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&(void 0===this._offsets[t+1]||e<this._offsets[t+1])&&this._activate(this._targets[t])}}_activate(e){this._activeTarget=e,this._clear();const t=yi.split(",").map((t=>`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),n=Y.findOne(t.join(","),this._config.target);n.classList.add(vi),n.classList.contains("dropdown-item")?Y.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add(vi):Y.parents(n,".nav, .list-group").forEach((e=>{Y.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(vi))),Y.prev(e,".nav-item").forEach((e=>{Y.children(e,".nav-link").forEach((e=>e.classList.add(vi)))}))})),q.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){Y.find(yi,this._config.target).filter((e=>e.classList.contains(vi))).forEach((e=>e.classList.remove(vi)))}static jQueryInterface(e){return this.each((function(){const t=Ai.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}q.on(window,"load.bs.scrollspy.data-api",(()=>{Y.find('[data-bs-spy="scroll"]').forEach((e=>new Ai(e)))})),m(Ai);const wi="active",Li="fade",Ti="show",Si=".active",Ci=":scope > li > .active";class Oi extends M{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(wi))return;let e;const t=i(this._element),n=this._element.closest(".nav, .list-group");if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?Ci:Si;e=Y.find(t,n),e=e[e.length-1]}const s=e?q.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(q.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==s&&s.defaultPrevented)return;this._activate(this._element,n);const o=()=>{q.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),q.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,o):o()}_activate(e,t,n){const i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?Y.children(t,Si):Y.find(Ci,t))[0],s=n&&i&&i.classList.contains(Li),o=()=>this._transitionComplete(e,i,n);i&&s?(i.classList.remove(Ti),this._queueCallback(o,e,!0)):o()}_transitionComplete(e,t,n){if(t){t.classList.remove(wi);const e=Y.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(wi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(wi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),h(e),e.classList.contains(Li)&&e.classList.add(Ti);let i=e.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){const t=e.closest(".dropdown");t&&Y.find(".dropdown-toggle",t).forEach((e=>e.classList.add(wi))),e.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(e){return this.each((function(){const t=Oi.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}q.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this)||Oi.getOrCreateInstance(this).show()})),m(Oi);const xi="toast",Di="hide",ki="show",Ni="showing",Ii={animation:"boolean",autohide:"boolean",delay:"number"},Pi={animation:!0,autohide:!0,delay:5e3};class qi extends M{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Ii}static get Default(){return Pi}static get NAME(){return xi}show(){q.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Di),h(this._element),this._element.classList.add(ki),this._element.classList.add(Ni),this._queueCallback((()=>{this._element.classList.remove(Ni),q.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(ki)&&(q.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Ni),this._queueCallback((()=>{this._element.classList.add(Di),this._element.classList.remove(Ni),this._element.classList.remove(ki),q.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(ki)&&this._element.classList.remove(ki),super.dispose()}_getConfig(e){return e={...Pi,...U.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},a(xi,e,this.constructor.DefaultType),e}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){q.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),q.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),q.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),q.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=qi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return $(qi),m(qi),{Alert:j,Button:W,Carousel:se,Collapse:pe,Dropdown:dn,Modal:Hn,Offcanvas:Fn,Popover:gi,ScrollSpy:Ai,Tab:Oi,Toast:qi,Tooltip:ui}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(),window.addEventListener("load",(()=>{const e=document.documentElement;let t,n=window.scrollY||e.scrollTop,i=0,s=0;const o=document.querySelector("header .alert"),r=document.querySelector(".utility-header"),a=document.querySelector("header");r&&a&&window.addEventListener("scroll",(()=>{if(t=window.scrollY||e.scrollTop,t>n?i=2:t<n&&(i=1),i!==s)if(2===i&&t>40){const e=r.clientHeight+(o?.clientHeight||0);a.style.top=`-${e}px`,s=i}else 1===i&&t<40&&(a.style.removeProperty("top"),s=i);n=t}))}));class n extends HTMLElement{connectedCallback(){this.summaryEl=this.querySelector("summary"),this.setHeight(),this.summaryEl.addEventListener("click",this.listen.bind(this)),this.summaryEl.insertAdjacentHTML("beforeend",'<div class="cagov-open-indicator" aria-hidden="true" />'),this.detailsEl=this.querySelector("details"),this.bodyEl=this.querySelector(".accordion-body"),window.addEventListener("resize",this.debounce(this.setHeight).bind(this))}setHeight(){window.requestAnimationFrame((()=>{this.closedHeightInt=this.summaryEl.scrollHeight+2,this.closedHeight=`${this.closedHeightInt}px`,this.detailsEl.hasAttribute("open")?this.detailsEl.style.height=`${this.bodyEl.scrollHeight+this.closedHeightInt}px`:this.detailsEl.style.height=this.closedHeight}))}listen(){this.detailsEl.hasAttribute("open")?this.detailsEl.style.height=this.closedHeight:window.requestAnimationFrame((()=>{this.detailsEl.style.height=`${this.bodyEl.scrollHeight+this.closedHeightInt}px`}))}debounce(e,t=300){let n;return(...i)=>{window.clearTimeout(n),n=window.setTimeout((()=>{e.apply(this,i)}),t)}}}window.addEventListener("load",(()=>{window.customElements.define("cagov-accordion",n)})),window.addEventListener("load",(()=>{const e=window,t=document,n={};e.ARIAaccordion=n,n.NS="ARIAaccordion",n.AUTHOR="Scott O'Hara",n.VERSION="3.2.1",n.LICENSE="https://github.com/scottaohara/accessible_accordions/blob/master/LICENSE";const i="accordion",s=`${i}__trigger`,o=`${i}__heading`,r=`${i}__panel`,a="[data-aria-accordion-heading]",l="[data-aria-accordion-panel]";let c=0;const d=e=>t.querySelectorAll(`#${e}> li`).length?`#${e} li > `:`#${e} > `;n.create=()=>{let e="none";const o=t.querySelectorAll("[data-aria-accordion]");c+=1;for(let u=0;u<o.length;u++){const h=o[u];h.hasAttribute("id")||(h.id=`acc_${c}-${u}`),h.classList.add(i);const f=d(h.id),p=t.querySelectorAll(`${f}${l}`),g=t.querySelectorAll(`${f}${a}`);h.hasAttribute("data-default")&&(e=h.getAttribute("data-default"));const m=h.hasAttribute("data-constant");if(h.hasAttribute("data-transition")){const e=h.querySelectorAll(l);for(let t=0;t<e.length;t++)e[t].classList.add(`${r}--transition`)}n.setupPanels(h.id,p,e,m),n.setupHeadingButton(g,m);const _=t.querySelectorAll(`${f}${a} .${s}`);for(let e=0;e<_.length;e++)_[e].addEventListener("click",n.actions),_[e].addEventListener("keydown",n.keytrolls)}},n.setupPanels=function(e,t,n,i){for(let s=0;s<t.length;s++){const o=t[s],a=`${e}_panel_${s+1}`,l=n,c=i;if(o.setAttribute("id",a),u(t[0],!0),o.classList.add(r),"none"!==l&&!Number.isNaN(parseInt(l))){const e=parseInt(l);e<=1?u(t[0],!1):e-1>=t.length?u(t[t.length-1],!1):u(t[e-1],!1)}c&&("none"===l||Number.isNaN(parseInt(l)))&&u(t[0],!1)}},n.setupHeadingButton=function(e,n){for(let i=0;i<e.length;i++){const r=e[i],a=r.nextElementSibling.id,l=t.getElementById(a).getAttribute("aria-hidden"),c=t.createElement("button"),d=r.textContent;r.innerHTML="",r.classList.add(o),c.setAttribute("type","button"),c.setAttribute("aria-controls",a),c.setAttribute("id",`${a}_trigger`),c.classList.add(s),"false"===l?(h(c,!0),p(c,!0),n&&c.setAttribute("aria-disabled","true")):(h(c,!1),p(c,!1)),r.appendChild(c),c.appendChild(t.createTextNode(d))}},n.actions=function(e){const i=this.id.replace(/_panel.*$/g,""),o=t.getElementById(this.getAttribute("aria-controls")),r=d(i),l=t.querySelectorAll(`${r}${a} .${s}`);e.preventDefault(),n.togglePanel(e,i,o,l)},n.togglePanel=function(e,n,i,s){const o=e.target;if("true"!==o.getAttribute("aria-disabled")&&(p(o,!0),"true"===o.getAttribute("aria-expanded")?(h(o,!1),u(i,!0)):(h(o,!0),u(i,!1),t.getElementById(n).hasAttribute("data-constant")&&f(o,!0)),t.getElementById(n).hasAttribute("data-constant")||!t.getElementById(n).hasAttribute("data-multi")))for(const e of s)if(o!==e){p(e,!1);const n=e.getAttribute("aria-controls");f(e,!1),h(e,!1),u(t.getElementById(n),!0)}},n.keytrolls=function(e){if(e.target.classList.contains(s)){const n=e.keyCode||e.which,i=36,o=35,r=this.id.replace(/_panel.*$/g,""),l=d(r),c=t.querySelectorAll(`${l}${a} .${s}`);switch(n){case o:e.preventDefault(),c[c.length-1].focus();break;case i:e.preventDefault(),c[0].focus()}}},n.init=function(){n.create()};const u=function(e,t){e.setAttribute("aria-hidden",t.toString())},h=function(e,t){e.setAttribute("aria-expanded",t.toString())},f=function(e,t){e.setAttribute("aria-disabled",t.toString())},p=function(e,t){e.setAttribute("data-current",t.toString())};n.init()})),(()=>{const e=(e,t,n)=>(t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e),t="data-nav-id",n=(()=>{const e={};return{set:(t,n)=>{e[t]=n},get:t=>e[t],remove:t=>e[t]}})(),i=(e,n)=>document.querySelector(`#${e}[${t}="${n}"]`),s=(e,t)=>{Object.keys(t).forEach((n=>{e.setAttribute(n,t[n])}))},o=()=>{const e=document.querySelector(".global-header .mobile-controls");return!!e&&"none"!==getComputedStyle(e).display},r=(...i)=>{const r=i.length<=0||void 0===i[0]?{}:i[0],a="first-level-btn";document.querySelectorAll(".main-navigation .sub-nav").forEach((e=>{e.parentElement.querySelector("a").className=a}));let l={ACCORDION_JS:"main-navigation",ACCORDION_JS_HEADER:a,ACCORDION_JS_PANEL:"nav-panel",ACCORDION_DATA_PREFIX_CLASS:"data-nav-prefix-classes",ACCORDION_DATA_OPENED:"data-nav-opened",ACCORDION_DATA_MULTISELECTABLE:"data-nav-multiselectable",ACCORDION_DATA_COOL_SELECTORS:!0,ACCORDION_PREFIX_IDS:"nav",ACCORDION_BUTTON_ID:"_tab",ACCORDION_PANEL_ID:"_panel",ACCORDION_STYLE:"nav",ACCORDION_TITLE_STYLE:"has-sub-btn",ACCORDION_HEADER_STYLE:"nav-header",ACCORDION_PANEL_STYLE:"sub-nav",ACCORDION_ROLE_TABLIST:"tablist",ACCORDION_ROLE_TAB:"tab",ACCORDION_ROLE_TABPANEL:"tabpanel",ATTR_ROLE:"role",ATTR_MULTISELECTABLE:"data-multiselectable",ATTR_EXPANDED:"aria-expanded",ATTR_LABELLEDBY:"aria-labelledby",ATTR_HIDDEN:"aria-hidden",ATTR_CONTROLS:"aria-controls",ATTR_SELECTED:"aria-selected"};l=Object.assign(l,r);const c=Math.random().toString(32).slice(2,12);n.set(c,l);return{attach:(...n)=>{(e=>{const t=e.length<=0?document.documentElement:e[0];return[].slice.call(t.querySelectorAll(`.${l.ACCORDION_JS}`))})(n).forEach((n=>{const i=`z${Math.random().toString(32).slice(2,12)}`,r=n.hasAttribute(l.ACCORDION_DATA_PREFIX_CLASS)?`${n.getAttribute(l.ACCORDION_DATA_PREFIX_CLASS)}-`:"",a=l.ACCORDION_DATA_COOL_SELECTORS,d="first-level-btn";n.setAttribute(l.ATTR_MULTISELECTABLE,o()?"true":"false"),n.setAttribute(t,c),n.classList.add(r+l.ACCORDION_STYLE);[].slice.call(n.querySelectorAll(`.${d}`)).forEach(((o,u)=>{let h,f;if(o.parentNode!==n&&!a)return;const p=u+1,g=o.nextElementSibling;if(!g)return;const m=o.innerHTML,_=document.createElement("BUTTON"),b=o.hasAttribute(l.ACCORDION_DATA_OPENED)?o.getAttribute(l.ACCORDION_DATA_OPENED):"";_.innerHTML=m,_.classList.add(d,r+l.ACCORDION_HEADER_STYLE),s(_,(h={},e(h,"id",l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_BUTTON_ID+p),e(h,l.ATTR_CONTROLS,l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_PANEL_ID+p),e(h,t,c),h)),o.innerHTML="",o.appendChild(_),o.classList.add(r+l.ACCORDION_TITLE_STYLE),o.classList.remove(d),g.classList.add(r+l.ACCORDION_PANEL_STYLE),s(g,(f={},e(f,l.ATTR_ROLE,l.ACCORDION_ROLE_TABPANEL),e(f,l.ATTR_LABELLEDBY,l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_BUTTON_ID+p),e(f,"id",l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_PANEL_ID+p),e(f,t,c),f)),"true"===b?(_.setAttribute(l.ATTR_EXPANDED,"true"),o.removeAttribute(l.ACCORDION_DATA_OPENED),g.setAttribute(l.ATTR_HIDDEN,"false"),g.querySelectorAll(".second-level-link").forEach((e=>{e.removeAttribute("tabindex")}))):(_.setAttribute(l.ATTR_EXPANDED,"false"),g.setAttribute(l.ATTR_HIDDEN,"true"),g.querySelectorAll(".second-level-link").forEach((e=>{e.setAttribute("tabindex","-1")})))}))}))}}},a=function(){return["click","keydown","focus"].forEach((e=>{document.body.addEventListener(e,(s=>{const r=((e,t)=>{let n=e;for(;n;){if(n.hasAttribute(t))return n.getAttribute(t);n=n.parentElement}return""})(s.target,t);""!==r&&(()=>{const a=n.get(r);s.target.classList.contains("first-level-btn")&&"click"===e&&(()=>{const e=s.target,n=i(((e,n,i)=>{let s=e;for(;s;){if(s.classList.contains(n)&&s.getAttribute(t)===i)return s.getAttribute("id");s=s.parentElement}return""})(e,a.ACCORDION_JS,r),r),l=!0===a.ACCORDION_DATA_COOL_SELECTORS;let c=[].slice.call(n.querySelectorAll(".first-level-btn"));const d=i(e.getAttribute(a.ATTR_CONTROLS),r),u=e.getAttribute(a.ATTR_EXPANDED);l||(c=c.filter((e=>e.parentNode.parentNode===n))),"false"===u?(e.setAttribute(a.ATTR_EXPANDED,"true"),d.removeAttribute(a.ATTR_HIDDEN),d.classList.add("open"),d.querySelectorAll(".second-level-link").forEach((e=>e.removeAttribute("tabindex")))):(e.setAttribute(a.ATTR_EXPANDED,"false"),d.setAttribute(a.ATTR_HIDDEN,"true"),d.classList.remove("open"),d.querySelectorAll(".second-level-link").forEach((e=>e.setAttribute("tabindex","-1")))),o()||c.forEach((t=>{const n=i(t.getAttribute(a.ATTR_CONTROLS),r);t!==e&&(t.setAttribute(a.ATTR_EXPANDED,"false"),n.classList.remove("open"),n.querySelectorAll(".second-level-link").forEach((e=>e.setAttribute("tabindex","-1"))))})),setTimeout((()=>{e.focus()}),0),s.stopPropagation(),s.preventDefault()})()})()}),!0)})),r},l=()=>{if(document.querySelectorAll(".first-level-btn").forEach((e=>e.setAttribute("aria-expanded","false"))),document.querySelectorAll(".sub-nav").forEach((e=>{e.setAttribute("aria-hidden","true"),e.classList.remove("open")})),document.querySelectorAll(".second-level-link").forEach((e=>e.setAttribute("tabindex","-1"))),window.innerWidth<=991)document.querySelectorAll(".rotate").forEach((e=>e.style.display="block"));else{document.querySelectorAll(".rotate").forEach((e=>e.style.display="none"));document.querySelector("#navigation").removeAttribute("aria-hidden")}};window.addEventListener("load",(()=>{a()().attach();const e=document.querySelector(".main-navigation");if(!e)return;document.querySelectorAll(".main-navigation .nav-item a.has-sub-btn").forEach((e=>{const t=document.createElement("div");t.innerHTML=e.innerHTML,t.classList.add("has-sub-btn"),e.replaceWith(t)}));const t=e.classList.contains("singleLevel"),n=e.classList.contains("auto-highlight"),i=document.querySelectorAll(".main-navigation .nav-item"),s=[].slice.call(i).filter((e=>e.querySelector(".sub-nav")));i.forEach((e=>{const t=e.querySelector(".first-level-btn, .first-level-link");if(t&&n&&t.getAttribute("href")){const n=t.getAttribute("href")?.split("/"),i=location.href.split("/");n&&n.length>4&&i[3]===n[3]&&e.classList.add("active")}})),document.addEventListener("mouseup",(e=>{const t=document.querySelector(".main-navigation");t===e.target||t?.contains(e.target)||l()})),s.forEach((e=>{if(e.querySelectorAll(".second-level-nav > li").length<=2){const t=e.querySelector(".sub-nav");t&&t.classList.add("with-few-items")}})),t||document.querySelectorAll(".first-level-btn").forEach((e=>{e.classList.add("has-sub");const t=document.createElement("span");t.classList.add("ca-gov-icon-caret-down","carrot"),t.setAttribute("aria-hidden","true");const n=document.createElement("div");n.classList.add("ca-gov-icon-caret-right","rotate"),n.setAttribute("aria-hidden","true"),n.style.display=o()?"block":"none",e.appendChild(n),e.appendChild(t)})),c()})),window.addEventListener("resize",(()=>{document.querySelector(".toggle-menu")?.setAttribute("aria-expanded","false"),l()})),document.addEventListener("keyup",(e=>{"Escape"===e.key&&l()}));const c=()=>{const e=document.querySelectorAll(".second-level-link"),t=e.length,n=location.href.split("#")[0];for(let i=0;i<t;i++)e[i].href.split("#")[0]==n&&(e[i].className+=" bold")}})(),window.addEventListener("load",(()=>{const e=()=>{a&&(l?(a.removeAttribute("aria-hidden"),document.querySelector("[name='q']")?.removeAttribute("tabindex"),document.querySelector(".gsc-search-button")?.removeAttribute("tabindex")):a.setAttribute("aria-hidden","true"))},t=()=>{const e=document.querySelector(".global-header .mobile-controls");return!!e&&"none"!==getComputedStyle(e).display},n=()=>{document.body.classList.remove("active-search"),i&&(i.value=""),a&&(a.classList.remove("active"),a.setAttribute("aria-hidden","true"));const n=document.querySelector(".search-results-container");if(n&&n.classList.remove("visible"),document.querySelectorAll(".ask-group").forEach((e=>e.classList.remove("fade-out"))),!l){const e=document.querySelector("button.first-level-link");e&&e.setAttribute("aria-expanded","false"),A()}window.dispatchEvent(new CustomEvent("scroll")),t()&&e()},i=document.querySelector(".search-textfield"),s=document.querySelector("#head-search #Search .search-textfield"),o=document.querySelector("#head-search #Search .gsc-search-button"),r=document.querySelector("#head-search #Search .close-search"),a=document.querySelector("#head-search"),l=a?.classList.contains("featured-search"),c=a?.classList.contains("active"),d=document.querySelector("#SearchInput"),u=document.querySelector(".search-container:not(.featured-search)"),h=document.querySelector(".global-header")?.offsetHeight,f=document.querySelector(".utility-header"),p=f?.offsetHeight||0,g=document.querySelectorAll(".alert-banner");let m=0;g.forEach((e=>{m+=e.offsetHeight}));const _=document.querySelector(".navigation-search")?.classList.contains("full-width-nav")?82:0;if(i&&a){const e=()=>{a.classList.remove("focus"),document.querySelector(".search-container")?.classList.add("focus")};i.addEventListener("blur",e,!1),i.addEventListener("focus",e,!1);const t=function(){this.value&&document.body.classList.add("active-search")};i.addEventListener("change",t,!1),i.addEventListener("keyup",t,!1),i.addEventListener("paste",t,!1)}if(!l){const e=document.querySelector("button.first-level-link");e&&e.setAttribute("aria-expanded","false")}if(!t()){const e=h-p-m-_;!t()&&u&&(u.style.top=`${Math.max(e,82)}px`)}const b=document.querySelector(".search-results-container .close");b&&b.addEventListener("click",n,!1);const v=document.querySelector("#head-search .close");v&&v.addEventListener("click",n,!1);const y=document.querySelector("#nav-item-search");y&&i&&y.addEventListener("click",(function(e){e.preventDefault(),i.focus(),!l&&u&&u.classList.toggle("active"),c?(this.querySelector("button").setAttribute("aria-expanded","true"),E()):(this.querySelector("button").setAttribute("aria-expanded","false"),A()),l&&E(),a&&(a.classList.add("play-animation"),a.addEventListener("animationend",(()=>{this.classList.remove("play-animation")})))}),!1),r&&r.addEventListener("click",n);const E=()=>{s&&(s.removeAttribute("tabindex"),s.removeAttribute("aria-hidden")),o&&(o.removeAttribute("tabindex"),o.removeAttribute("aria-hidden")),r&&(r.removeAttribute("tabindex"),r.removeAttribute("aria-hidden")),d&&d.removeAttribute("aria-hidden"),a&&a.removeAttribute("aria-hidden")},A=()=>{s&&(s.setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true")),o&&(o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true")),r&&(r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true")),d&&d.setAttribute("aria-hidden","true"),a&&a.setAttribute("aria-hidden","true")};a&&(a.classList.contains("featured-search")?E():A());const w=()=>{const e=h-p-m-_;!t()&&u&&(u.style.top=`${Math.max(e,55)}px`)};document.querySelectorAll(".alert-banner .close").forEach((e=>{e.addEventListener("click",w)})),window.addEventListener("scroll",(()=>{if(!t()){setTimeout(w,400);const e=document.querySelector("nav ~ #head-search");document.body.scrollTop>=100||document.documentElement.scrollTop>=100?e&&e.classList.add("hidden-up"):e&&e.classList.remove("hidden-up")}})),window.addEventListener("resize",(()=>{w(),e()})),e()})),(()=>{const e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function t(e){const t=e.previousElementSibling;if(t){"pre"==t.tagName.toLowerCase()?navigator.clipboard.writeText(t.querySelector("code").innerText):navigator.clipboard.writeText(t.value);const n=document.createRange();n.selectNode(t),window.getSelection().removeAllRanges(),window.getSelection().addRange(n),e.innerHTML='<span class="ca-gov-icon-check-mark"></span> Code copied'}}window.addEventListener("load",(()=>{const n=document.querySelectorAll("pre code, textarea.sourcecode");for(let i=0,s=n.length;i<s;i++){const s=n[i];if("code"==s.tagName.toLowerCase()){let t=s.innerHTML;t=t.replace(/[&<>"'/]/g,(t=>e[t])),s.innerHTML=t}const o=document.createElement("button");o.onclick=function(){t(this)},o.classList.add("btn","btn-outline-primary"),o.innerHTML="<span class='ca-gov-icon-copy'></span> Copy code","code"==s.tagName.toLowerCase()?s.parentElement.after(o):s.after(o)}}))})(),window.addEventListener("load",(()=>{document.querySelectorAll(".tabs").forEach((e=>{const t=e.querySelector("ul"),n=t.querySelectorAll("a"),i=e.querySelectorAll('[id^="section"]'),s=(e,t)=>{t.focus(),t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true"),e.removeAttribute("aria-selected"),e.setAttribute("tabindex","-1");const s=Array.prototype.indexOf.call(n,t),o=Array.prototype.indexOf.call(n,e);i[o].hidden=!0,i[s].hidden=!1};t.setAttribute("role","tablist"),n.forEach(((e,o)=>{e.setAttribute("role","tab"),e.setAttribute("tabindex","-1"),e.parentNode.setAttribute("role","presentation"),e.addEventListener("click",(e=>{e.preventDefault();const n=t.querySelector("[aria-selected]");e.currentTarget!==n&&s(n,e.currentTarget)})),e.addEventListener("keydown",(e=>{const t=Array.prototype.indexOf.call(n,e.currentTarget),r=["ArrowLeft","Left"].includes(e.key)?t-1:["ArrowRight","Right"].includes(e.key)?t+1:["ArrowDown","Down"].includes(e.key)?"down":null;null!==r&&(e.preventDefault(),"down"===r?i[o].focus():n[r]&&s(e.currentTarget,n[r]))}))})),i.forEach(((e,t)=>{e.setAttribute("role","tabpanel"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-label",n[t].innerText),e.hidden=!0})),n[0].removeAttribute("tabindex"),n[0].setAttribute("aria-selected","true"),i[0].hidden=!1}))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".scroll-counter");e.forEach((e=>{e.counterAlreadyFired=!1,e.counterSpeed=Number(e.getAttribute("data-counter-time"))/45,e.counterTarget=+e.innerText,e.counterCount=0,e.counterStep=e.counterTarget/e.counterSpeed,e.updateCounter=()=>{e.counterCount+=e.counterStep,e.innerText=Math.ceil(e.counterCount).toString(),e.counterCount<e.counterTarget?window.setTimeout(e.updateCounter,e.counterSpeed):e.innerText=e.counterTarget.toString()}}));const t=()=>{e.forEach((e=>{e.counterAlreadyFired||(e=>{const t=window.scrollY||window.pageYOffset,n=e.getBoundingClientRect().top+t,i=t,s=t+window.innerHeight,o=n,r=n+e.clientHeight;return r>=i&&r<=s||o<=s&&o>=i})(e)&&(e.updateCounter(),e.counterAlreadyFired=!0)}))};window.addEventListener("load",t),window.addEventListener("scroll",t)})),window.addEventListener("load",(()=>{document.querySelectorAll(".return-top").forEach((e=>e.addEventListener("click",(()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0})))),document.querySelectorAll("a[href='#skip-to-content']").forEach((t=>t.addEventListener("click",e)));const e=e=>{e.preventDefault(),document.body.scrollTop=0,document.documentElement.scrollTop=0}}));let i=0,s=0;function o(e,t){return`<li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__button"\n aria-label="${e} ${t}"\n data-page-num="${t}"\n >\n ${t}\n </a>\n </li>`}window.addEventListener("scroll",(()=>{const e=document.querySelector(".return-top");if(!e)return;const t=window.pageYOffset||document.documentElement.scrollTop;t>s?e.classList.remove("is-visible"):document.body.scrollTop>=400||document.documentElement.scrollTop>=400?(i&&window.clearTimeout(i),e.classList.add("is-visible"),i=window.setTimeout((()=>{e.classList.remove("is-visible")}),2e3)):e.classList.remove("is-visible"),s=t<=0?0:t}),!1),window.addEventListener("scroll",(()=>{const e=document.querySelector(".return-top");e&&window.innerHeight+window.scrollY>=document.body.offsetHeight&&e.classList.add("is-visible")})),window.addEventListener("load",(()=>{const e=document.querySelector("header"),t=document.querySelector(".side-navigation");if(!t||!e)return;const n=t.querySelectorAll(".side-navigation a"),i=t.closest("div");t.setAttribute("id","side-navigation");const s=localStorage.getItem("sidebar-scroll"),o=document.querySelector(".global-header .mobile-controls");if(!o)return;let r=window.getComputedStyle(o).display;const a=e?e.clientHeight:0;let l=0;let c,d,u;const h=()=>{d&&d.append(t),t.setAttribute("aria-hidden","true"),n?.forEach((e=>{e.setAttribute("tabindex","-1")}))},f=()=>{c.classList.toggle("visible"),c.classList.contains("visible")?(t.removeAttribute("aria-hidden"),u.setAttribute("aria-expanded","true"),n?.forEach((e=>{e.removeAttribute("tabindex")}))):(u.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true"),n?.forEach((e=>{e.setAttribute("tabindex","-1")})))};const p=()=>{if("none"===getComputedStyle(o).display){const e=document.documentElement.clientHeight-a-100;e<=(document.querySelector(".side-navigation")?.clientHeight||0)?t.classList.add("overflow-auto"):(t.classList.remove("overflow-auto"),t.removeAttribute("style")),[...t.classList].includes("overflow-auto")&&t.setAttribute("style",`max-height:${e}px`)}else t.classList.remove("overflow-auto"),t.removeAttribute("style");null!==s&&(t.scrollTop=parseInt(s,10)),window.addEventListener("beforeunload",(()=>{localStorage.setItem("sidebar-scroll",t.scrollTop.toString())}))};!function(){const e=document.querySelectorAll("a.nav-heading"),t=e.length,n=location.href.split("#")[0];for(let i=0;i<t;i++)e[i].href.split("#")[0]==n&&(e[i].className+=" active")}(),c=document.createElement("aside"),c.setAttribute("class","mobile-sidenav"),d=document.createElement("div"),d.setAttribute("class","container"),c.append(d),e.after(c),(()=>{const t=document.querySelector(".side-navigation a, .sidenav");if(t){let n=t.innerText;const i=t.querySelector("span")?.innerText||"";n=n.replace(i,"").trim();const s=document.createElement("aside");s.setAttribute("class","sidenav-mobile-btn");const o=document.createElement("div");o.setAttribute("class","container"),s.append(o),u=document.createElement("button"),u.setAttribute("class","sidenav-toggle"),u.setAttribute("aria-expanded","false"),u.setAttribute("aria-controls","side-navigation"),u.innerText=n;const r=document.createElement("span");r.setAttribute("aria-hidden","true"),r.setAttribute("class","ca-gov-icon-caret-down"),u.append(r),o.append(u),e.after(s),u.addEventListener("click",f)}})(),"block"==r&&h(),window.addEventListener("resize",(()=>{r=getComputedStyle(o).display,window.clearTimeout(l),l=window.setTimeout(p,250),"block"==r?h():(i?.append(t),t.removeAttribute("aria-hidden"),n?.forEach((e=>{e.removeAttribute("tabindex")})))})),p()})),window.addEventListener("load",(()=>{const e=":not(code *):not(.cagov-logo)";document.querySelectorAll(`main a${e}, .agency-footer a${e}, .site-footer a${e}, footer a${e}`).forEach((e=>{const t=0===e.href.indexOf("#"),n=e.href.indexOf("localhost")>-1,i=e.href.indexOf("@")>-1,s=e;!1!==function(e){return window.location.host.indexOf(e.host)>-1}(s)||t||i||n||(s.innerHTML+='<span class="external-link-icon" aria-hidden="true"></span>')}))})),window.addEventListener("load",(()=>{const e=document.querySelectorAll("h2"),t=document.querySelector("h2"),n=document.querySelector(".page-navigation");if(n&&0===n.childNodes.length&&t){const t=document.createElement("ul");e.forEach((n=>{const i=n.innerHTML,s=n.innerHTML.replace(/\s+/g,"-");n.setAttribute("id",s);const o=`<a href="#${s}">${i}</a>`,r=document.createElement("li");r.innerHTML=o,t.appendChild(r);const a=e.length;a>8?t.classList.add("columns-3"):a>5&&t.classList.add("columns-2")}));const i='<div id="on-this-page-navigation-label" class="label">On this page</div>';n.innerHTML=i,n.appendChild(t),n.setAttribute("aria-labelledby","on-this-page-navigation-label")}}));class r extends HTMLElement{constructor(){if(super(),!document.querySelector("#cagov-pagination-styles")){const e=document.createElement("style");e.id="cagov-pagination-styles",e.textContent="\ncagov-pagination {\n white-space: nowrap;\n font-size: .9rem;\n}\ncagov-pagination a {\n text-decoration: none !important;\n}\ncagov-pagination .cagov-pagination__list {\n list-style: none;\n margin: 0;\n padding: 0 !important;\n display: flex;\n overflow-x: scroll;\n}\ncagov-pagination .cagov-pagination__item {\n margin: var(--s-sm, 0.25rem);\n}\ncagov-pagination .cagov-pagination__item a {\n padding: 6px 14px;\n display: inline-block;\n color: #4a4958;\n}\ncagov-pagination .cagov-pagination__item a:hover, cagov-pagination .cagov-pagination__item a:focus {\n box-shadow: inset 0 0 0 3px #d4d4d7;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination-current {\n font-weight:700;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination-current a {\n box-shadow: inset 0 0 0 1px #d4d4d7;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination__overflow {\n border: none;\n padding: 0.875rem 0;\n}\ncagov-pagination .cagov-pagination__item:has(.cagov-pagination__link-inactive) {\n display:none;\n}\n.ca-gov-icon-arrow-prev, .ca-gov-icon-arrow-next {\n font-size: 0.86em;\n}\n",document.querySelector("head").appendChild(e)}}connectedCallback(){this.currentPage=parseInt(this.dataset.currentPage?this.dataset.currentPage:"1",10),this.render()}render(){const e=this.dataset.previous?this.dataset.previous:'<span class="ca-gov-icon-arrow-prev" aria-hidden="true"></span> Previous',t=this.dataset.next?this.dataset.next:'Next <span class="ca-gov-icon-arrow-next" aria-hidden="true"></span>',n=this.dataset.page?this.dataset.page:"Page";if(this.totalPages=this.dataset.totalPages?Number(this.dataset.totalPages):1,this.totalPages<0||this.totalPages>1){const i=function(e,t,n,i,s){const r=-1==s;return`<nav aria-label="Pagination" class="cagov-pagination">\n <ul class="cagov-pagination__list">\n <li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__link cagov-pagination__previous-page"\n aria-label="previous page"\n >\n <span class="cagov-pagination__link-text ${i>1?"":"cagov-pagination__link-inactive"}"> ${t} </span>\n </a>\n </li>\n ${i>2?o(n,1):""}\n\n ${4==i?o(n,2):""}\n ${i>4?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n\n ${i>1?o(n,i-1):""}\n\n <li class="cagov-pagination__item cagov-pagination-current">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__button"\n aria-label="Page ${i}"\n aria-current="page"\n data-page-num="${i}"\n >\n ${i}\n </a>\n </li>\n\n ${r||i<s?o(n,i+1):""}\n\n ${!r&&i<s-2?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n ${r?o(n,i+2):""}\n\n ${i<s-1?o(n,s):""}\n ${r?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n\n <li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__link cagov-pagination__next-page"\n aria-label="next page"\n >\n <span class="cagov-pagination__link-text ${!r&&i>s-1?"cagov-pagination__link-inactive":""}"> ${e} </span>\n </a>\n </li>\n </ul>\n </nav>`}(t,e,n,this.currentPage,this.totalPages);this.innerHTML=i,this.applyListeners()}else this.innerHTML=""}static get observedAttributes(){return["data-current-page","data-total-pages"]}attributeChangedCallback(e,t,n){"data-current-page"===e&&(this.currentPage=parseInt(n,10),this.render()),"data-total-pages"===e&&(this.totalPages=parseInt(n,10),this.render())}applyListeners(){this.querySelectorAll(".cagov-pagination__button").forEach((e=>{e.addEventListener("click",(e=>{this.currentPage=parseInt(e.target.dataset.pageNum,10),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString()}))})),this.querySelector(".cagov-pagination__previous-page").addEventListener("click",(e=>{e.target.classList.contains("cagov-pagination__link-inactive")||(this.currentPage-=1,this.currentPage<1&&(this.currentPage=1),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString())})),this.querySelector(".cagov-pagination__next-page").addEventListener("click",(e=>{e.target.classList.contains("cagov-pagination__link-inactive")||(this.currentPage+=1,-1!=this.totalPages&&this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString())}))}}window.addEventListener("load",(()=>{window.customElements.define("cagov-pagination",r)})),window.addEventListener("load",(()=>{const e=document.querySelector(".toggle-menu");if(!e)return;const t=()=>document.querySelectorAll('.navigation-search a.first-level-link, .navigation-search button.first-level-btn, .navigation-search input, .navigation-search button, .navigation-search [tabindex]:not([tabindex="-1"])'),n=()=>document.querySelectorAll('.settings-links a, .settings-links button, .settings-links input, .settings-links select, .settings-links [tabindex]:not([tabindex="-1"])'),i=()=>document.querySelectorAll('.utility-header .social-media-links a, .utility-header .social-media-links input, .utility-header .social-media-links button, .utility-header .social-media-links [tabindex]:not([tabindex="-1"]), .branding a, .branding button, .branding input, .branding select, .main-content a[href], .main-content button, .main-content input, .main-content textarea, .main-content select, .main-content details, .main-content [tabindex]:not([tabindex="-1"]), .site-footer a[href], .site-footer button, .site-footer input, .site-footer textarea, .site-footer select, .site-footer details, .site-footer [tabindex]:not([tabindex="-1"]), footer a[href], footer button, footer input, footer textarea, footer select, footer details, footer [tabindex]:not([tabindex="-1"])'),s=document.createElement("div");s.setAttribute("class","nav-drawer");const o=()=>{const t=document.querySelector(".mobile-controls .main-nav-icons");setTimeout((()=>{e.setAttribute("aria-expanded","false"),t?.append(e)}),300)},r=e=>{const t=document.querySelector(".main-content"),n=document.querySelector("footer"),i=document.querySelector(".site-footer"),s=document.querySelector(".utility-header"),o=document.querySelector(".branding"),r=document.querySelector("header");e?(t?.setAttribute("aria-hidden","true"),n?.setAttribute("aria-hidden","true"),i?.setAttribute("aria-hidden","true"),s?.setAttribute("aria-hidden","true"),o?.setAttribute("aria-hidden","true"),r?.classList.add("nav-overlay")):(t?.removeAttribute("aria-hidden"),n?.removeAttribute("aria-hidden"),i?.removeAttribute("aria-hidden"),s?.removeAttribute("aria-hidden"),o?.removeAttribute("aria-hidden"),r?.classList.remove("nav-overlay"))};e.addEventListener("click",(()=>{s.append(e);const a=document.querySelector(".navigation-search");a?.classList.toggle("visible"),a?.classList.toggle("not-visible"),a?.classList.contains("visible")?(e.setAttribute("aria-expanded","true"),document.body.classList.add("overflow-hidden"),a?.setAttribute("aria-hidden","false"),t().forEach((e=>e.removeAttribute("tabindex"))),n().forEach((e=>e.removeAttribute("tabindex"))),i().forEach((e=>e.setAttribute("tabindex","-1"))),r(!0)):(e.setAttribute("aria-expanded","false"),document.body.classList.remove("overflow-hidden"),a?.setAttribute("aria-hidden","true"),t().forEach((e=>e.setAttribute("tabindex","-1"))),n().forEach((e=>e.setAttribute("tabindex","-1"))),i().forEach((e=>e.removeAttribute("tabindex"))),r(!1),o())}));const a=()=>{const e=document.querySelector(".global-header .mobile-controls");"block"==(e?window.getComputedStyle(e).display:"")?(()=>{o();const e=document.querySelector(".main-navigation"),s=document.querySelector(".settings-links");e&&s&&e.before(s),document.body.classList.remove("overflow-hidden");const a=document.querySelector(".navigation-search");a?.classList.add("not-visible"),a?.classList.remove("visible"),a?.setAttribute("aria-hidden","true"),t().forEach((e=>e.setAttribute("tabindex","-1"))),n().forEach((e=>e.setAttribute("tabindex","-1"))),i().forEach((e=>e.removeAttribute("tabindex"))),r(!1)})():(()=>{o();const e=document.querySelector(".settings-links"),s=document.querySelector(".utility-header .container .flex-row");e&&s&&s.append(e),document.body.classList.remove("overflow-hidden");const a=document.querySelector(".navigation-search");a?.classList.remove("visible"),a?.classList.remove("not-visible"),a?.setAttribute("aria-hidden","false"),t().forEach((e=>e.removeAttribute("tabindex"))),n().forEach((e=>e.removeAttribute("tabindex"))),i().forEach((e=>e.removeAttribute("tabindex"))),r(!1)})()};window.addEventListener("resize",a);const l=document.querySelector(".navigation-search");l?.prepend(s),a()}));
|