import{m as N,a as oe,h as ue}from"./module.esm-DG0reW11.js";import{m as se}from"./menu-scripts-DlxXy47p.js";import{a as ce}from"./animated-circle-DtMcZZR3.js";import{h as le}from"./home-animation-trigger-CHxL3Kt_.js";var Z=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],I=Z.join(","),z=typeof Element=="undefined",R=z?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,j=!z&&Element.prototype.getRootNode?function(n){return n.getRootNode()}:function(n){return n.ownerDocument},Q=function(e,t,a){var i=Array.prototype.slice.apply(e.querySelectorAll(I));return t&&R.call(e,I)&&i.unshift(e),i=i.filter(a),i},J=function n(e,t,a){for(var i=[],r=Array.from(e);r.length;){var s=r.shift();if(s.tagName==="SLOT"){var l=s.assignedElements(),g=l.length?l:s.children,d=n(g,!0,a);a.flatten?i.push.apply(i,d):i.push({scope:s,candidates:d})}else{var v=R.call(s,I);v&&a.filter(s)&&(t||!e.includes(s))&&i.push(s);var p=s.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(s),y=!a.shadowRootFilter||a.shadowRootFilter(s);if(p&&y){var w=n(p===!0?s.children:p.children,!0,a);a.flatten?i.push.apply(i,w):i.push({scope:s,candidates:w})}else r.unshift.apply(r,s.children)}}return i},ee=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},fe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},te=function(e){return e.tagName==="INPUT"},de=function(e){return te(e)&&e.type==="hidden"},ve=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},be=function(e,t){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===t)return e[a]},he=function(e){if(!e.name)return!0;var t=e.form||j(e),a=function(l){return t.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")i=a(window.CSS.escape(e.name));else try{i=a(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var r=be(i,e.form);return!r||r===e},pe=function(e){return te(e)&&e.type==="radio"},ge=function(e){return pe(e)&&!he(e)},W=function(e){var t=e.getBoundingClientRect(),a=t.width,i=t.height;return a===0&&i===0},me=function(e,t){var a=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=R.call(e,"details>summary:first-of-type"),s=r?e.parentElement:e;if(R.call(s,"details:not([open]) *"))return!0;var l=j(e).host,g=(l==null?void 0:l.ownerDocument.contains(l))||e.ownerDocument.contains(e);if(!a||a==="full"){if(typeof i=="function"){for(var d=e;e;){var v=e.parentElement,p=j(e);if(v&&!v.shadowRoot&&i(v)===!0)return W(e);e.assignedSlot?e=e.assignedSlot:!v&&p!==e.ownerDocument?e=p.host:e=v}e=d}if(g)return!e.getClientRects().length}else if(a==="non-zero-area")return W(e);return!1},ye=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a<t.children.length;a++){var i=t.children.item(a);if(i.tagName==="LEGEND")return R.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},L=function(e,t){return!(t.disabled||de(t)||me(t,e)||ve(t)||ye(t))},M=function(e,t){return!(ge(t)||ee(t)<0||!L(e,t))},we=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Te=function n(e){var t=[],a=[];return e.forEach(function(i,r){var s=!!i.scope,l=s?i.scope:i,g=ee(l,s),d=s?n(i.candidates):l;g===0?s?t.push.apply(t,d):t.push(l):a.push({documentOrder:r,tabIndex:g,item:i,isScope:s,content:d})}),a.sort(fe).reduce(function(i,r){return r.isScope?i.push.apply(i,r.content):i.push(r.content),i},[]).concat(t)},Se=function(e,t){t=t||{};var a;return t.getShadowRoot?a=J([e],t.includeContainer,{filter:M.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:we}):a=Q(e,t.includeContainer,M.bind(null,t)),Te(a)},re=function(e,t){t=t||{};var a;return t.getShadowRoot?a=J([e],t.includeContainer,{filter:L.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=Q(e,t.includeContainer,L.bind(null,t)),a},A=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return R.call(e,I)===!1?!1:M(t,e)},Ee=Z.concat("iframe").join(","),x=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return R.call(e,Ee)===!1?!1:L(t,e)};function H(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);e&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,a)}return t}function U(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?H(Object(t),!0).forEach(function(a){Fe(n,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach(function(a){Object.defineProperty(n,a,Object.getOwnPropertyDescriptor(t,a))})}return n}function Fe(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var V=function(){var n=[];return{activateTrap:function(t){if(n.length>0){var a=n[n.length-1];a!==t&&a.pause()}var i=n.indexOf(t);i===-1||n.splice(i,1),n.push(t)},deactivateTrap:function(t){var a=n.indexOf(t);a!==-1&&n.splice(a,1),n.length>0&&n[n.length-1].unpause()}}}(),Ne=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Re=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},Ce=function(e){return e.key==="Tab"||e.keyCode===9},K=function(e){return setTimeout(e,0)},Y=function(e,t){var a=-1;return e.every(function(i,r){return t(i)?(a=r,!1):!0}),a},O=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,a):e},k=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},De=function(e,t){var a=(t==null?void 0:t.document)||document,i=U({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s,l=function(o,u,c){return o&&o[u]!==void 0?o[u]:i[c||u]},g=function(o){return r.containerGroups.findIndex(function(u){var c=u.container,h=u.tabbableNodes;return c.contains(o)||h.find(function(f){return f===o})})},d=function(o){var u=i[o];if(typeof u=="function"){for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];u=u.apply(void 0,h)}if(u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error("`".concat(o,"` was specified but was not a node, or did not return a node"))}var m=u;if(typeof u=="string"&&(m=a.querySelector(u),!m))throw new Error("`".concat(o,"` as selector refers to no known node"));return m},v=function(){var o=d("initialFocus");if(o===!1)return!1;if(o===void 0)if(g(a.activeElement)>=0)o=a.activeElement;else{var u=r.tabbableGroups[0],c=u&&u.firstTabbableNode;o=c||d("fallbackFocus")}if(!o)throw new Error("Your focus-trap needs to have at least one focusable element");return o},p=function(){if(r.containerGroups=r.containers.map(function(o){var u=Se(o,i.tabbableOptions),c=re(o,i.tabbableOptions);return{container:o,tabbableNodes:u,focusableNodes:c,firstTabbableNode:u.length>0?u[0]:null,lastTabbableNode:u.length>0?u[u.length-1]:null,nextTabbableNode:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,S=c.findIndex(function(F){return F===f});if(!(S<0))return m?c.slice(S+1).find(function(F){return A(F,i.tabbableOptions)}):c.slice(0,S).reverse().find(function(F){return A(F,i.tabbableOptions)})}}}),r.tabbableGroups=r.containerGroups.filter(function(o){return o.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},y=function b(o){if(o!==!1&&o!==a.activeElement){if(!o||!o.focus){b(v());return}o.focus({preventScroll:!!i.preventScroll}),r.mostRecentlyFocusedNode=o,Ne(o)&&o.select()}},w=function(o){var u=d("setReturnFocus",o);return u||(u===!1?!1:o)},E=function(o){var u=k(o);if(!(g(u)>=0)){if(O(i.clickOutsideDeactivates,o)){s.deactivate({returnFocus:i.returnFocusOnDeactivate&&!x(u,i.tabbableOptions)});return}O(i.allowOutsideClick,o)||o.preventDefault()}},C=function(o){var u=k(o),c=g(u)>=0;c||u instanceof Document?c&&(r.mostRecentlyFocusedNode=u):(o.stopImmediatePropagation(),y(r.mostRecentlyFocusedNode||v()))},T=function(o){var u=k(o);p();var c=null;if(r.tabbableGroups.length>0){var h=g(u),f=h>=0?r.containerGroups[h]:void 0;if(h<0)o.shiftKey?c=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:c=r.tabbableGroups[0].firstTabbableNode;else if(o.shiftKey){var m=Y(r.tabbableGroups,function(P){var _=P.firstTabbableNode;return u===_});if(m<0&&(f.container===u||x(u,i.tabbableOptions)&&!A(u,i.tabbableOptions)&&!f.nextTabbableNode(u,!1))&&(m=h),m>=0){var S=m===0?r.tabbableGroups.length-1:m-1,F=r.tabbableGroups[S];c=F.lastTabbableNode}}else{var D=Y(r.tabbableGroups,function(P){var _=P.lastTabbableNode;return u===_});if(D<0&&(f.container===u||x(u,i.tabbableOptions)&&!A(u,i.tabbableOptions)&&!f.nextTabbableNode(u))&&(D=h),D>=0){var ne=D===r.tabbableGroups.length-1?0:D+1,ie=r.tabbableGroups[ne];c=ie.firstTabbableNode}}}else c=d("fallbackFocus");c&&(o.preventDefault(),y(c))},B=function(o){if(Re(o)&&O(i.escapeDeactivates,o)!==!1){o.preventDefault(),s.deactivate();return}if(Ce(o)){T(o);return}},$=function(o){var u=k(o);g(u)>=0||O(i.clickOutsideDeactivates,o)||O(i.allowOutsideClick,o)||(o.preventDefault(),o.stopImmediatePropagation())},q=function(){if(r.active)return V.activateTrap(s),r.delayInitialFocusTimer=i.delayInitialFocus?K(function(){y(v())}):y(v()),a.addEventListener("focusin",C,!0),a.addEventListener("mousedown",E,{capture:!0,passive:!1}),a.addEventListener("touchstart",E,{capture:!0,passive:!1}),a.addEventListener("click",$,{capture:!0,passive:!1}),a.addEventListener("keydown",B,{capture:!0,passive:!1}),s},G=function(){if(r.active)return a.removeEventListener("focusin",C,!0),a.removeEventListener("mousedown",E,!0),a.removeEventListener("touchstart",E,!0),a.removeEventListener("click",$,!0),a.removeEventListener("keydown",B,!0),s};return s={get active(){return r.active},get paused(){return r.paused},activate:function(o){if(r.active)return this;var u=l(o,"onActivate"),c=l(o,"onPostActivate"),h=l(o,"checkCanFocusTrap");h||p(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,u&&u();var f=function(){h&&p(),q(),c&&c()};return h?(h(r.containers.concat()).then(f,f),this):(f(),this)},deactivate:function(o){if(!r.active)return this;var u=U({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},o);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,G(),r.active=!1,r.paused=!1,V.deactivateTrap(s);var c=l(u,"onDeactivate"),h=l(u,"onPostDeactivate"),f=l(u,"checkCanReturnFocus"),m=l(u,"returnFocus","returnFocusOnDeactivate");c&&c();var S=function(){K(function(){m&&y(w(r.nodeFocusedBeforeActivation)),h&&h()})};return m&&f?(f(w(r.nodeFocusedBeforeActivation)).then(S,S),this):(S(),this)},pause:function(){return r.paused||!r.active?this:(r.paused=!0,G(),this)},unpause:function(){return!r.paused||!r.active?this:(r.paused=!1,p(),q(),this)},updateContainerElements:function(o){var u=[].concat(o).filter(Boolean);return r.containers=u.map(function(c){return typeof c=="string"?a.querySelector(c):c}),r.active&&p(),this}},s.updateContainerElements(e),s};function Oe(n){let e,t;window.addEventListener("focusin",()=>{e=t,t=document.activeElement}),n.magic("focus",a=>{let i=a;return{__noscroll:!1,__wrapAround:!1,within(r){return i=r,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(r){return x(r)},previouslyFocused(){return e},lastFocused(){return e},focused(){return t},focusables(){return Array.isArray(i)?i:re(i,{displayCheck:"none"})},all(){return this.focusables()},isFirst(r){let s=this.all();return s[0]&&s[0].isSameNode(r)},isLast(r){let s=this.all();return s.length&&s.slice(-1)[0].isSameNode(r)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let r=this.all(),s=document.activeElement;if(r.indexOf(s)!==-1)return this.__wrapAround&&r.indexOf(s)===r.length-1?r[0]:r[r.indexOf(s)+1]},getPrevious(){let r=this.all(),s=document.activeElement;if(r.indexOf(s)!==-1)return this.__wrapAround&&r.indexOf(s)===0?r.slice(-1)[0]:r[r.indexOf(s)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(r){r&&setTimeout(()=>{r.hasAttribute("tabindex")||r.setAttribute("tabindex","0"),r.focus({preventScroll:this.__noscroll})})}}}),n.directive("trap",n.skipDuringClone((a,{expression:i,modifiers:r},{effect:s,evaluateLater:l,cleanup:g})=>{let d=l(i),v=!1,p={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>a};if(r.includes("noautofocus"))p.initialFocus=!1;else{let T=a.querySelector("[autofocus]");T&&(p.initialFocus=T)}let y=De(a,p),w=()=>{},E=()=>{};const C=()=>{w(),w=()=>{},E(),E=()=>{},y.deactivate({returnFocus:!r.includes("noreturn")})};s(()=>d(T=>{v!==T&&(T&&!v&&(r.includes("noscroll")&&(E=Ae()),r.includes("inert")&&(w=X(a)),setTimeout(()=>{y.activate()},15)),!T&&v&&C(),v=!!T)})),g(C)},(a,{expression:i,modifiers:r},{evaluate:s})=>{r.includes("inert")&&s(i)&&X(a)}))}function X(n){let e=[];return ae(n,t=>{let a=t.hasAttribute("aria-hidden");t.setAttribute("aria-hidden","true"),e.push(()=>a||t.removeAttribute("aria-hidden"))}),()=>{for(;e.length;)e.pop()()}}function ae(n,e){n.isSameNode(document.body)||!n.parentNode||Array.from(n.parentNode.children).forEach(t=>{t.isSameNode(n)?ae(n.parentNode,e):e(t)})}function Ae(){let n=document.documentElement.style.overflow,e=document.documentElement.style.paddingRight,t=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${t}px`,()=>{document.documentElement.style.overflow=n,document.documentElement.style.paddingRight=e}}var ke=Oe;/*! Bundled license information:

tabbable/dist/index.esm.js:
  (*!
  * tabbable 5.3.3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
  *)

focus-trap/dist/focus-trap.esm.js:
  (*!
  * focus-trap 6.9.4
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
  *)
*/function xe(n){n.directive("intersect",n.skipDuringClone((e,{value:t,expression:a,modifiers:i},{evaluateLater:r,cleanup:s})=>{let l=r(a),g={rootMargin:Pe(i),threshold:Ie(i)},d=new IntersectionObserver(v=>{v.forEach(p=>{p.isIntersecting!==(t==="leave")&&(l(),i.includes("once")&&d.disconnect())})},g);d.observe(e),s(()=>{d.disconnect()})}))}function Ie(n){if(n.includes("full"))return .99;if(n.includes("half"))return .5;if(!n.includes("threshold"))return 0;let e=n[n.indexOf("threshold")+1];return e==="100"?1:e==="0"?0:+`.${e}`}function Le(n){let e=n.match(/^(-?[0-9]+)(px|%)?$/);return e?e[1]+(e[2]||"px"):void 0}function Pe(n){const e="margin",t="0px 0px 0px 0px",a=n.indexOf(e);if(a===-1)return t;let i=[];for(let r=1;r<5;r++)i.push(Le(n[a+r]||""));return i=i.filter(r=>r!==void 0),i.length?i.join(" ").trim():t}var _e=xe;N.plugin(ke);N.plugin(oe);N.plugin(_e);window.Alpine=N;window.htmx=ue;N.data("menuScripts",se);N.data("animatedCircle",ce);N.data("homeAnimationTrigger",le);nonce!==void 0&&document.addEventListener("htmx:configRequest",function(n){n.detail.headers["X-WP-Nonce"]=nonce});document.addEventListener("DOMContentLoaded",function(){N.start()});
//# sourceMappingURL=app-C85wbbaR.js.map
