var yo=Object.defineProperty;var wo=(e,t)=>{for(var r in t)yo(e,r,{get:t[r],enumerable:!0})};var ot=new Map,ae={set(e,t,r){ot.has(e)||ot.set(e,new Map);let o=ot.get(e);if(!o.has(t)&&o.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`);return}o.set(t,r)},get(e,t){return ot.has(e)&&ot.get(e).get(t)||null},remove(e,t){if(!ot.has(e))return;let r=ot.get(e);r.delete(t),r.size===0&&ot.delete(e)}};var Re="transitionend",Me=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,r)=>`#${CSS.escape(r)}`)),e),Cr=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Sr=e=>{do e+=Math.floor(Math.random()*1e6);while(document.getElementById(e));return e},xo=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:r}=window.getComputedStyle(e),o=Number.parseFloat(t),i=Number.parseFloat(r);return!o&&!i?0:(t=t.split(",")[0],r=r.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(r))*1e3)},He=e=>{e.dispatchEvent(new Event(Re))},it=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),J=e=>it(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(Me(e)):null,le=e=>{if(!it(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue("visibility")==="visible",r=e.closest("details:not([open])");if(!r)return t;if(r!==e){let o=e.closest("summary");if(o&&o.parentNode!==r||o===null)return!1}return t},Nr=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",ke=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?ke(e.parentNode):null},$e=()=>{},ce=e=>{e.offsetHeight},Ve=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ie=[],To=e=>{document.readyState==="loading"?(Ie.length||document.addEventListener("DOMContentLoaded",()=>{for(let t of Ie)t()}),Ie.push(e)):e()},At=()=>document.documentElement.dir==="rtl",nt=e=>{To(()=>{let t=Ve();if(t){let r=e.NAME,o=t.fn[r];t.fn[r]=e.jQueryInterface,t.fn[r].Constructor=e,t.fn[r].noConflict=()=>(t.fn[r]=o,e.jQueryInterface)}})},K=(e,t=[],r=e)=>typeof e=="function"?e(...t):r,Dr=(e,t,r=!0)=>{if(!r){K(e);return}let i=xo(t)+5,n=!1,s=({target:a})=>{a===t&&(n=!0,t.removeEventListener(Re,s),K(e))};t.addEventListener(Re,s),setTimeout(()=>{n||He(t)},i)},Lr=(e,t,r,o)=>{let i=e.length,n=e.indexOf(t);return n===-1?!r&&o?e[i-1]:e[0]:(n+=r?1:-1,o&&(n=(n+i)%i),e[Math.max(0,Math.min(n,i-1))])};var Ao=/[^.]*(?=\..*)\.|.*/,Oo=/\..*/,Co=/::\d+$/,je={},Pr=1,Rr={mouseenter:"mouseover",mouseleave:"mouseout"},So=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 Mr(e,t){return t&&`${t}::${Pr++}`||e.uidEvent||Pr++}function Hr(e){let t=Mr(e);return e.uidEvent=t,je[t]=je[t]||{},je[t]}function No(e,t){return function r(o){return Fe(o,{delegateTarget:e}),r.oneOff&&We.off(e,o.type,t),t.apply(e,[o])}}function Do(e,t,r){return function o(i){let n=e.querySelectorAll(t);for(let{target:s}=i;s&&s!==this;s=s.parentNode)for(let a of n)if(a===s)return Fe(i,{delegateTarget:s}),o.oneOff&&We.off(e,i.type,t,r),r.apply(s,[i])}}function kr(e,t,r=null){return Object.values(e).find(o=>o.callable===t&&o.delegationSelector===r)}function $r(e,t,r){let o=typeof t=="string",i=o?r:t||r,n=Vr(e);return So.has(n)||(n=e),[o,i,n]}function Ir(e,t,r,o,i){if(typeof t!="string"||!e)return;let[n,s,a]=$r(t,r,o);t in Rr&&(s=(b=>function(d){if(!d.relatedTarget||d.relatedTarget!==d.delegateTarget&&!d.delegateTarget.contains(d.relatedTarget))return b.call(this,d)})(s));let l=Hr(e),f=l[a]||(l[a]={}),c=kr(f,s,n?r:null);if(c){c.oneOff=c.oneOff&&i;return}let u=Mr(s,t.replace(Ao,"")),m=n?Do(e,r,s):No(e,s);m.delegationSelector=n?r:null,m.callable=s,m.oneOff=i,m.uidEvent=u,f[u]=m,e.addEventListener(a,m,n)}function Be(e,t,r,o,i){let n=kr(t[r],o,i);n&&(e.removeEventListener(r,n,!!i),delete t[r][n.uidEvent])}function Lo(e,t,r,o){let i=t[r]||{};for(let[n,s]of Object.entries(i))n.includes(o)&&Be(e,t,r,s.callable,s.delegationSelector)}function Vr(e){return e=e.replace(Oo,""),Rr[e]||e}var We={on(e,t,r,o){Ir(e,t,r,o,!1)},one(e,t,r,o){Ir(e,t,r,o,!0)},off(e,t,r,o){if(typeof t!="string"||!e)return;let[i,n,s]=$r(t,r,o),a=s!==t,l=Hr(e),f=l[s]||{},c=t.startsWith(".");if(typeof n<"u"){if(!Object.keys(f).length)return;Be(e,l,s,n,i?r:null);return}if(c)for(let u of Object.keys(l))Lo(e,l,u,t.slice(1));for(let[u,m]of Object.entries(f)){let p=u.replace(Co,"");(!a||t.includes(p))&&Be(e,l,s,m.callable,m.delegationSelector)}},trigger(e,t,r){if(typeof t!="string"||!e)return null;let o=Ve(),i=Vr(t),n=t!==i,s=null,a=!0,l=!0,f=!1;n&&o&&(s=o.Event(t,r),o(e).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),f=s.isDefaultPrevented());let c=Fe(new Event(t,{bubbles:a,cancelable:!0}),r);return f&&c.preventDefault(),l&&e.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function Fe(e,t={}){for(let[r,o]of Object.entries(t))try{e[r]=o}catch{Object.defineProperty(e,r,{configurable:!0,get(){return o}})}return e}var h=We;function jr(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function Ue(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var Po={setDataAttribute(e,t,r){e.setAttribute(`data-bs-${Ue(t)}`,r)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Ue(t)}`)},getDataAttributes(e){if(!e)return{};let t={},r=Object.keys(e.dataset).filter(o=>o.startsWith("bs")&&!o.startsWith("bsConfig"));for(let o of r){let i=o.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=jr(e.dataset[o])}return t},getDataAttribute(e,t){return jr(e.getAttribute(`data-bs-${Ue(t)}`))}},dt=Po;var ze=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,r){let o=it(r)?dt.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof o=="object"?o:{},...it(r)?dt.getDataAttributes(r):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,r=this.constructor.DefaultType){for(let[o,i]of Object.entries(r)){let n=t[o],s=it(n)?"element":Cr(n);if(!new RegExp(i).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${s}" but expected type "${i}".`)}}},Ot=ze;var Io="5.3.2",Xe=class extends Ot{constructor(t,r){super(),t=J(t),t&&(this._element=t,this._config=this._getConfig(r),ae.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ae.remove(this._element,this.constructor.DATA_KEY),h.off(this._element,this.constructor.EVENT_KEY);for(let t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,r,o=!0){Dr(t,r,o)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return ae.get(J(t),this.DATA_KEY)}static getOrCreateInstance(t,r={}){return this.getInstance(t)||new this(t,typeof r=="object"?r:null)}static get VERSION(){return Io}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}},Ct=Xe;var Ye=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let r=e.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),t=r&&r!=="#"?Me(r.trim()):null}return t},fe={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(r=>r.matches(t))},parents(e,t){let r=[],o=e.parentNode.closest(t);for(;o;)r.push(o),o=o.parentNode.closest(t);return r},prev(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return[r];r=r.previousElementSibling}return[]},next(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return[r];r=r.nextElementSibling}return[]},focusableChildren(e){let t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(r=>!Nr(r)&&le(r))},getSelectorFromElement(e){let t=Ye(e);return t&&fe.findOne(t)?t:null},getElementFromSelector(e){let t=Ye(e);return t?fe.findOne(t):null},getMultipleElementsFromSelector(e){let t=Ye(e);return t?fe.find(t):[]}},N=fe;var Ro="swipe",St=".bs.swipe",Mo=`touchstart${St}`,Ho=`touchmove${St}`,ko=`touchend${St}`,$o=`pointerdown${St}`,Vo=`pointerup${St}`,jo="touch",Bo="pen",Wo="pointer-event",Fo=40,Uo={endCallback:null,leftCallback:null,rightCallback:null},zo={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Ke=class e extends Ot{constructor(t,r){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Uo}static get DefaultType(){return zo}static get NAME(){return Ro}dispose(){h.off(this._element,St)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),K(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){let t=Math.abs(this._deltaX);if(t<=Fo)return;let r=t/this._deltaX;this._deltaX=0,r&&K(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(h.on(this._element,$o,t=>this._start(t)),h.on(this._element,Vo,t=>this._end(t)),this._element.classList.add(Wo)):(h.on(this._element,Mo,t=>this._start(t)),h.on(this._element,Ho,t=>this._move(t)),h.on(this._element,ko,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Bo||t.pointerType===jo)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},qe=Ke;var Xo="carousel",Yo="bs.carousel",st=`.${Yo}`,Br=".data-api",Ko="ArrowLeft",qo="ArrowRight",Go=500,Ft="next",Nt="prev",Dt="left",ue="right",Qo=`slide${st}`,Ge=`slid${st}`,Jo=`keydown${st}`,Zo=`mouseenter${st}`,ti=`mouseleave${st}`,ei=`dragstart${st}`,ri=`load${st}${Br}`,oi=`click${st}${Br}`,Wr="carousel",pe="active",ii="slide",ni="carousel-item-end",si="carousel-item-start",ai="carousel-item-next",li="carousel-item-prev",Fr=".active",Ur=".carousel-item",ci=Fr+Ur,fi=".carousel-item img",pi=".carousel-indicators",ui="[data-bs-slide], [data-bs-slide-to]",mi='[data-bs-ride="carousel"]',di={[Ko]:ue,[qo]:Dt},hi={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},gi={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},Lt=class e extends Ct{constructor(t,r){super(t,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=N.findOne(pi,this._element),this._addEventListeners(),this._config.ride===Wr&&this.cycle()}static get Default(){return hi}static get DefaultType(){return gi}static get NAME(){return Xo}next(){this._slide(Ft)}nextWhenVisible(){!document.hidden&&le(this._element)&&this.next()}prev(){this._slide(Nt)}pause(){this._isSliding&&He(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){h.one(this._element,Ge,()=>this.cycle());return}this.cycle()}}to(t){let r=this._getItems();if(t>r.length-1||t<0)return;if(this._isSliding){h.one(this._element,Ge,()=>this.to(t));return}let o=this._getItemIndex(this._getActive());if(o===t)return;let i=t>o?Ft:Nt;this._slide(i,r[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&h.on(this._element,Jo,t=>this._keydown(t)),this._config.pause==="hover"&&(h.on(this._element,Zo,()=>this.pause()),h.on(this._element,ti,()=>this._maybeEnableCycle())),this._config.touch&&qe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let o of N.find(fi,this._element))h.on(o,ei,i=>i.preventDefault());let r={leftCallback:()=>this._slide(this._directionToOrder(Dt)),rightCallback:()=>this._slide(this._directionToOrder(ue)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Go+this._config.interval))}};this._swipeHelper=new qe(this._element,r)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let r=di[t.key];r&&(t.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;let r=N.findOne(Fr,this._indicatorsElement);r.classList.remove(pe),r.removeAttribute("aria-current");let o=N.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);o&&(o.classList.add(pe),o.setAttribute("aria-current","true"))}_updateInterval(){let t=this._activeElement||this._getActive();if(!t)return;let r=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(t,r=null){if(this._isSliding)return;let o=this._getActive(),i=t===Ft,n=r||Lr(this._getItems(),o,i,this._config.wrap);if(n===o)return;let s=this._getItemIndex(n),a=p=>h.trigger(this._element,p,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(o),to:s});if(a(Qo).defaultPrevented||!o||!n)return;let f=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=n;let c=i?si:ni,u=i?ai:li;n.classList.add(u),ce(n),o.classList.add(c),n.classList.add(c);let m=()=>{n.classList.remove(c,u),n.classList.add(pe),o.classList.remove(pe,u,c),this._isSliding=!1,a(Ge)};this._queueCallback(m,o,this._isAnimated()),f&&this.cycle()}_isAnimated(){return this._element.classList.contains(ii)}_getActive(){return N.findOne(ci,this._element)}_getItems(){return N.find(Ur,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return At()?t===Dt?Nt:Ft:t===Dt?Ft:Nt}_orderToDirection(t){return At()?t===Nt?Dt:ue:t===Nt?ue:Dt}static jQueryInterface(t){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t=="number"){r.to(t);return}if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t]()}})}};h.on(document,oi,ui,function(e){let t=N.getElementFromSelector(this);if(!t||!t.classList.contains(Wr))return;e.preventDefault();let r=Lt.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");if(o){r.to(o),r._maybeEnableCycle();return}if(dt.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()});h.on(window,ri,()=>{let e=N.find(mi);for(let t of e)Lt.getOrCreateInstance(t)});nt(Lt);var vi=Lt;var _i="collapse",Ei="bs.collapse",zt=`.${Ei}`,bi=".data-api",yi=`show${zt}`,wi=`shown${zt}`,xi=`hide${zt}`,Ti=`hidden${zt}`,Ai=`click${zt}${bi}`,Qe="show",Pt="collapse",me="collapsing",Oi="collapsed",Ci=`:scope .${Pt} .${Pt}`,Si="collapse-horizontal",Ni="width",Di="height",Li=".collapse.show, .collapse.collapsing",Je='[data-bs-toggle="collapse"]',Pi={parent:null,toggle:!0},Ii={parent:"(null|element)",toggle:"boolean"},Ut=class e extends Ct{constructor(t,r){super(t,r),this._isTransitioning=!1,this._triggerArray=[];let o=N.find(Je);for(let i of o){let n=N.getSelectorFromElement(i),s=N.find(n).filter(a=>a===this._element);n!==null&&s.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Pi}static get DefaultType(){return Ii}static get NAME(){return _i}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Li).filter(a=>a!==this._element).map(a=>e.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||h.trigger(this._element,yi).defaultPrevented)return;for(let a of t)a.hide();let o=this._getDimension();this._element.classList.remove(Pt),this._element.classList.add(me),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let i=()=>{this._isTransitioning=!1,this._element.classList.remove(me),this._element.classList.add(Pt,Qe),this._element.style[o]="",h.trigger(this._element,wi)},s=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[o]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||h.trigger(this._element,xi).defaultPrevented)return;let r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,ce(this._element),this._element.classList.add(me),this._element.classList.remove(Pt,Qe);for(let i of this._triggerArray){let n=N.getElementFromSelector(i);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;let o=()=>{this._isTransitioning=!1,this._element.classList.remove(me),this._element.classList.add(Pt),h.trigger(this._element,Ti)};this._element.style[r]="",this._queueCallback(o,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Qe)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=J(t.parent),t}_getDimension(){return this._element.classList.contains(Si)?Ni:Di}_initializeChildren(){if(!this._config.parent)return;let t=this._getFirstLevelChildren(Je);for(let r of t){let o=N.getElementFromSelector(r);o&&this._addAriaAndCollapsedClass([r],this._isShown(o))}}_getFirstLevelChildren(t){let r=N.find(Ci,this._config.parent);return N.find(t,this._config.parent).filter(o=>!r.includes(o))}_addAriaAndCollapsedClass(t,r){if(t.length)for(let o of t)o.classList.toggle(Oi,!r),o.setAttribute("aria-expanded",r)}static jQueryInterface(t){let r={};return typeof t=="string"&&/show|hide/.test(t)&&(r.toggle=!1),this.each(function(){let o=e.getOrCreateInstance(this,r);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}};h.on(document,Ai,Je,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(let t of N.getMultipleElementsFromSelector(this))Ut.getOrCreateInstance(t,{toggle:!1}).toggle()});nt(Ut);var Ri=Ut;import"@typo3/backend/dropdown.js";var dr={};wo(dr,{afterMain:()=>Gr,afterRead:()=>Yr,afterWrite:()=>Zr,applyStyles:()=>Rt,arrow:()=>he,auto:()=>Xt,basePlacements:()=>Z,beforeMain:()=>Kr,beforeRead:()=>zr,beforeWrite:()=>Qr,bottom:()=>D,clippingParents:()=>Ze,computeStyles:()=>Ht,createPopper:()=>xe,createPopperBase:()=>lo,createPopperLite:()=>co,detectOverflow:()=>B,end:()=>at,eventListeners:()=>kt,flip:()=>Ee,hide:()=>be,left:()=>A,main:()=>qr,modifierPhases:()=>er,offset:()=>ye,placements:()=>Kt,popper:()=>ht,popperGenerator:()=>xt,popperOffsets:()=>jt,preventOverflow:()=>we,read:()=>Xr,reference:()=>tr,right:()=>S,start:()=>Q,top:()=>x,variationPlacements:()=>de,viewport:()=>Yt,write:()=>Jr});var x="top",D="bottom",S="right",A="left",Xt="auto",Z=[x,D,S,A],Q="start",at="end",Ze="clippingParents",Yt="viewport",ht="popper",tr="reference",de=Z.reduce(function(e,t){return e.concat([t+"-"+Q,t+"-"+at])},[]),Kt=[].concat(Z,[Xt]).reduce(function(e,t){return e.concat([t,t+"-"+Q,t+"-"+at])},[]),zr="beforeRead",Xr="read",Yr="afterRead",Kr="beforeMain",qr="main",Gr="afterMain",Qr="beforeWrite",Jr="write",Zr="afterWrite",er=[zr,Xr,Yr,Kr,qr,Gr,Qr,Jr,Zr];function R(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function F(e){var t=w(e).Element;return e instanceof t||e instanceof Element}function P(e){var t=w(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function It(e){if(typeof ShadowRoot>"u")return!1;var t=w(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mi(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},i=t.attributes[r]||{},n=t.elements[r];!P(n)||!R(n)||(Object.assign(n.style,o),Object.keys(i).forEach(function(s){var a=i[s];a===!1?n.removeAttribute(s):n.setAttribute(s,a===!0?"":a)}))})}function Hi(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var i=t.elements[o],n=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),a=s.reduce(function(l,f){return l[f]="",l},{});!P(i)||!R(i)||(Object.assign(i.style,a),Object.keys(n).forEach(function(l){i.removeAttribute(l)}))})}}var Rt={name:"applyStyles",enabled:!0,phase:"write",fn:Mi,effect:Hi,requires:["computeStyles"]};function M(e){return e.split("-")[0]}var q=Math.max,gt=Math.min,tt=Math.round;function Mt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qt(){return!/^((?!chrome|android).)*safari/i.test(Mt())}function U(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),i=1,n=1;t&&P(e)&&(i=e.offsetWidth>0&&tt(o.width)/e.offsetWidth||1,n=e.offsetHeight>0&&tt(o.height)/e.offsetHeight||1);var s=F(e)?w(e):window,a=s.visualViewport,l=!qt()&&r,f=(o.left+(l&&a?a.offsetLeft:0))/i,c=(o.top+(l&&a?a.offsetTop:0))/n,u=o.width/i,m=o.height/n;return{width:u,height:m,top:c,right:f+u,bottom:c+m,left:f,x:f,y:c}}function vt(e){var t=U(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Gt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&It(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function j(e){return w(e).getComputedStyle(e)}function rr(e){return["table","td","th"].indexOf(R(e))>=0}function k(e){return((F(e)?e.ownerDocument:e.document)||window.document).documentElement}function et(e){return R(e)==="html"?e:e.assignedSlot||e.parentNode||(It(e)?e.host:null)||k(e)}function to(e){return!P(e)||j(e).position==="fixed"?null:e.offsetParent}function ki(e){var t=/firefox/i.test(Mt()),r=/Trident/i.test(Mt());if(r&&P(e)){var o=j(e);if(o.position==="fixed")return null}var i=et(e);for(It(i)&&(i=i.host);P(i)&&["html","body"].indexOf(R(i))<0;){var n=j(i);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return i;i=i.parentNode}return null}function G(e){for(var t=w(e),r=to(e);r&&rr(r)&&j(r).position==="static";)r=to(r);return r&&(R(r)==="html"||R(r)==="body"&&j(r).position==="static")?t:r||ki(e)||t}function _t(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Et(e,t,r){return q(e,gt(t,r))}function eo(e,t,r){var o=Et(e,t,r);return o>r?r:o}function Qt(){return{top:0,right:0,bottom:0,left:0}}function Jt(e){return Object.assign({},Qt(),e)}function Zt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var $i=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Jt(typeof t!="number"?t:Zt(t,Z))};function Vi(e){var t,r=e.state,o=e.name,i=e.options,n=r.elements.arrow,s=r.modifiersData.popperOffsets,a=M(r.placement),l=_t(a),f=[A,S].indexOf(a)>=0,c=f?"height":"width";if(!(!n||!s)){var u=$i(i.padding,r),m=vt(n),p=l==="y"?x:A,b=l==="y"?D:S,d=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],v=s[l]-r.rects.reference[l],y=G(n),O=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,C=d/2-v/2,g=u[p],_=O-m[c]-u[b],E=O/2-m[c]/2+C,T=Et(g,E,_),H=l;r.modifiersData[o]=(t={},t[H]=T,t.centerOffset=T-E,t)}}function ji(e){var t=e.state,r=e.options,o=r.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Gt(t.elements.popper,i)&&(t.elements.arrow=i))}var he={name:"arrow",enabled:!0,phase:"main",fn:Vi,effect:ji,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function z(e){return e.split("-")[1]}var Bi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wi(e,t){var r=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:tt(r*i)/i||0,y:tt(o*i)/i||0}}function ro(e){var t,r=e.popper,o=e.popperRect,i=e.placement,n=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,f=e.adaptive,c=e.roundOffsets,u=e.isFixed,m=s.x,p=m===void 0?0:m,b=s.y,d=b===void 0?0:b,v=typeof c=="function"?c({x:p,y:d}):{x:p,y:d};p=v.x,d=v.y;var y=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),C=A,g=x,_=window;if(f){var E=G(r),T="clientHeight",H="clientWidth";if(E===w(r)&&(E=k(r),j(E).position!=="static"&&a==="absolute"&&(T="scrollHeight",H="scrollWidth")),E=E,i===x||(i===A||i===S)&&n===at){g=D;var I=u&&E===_&&_.visualViewport?_.visualViewport.height:E[T];d-=I-o.height,d*=l?1:-1}if(i===A||(i===x||i===D)&&n===at){C=S;var L=u&&E===_&&_.visualViewport?_.visualViewport.width:E[H];p-=L-o.width,p*=l?1:-1}}var $=Object.assign({position:a},f&&Bi),X=c===!0?Wi({x:p,y:d},w(r)):{x:p,y:d};if(p=X.x,d=X.y,l){var V;return Object.assign({},$,(V={},V[g]=O?"0":"",V[C]=y?"0":"",V.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",V))}return Object.assign({},$,(t={},t[g]=O?d+"px":"",t[C]=y?p+"px":"",t.transform="",t))}function Fi(e){var t=e.state,r=e.options,o=r.gpuAcceleration,i=o===void 0?!0:o,n=r.adaptive,s=n===void 0?!0:n,a=r.roundOffsets,l=a===void 0?!0:a,f={placement:M(t.placement),variation:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ro(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ro(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fi,data:{}};var ge={passive:!0};function Ui(e){var t=e.state,r=e.instance,o=e.options,i=o.scroll,n=i===void 0?!0:i,s=o.resize,a=s===void 0?!0:s,l=w(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&f.forEach(function(c){c.addEventListener("scroll",r.update,ge)}),a&&l.addEventListener("resize",r.update,ge),function(){n&&f.forEach(function(c){c.removeEventListener("scroll",r.update,ge)}),a&&l.removeEventListener("resize",r.update,ge)}}var kt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ui,data:{}};var zi={left:"right",right:"left",bottom:"top",top:"bottom"};function $t(e){return e.replace(/left|right|bottom|top/g,function(t){return zi[t]})}var Xi={start:"end",end:"start"};function ve(e){return e.replace(/start|end/g,function(t){return Xi[t]})}function bt(e){var t=w(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function yt(e){return U(k(e)).left+bt(e).scrollLeft}function or(e,t){var r=w(e),o=k(e),i=r.visualViewport,n=o.clientWidth,s=o.clientHeight,a=0,l=0;if(i){n=i.width,s=i.height;var f=qt();(f||!f&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:n,height:s,x:a+yt(e),y:l}}function ir(e){var t,r=k(e),o=bt(e),i=(t=e.ownerDocument)==null?void 0:t.body,n=q(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=q(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-o.scrollLeft+yt(e),l=-o.scrollTop;return j(i||r).direction==="rtl"&&(a+=q(r.clientWidth,i?i.clientWidth:0)-n),{width:n,height:s,x:a,y:l}}function wt(e){var t=j(e),r=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+o)}function _e(e){return["html","body","#document"].indexOf(R(e))>=0?e.ownerDocument.body:P(e)&&wt(e)?e:_e(et(e))}function lt(e,t){var r;t===void 0&&(t=[]);var o=_e(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),n=w(o),s=i?[n].concat(n.visualViewport||[],wt(o)?o:[]):o,a=t.concat(s);return i?a:a.concat(lt(et(s)))}function Vt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yi(e,t){var r=U(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function oo(e,t,r){return t===Yt?Vt(or(e,r)):F(t)?Yi(t,r):Vt(ir(k(e)))}function Ki(e){var t=lt(et(e)),r=["absolute","fixed"].indexOf(j(e).position)>=0,o=r&&P(e)?G(e):e;return F(o)?t.filter(function(i){return F(i)&&Gt(i,o)&&R(i)!=="body"}):[]}function nr(e,t,r,o){var i=t==="clippingParents"?Ki(e):[].concat(t),n=[].concat(i,[r]),s=n[0],a=n.reduce(function(l,f){var c=oo(e,f,o);return l.top=q(c.top,l.top),l.right=gt(c.right,l.right),l.bottom=gt(c.bottom,l.bottom),l.left=q(c.left,l.left),l},oo(e,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function te(e){var t=e.reference,r=e.element,o=e.placement,i=o?M(o):null,n=o?z(o):null,s=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(i){case x:l={x:s,y:t.y-r.height};break;case D:l={x:s,y:t.y+t.height};break;case S:l={x:t.x+t.width,y:a};break;case A:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var f=i?_t(i):null;if(f!=null){var c=f==="y"?"height":"width";switch(n){case Q:l[f]=l[f]-(t[c]/2-r[c]/2);break;case at:l[f]=l[f]+(t[c]/2-r[c]/2);break;default:}}return l}function B(e,t){t===void 0&&(t={});var r=t,o=r.placement,i=o===void 0?e.placement:o,n=r.strategy,s=n===void 0?e.strategy:n,a=r.boundary,l=a===void 0?Ze:a,f=r.rootBoundary,c=f===void 0?Yt:f,u=r.elementContext,m=u===void 0?ht:u,p=r.altBoundary,b=p===void 0?!1:p,d=r.padding,v=d===void 0?0:d,y=Jt(typeof v!="number"?v:Zt(v,Z)),O=m===ht?tr:ht,C=e.rects.popper,g=e.elements[b?O:m],_=nr(F(g)?g:g.contextElement||k(e.elements.popper),l,c,s),E=U(e.elements.reference),T=te({reference:E,element:C,strategy:"absolute",placement:i}),H=Vt(Object.assign({},C,T)),I=m===ht?H:E,L={top:_.top-I.top+y.top,bottom:I.bottom-_.bottom+y.bottom,left:_.left-I.left+y.left,right:I.right-_.right+y.right},$=e.modifiersData.offset;if(m===ht&&$){var X=$[i];Object.keys(L).forEach(function(V){var ct=[S,D].indexOf(V)>=0?1:-1,ft=[x,D].indexOf(V)>=0?"y":"x";L[V]+=X[ft]*ct})}return L}function sr(e,t){t===void 0&&(t={});var r=t,o=r.placement,i=r.boundary,n=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,f=l===void 0?Kt:l,c=z(o),u=c?a?de:de.filter(function(b){return z(b)===c}):Z,m=u.filter(function(b){return f.indexOf(b)>=0});m.length===0&&(m=u);var p=m.reduce(function(b,d){return b[d]=B(e,{placement:d,boundary:i,rootBoundary:n,padding:s})[M(d)],b},{});return Object.keys(p).sort(function(b,d){return p[b]-p[d]})}function qi(e){if(M(e)===Xt)return[];var t=$t(e);return[ve(e),t,ve(t)]}function Gi(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=r.mainAxis,n=i===void 0?!0:i,s=r.altAxis,a=s===void 0?!0:s,l=r.fallbackPlacements,f=r.padding,c=r.boundary,u=r.rootBoundary,m=r.altBoundary,p=r.flipVariations,b=p===void 0?!0:p,d=r.allowedAutoPlacements,v=t.options.placement,y=M(v),O=y===v,C=l||(O||!b?[$t(v)]:qi(v)),g=[v].concat(C).reduce(function(Tt,rt){return Tt.concat(M(rt)===Xt?sr(t,{placement:rt,boundary:c,rootBoundary:u,padding:f,flipVariations:b,allowedAutoPlacements:d}):rt)},[]),_=t.rects.reference,E=t.rects.popper,T=new Map,H=!0,I=g[0],L=0;L=0,ft=ct?"width":"height",W=B(t,{placement:$,boundary:c,rootBoundary:u,altBoundary:m,padding:f}),Y=ct?V?S:A:V?D:x;_[ft]>E[ft]&&(Y=$t(Y));var re=$t(Y),pt=[];if(n&&pt.push(W[X]<=0),a&&pt.push(W[Y]<=0,W[re]<=0),pt.every(function(Tt){return Tt})){I=$,H=!1;break}T.set($,pt)}if(H)for(var oe=b?3:1,Ne=function(rt){var Wt=g.find(function(ne){var ut=T.get(ne);if(ut)return ut.slice(0,rt).every(function(De){return De})});if(Wt)return I=Wt,"break"},Bt=oe;Bt>0;Bt--){var ie=Ne(Bt);if(ie==="break")break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}}var Ee={name:"flip",enabled:!0,phase:"main",fn:Gi,requiresIfExists:["offset"],data:{_skip:!1}};function io(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function no(e){return[x,S,D,A].some(function(t){return e[t]>=0})}function Qi(e){var t=e.state,r=e.name,o=t.rects.reference,i=t.rects.popper,n=t.modifiersData.preventOverflow,s=B(t,{elementContext:"reference"}),a=B(t,{altBoundary:!0}),l=io(s,o),f=io(a,i,n),c=no(l),u=no(f);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:c,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}var be={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qi};function Ji(e,t,r){var o=M(e),i=[A,x].indexOf(o)>=0?-1:1,n=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=n[0],a=n[1];return s=s||0,a=(a||0)*i,[A,S].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}function Zi(e){var t=e.state,r=e.options,o=e.name,i=r.offset,n=i===void 0?[0,0]:i,s=Kt.reduce(function(c,u){return c[u]=Ji(u,t.rects,n),c},{}),a=s[t.placement],l=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=s}var ye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zi};function tn(e){var t=e.state,r=e.name;t.modifiersData[r]=te({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var jt={name:"popperOffsets",enabled:!0,phase:"read",fn:tn,data:{}};function ar(e){return e==="x"?"y":"x"}function en(e){var t=e.state,r=e.options,o=e.name,i=r.mainAxis,n=i===void 0?!0:i,s=r.altAxis,a=s===void 0?!1:s,l=r.boundary,f=r.rootBoundary,c=r.altBoundary,u=r.padding,m=r.tether,p=m===void 0?!0:m,b=r.tetherOffset,d=b===void 0?0:b,v=B(t,{boundary:l,rootBoundary:f,padding:u,altBoundary:c}),y=M(t.placement),O=z(t.placement),C=!O,g=_t(y),_=ar(g),E=t.modifiersData.popperOffsets,T=t.rects.reference,H=t.rects.popper,I=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,L=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,X={x:0,y:0};if(E){if(n){var V,ct=g==="y"?x:A,ft=g==="y"?D:S,W=g==="y"?"height":"width",Y=E[g],re=Y+v[ct],pt=Y-v[ft],oe=p?-H[W]/2:0,Ne=O===Q?T[W]:H[W],Bt=O===Q?-H[W]:-T[W],ie=t.elements.arrow,Tt=p&&ie?vt(ie):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qt(),Wt=rt[ct],ne=rt[ft],ut=Et(0,T[W],Tt[W]),De=C?T[W]/2-oe-ut-Wt-L.mainAxis:Ne-ut-Wt-L.mainAxis,ho=C?-T[W]/2+oe+ut+ne+L.mainAxis:Bt+ut+ne+L.mainAxis,Le=t.elements.arrow&&G(t.elements.arrow),go=Le?g==="y"?Le.clientTop||0:Le.clientLeft||0:0,_r=(V=$?.[g])!=null?V:0,vo=Y+De-_r-go,_o=Y+ho-_r,Er=Et(p?gt(re,vo):re,Y,p?q(pt,_o):pt);E[g]=Er,X[g]=Er-Y}if(a){var br,Eo=g==="x"?x:A,bo=g==="x"?D:S,mt=E[_],se=_==="y"?"height":"width",yr=mt+v[Eo],wr=mt-v[bo],Pe=[x,A].indexOf(y)!==-1,xr=(br=$?.[_])!=null?br:0,Tr=Pe?yr:mt-T[se]-H[se]-xr+L.altAxis,Ar=Pe?mt+T[se]+H[se]-xr-L.altAxis:wr,Or=p&&Pe?eo(Tr,mt,Ar):Et(p?Tr:yr,mt,p?Ar:wr);E[_]=Or,X[_]=Or-mt}t.modifiersData[o]=X}}var we={name:"preventOverflow",enabled:!0,phase:"main",fn:en,requiresIfExists:["offset"]};function lr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cr(e){return e===w(e)||!P(e)?bt(e):lr(e)}function rn(e){var t=e.getBoundingClientRect(),r=tt(t.width)/e.offsetWidth||1,o=tt(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fr(e,t,r){r===void 0&&(r=!1);var o=P(t),i=P(t)&&rn(t),n=k(t),s=U(e,i,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((R(t)!=="body"||wt(n))&&(a=cr(t)),P(t)?(l=U(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):n&&(l.x=yt(n))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function on(e){var t=new Map,r=new Set,o=[];e.forEach(function(n){t.set(n.name,n)});function i(n){r.add(n.name);var s=[].concat(n.requires||[],n.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var l=t.get(a);l&&i(l)}}),o.push(n)}return e.forEach(function(n){r.has(n.name)||i(n)}),o}function pr(e){var t=on(e);return er.reduce(function(r,o){return r.concat(t.filter(function(i){return i.phase===o}))},[])}function ur(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mr(e){var t=e.reduce(function(r,o){var i=r[o.name];return r[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var so={placement:"bottom",modifiers:[],strategy:"absolute"};function ao(){for(var e=arguments.length,t=new Array(e),r=0;r{let r=e.nodeName.toLowerCase();return t.includes(r)?ln.has(r)?!!cn.test(e.nodeValue):!0:t.filter(o=>o instanceof RegExp).some(o=>o.test(r))};function fo(e,t,r){if(!e.length)return e;if(r&&typeof r=="function")return r(e);let i=new window.DOMParser().parseFromString(e,"text/html"),n=[].concat(...i.body.querySelectorAll("*"));for(let s of n){let a=s.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){s.remove();continue}let l=[].concat(...s.attributes),f=[].concat(t["*"]||[],t[a]||[]);for(let c of l)fn(c,f)||s.removeAttribute(c.nodeName)}return i.body.innerHTML}var pn="TemplateFactory",un={allowList:Te,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},mn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},dn={entry:"(string|element|function|null)",selector:"(string|element)"},hr=class extends Ot{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return un}static get DefaultType(){return mn}static get NAME(){return pn}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){let t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(let[i,n]of Object.entries(this._config.content))this._setContent(t,n,i);let r=t.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&r.classList.add(...o.split(" ")),r}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(let[r,o]of Object.entries(t))super._typeCheckConfig({selector:r,entry:o},dn)}_setContent(t,r,o){let i=N.findOne(o,t);if(i){if(r=this._resolvePossibleFunction(r),!r){i.remove();return}if(it(r)){this._putElementInTemplate(J(r),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(r);return}i.textContent=r}}_maybeSanitize(t){return this._config.sanitize?fo(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return K(t,[this])}_putElementInTemplate(t,r){if(this._config.html){r.innerHTML="",r.append(t);return}r.textContent=t.textContent}},po=hr;var hn="tooltip",gn=new Set(["sanitize","allowList","sanitizeFn"]),gr="fade",vn="modal",Ae="show",_n=".tooltip-inner",uo=`.${vn}`,mo="hide.bs.modal",ee="hover",vr="focus",En="click",bn="manual",yn="hide",wn="hidden",xn="show",Tn="shown",An="inserted",On="click",Cn="focusin",Sn="focusout",Nn="mouseenter",Dn="mouseleave",Ln={AUTO:"auto",TOP:"top",RIGHT:At()?"left":"right",BOTTOM:"bottom",LEFT:At()?"right":"left"},Pn={allowList:Te,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},In={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"},Oe=class e extends Ct{constructor(t,r){if(typeof dr>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Pn}static get DefaultType(){return In}static get NAME(){return hn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),h.off(this._element.closest(uo),mo,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let t=h.trigger(this._element,this.constructor.eventName(xn)),o=(ke(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();let i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));let{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),h.trigger(this._element,this.constructor.eventName(An))),this._popper=this._createPopper(i),i.classList.add(Ae),"ontouchstart"in document.documentElement)for(let a of[].concat(...document.body.children))h.on(a,"mouseover",$e);let s=()=>{h.trigger(this._element,this.constructor.eventName(Tn)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||h.trigger(this._element,this.constructor.eventName(yn)).defaultPrevented)return;if(this._getTipElement().classList.remove(Ae),"ontouchstart"in document.documentElement)for(let i of[].concat(...document.body.children))h.off(i,"mouseover",$e);this._activeTrigger[En]=!1,this._activeTrigger[vr]=!1,this._activeTrigger[ee]=!1,this._isHovered=null;let o=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),h.trigger(this._element,this.constructor.eventName(wn)))};this._queueCallback(o,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){let r=this._getTemplateFactory(t).toHtml();if(!r)return null;r.classList.remove(gr,Ae),r.classList.add(`bs-${this.constructor.NAME}-auto`);let o=Sr(this.constructor.NAME).toString();return r.setAttribute("id",o),this._isAnimated()&&r.classList.add(gr),r}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new po({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[_n]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(gr)}_isShown(){return this.tip&&this.tip.classList.contains(Ae)}_createPopper(t){let r=K(this._config.placement,[this,t,this._element]),o=Ln[r.toUpperCase()];return xe(this._element,t,this._getPopperConfig(o))}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(r=>Number.parseInt(r,10)):typeof t=="function"?r=>t(r,this._element):t}_resolvePossibleFunction(t){return K(t,[this._element])}_getPopperConfig(t){let r={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:o=>{this._getTipElement().setAttribute("data-popper-placement",o.state.placement)}}]};return{...r,...K(this._config.popperConfig,[r])}}_setListeners(){let t=this._config.trigger.split(" ");for(let r of t)if(r==="click")h.on(this._element,this.constructor.eventName(On),this._config.selector,o=>{this._initializeOnDelegatedTarget(o).toggle()});else if(r!==bn){let o=r===ee?this.constructor.eventName(Nn):this.constructor.eventName(Cn),i=r===ee?this.constructor.eventName(Dn):this.constructor.eventName(Sn);h.on(this._element,o,this._config.selector,n=>{let s=this._initializeOnDelegatedTarget(n);s._activeTrigger[n.type==="focusin"?vr:ee]=!0,s._enter()}),h.on(this._element,i,this._config.selector,n=>{let s=this._initializeOnDelegatedTarget(n);s._activeTrigger[n.type==="focusout"?vr:ee]=s._element.contains(n.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},h.on(this._element.closest(uo),mo,this._hideModalHandler)}_fixTitle(){let t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,r){clearTimeout(this._timeout),this._timeout=setTimeout(t,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){let r=dt.getDataAttributes(this._element);for(let o of Object.keys(r))gn.has(o)&&delete r[o];return t={...r,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:J(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){let t={};for(let[r,o]of Object.entries(this._config))this.constructor.Default[r]!==o&&(t[r]=o);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}};nt(Oe);var Ce=Oe;var Rn="popover",Mn=".popover-header",Hn=".popover-body",kn={...Ce.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},$n={...Ce.DefaultType,content:"(null|string|element|function)"},Se=class e extends Ce{static get Default(){return kn}static get DefaultType(){return $n}static get NAME(){return Rn}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Mn]:this._getTitle(),[Hn]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}};nt(Se);var Vn=Se;import"@typo3/backend/tab.js";export{vi as Carousel,Ri as Collapse,Vn as Popover};