const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/flatpickr-CveviJq_.css","assets/it-BEI7TRAN.mjs","assets/rolldown-runtime-B0Z9INg1.mjs","assets/fr-B3illgT6.mjs","assets/leaflet-src-Ue0YynTc.mjs","assets/leaflet-vh-t_kPv.css"])))=>i.map(i=>d[i]); import{a as e,i as t,n,r,t as i}from"./rolldown-runtime-B0Z9INg1.mjs";/* empty css */var a=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.Data=r())})(e,(function(){let e=new Map;return{set(t,n,r){e.has(t)||e.set(t,new Map);let i=e.get(t);if(!i.has(n)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(n,r)},get(t,n){return e.has(t)&&e.get(t).get(n)||null},remove(t,n){if(!e.has(t))return;let r=e.get(t);r.delete(n),r.size===0&&e.delete(t)}}}))})),o=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.Index={}))})(e,(function(e){let t=`transitionend`,n=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),r=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),i=e=>{do e+=Math.floor(Math.random()*1e6);while(document.getElementById(e));return e},a=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*1e3)},o=e=>{e.dispatchEvent(new Event(t))},s=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),c=e=>s(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(n(e)):null,l=e=>{if(!s(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},u=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,d=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?d(e.parentNode):null},f=()=>{},p=e=>{e.offsetHeight},m=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,h=[],g=e=>{document.readyState===`loading`?(h.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of h)e()}),h.push(e)):e()},_=()=>document.documentElement.dir===`rtl`,v=e=>{g(()=>{let t=m();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},y=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n;e.defineJQueryPlugin=v,e.execute=y,e.executeAfterTransition=(e,n,r=!0)=>{if(!r){y(e);return}let i=a(n)+5,s=!1,c=({target:r})=>{r===n&&(s=!0,n.removeEventListener(t,c),y(e))};n.addEventListener(t,c),setTimeout(()=>{s||o(n)},i)},e.findShadowRoot=d,e.getElement=c,e.getNextActiveElement=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},e.getTransitionDurationFromElement=a,e.getUID=i,e.getjQuery=m,e.isDisabled=u,e.isElement=s,e.isRTL=_,e.isVisible=l,e.noop=f,e.onDOMContentLoaded=g,e.parseSelector=n,e.reflow=p,e.toType=r,e.triggerTransitionEnd=o,Object.defineProperty(e,Symbol.toStringTag,{value:`Module`})}))})),s=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(o()):typeof define==`function`&&define.amd?define([`../util/index`],r):(n=typeof globalThis<`u`?globalThis:n||self,n.EventHandler=r(n.Index))})(e,(function(e){let t=/[^.]*(?=\..*)\.|.*/,n=/\..*/,r=/::\d+$/,i={},a=1,o={mouseenter:`mouseover`,mouseleave:`mouseout`},s=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function c(e,t){return t&&`${t}::${a++}`||e.uidEvent||a++}function l(e){let t=c(e);return e.uidEvent=t,i[t]=i[t]||{},i[t]}function u(e,t){return function n(r){return y(r,{delegateTarget:e}),n.oneOff&&v.off(e,r.type,t),t.apply(e,[r])}}function d(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return y(i,{delegateTarget:o}),r.oneOff&&v.off(e,i.type,t,n),n.apply(o,[i])}}function f(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function p(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=_(e);return s.has(a)||(a=e),[r,i,a]}function m(e,n,r,i,a){if(typeof n!=`string`||!e)return;let[s,m,h]=p(n,r,i);n in o&&(m=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(m));let g=l(e),_=g[h]||(g[h]={}),v=f(_,m,s?r:null);if(v){v.oneOff=v.oneOff&&a;return}let y=c(m,n.replace(t,``)),b=s?d(e,r,m):u(e,m);b.delegationSelector=s?r:null,b.callable=m,b.oneOff=a,b.uidEvent=y,_[y]=b,e.addEventListener(h,b,s)}function h(e,t,n,r,i){let a=f(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function g(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&h(e,t,n,o.callable,o.delegationSelector)}function _(e){return e=e.replace(n,``),o[e]||e}let v={on(e,t,n,r){m(e,t,n,r,!1)},one(e,t,n,r){m(e,t,n,r,!0)},off(e,t,n,i){if(typeof t!=`string`||!e)return;let[a,o,s]=p(t,n,i),c=s!==t,u=l(e),d=u[s]||{},f=t.startsWith(`.`);if(o!==void 0){if(!Object.keys(d).length)return;h(e,u,s,o,a?n:null);return}if(f)for(let n of Object.keys(u))g(e,u,n,t.slice(1));for(let[n,i]of Object.entries(d)){let a=n.replace(r,``);(!c||t.includes(a))&&h(e,u,s,i.callable,i.delegationSelector)}},trigger(t,n,r){if(typeof n!=`string`||!t)return null;let i=e.getjQuery(),a=n!==_(n),o=null,s=!0,c=!0,l=!1;a&&i&&(o=i.Event(n,r),i(t).trigger(o),s=!o.isPropagationStopped(),c=!o.isImmediatePropagationStopped(),l=o.isDefaultPrevented());let u=y(new Event(n,{bubbles:s,cancelable:!0}),r);return l&&u.preventDefault(),c&&t.dispatchEvent(u),u.defaultPrevented&&o&&o.preventDefault(),u}};function y(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}return v}))})),c=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.Manipulator=r())})(e,(function(){function e(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 t(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}return{setDataAttribute(e,n,r){e.setAttribute(`data-bs-${t(n)}`,r)},removeDataAttribute(e,n){e.removeAttribute(`data-bs-${t(n)}`)},getDataAttributes(t){if(!t)return{};let n={},r=Object.keys(t.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let i of r){let r=i.replace(/^bs/,``);r=r.charAt(0).toLowerCase()+r.slice(1),n[r]=e(t.dataset[i])}return n},getDataAttribute(n,r){return e(n.getAttribute(`data-bs-${t(r)}`))}}}))})),l=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(c(),o()):typeof define==`function`&&define.amd?define([`../dom/manipulator`,`./index`],r):(n=typeof globalThis<`u`?globalThis:n||self,n.Config=r(n.Manipulator,n.Index))})(e,(function(e,t){class n{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(n,r){let i=t.isElement(r)?e.getDataAttribute(r,`config`):{};return{...this.constructor.Default,...typeof i==`object`?i:{},...t.isElement(r)?e.getDataAttributes(r):{},...typeof n==`object`?n:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(let[r,i]of Object.entries(n)){let n=e[r],a=t.isElement(n)?`element`:t.toType(n);if(!new RegExp(i).test(a))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${i}".`)}}}return n}))})),u=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(a(),s(),l(),o()):typeof define==`function`&&define.amd?define([`./dom/data`,`./dom/event-handler`,`./util/config`,`./util/index`],r):(n=typeof globalThis<`u`?globalThis:n||self,n.BaseComponent=r(n.Data,n.EventHandler,n.Config,n.Index))})(e,(function(e,t,n,r){class i extends n{constructor(t,n){super(),t=r.getElement(t),t&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),t.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){r.executeAfterTransition(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(t){return e.get(r.getElement(t),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return`5.3.8`}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}return i}))})),d=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(o()):typeof define==`function`&&define.amd?define([`../util/index`],r):(n=typeof globalThis<`u`?globalThis:n||self,n.SelectorEngine=r(n.Index))})(e,(function(e){let t=t=>{let n=t.getAttribute(`data-bs-target`);if(!n||n===`#`){let e=t.getAttribute(`href`);if(!e||!e.includes(`#`)&&!e.startsWith(`.`))return null;e.includes(`#`)&&!e.startsWith(`#`)&&(e=`#${e.split(`#`)[1]}`),n=e&&e!==`#`?e.trim():null}return n?n.split(`,`).map(t=>e.parseSelector(t)).join(`,`):null},n={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(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);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(t){let n=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(n,t).filter(t=>!e.isDisabled(t)&&e.isVisible(t))},getSelectorFromElement(e){let r=t(e);return r&&n.findOne(r)?r:null},getElementFromSelector(e){let r=t(e);return r?n.findOne(r):null},getMultipleElementsFromSelector(e){let r=t(e);return r?n.find(r):[]}};return n}))})),f=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(u(),s(),d(),o()):typeof define==`function`&&define.amd?define([`./base-component`,`./dom/event-handler`,`./dom/selector-engine`,`./util/index`],r):(n=typeof globalThis<`u`?globalThis:n||self,n.Collapse=r(n.BaseComponent,n.EventHandler,n.SelectorEngine,n.Index))})(e,(function(e,t,n,r){let i=`.bs.collapse`,a=`show${i}`,o=`shown${i}`,s=`hide${i}`,c=`hidden${i}`,l=`click${i}.data-api`,u=`show`,d=`collapse`,f=`collapsing`,p=`:scope .${d} .${d}`,m=`[data-bs-toggle="collapse"]`,h={parent:null,toggle:!0},g={parent:`(null|element)`,toggle:`boolean`};class _ extends e{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let r=n.find(m);for(let e of r){let t=n.getSelectorFromElement(e),r=n.find(t).filter(e=>e===this._element);t!==null&&r.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return h}static get DefaultType(){return g}static get NAME(){return`collapse`}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(`.collapse.show, .collapse.collapsing`).filter(e=>e!==this._element).map(e=>_.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning||t.trigger(this._element,a).defaultPrevented)return;for(let t of e)t.hide();let n=this._getDimension();this._element.classList.remove(d),this._element.classList.add(f),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d,u),this._element.style[n]=``,t.trigger(this._element,o)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||t.trigger(this._element,s).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,r.reflow(this._element),this._element.classList.add(f),this._element.classList.remove(d,u);for(let e of this._triggerArray){let t=n.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let i=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d),t.trigger(this._element,c)};this._element.style[e]=``,this._queueCallback(i,this._element,!0)}_isShown(e=this._element){return e.classList.contains(u)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=r.getElement(e.parent),e}_getDimension(){return this._element.classList.contains(`collapse-horizontal`)?`width`:`height`}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(m);for(let t of e){let e=n.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=n.find(p,this._config.parent);return n.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(`collapsed`,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(e){let t={};return typeof e==`string`&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){let n=_.getOrCreateInstance(this,t);if(typeof e==`string`){if(n[e]===void 0)throw TypeError(`No method named "${e}"`);n[e]()}})}}return t.on(document,l,m,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of n.getMultipleElementsFromSelector(this))_.getOrCreateInstance(e,{toggle:!1}).toggle()}),r.defineJQueryPlugin(_),_}))})),p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F=n((()=>{p=`bottom`,m=`right`,h=`left`,g=`auto`,_=[`top`,p,m,h],v=`start`,y=`clippingParents`,b=`viewport`,x=`popper`,S=`reference`,C=_.reduce(function(e,t){return e.concat([t+`-`+v,t+`-end`])},[]),w=[].concat(_,[g]).reduce(function(e,t){return e.concat([t,t+`-`+v,t+`-end`])},[]),T=`beforeRead`,E=`read`,D=`afterRead`,O=`beforeMain`,k=`main`,A=`afterMain`,j=`beforeWrite`,M=`write`,N=`afterWrite`,P=[T,E,D,O,k,A,j,M,N]}));function I(e){return e?(e.nodeName||``).toLowerCase():null}var L=n((()=>{}));function R(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var z=n((()=>{}));function B(e){return e instanceof R(e).Element||e instanceof Element}function V(e){return e instanceof R(e).HTMLElement||e instanceof HTMLElement}function ee(e){return typeof ShadowRoot>`u`?!1:e instanceof R(e).ShadowRoot||e instanceof ShadowRoot}var H=n((()=>{z()}));function te(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!V(i)||!I(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function ne(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 r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!V(r)||!I(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var U,re=n((()=>{L(),H(),U={name:`applyStyles`,enabled:!0,phase:`write`,fn:te,effect:ne,requires:[`computeStyles`]}}));function W(e){return e.split(`-`)[0]}var G=n((()=>{})),K,ie,q,J=n((()=>{K=Math.max,ie=Math.min,q=Math.round}));function ae(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}var oe=n((()=>{}));function se(){return!/^((?!chrome|android).)*safari/i.test(ae())}var ce=n((()=>{oe()}));function le(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&V(e)&&(i=e.offsetWidth>0&&q(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&q(r.height)/e.offsetHeight||1);var o=(B(e)?R(e):window).visualViewport,s=!se()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}var ue=n((()=>{H(),J(),z(),ce()}));function de(e){var t=le(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}var Y=n((()=>{ue()}));function fe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ee(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}var pe=n((()=>{H()}));function X(e){return R(e).getComputedStyle(e)}var me=n((()=>{z()}));function he(e){return[`table`,`td`,`th`].indexOf(I(e))>=0}var ge=n((()=>{L()}));function Z(e){return((B(e)?e.ownerDocument:e.document)||window.document).documentElement}var Q=n((()=>{H()}));function _e(e){return I(e)===`html`?e:e.assignedSlot||e.parentNode||(ee(e)?e.host:null)||Z(e)}var ve=n((()=>{L(),Q(),H()}));function ye(e){return!V(e)||X(e).position===`fixed`?null:e.offsetParent}function be(e){var t=/firefox/i.test(ae());if(/Trident/i.test(ae())&&V(e)&&X(e).position===`fixed`)return null;var n=_e(e);for(ee(n)&&(n=n.host);V(n)&&[`html`,`body`].indexOf(I(n))<0;){var r=X(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function xe(e){for(var t=R(e),n=ye(e);n&&he(n)&&X(n).position===`static`;)n=ye(n);return n&&(I(n)===`html`||I(n)===`body`&&X(n).position===`static`)?t:n||be(e)||t}var Se=n((()=>{z(),L(),me(),H(),ge(),ve(),oe()}));function Ce(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}var we=n((()=>{}));function Te(e,t,n){return K(e,ie(t,n))}function Ee(e,t,n){var r=Te(e,t,n);return r>n?n:r}var De=n((()=>{J()}));function Oe(){return{top:0,right:0,bottom:0,left:0}}var ke=n((()=>{}));function Ae(e){return Object.assign({},Oe(),e)}var je=n((()=>{ke()}));function Me(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ne=n((()=>{}));function Pe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=W(n.placement),c=Ce(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Ie(i.padding,n),d=de(a),f=c===`y`?`top`:h,g=c===`y`?p:m,_=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],v=o[c]-n.rects.reference[c],y=xe(a),b=y?c===`y`?y.clientHeight||0:y.clientWidth||0:0,x=_/2-v/2,S=u[f],C=b-d[l]-u[g],w=b/2-d[l]/2+x,T=Te(S,w,C),E=c;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-w,t)}}function Fe(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||fe(t.elements.popper,r)&&(t.elements.arrow=r))}var Ie,Le,Re=n((()=>{G(),Y(),pe(),Se(),we(),De(),je(),Ne(),F(),Ie=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Ae(typeof e==`number`?Me(e,_):e)},Le={name:`arrow`,enabled:!0,phase:`main`,fn:Pe,effect:Fe,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]}}));function ze(e){return e.split(`-`)[1]}var Be=n((()=>{}));function Ve(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:q(n*i)/i||0,y:q(r*i)/i||0}}function He(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,g=f===void 0?0:f,_=o.y,v=_===void 0?0:_,y=typeof u==`function`?u({x:g,y:v}):{x:g,y:v};g=y.x,v=y.y;var b=o.hasOwnProperty(`x`),x=o.hasOwnProperty(`y`),S=h,C=`top`,w=window;if(l){var T=xe(n),E=`clientHeight`,D=`clientWidth`;if(T===R(n)&&(T=Z(n),X(T).position!==`static`&&s===`absolute`&&(E=`scrollHeight`,D=`scrollWidth`)),T=T,i===`top`||(i===`left`||i===`right`)&&a===`end`){C=p;var O=d&&T===w&&w.visualViewport?w.visualViewport.height:T[E];v-=O-r.height,v*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){S=m;var k=d&&T===w&&w.visualViewport?w.visualViewport.width:T[D];g-=k-r.width,g*=c?1:-1}}var A=Object.assign({position:s},l&&We),j=u===!0?Ve({x:g,y:v},R(n)):{x:g,y:v};if(g=j.x,v=j.y,c){var M;return Object.assign({},A,(M={},M[C]=x?`0`:``,M[S]=b?`0`:``,M.transform=(w.devicePixelRatio||1)<=1?`translate(`+g+`px, `+v+`px)`:`translate3d(`+g+`px, `+v+`px, 0)`,M))}return Object.assign({},A,(t={},t[C]=x?v+`px`:``,t[S]=b?g+`px`:``,t.transform=``,t))}function Ue(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:W(t.placement),variation:ze(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,He(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,He(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var We,Ge,Ke=n((()=>{F(),Se(),z(),Q(),me(),G(),Be(),J(),We={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`},Ge={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Ue,data:{}}}));function qe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=R(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Je)}),s&&c.addEventListener(`resize`,n.update,Je),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Je)}),s&&c.removeEventListener(`resize`,n.update,Je)}}var Je,Ye,Xe=n((()=>{z(),Je={passive:!0},Ye={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:qe,data:{}}}));function Ze(e){return e.replace(/left|right|bottom|top/g,function(e){return Qe[e]})}var Qe,$e=n((()=>{Qe={left:`right`,right:`left`,bottom:`top`,top:`bottom`}}));function et(e){return e.replace(/start|end/g,function(e){return tt[e]})}var tt,nt=n((()=>{tt={start:`end`,end:`start`}}));function rt(e){var t=R(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var it=n((()=>{z()}));function at(e){return le(Z(e)).left+rt(e).scrollLeft}var ot=n((()=>{ue(),Q(),it()}));function st(e,t){var n=R(e),r=Z(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=se();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+at(e),y:c}}var ct=n((()=>{z(),Q(),ot(),ce()}));function lt(e){var t=Z(e),n=rt(e),r=e.ownerDocument?.body,i=K(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=K(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+at(e),s=-n.scrollTop;return X(r||t).direction===`rtl`&&(o+=K(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}var ut=n((()=>{Q(),me(),ot(),it(),J()}));function dt(e){var t=X(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}var ft=n((()=>{me()}));function pt(e){return[`html`,`body`,`#document`].indexOf(I(e))>=0?e.ownerDocument.body:V(e)&&dt(e)?e:pt(_e(e))}var mt=n((()=>{ve(),ft(),L(),H()}));function ht(e,t){t===void 0&&(t=[]);var n=pt(e),r=n===e.ownerDocument?.body,i=R(n),a=r?[i].concat(i.visualViewport||[],dt(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(ht(_e(a)))}var gt=n((()=>{mt(),ve(),z(),ft()}));function _t(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}var vt=n((()=>{}));function yt(e,t){var n=le(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function bt(e,t,n){return t===`viewport`?_t(st(e,n)):B(t)?yt(t,n):_t(lt(Z(e)))}function xt(e){var t=ht(_e(e)),n=[`absolute`,`fixed`].indexOf(X(e).position)>=0&&V(e)?xe(e):e;return B(n)?t.filter(function(e){return B(e)&&fe(e,n)&&I(e)!==`body`}):[]}function St(e,t,n,r){var i=t===`clippingParents`?xt(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=bt(e,n,r);return t.top=K(i.top,t.top),t.right=ie(i.right,t.right),t.bottom=ie(i.bottom,t.bottom),t.left=K(i.left,t.left),t},bt(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var Ct=n((()=>{F(),ct(),ut(),gt(),Se(),Q(),me(),H(),ue(),ve(),pe(),L(),vt(),J()}));function wt(e){var t=e.reference,n=e.element,r=e.placement,i=r?W(r):null,a=r?ze(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case p:c={x:o,y:t.y+t.height};break;case m:c={x:t.x+t.width,y:s};break;case h:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Ce(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case v:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}var Tt=n((()=>{G(),Be(),we(),F()}));function Et(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?y:s,l=n.rootBoundary,u=l===void 0?b:l,d=n.elementContext,f=d===void 0?x:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,v=Ae(typeof g==`number`?Me(g,_):g),C=f===`popper`?S:x,w=e.rects.popper,T=e.elements[m?C:f],E=St(B(T)?T:T.contextElement||Z(e.elements.popper),c,u,o),D=le(e.elements.reference),O=wt({reference:D,element:w,strategy:`absolute`,placement:i}),k=_t(Object.assign({},w,O)),A=f===`popper`?k:D,j={top:E.top-A.top+v.top,bottom:A.bottom-E.bottom+v.bottom,left:E.left-A.left+v.left,right:A.right-E.right+v.right},M=e.modifiersData.offset;if(f===`popper`&&M){var N=M[i];Object.keys(j).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;j[e]+=N[n]*t})}return j}var Dt=n((()=>{Ct(),Q(),ue(),Tt(),vt(),F(),H(),je(),Ne()}));function Ot(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?w:c,u=ze(r),d=u?s?C:C.filter(function(e){return ze(e)===u}):_,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Et(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[W(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var kt=n((()=>{Be(),F(),Dt(),G()}));function At(e){if(W(e)===`auto`)return[];var t=Ze(e);return[et(e),t,et(t)]}function jt(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,_=g===void 0||g,y=n.allowedAutoPlacements,b=t.options.placement,x=W(b)===b,S=c||(x||!_?[Ze(b)]:At(b)),C=[b].concat(S).reduce(function(e,n){return e.concat(W(n)===`auto`?Ot(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:_,allowedAutoPlacements:y}):n)},[]),w=t.rects.reference,T=t.rects.popper,E=new Map,D=!0,O=C[0],k=0;k=0,P=N?`width`:`height`,F=Et(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),I=N?M?m:h:M?p:`top`;w[P]>T[P]&&(I=Ze(I));var L=Ze(I),R=[];if(a&&R.push(F[j]<=0),s&&R.push(F[I]<=0,F[L]<=0),R.every(function(e){return e})){O=A,D=!1;break}E.set(A,R)}if(D)for(var z=_?3:1,B=function(e){var t=C.find(function(t){var n=E.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return O=t,`break`},V=z;V>0&&B(V)!==`break`;V--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}var Mt,Nt=n((()=>{$e(),G(),nt(),Dt(),kt(),F(),Be(),Mt={name:`flip`,enabled:!0,phase:`main`,fn:jt,requiresIfExists:[`offset`],data:{_skip:!1}}}));function Pt(e,t,n){return n===void 0&&(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 Ft(e){return[`top`,m,p,h].some(function(t){return e[t]>=0})}function It(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Et(t,{elementContext:`reference`}),s=Et(t,{altBoundary:!0}),c=Pt(o,r),l=Pt(s,i,a),u=Ft(c),d=Ft(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Lt,Rt=n((()=>{F(),Dt(),Lt={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:It}}));function zt(e,t,n){var r=W(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Bt(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=w.reduce(function(e,n){return e[n]=zt(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var Vt,Ht=n((()=>{G(),F(),Vt={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Bt}}));function Ut(e){var t=e.state,n=e.name;t.modifiersData[n]=wt({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var Wt,Gt=n((()=>{Tt(),Wt={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Ut,data:{}}}));function Kt(e){return e===`x`?`y`:`x`}var qt=n((()=>{}));function Jt(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,g=f===void 0||f,_=n.tetherOffset,v=_===void 0?0:_,y=Et(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),b=W(t.placement),x=ze(t.placement),S=!x,C=Ce(b),w=Kt(C),T=t.modifiersData.popperOffsets,E=t.rects.reference,D=t.rects.popper,O=typeof v==`function`?v(Object.assign({},t.rects,{placement:t.placement})):v,k=typeof O==`number`?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(T){if(a){var M=C===`y`?`top`:h,N=C===`y`?p:m,P=C===`y`?`height`:`width`,F=T[C],I=F+y[M],L=F-y[N],R=g?-D[P]/2:0,z=x===`start`?E[P]:D[P],B=x===`start`?-D[P]:-E[P],V=t.elements.arrow,ee=g&&V?de(V):{width:0,height:0},H=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Oe(),te=H[M],ne=H[N],U=Te(0,E[P],ee[P]),re=S?E[P]/2-R-U-te-k.mainAxis:z-U-te-k.mainAxis,G=S?-E[P]/2+R+U+ne+k.mainAxis:B+U+ne+k.mainAxis,q=t.elements.arrow&&xe(t.elements.arrow),J=q?C===`y`?q.clientTop||0:q.clientLeft||0:0,ae=A?.[C]??0,oe=F+re-ae-J,se=F+G-ae,ce=Te(g?ie(I,oe):I,F,g?K(L,se):L);T[C]=ce,j[C]=ce-F}if(s){var le=C===`x`?`top`:h,ue=C===`x`?p:m,Y=T[w],fe=w===`y`?`height`:`width`,pe=Y+y[le],X=Y-y[ue],me=[`top`,h].indexOf(b)!==-1,he=A?.[w]??0,ge=me?pe:Y-E[fe]-D[fe]-he+k.altAxis,Z=me?Y+E[fe]+D[fe]-he-k.altAxis:X,Q=g&&me?Ee(ge,Y,Z):Te(g?ge:pe,Y,g?Z:X);T[w]=Q,j[w]=Q-Y}t.modifiersData[r]=j}}var Yt,Xt=n((()=>{F(),G(),we(),qt(),De(),Y(),Se(),Dt(),Be(),ke(),J(),Yt={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Jt,requiresIfExists:[`offset`]}})),Zt=n((()=>{re(),Re(),Ke(),Xe(),Nt(),Rt(),Ht(),Gt(),Xt()}));function Qt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}var $t=n((()=>{}));function en(e){return e===R(e)||!V(e)?rt(e):Qt(e)}var tn=n((()=>{it(),z(),H(),$t()}));function nn(e){var t=e.getBoundingClientRect(),n=q(t.width)/e.offsetWidth||1,r=q(t.height)/e.offsetHeight||1;return n!==1||r!==1}function rn(e,t,n){n===void 0&&(n=!1);var r=V(t),i=V(t)&&nn(t),a=Z(t),o=le(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((I(t)!==`body`||dt(a))&&(s=en(t)),V(t)?(c=le(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=at(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}var an=n((()=>{ue(),tn(),L(),H(),ot(),Q(),ft(),J()}));function on(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function sn(e){var t=on(e);return P.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}var cn=n((()=>{F()}));function ln(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}var un=n((()=>{}));function dn(e){var t=e.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},{});return Object.keys(t).map(function(e){return t[e]})}var fn=n((()=>{}));function pn(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function mn(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?hn:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},hn,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:B(e)?ht(e):e.contextElement?ht(e.contextElement):[],popper:ht(t)};var s=sn(dn([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(pn(t,n)){i.rects={reference:rn(t,xe(n),i.options.strategy===`fixed`),popper:de(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r{an(),Y(),gt(),Se(),cn(),un(),fn(),Dt(),H(),hn={placement:`bottom`,modifiers:[],strategy:`absolute`},gn=mn()})),vn,yn,bn=n((()=>{_n(),Xe(),Gt(),Ke(),re(),vn=[Ye,Wt,Ge,U],yn=mn({defaultModifiers:vn})})),xn,Sn,Cn=n((()=>{_n(),Xe(),Gt(),Ke(),re(),Ht(),Nt(),Xt(),Re(),Rt(),bn(),Zt(),xn=[Ye,Wt,Ge,U,Vt,Mt,Yt,Le,Lt],Sn=mn({defaultModifiers:xn})})),wn=r({afterMain:()=>A,afterRead:()=>D,afterWrite:()=>N,applyStyles:()=>U,arrow:()=>Le,auto:()=>g,basePlacements:()=>_,beforeMain:()=>O,beforeRead:()=>T,beforeWrite:()=>j,bottom:()=>p,clippingParents:()=>y,computeStyles:()=>Ge,createPopper:()=>Sn,createPopperBase:()=>gn,createPopperLite:()=>yn,detectOverflow:()=>Et,end:()=>`end`,eventListeners:()=>Ye,flip:()=>Mt,hide:()=>Lt,left:()=>h,main:()=>k,modifierPhases:()=>P,offset:()=>Vt,placements:()=>w,popper:()=>x,popperGenerator:()=>mn,popperOffsets:()=>Wt,preventOverflow:()=>Yt,read:()=>E,reference:()=>S,right:()=>m,start:()=>v,top:()=>`top`,variationPlacements:()=>C,viewport:()=>b,write:()=>M}),Tn=n((()=>{F(),Zt(),_n(),Cn(),bn()})),En=i(((e,n)=>{(function(r,i){typeof e==`object`&&n!==void 0?n.exports=i((Tn(),t(wn)),u(),s(),c(),d(),o()):typeof define==`function`&&define.amd?define([`@popperjs/core`,`./base-component`,`./dom/event-handler`,`./dom/manipulator`,`./dom/selector-engine`,`./util/index`],i):(r=typeof globalThis<`u`?globalThis:r||self,r.Dropdown=i(r[`@popperjs/core`],r.BaseComponent,r.EventHandler,r.Manipulator,r.SelectorEngine,r.Index))})(e,(function(e,t,n,r,i,a){function o(e){let t=Object.create(null,{[Symbol.toStringTag]:{value:`Module`}});if(e){for(let n in e)if(n!=="default"){let r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}let s=o(e),c=`.bs.dropdown`,l=`.data-api`,u=`ArrowDown`,d=`hide${c}`,f=`hidden${c}`,p=`show${c}`,m=`shown${c}`,h=`click${c}${l}`,g=`keydown${c}${l}`,_=`keyup${c}${l}`,v=`show`,y=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,b=`${y}.${v}`,x=`.dropdown-menu`,S=a.isRTL()?`top-end`:`top-start`,C=a.isRTL()?`top-start`:`top-end`,w=a.isRTL()?`bottom-end`:`bottom-start`,T=a.isRTL()?`bottom-start`:`bottom-end`,E=a.isRTL()?`left-start`:`right-start`,D=a.isRTL()?`right-start`:`left-start`,O={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},k={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`};class A extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=i.next(this._element,x)[0]||i.prev(this._element,x)[0]||i.findOne(x,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return O}static get DefaultType(){return k}static get NAME(){return`dropdown`}toggle(){return this._isShown()?this.hide():this.show()}show(){if(a.isDisabled(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!n.trigger(this._element,p,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(`.navbar-nav`))for(let e of[].concat(...document.body.children))n.on(e,`mouseover`,a.noop);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(v),this._element.classList.add(v),n.trigger(this._element,m,e)}}hide(){if(a.isDisabled(this._element)||!this._isShown())return;let 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){if(!n.trigger(this._element,d,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))n.off(e,`mouseover`,a.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(v),this._element.classList.remove(v),this._element.setAttribute(`aria-expanded`,`false`),r.removeDataAttribute(this._menu,`popper`),n.trigger(this._element,f,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!a.isElement(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`DROPDOWN: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(s===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:a.isElement(this._config.reference)?e=a.getElement(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=s.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(v)}_getPlacement(){let e=this._parent;if(e.classList.contains(`dropend`))return E;if(e.classList.contains(`dropstart`))return D;if(e.classList.contains(`dropup-center`))return`top`;if(e.classList.contains(`dropdown-center`))return`bottom`;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(`dropup`)?t?C:S:t?T:w}_detectNavbar(){return this._element.closest(`.navbar`)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(r.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...a.execute(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=i.find(`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,this._menu).filter(e=>a.isVisible(e));n.length&&a.getNextActiveElement(n,t,e===u,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){let t=A.getOrCreateInstance(this,e);if(typeof e==`string`){if(t[e]===void 0)throw TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===2||e.type===`keyup`&&e.key!==`Tab`)return;let t=i.find(b);for(let n of t){let t=A.getInstance(n);if(!t||t._config.autoClose===!1)continue;let r=e.composedPath(),i=r.includes(t._menu);if(r.includes(t._element)||t._config.autoClose===`inside`&&!i||t._config.autoClose===`outside`&&i||t._menu.contains(e.target)&&(e.type===`keyup`&&e.key===`Tab`||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;let a={relatedTarget:t._element};e.type===`click`&&(a.clickEvent=e),t._completeHide(a)}}static dataApiKeydownHandler(e){let t=/input|textarea/i.test(e.target.tagName),n=e.key===`Escape`,r=[`ArrowUp`,u].includes(e.key);if(!r&&!n||t&&!n)return;e.preventDefault();let a=this.matches(y)?this:i.prev(this,y)[0]||i.next(this,y)[0]||i.findOne(y,e.delegateTarget.parentNode),o=A.getOrCreateInstance(a);if(r){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),a.focus())}}return n.on(document,g,y,A.dataApiKeydownHandler),n.on(document,g,x,A.dataApiKeydownHandler),n.on(document,h,A.clearMenus),n.on(document,_,A.clearMenus),n.on(document,h,y,function(e){e.preventDefault(),A.getOrCreateInstance(this).toggle()}),a.defineJQueryPlugin(A),A}))})),Dn=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(s(),l(),o()):typeof define==`function`&&define.amd?define([`../dom/event-handler`,`./config`,`./index`],r):(n=typeof globalThis<`u`?globalThis:n||self,n.Backdrop=r(n.EventHandler,n.Config,n.Index))})(e,(function(e,t,n){let r=`backdrop`,i=`show`,a=`mousedown.bs.${r}`,o={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},s={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`};class c extends t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return o}static get DefaultType(){return s}static get NAME(){return r}show(e){if(!this._config.isVisible){n.execute(e);return}this._append();let t=this._getElement();this._config.isAnimated&&n.reflow(t),t.classList.add(i),this._emulateAnimation(()=>{n.execute(e)})}hide(e){if(!this._config.isVisible){n.execute(e);return}this._getElement().classList.remove(i),this._emulateAnimation(()=>{this.dispose(),n.execute(e)})}dispose(){this._isAppended&&=(e.off(this._element,a),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(`fade`),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=n.getElement(e.rootElement),e}_append(){if(this._isAppended)return;let t=this._getElement();this._config.rootElement.append(t),e.on(t,a,()=>{n.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){n.executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}return c}))})),On=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e,s(),d(),o()):typeof define==`function`&&define.amd?define([`exports`,`../dom/event-handler`,`../dom/selector-engine`,`./index`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.ComponentFunctions={},n.EventHandler,n.SelectorEngine,n.Index))})(e,(function(e,t,n,r){e.enableDismissTrigger=(e,i=`hide`)=>{let a=`click.dismiss${e.EVENT_KEY}`,o=e.NAME;t.on(document,a,`[data-bs-dismiss="${o}"]`,function(t){if([`A`,`AREA`].includes(this.tagName)&&t.preventDefault(),r.isDisabled(this))return;let a=n.getElementFromSelector(this)||this.closest(`.${o}`);e.getOrCreateInstance(a)[i]()})},Object.defineProperty(e,Symbol.toStringTag,{value:`Module`})}))})),kn=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(s(),d(),l()):typeof define==`function`&&define.amd?define([`../dom/event-handler`,`../dom/selector-engine`,`./config`],r):(n=typeof globalThis<`u`?globalThis:n||self,n.Focustrap=r(n.EventHandler,n.SelectorEngine,n.Config))})(e,(function(e,t,n){let r=`.bs.focustrap`,i=`focusin${r}`,a=`keydown.tab${r}`,o=`backward`,s={autofocus:!0,trapElement:null},c={autofocus:`boolean`,trapElement:`element`};class l extends n{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return s}static get DefaultType(){return c}static get NAME(){return`focustrap`}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),e.off(document,r),e.on(document,i,e=>this._handleFocusin(e)),e.on(document,a,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,e.off(document,r))}_handleFocusin(e){let{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;let r=t.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===o?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===`Tab`&&(this._lastTabNavDirection=e.shiftKey?o:`forward`)}}return l}))})),An=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(c(),d(),o()):typeof define==`function`&&define.amd?define([`../dom/manipulator`,`../dom/selector-engine`,`./index`],r):(n=typeof globalThis<`u`?globalThis:n||self,n.Scrollbar=r(n.Manipulator,n.SelectorEngine,n.Index))})(e,(function(e,t,n){let r=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,i=`.sticky-top`,a=`padding-right`,o=`margin-right`;class s{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,a,t=>t+e),this._setElementAttributes(r,a,t=>t+e),this._setElementAttributes(i,o,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,a),this._resetElementAttributes(r,a),this._resetElementAttributes(i,o)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(t,n){let r=t.style.getPropertyValue(n);r&&e.setDataAttribute(t,n,r)}_resetElementAttributes(t,n){this._applyManipulationCallback(t,t=>{let r=e.getDataAttribute(t,n);if(r===null){t.style.removeProperty(n);return}e.removeDataAttribute(t,n),t.style.setProperty(n,r)})}_applyManipulationCallback(e,r){if(n.isElement(e)){r(e);return}for(let n of t.find(e,this._element))r(n)}}return s}))})),jn=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(u(),s(),d(),Dn(),On(),kn(),o(),An()):typeof define==`function`&&define.amd?define([`./base-component`,`./dom/event-handler`,`./dom/selector-engine`,`./util/backdrop`,`./util/component-functions`,`./util/focustrap`,`./util/index`,`./util/scrollbar`],r):(n=typeof globalThis<`u`?globalThis:n||self,n.Modal=r(n.BaseComponent,n.EventHandler,n.SelectorEngine,n.Backdrop,n.ComponentFunctions,n.Focustrap,n.Index,n.Scrollbar))})(e,(function(e,t,n,r,i,a,o,s){let c=`.bs.modal`,l=`hide${c}`,u=`hidePrevented${c}`,d=`hidden${c}`,f=`show${c}`,p=`shown${c}`,m=`resize${c}`,h=`click.dismiss${c}`,g=`mousedown.dismiss${c}`,_=`keydown.dismiss${c}`,v=`click${c}.data-api`,y=`modal-open`,b=`show`,x=`modal-static`,S={backdrop:!0,focus:!0,keyboard:!0},C={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`};class w extends e{constructor(e,t){super(e,t),this._dialog=n.findOne(`.modal-dialog`,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new s,this._addEventListeners()}static get Default(){return S}static get DefaultType(){return C}static get NAME(){return`modal`}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||t.trigger(this._element,f,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(y),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||t.trigger(this._element,l).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(b),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){t.off(window,c),t.off(this._dialog,c),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new r({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new a({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let r=n.findOne(`.modal-body`,this._dialog);r&&(r.scrollTop=0),o.reflow(this._element),this._element.classList.add(b),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,t.trigger(this._element,p,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){t.on(this._element,_,e=>{if(e.key===`Escape`){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),t.on(window,m,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),t.on(this._element,g,e=>{t.one(this._element,h,t=>{if(this._element===e.target&&this._element===t.target){if(this._config.backdrop===`static`){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_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(y),this._resetAdjustments(),this._scrollBar.reset(),t.trigger(this._element,d)})}_isAnimated(){return this._element.classList.contains(`fade`)}_triggerBackdropTransition(){if(t.trigger(this._element,u).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n===`hidden`||this._element.classList.contains(x)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(x),this._queueCallback(()=>{this._element.classList.remove(x),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=o.isRTL()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=o.isRTL()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(e,t){return this.each(function(){let n=w.getOrCreateInstance(this,e);if(typeof e==`string`){if(n[e]===void 0)throw TypeError(`No method named "${e}"`);n[e](t)}})}}return t.on(document,v,`[data-bs-toggle="modal"]`,function(e){let r=n.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),t.one(r,f,e=>{e.defaultPrevented||t.one(r,d,()=>{o.isVisible(this)&&this.focus()})});let i=n.findOne(`.modal.show`);i&&w.getInstance(i).hide(),w.getOrCreateInstance(r).toggle(this)}),i.enableDismissTrigger(w),o.defineJQueryPlugin(w),w}))}));f(),En(),jn();var Mn=`modulepreload`,Nn=function(e){return`/wp-content/themes/wdftheme1/public/build/`+e},Pn={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Nn(t,n),t=s(t),t in Pn)return;Pn[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Mn,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},{__:Fn}=window.wp?.i18n||{__:e=>e},In=(e,t)=>`${e}-${String(t).padStart(2,`0`)}`,Ln=e=>e instanceof Date?[e.getFullYear(),String(e.getMonth()+1).padStart(2,`0`),String(e.getDate()).padStart(2,`0`)].join(`-`):``,Rn=e=>{if(typeof e!=`string`||e.trim()===``)return`it-IT`;let t=e.replace(`_`,`-`).toLowerCase();return t.startsWith(`fr`)?`fr-FR`:t.startsWith(`en`)?`en-GB`:`it-IT`},zn=e=>{let t=e.querySelector(`[data-event-date-picker-config]`);if(!t)return null;try{return JSON.parse(t.textContent||`{}`)}catch(t){return console.error(Fn(`Failed to parse event date picker config.`,`wdftheme1`),t,e),null}},Bn,Vn=async()=>(Bn||=Promise.all([$(()=>import(`./esm-KTZOq7OZ.mjs`),[]),$(()=>Promise.resolve({}),__vite__mapDeps([0])),$(()=>import(`./it-BEI7TRAN.mjs`).then(t=>e(t.default,1)),__vite__mapDeps([1,2])),$(()=>import(`./fr-B3illgT6.mjs`).then(t=>e(t.default,1)),__vite__mapDeps([3,2]))]).then(([e,t,n,r])=>({flatpickr:e.default,locales:{it:n.Italian,fr:r.French}})),Bn),Hn=(e,t,n)=>{let r=new URL(e.restUrl,window.location.origin);return r.searchParams.set(`year`,String(t)),r.searchParams.set(`month`,String(n)),r.searchParams.set(`include_html`,e.includeHtml?`1`:`0`),e.scope?.taxonomy&&r.searchParams.set(`taxonomy`,e.scope.taxonomy),Array.isArray(e.scope?.term_ids)&&e.scope.term_ids.length>0&&r.searchParams.set(`term_ids`,e.scope.term_ids.join(`,`)),e.scope?.search&&r.searchParams.set(`search`,e.scope.search),r},Un=async(e,t,n)=>{let r=await fetch(Hn(e.config,t,n));if(!r.ok)throw Error(`${Fn(`Event calendar request failed.`,`wdftheme1`)} (${r.status})`);let i=await r.json();if(!i?.success||!i?.month)throw Error(Fn(`Event calendar response payload is invalid.`,`wdftheme1`));return i.month},Wn=async(e,t,n)=>{let r=In(t,n);if(e.monthCache.has(r))return e.currentMonthKey=r,e.monthCache.get(r);let i=await Un(e,t,n);return e.monthCache.set(r,i),e.currentMonthKey=r,i},Gn=e=>e.monthCache.get(e.currentMonthKey)||null,Kn=(e,t)=>{let n=e.root,r=Gn(e),i=n.querySelector(`[data-event-date-picker-events]`),a=n.querySelector(`[data-event-date-picker-empty]`);if(!i||!a)return;let o=r?.days?.[t],s=!!o?.count;i.innerHTML=s&&o.html||``,a.classList.toggle(`d-none`,s)},qn=(e,t)=>{let n=e.root.querySelector(`[data-event-date-picker-reset]`);n&&n.classList.toggle(`d-none`,!t)},Jn=(e,t)=>{let n=e.config.filterUrl||window.location.href,r=new URL(n,window.location.origin);t?r.searchParams.set(`event_date`,t):r.searchParams.delete(`event_date`),window.location.assign(r.toString())},Yn=(e,t)=>{let n=Gn(e),r=Ln(t.dateObj),i=!!n?.days?.[r]?.count;t.classList.toggle(`has-events`,i)},Xn=async e=>{if(!(e instanceof HTMLElement)||e.dataset.eventDatePickerReady===`true`)return;let t=zn(e),n=e.querySelector(`[data-event-date-picker-calendar]`);if(!t||!(n instanceof HTMLElement))return;let{flatpickr:r,locales:i}=await Vn(),a=t.initialMonth||{},o=Rn(t.locale),s=o.startsWith(`it`)?i.it:o.startsWith(`fr`)?i.fr:i.en,c={root:e,config:t,currentMonthKey:In(a.year,a.month),monthCache:new Map([[In(a.year,a.month),a]])};e.dataset.eventDatePickerReady=`true`;let l=async e=>{try{await Wn(c,e.currentYear,e.currentMonth+1),e.redraw()}catch(e){console.error(Fn(`Unable to load event calendar month.`,`wdftheme1`),e)}};r(n,{inline:!0,prevArrow:``,nextArrow:``,locale:{...s,firstDayOfWeek:1},defaultDate:t.selectedDate||void 0,onReady:async(e,n,r)=>{await l(r),t.mode===`agenda`?Kn(c,t.selectedDate||t.today):qn(c,t.selectedDate||``)},onMonthChange:async(e,t,n)=>{await l(n)},onYearChange:async(e,t,n)=>{await l(n)},onDayCreate:(e,t,n,r)=>{Yn(c,r)},onChange:e=>{let n=e[0]?Ln(e[0]):``;if(t.mode===`agenda`){Kn(c,n);return}qn(c,n),Jn(c,n)}})},Zn=async(e=document)=>{let t=e.querySelectorAll?e.querySelectorAll(`[data-event-date-picker]`):[];t.length&&await Promise.all(Array.from(t).map(e=>Xn(e)))},{__:Qn}=window.wp?.i18n||{__:e=>e},$n,er=async()=>($n||=$(()=>import(`./swiper-bundle-DCDDRMwt.mjs`).then(e=>e.default),[]),$n),tr=async(e=document)=>{let t=(e.querySelectorAll?Array.from(e.querySelectorAll(`[data-swiper-config]`)):[]).filter(e=>e.dataset.swiperReady!==`true`);if(t.length===0)return;let n=await er();t.forEach(e=>{try{let t=JSON.parse(e.dataset.swiperConfig);new n(e,t),e.dataset.swiperReady=`true`}catch(t){console.error(Qn(`Failed to initialize event carousel.`,`wdftheme1`),t,e)}})},nr=`[data-toggle="lightbox"]`,rr,ir=async()=>(rr||=$(()=>import(`./src-C3-VuoIL.mjs`).then(e=>e.default),[]),rr),ar=async(e=document)=>{let t=(e.querySelectorAll?Array.from(e.querySelectorAll(nr)):[]).filter(e=>e.dataset.lightboxReady!==`true`);if(t.length===0)return;let n=await ir();t.forEach(e=>{e.addEventListener(`click`,n.initialize),e.dataset.lightboxReady=`true`})},or=`[data-wdf-video-youtube-trigger]`,sr=`[data-wdf-video-fullscreen-trigger]`,cr=(e,t)=>{if(!(e instanceof Element)&&e!==document)return[];let n=e.querySelectorAll?Array.from(e.querySelectorAll(t)):[];return e instanceof Element&&e.matches(t)&&n.unshift(e),n},lr=e=>{let t=e.dataset.wdfVideoEmbedUrl||``,n=e.dataset.wdfVideoEmbedTitle||`YouTube video player`;if(t===``)return;let r=document.createElement(`iframe`);r.className=`wdf-video__youtube-iframe`,r.src=t,r.title=n,r.loading=`lazy`,r.allow=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,r.allowFullscreen=!0,r.referrerPolicy=`strict-origin-when-cross-origin`,e.replaceChildren(r),e.classList.add(`is-active`)},ur=(e=document)=>{cr(e,or).filter(e=>e.dataset.wdfVideoEmbedReady!==`true`).forEach(e=>{let t=e.querySelector(`.wdf-video__youtube-button`);t instanceof HTMLButtonElement&&(e.dataset.wdfVideoEmbedReady=`true`,t.addEventListener(`click`,()=>lr(e),{once:!0}))})},dr=e=>{let t=e.dataset.wdfVideoFullscreenSrc||``;if(t===``)return;let n=document.createElement(`video`);n.className=`wdf-video__fullscreen-frame`,n.src=t,n.controls=!0,n.playsInline=!1;let r=()=>{n.pause(),n.remove()};n.addEventListener(`ended`,r),n.addEventListener(`fullscreenchange`,()=>{document.fullscreenElement!==n&&r()}),document.body.appendChild(n),n.play().catch(()=>{});let i=n.requestFullscreen||n.webkitRequestFullscreen;if(!i){r();return}Promise.resolve(i.call(n)).catch(r)},fr=(e=document)=>{cr(e,sr).filter(e=>e.dataset.wdfVideoFullscreenReady!==`true`).forEach(e=>{e.dataset.wdfVideoFullscreenReady=`true`,e.addEventListener(`click`,()=>dr(e))})},pr=(e=document)=>{ur(e),fr(e)},{__:mr}=window.wp?.i18n||{__:e=>e},hr=`[data-wdf-map]`,gr,_r=async()=>(gr||=Promise.all([$(()=>import(`./leaflet-src-Ue0YynTc.mjs`).then(t=>e(t.default,1)),__vite__mapDeps([4,2])),$(()=>Promise.resolve({}),__vite__mapDeps([5]))]).then(([e])=>e.default??e),gr),vr,yr,br=async e=>(vr||=(yr=e,new Promise((t,n)=>{let r=`__wdfGoogleMapsReady`;window[r]=()=>{delete window[r],t(window.google.maps)};let i=document.createElement(`script`);i.src=`https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(e)}&callback=${r}&loading=async`,i.async=!0,i.onerror=()=>n(Error(`Failed to load the Google Maps JavaScript API.`)),document.head.appendChild(i)})),vr),xr=e=>String(e).replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`),Sr=(e,t)=>{let n=[];return e.title&&n.push(`

${xr(e.title)}

`),e.text&&n.push(`

${xr(e.text)}

`),e.link&&n.push(`${xr(t)}`),n.join(``)},Cr=async(e,t)=>{let n=await _r(),r=n.map(e,{zoomControl:!1,scrollWheelZoom:!1}).setView([t.center.lat,t.center.lng],t.zoom);n.tileLayer(`https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`,{attribution:`© OpenStreetMap contributors`,maxZoom:19}).addTo(r);let i=t.markerIconUrl?n.icon({iconUrl:t.markerIconUrl,iconSize:[32,32],iconAnchor:[16,32],popupAnchor:[0,-28]}):null,a=[];t.markers.forEach(e=>{let o=[e.lat,e.lng],s=i?n.marker(o,{icon:i}):n.marker(o);s.addTo(r),a.push(o);let c=Sr(e,t.navigationLabel);c&&s.bindPopup(c)}),a.length>1&&r.fitBounds(a,{padding:[32,32]}),setTimeout(()=>r.invalidateSize(),100)},wr=async(e,t)=>{if(!t.apiKey)return;let n=await br(t.apiKey);t.apiKey!==yr&&console.error(mr(`This wdf/map block uses a different Google Maps API key than the one already loaded on this page; only the first key is used.`,`wdftheme1`));let r=new n.Map(e,{center:t.center,zoom:t.zoom,streetViewControl:!1}),i=new n.LatLngBounds,a=new n.InfoWindow;t.markers.forEach(e=>{let o={lat:e.lat,lng:e.lng},s=new n.Marker({position:o,map:r,icon:t.markerIconUrl||void 0});i.extend(o);let c=Sr(e,t.navigationLabel);c&&s.addListener(`click`,()=>{a.setContent(c),a.open(r,s)})}),t.markers.length>1&&r.fitBounds(i,32)},Tr=(e=document)=>{(e.querySelectorAll?Array.from(e.querySelectorAll(hr)):[]).filter(e=>e.dataset.wdfMapReady!==`true`).forEach(async e=>{e.dataset.wdfMapReady=`true`;let t=e.querySelector(`.wdf-map__canvas`);if(!t)return;let n;try{n=JSON.parse(e.dataset.wdfMapConfig)}catch(t){console.error(mr(`Failed to parse map configuration.`,`wdftheme1`),t,e);return}try{n.source===`googlemaps`?await wr(t,n):await Cr(t,n)}catch(t){console.error(mr(`Failed to initialize map.`,`wdftheme1`),t,e)}})},{__:Er}=window.wp?.i18n||{__:e=>e},Dr=`.sender-form-field`,Or=`[data-wdf-newsletter-form]`,kr=`[data-wdf-newsletter-modal]`,Ar=()=>new Promise(e=>{if(window.senderFormsLoaded){e();return}window.addEventListener(`onSenderFormsLoaded`,()=>e(),{once:!0})}),jr=!1,Mr=async()=>{jr||(await Ar(),window.senderForms&&typeof window.senderForms.render==`function`&&(window.senderForms.render(`all`),jr=!0))},Nr=(e=document)=>{e.querySelector&&e.querySelector(Dr)&&Mr()},Pr=(e,t,n)=>{let r=e.querySelector(`[data-wdf-newsletter-message]`);r&&(r.textContent=t,r.classList.toggle(`wdf-newsletter-form__message--error`,!!n),r.classList.toggle(`wdf-newsletter-form__message--success`,!n))},Fr=async e=>{let t=e.dataset.wdfNewsletterRestUrl,n=e.dataset.wdfNewsletterNonce,r=e.querySelector(`.wdf-newsletter-form__submit`),i=new FormData(e),a={email:i.get(`email`)||``,name:i.get(`name`)||``,website:i.get(`website`)||``};r&&(r.disabled=!0),Pr(e,``,!1);try{let r=await fetch(t,{method:`POST`,headers:{"Content-Type":`application/json`,"X-WP-Nonce":n},body:JSON.stringify(a)}),i=await r.json().catch(()=>({}));r.ok&&i.success?(Pr(e,Er(`Thanks — you are subscribed.`,`wdftheme1`),!1),e.reset()):Pr(e,i.message||Er(`Something went wrong. Please try again.`,`wdftheme1`),!0)}catch{Pr(e,Er(`Something went wrong. Please try again.`,`wdftheme1`),!0)}finally{r&&(r.disabled=!1)}},Ir=(e=document)=>{(e.querySelectorAll?Array.from(e.querySelectorAll(Or)):[]).filter(e=>e.dataset.wdfNewsletterReady!==`true`).forEach(e=>{e.dataset.wdfNewsletterReady=`true`,e.addEventListener(`submit`,t=>{t.preventDefault(),Fr(e)})})},Lr=(e=document)=>{(e.querySelectorAll?Array.from(e.querySelectorAll(kr)):[]).filter(e=>e.dataset.wdfNewsletterModalReady!==`true`).forEach(e=>{e.dataset.wdfNewsletterModalReady=`true`,e.addEventListener(`shown.bs.modal`,()=>{Mr()})})},Rr=(e=document)=>{Nr(e),Ir(e),Lr(e)};document.addEventListener(`DOMContentLoaded`,()=>{Zn(),tr(),ar(),pr(),Tr(),Rr()});export{Cn as i,wn as n,Sn as r,Tn as t};